Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DBCALShower_factory_KLOE Class Reference

Form fully reconstructed showers from BCAL data based on the KLOE algorithm. The showers produced by this do have calibration applied to correct the output energy based on cluster energy and z-location. This used DBCALHit objects as input. All clustering, merging etc. are done here as described in GlueX-doc-569 More...

#include <DBCALShower_factory_KLOE.h>

+ Inheritance diagram for DBCALShower_factory_KLOE:

Public Member Functions

 DBCALShower_factory_KLOE ()
 
 ~DBCALShower_factory_KLOE ()
 
const char * Tag (void)
 

Private Member Functions

jerror_t init ()
 
jerror_t brun (JEventLoop *loop, int32_t runnumber)
 
jerror_t evnt (JEventLoop *loop, uint64_t eventnumber)
 Invoked via JEventProcessor virtual method. More...
 
void FindPointsInShower (int indx, JEventLoop *loop, vector< const DBCALPoint * > &pointsInShower)
 
void CellRecon (JEventLoop *loop)
 
void CeleToArray (void)
 
void PreCluster (JEventLoop *loop)
 
void Connect (int, int)
 
void ClusNorm (void)
 
void ClusAnalysis ()
 
void Clus_Break (int nclust)
 
void clsLoop ()
 
void Trakfit (void)
 
void Fit_ls ()
 
void Linefit (int ixyz, int mwt, float &a, float &b, float &siga, float &sigb, float &chi2, float &q)
 
float Gammq (float a, float x)
 
void Gser (float &gamser, float a, float x)
 
void Gcf (float &gammcf, float a, float x)
 
float Gammln (float xx_gln)
 

Private Attributes

const DBCALGeometrybcalGeom
 
float ecel_a [modulemax_bcal][layermax_bcal][colmax_bcal]
 
float ecel_b [modulemax_bcal][layermax_bcal][colmax_bcal]
 
float tcel_a [modulemax_bcal][layermax_bcal][colmax_bcal]
 
float tcel_b [modulemax_bcal][layermax_bcal][colmax_bcal]
 
float xx [modulemax_bcal][layermax_bcal][colmax_bcal]
 
float yy [modulemax_bcal][layermax_bcal][colmax_bcal]
 
float fiberLength
 
float zOffset
 
float xcel [modulemax_bcal][layermax_bcal][colmax_bcal]
 
float ycel [modulemax_bcal][layermax_bcal][colmax_bcal]
 
float zcel [modulemax_bcal][layermax_bcal][colmax_bcal]
 
float tcel [modulemax_bcal][layermax_bcal][colmax_bcal]
 
float ecel [modulemax_bcal][layermax_bcal][colmax_bcal]
 
float tcell_anor [modulemax_bcal][layermax_bcal][colmax_bcal]
 
float tcell_bnor [modulemax_bcal][layermax_bcal][colmax_bcal]
 
float ethr_cell
 
int celtot
 
int narr [4][cellmax_bcal+1]
 
int nclus [cellmax_bcal+1]
 
int next [cellmax_bcal+1]
 
float e_cel [cellmax_bcal+1]
 
float x_cel [cellmax_bcal+1]
 
float y_cel [cellmax_bcal+1]
 
float z_cel [cellmax_bcal+1]
 
float t_cel [cellmax_bcal+1]
 
float ta_cel [cellmax_bcal+1]
 
float tb_cel [cellmax_bcal+1]
 
float celdata [4][cellmax_bcal+1]
 
int clstot
 
float e_cls [clsmax_bcal+1]
 
float x_cls [clsmax_bcal+1]
 
float y_cls [clsmax_bcal+1]
 
float z_cls [clsmax_bcal+1]
 
float t_cls [clsmax_bcal+1]
 
float ea_cls [clsmax_bcal+1]
 
float eb_cls [clsmax_bcal+1]
 
float ta_cls [clsmax_bcal+1]
 
float tb_cls [clsmax_bcal+1]
 
float tsqr_a [clsmax_bcal+1]
 
float tsqr_b [clsmax_bcal+1]
 
float trms_a [clsmax_bcal+1]
 
float trms_b [clsmax_bcal+1]
 
float e2_a [clsmax_bcal+1]
 
float e2_b [clsmax_bcal+1]
 
int clspoi [clsmax_bcal+1]
 
int ncltot [clsmax_bcal+1]
 
int ntopol [clsmax_bcal+1]
 
int nlrtot [clsmax_bcal+1]
 
int elyr
 
int xlyr
 
int ylyr
 
int zlyr
 
int tlyr
 
float clslyr [6][layermax_bcal+1][clsmax_bcal+1]
 
float apx [4][clsmax_bcal+1]
 
float eapx [4][clsmax_bcal+1]
 
float ctrk [4][clsmax_bcal+1]
 
float ectrk [4][clsmax_bcal+1]
 
float ctrk_ix [4]
 
float ectrk_ix [4]
 
float apx_ix [4]
 
float eapx_ix [4]
 
float x [layermax_bcal+1]
 
float y [layermax_bcal+1]
 
float z [layermax_bcal+1]
 
float e [layermax_bcal+1]
 
float rt [layermax_bcal+1]
 
float sigx [layermax_bcal+1]
 
float sigy [layermax_bcal+1]
 
float sigz [layermax_bcal+1]
 
float MERGE_THRESH_DIST
 
float MERGE_THRESH_TIME
 
float MERGE_THRESH_ZDIST
 
float MERGE_THRESH_XYDIST
 
float BREAK_THRESH_TRMS
 
float CLUST_THRESH
 
float ATTEN_LENGTH
 
float C_EFFECTIVE
 
float m_scaleZ_p0
 
float m_scaleZ_p1
 
float m_scaleZ_p2
 
float m_scaleZ_p3
 
float m_nonlinZ_p0
 
float m_nonlinZ_p1
 
float m_nonlinZ_p2
 
float m_nonlinZ_p3
 
double m_z_target_center
 

Detailed Description

Form fully reconstructed showers from BCAL data based on the KLOE algorithm. The showers produced by this do have calibration applied to correct the output energy based on cluster energy and z-location. This used DBCALHit objects as input. All clustering, merging etc. are done here as described in GlueX-doc-569

Author's Note: This class started as a functional clone of the default DBCALShower_factory_KLOE – much of the logic and data structure is as written by C. Xu. Revisions were made to get approx 10x speed gain. The intial version in the repository It has undergone subsequent reision and as of 8-Aug-08 merged back in as the default DBCALShower_factory_KLOE

Definition at line 33 of file DBCALShower_factory_KLOE.h.

Constructor & Destructor Documentation

DBCALShower_factory_KLOE::DBCALShower_factory_KLOE ( )
inline

Definition at line 37 of file DBCALShower_factory_KLOE.h.

DBCALShower_factory_KLOE::~DBCALShower_factory_KLOE ( )
inline

Definition at line 38 of file DBCALShower_factory_KLOE.h.

Member Function Documentation

jerror_t DBCALShower_factory_KLOE::brun ( JEventLoop *  loop,
int32_t  runnumber 
)
private
void DBCALShower_factory_KLOE::CeleToArray ( void  )
private

Definition at line 472 of file DBCALShower_factory_KLOE.cc.

References cellmax_bcal, colmax_bcal, layermax_bcal, min, and modulemax_bcal.

void DBCALShower_factory_KLOE::clsLoop ( )
private
void DBCALShower_factory_KLOE::Clus_Break ( int  nclust)
private

Definition at line 995 of file DBCALShower_factory_KLOE.cc.

References cellmax_bcal, and sqrt().

void DBCALShower_factory_KLOE::ClusAnalysis ( )
private

Definition at line 905 of file DBCALShower_factory_KLOE.cc.

References min, and sqrt().

void DBCALShower_factory_KLOE::ClusNorm ( void  )
private

Definition at line 776 of file DBCALShower_factory_KLOE.cc.

References clsmax_bcal, and sqrt().

void DBCALShower_factory_KLOE::Connect ( int  n,
int  m 
)
private

Definition at line 725 of file DBCALShower_factory_KLOE.cc.

jerror_t DBCALShower_factory_KLOE::evnt ( JEventLoop *  loop,
uint64_t  eventnumber 
)
private

Invoked via JEventProcessor virtual method.

Definition at line 184 of file DBCALShower_factory_KLOE.cc.

References DBCALShower::E, DBCALShower::E_raw, DBCALShower::N_cell, sin(), sqrt(), DBCALShower::t, DBCALShower::x, x, DBCALShower::y, y, and DBCALShower::z.

void DBCALShower_factory_KLOE::FindPointsInShower ( int  indx,
JEventLoop *  loop,
vector< const DBCALPoint * > &  pointsInShower 
)
private

This is called after the clusters have been completely formed. Our job is simply to find the DBCALPoint objects used to form a given cluster. This is so the DBCALPoint objects can be added to the DBCALShower object as AssociatedObjects.

Definition at line 334 of file DBCALShower_factory_KLOE.cc.

References layer.

void DBCALShower_factory_KLOE::Fit_ls ( )
private

Definition at line 1282 of file DBCALShower_factory_KLOE.cc.

References c, e, f, and sqrt().

float DBCALShower_factory_KLOE::Gammln ( float  xx_gln)
private

Definition at line 1597 of file DBCALShower_factory_KLOE.cc.

float DBCALShower_factory_KLOE::Gammq ( float  a,
float  x 
)
private

Definition at line 1460 of file DBCALShower_factory_KLOE.cc.

void DBCALShower_factory_KLOE::Gcf ( float &  gammcf,
float  a,
float  x 
)
private

Definition at line 1547 of file DBCALShower_factory_KLOE.cc.

References c, and h.

void DBCALShower_factory_KLOE::Gser ( float &  gamser,
float  a,
float  x 
)
private

Definition at line 1501 of file DBCALShower_factory_KLOE.cc.

References sum.

jerror_t DBCALShower_factory_KLOE::init ( void  )
private

Definition at line 27 of file DBCALShower_factory_KLOE.cc.

void DBCALShower_factory_KLOE::Linefit ( int  ixyz,
int  mwt,
float &  a,
float &  b,
float &  siga,
float &  sigb,
float &  chi2,
float &  q 
)
private

Definition at line 1330 of file DBCALShower_factory_KLOE.cc.

References e, layermax_bcal, sqrt(), x, and y.

void DBCALShower_factory_KLOE::PreCluster ( JEventLoop *  loop)
private

Definition at line 562 of file DBCALShower_factory_KLOE.cc.

References sin(), and sqrt().

const char* DBCALShower_factory_KLOE::Tag ( void  )
inline

Definition at line 40 of file DBCALShower_factory_KLOE.h.

void DBCALShower_factory_KLOE::Trakfit ( void  )
private

Definition at line 1125 of file DBCALShower_factory_KLOE.cc.

References clsmax_bcal, e, layermax_bcal, sqrt(), x, and y.

Member Data Documentation

float DBCALShower_factory_KLOE::apx[4][clsmax_bcal+1]
private

Definition at line 179 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::apx_ix[4]
private

Definition at line 186 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::ATTEN_LENGTH
private

Definition at line 209 of file DBCALShower_factory_KLOE.h.

const DBCALGeometry* DBCALShower_factory_KLOE::bcalGeom
private

Definition at line 69 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::BREAK_THRESH_TRMS
private

Definition at line 207 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::C_EFFECTIVE
private

Definition at line 210 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::celdata[4][cellmax_bcal+1]
private

Definition at line 136 of file DBCALShower_factory_KLOE.h.

int DBCALShower_factory_KLOE::celtot
private

Definition at line 110 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::clslyr[6][layermax_bcal+1][clsmax_bcal+1]
private

Definition at line 177 of file DBCALShower_factory_KLOE.h.

int DBCALShower_factory_KLOE::clspoi[clsmax_bcal+1]
private

Definition at line 161 of file DBCALShower_factory_KLOE.h.

int DBCALShower_factory_KLOE::clstot
private

Definition at line 141 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::CLUST_THRESH
private

Definition at line 208 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::ctrk[4][clsmax_bcal+1]
private

Definition at line 181 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::ctrk_ix[4]
private

Definition at line 184 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::e[layermax_bcal+1]
private

Definition at line 192 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::e2_a[clsmax_bcal+1]
private

Definition at line 158 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::e2_b[clsmax_bcal+1]
private

Definition at line 159 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::e_cel[cellmax_bcal+1]
private

Definition at line 121 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::e_cls[clsmax_bcal+1]
private

Definition at line 143 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::ea_cls[clsmax_bcal+1]
private

Definition at line 148 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::eapx[4][clsmax_bcal+1]
private

Definition at line 180 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::eapx_ix[4]
private

Definition at line 187 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::eb_cls[clsmax_bcal+1]
private

Definition at line 149 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::ecel[modulemax_bcal][layermax_bcal][colmax_bcal]
private

Definition at line 102 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::ecel_a[modulemax_bcal][layermax_bcal][colmax_bcal]
private

Definition at line 86 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::ecel_b[modulemax_bcal][layermax_bcal][colmax_bcal]
private

Definition at line 87 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::ectrk[4][clsmax_bcal+1]
private

Definition at line 182 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::ectrk_ix[4]
private

Definition at line 185 of file DBCALShower_factory_KLOE.h.

int DBCALShower_factory_KLOE::elyr
private

Definition at line 169 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::ethr_cell
private

Definition at line 109 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::fiberLength
private

Definition at line 95 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::m_nonlinZ_p0
private

Definition at line 218 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::m_nonlinZ_p1
private

Definition at line 219 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::m_nonlinZ_p2
private

Definition at line 220 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::m_nonlinZ_p3
private

Definition at line 221 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::m_scaleZ_p0
private

Definition at line 213 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::m_scaleZ_p1
private

Definition at line 214 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::m_scaleZ_p2
private

Definition at line 215 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::m_scaleZ_p3
private

Definition at line 216 of file DBCALShower_factory_KLOE.h.

double DBCALShower_factory_KLOE::m_z_target_center
private

Definition at line 223 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::MERGE_THRESH_DIST
private

Definition at line 203 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::MERGE_THRESH_TIME
private

Definition at line 204 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::MERGE_THRESH_XYDIST
private

Definition at line 206 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::MERGE_THRESH_ZDIST
private

Definition at line 205 of file DBCALShower_factory_KLOE.h.

int DBCALShower_factory_KLOE::narr[4][cellmax_bcal+1]
private

Definition at line 118 of file DBCALShower_factory_KLOE.h.

int DBCALShower_factory_KLOE::ncltot[clsmax_bcal+1]
private

Definition at line 162 of file DBCALShower_factory_KLOE.h.

int DBCALShower_factory_KLOE::nclus[cellmax_bcal+1]
private

Definition at line 119 of file DBCALShower_factory_KLOE.h.

int DBCALShower_factory_KLOE::next[cellmax_bcal+1]
private

Definition at line 120 of file DBCALShower_factory_KLOE.h.

int DBCALShower_factory_KLOE::nlrtot[clsmax_bcal+1]
private

Definition at line 167 of file DBCALShower_factory_KLOE.h.

int DBCALShower_factory_KLOE::ntopol[clsmax_bcal+1]
private

Definition at line 163 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::rt[layermax_bcal+1]
private

Definition at line 195 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::sigx[layermax_bcal+1]
private

Definition at line 197 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::sigy[layermax_bcal+1]
private

Definition at line 198 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::sigz[layermax_bcal+1]
private

Definition at line 199 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::t_cel[cellmax_bcal+1]
private

Definition at line 125 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::t_cls[clsmax_bcal+1]
private

Definition at line 147 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::ta_cel[cellmax_bcal+1]
private

Definition at line 126 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::ta_cls[clsmax_bcal+1]
private

Definition at line 151 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::tb_cel[cellmax_bcal+1]
private

Definition at line 127 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::tb_cls[clsmax_bcal+1]
private

Definition at line 152 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::tcel[modulemax_bcal][layermax_bcal][colmax_bcal]
private

Definition at line 101 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::tcel_a[modulemax_bcal][layermax_bcal][colmax_bcal]
private

Definition at line 88 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::tcel_b[modulemax_bcal][layermax_bcal][colmax_bcal]
private

Definition at line 89 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::tcell_anor[modulemax_bcal][layermax_bcal][colmax_bcal]
private

Definition at line 103 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::tcell_bnor[modulemax_bcal][layermax_bcal][colmax_bcal]
private

Definition at line 104 of file DBCALShower_factory_KLOE.h.

int DBCALShower_factory_KLOE::tlyr
private

Definition at line 173 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::trms_a[clsmax_bcal+1]
private

Definition at line 155 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::trms_b[clsmax_bcal+1]
private

Definition at line 156 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::tsqr_a[clsmax_bcal+1]
private

Definition at line 153 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::tsqr_b[clsmax_bcal+1]
private

Definition at line 154 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::x[layermax_bcal+1]
private

Definition at line 189 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::x_cel[cellmax_bcal+1]
private

Definition at line 122 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::x_cls[clsmax_bcal+1]
private

Definition at line 144 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::xcel[modulemax_bcal][layermax_bcal][colmax_bcal]
private

Definition at line 98 of file DBCALShower_factory_KLOE.h.

int DBCALShower_factory_KLOE::xlyr
private

Definition at line 170 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::xx[modulemax_bcal][layermax_bcal][colmax_bcal]
private

Definition at line 92 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::y[layermax_bcal+1]
private

Definition at line 190 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::y_cel[cellmax_bcal+1]
private

Definition at line 123 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::y_cls[clsmax_bcal+1]
private

Definition at line 145 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::ycel[modulemax_bcal][layermax_bcal][colmax_bcal]
private

Definition at line 99 of file DBCALShower_factory_KLOE.h.

int DBCALShower_factory_KLOE::ylyr
private

Definition at line 171 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::yy[modulemax_bcal][layermax_bcal][colmax_bcal]
private

Definition at line 93 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::z[layermax_bcal+1]
private

Definition at line 191 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::z_cel[cellmax_bcal+1]
private

Definition at line 124 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::z_cls[clsmax_bcal+1]
private

Definition at line 146 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::zcel[modulemax_bcal][layermax_bcal][colmax_bcal]
private

Definition at line 100 of file DBCALShower_factory_KLOE.h.

int DBCALShower_factory_KLOE::zlyr
private

Definition at line 172 of file DBCALShower_factory_KLOE.h.

float DBCALShower_factory_KLOE::zOffset
private

Definition at line 96 of file DBCALShower_factory_KLOE.h.


The documentation for this class was generated from the following files: