7 |
// |
// |
8 |
#include <TObject.h> |
#include <TObject.h> |
9 |
#include <TClonesArray.h> |
#include <TClonesArray.h> |
10 |
#include <TArrayF.h> |
#include <TArrayI.h> |
11 |
// |
// |
12 |
#include <CaloStruct.h> |
#include <CaloStruct.h> |
13 |
/** |
/** |
23 |
|
|
24 |
public: |
public: |
25 |
// |
// |
26 |
Int_t trkseqno; ///< tracker entry coming from tracker, -1 if selftrigger event. |
Int_t trkseqno; ///< this variable determine which track and which routine was used to obtain track related variables: if >= 0 standard routine/tracker track, -1 selftrigger event routine/calorimeter track, -2 high Z nuclei routine/calorimeter track, -3 standard routine/calorimeter track |
27 |
// |
// |
28 |
// track related variables |
// track related variables |
29 |
// |
// |
35 |
Int_t npresh; ///< the same as "ncyl" but with radius 2 strips and only in the first four planes |
Int_t npresh; ///< the same as "ncyl" but with radius 2 strips and only in the first four planes |
36 |
Int_t ntr; ///< the same as "ncyl" but with radius 4 strips |
Int_t ntr; ///< the same as "ncyl" but with radius 4 strips |
37 |
Int_t planetot; ///< number of planes used to calculate the energy truncated mean "qmean" |
Int_t planetot; ///< number of planes used to calculate the energy truncated mean "qmean" |
38 |
Int_t nlow; ///< the same as "nstrip" but below the calculated electromagnetic shower maximum |
Int_t nlow; ///< the same as "nstrip" but only after the calculated electromagnetic shower maximum |
39 |
Int_t tibar[22][2]; ///< strip traversed by the trajectory as measured by the tracker |
Int_t tibar[22][2]; ///< strip traversed by the trajectory as measured by the tracker |
40 |
Float_t tbar[22][2]; ///< position in cm as measured by the tracker |
Float_t tbar[22][2]; ///< position in cm as measured by the tracker |
41 |
Float_t qcore; ///< SUM(j=1,2)SUM(i=1,PLmax) Qhit(i,j)*i , where Qhit(i,j) is the energy released (MIP) in a cylinder of radius 2 Rm (Moliere radius) around the track in the i-th plane (where the top plane is number 1 and the sum runs up to plane number PLmax, closest to the calculated electromagnetic shower maximum of the j-th view). |
Float_t qcore; ///< SUM(j=1,2)SUM(i=1,PLmax) Qhit(i,j)*i , where Qhit(i,j) is the energy released (MIP) in a cylinder of radius 2 Rm (Moliere radius) around the track in the i-th plane (where the top plane is number 1 and the sum runs up to plane number PLmax, closest to the calculated electromagnetic shower maximum of the j-th view). |
50 |
Float_t dxtrack; ///< measured energy outside the clusters along the track in the x-view |
Float_t dxtrack; ///< measured energy outside the clusters along the track in the x-view |
51 |
Float_t dytrack; ///< measured energy outside the clusters along the track in the y-view |
Float_t dytrack; ///< measured energy outside the clusters along the track in the y-view |
52 |
Float_t qmean; ///< the energy truncated mean that is the average energy deposit for the five planes with the smaller energy deposit of the whole calorimeter |
Float_t qmean; ///< the energy truncated mean that is the average energy deposit for the five planes with the smaller energy deposit of the whole calorimeter |
53 |
Float_t qlow; ///< the same as "qstrip" but below the calculated electromagnetic shower maximum |
Float_t qlow; ///< the same as "qtot" but only after the calculated electromagnetic shower maximum |
54 |
Float_t dX0l; ///< tranversed X0 lenght |
Float_t dX0l; ///< tranversed X0 lenght |
55 |
// |
// |
56 |
CaloTrkVar(); ///< Constructor. |
CaloTrkVar(); ///< Constructor. |
115 |
// track related variables: inline methods |
// track related variables: inline methods |
116 |
// |
// |
117 |
Int_t ntrk() {return CaloTrk->GetEntries();}; ///< number of saved blocks of track-related variables |
Int_t ntrk() {return CaloTrk->GetEntries();}; ///< number of saved blocks of track-related variables |
|
Int_t trkseqno(Int_t entry) {return (((CaloTrkVar *)CaloTrk->At(entry))->trkseqno);}; ///< extract trkseqno |
|
|
Int_t ncore(Int_t entry) {return (((CaloTrkVar *)CaloTrk->At(entry))->ncore);}; ///< extract ncore |
|
|
Int_t noint(Int_t entry) {return (((CaloTrkVar *)CaloTrk->At(entry))->noint);}; ///< extract noint |
|
|
Int_t ncyl(Int_t entry) {return (((CaloTrkVar *)CaloTrk->At(entry))->ncyl);}; ///< extract ncyl |
|
|
Int_t nlast(Int_t entry) {return (((CaloTrkVar *)CaloTrk->At(entry))->nlast);}; ///< extract nlast |
|
|
Int_t npre(Int_t entry) {return (((CaloTrkVar *)CaloTrk->At(entry))->npre);}; ///< extract npre |
|
|
Int_t npresh(Int_t entry) {return (((CaloTrkVar *)CaloTrk->At(entry))->npresh);}; ///< extract npresh |
|
|
Int_t ntr(Int_t entry) {return (((CaloTrkVar *)CaloTrk->At(entry))->ntr);}; ///< extract ntr |
|
|
Int_t nlow(Int_t entry) {return (((CaloTrkVar *)CaloTrk->At(entry))->nlow);}; ///< extract nlow |
|
|
Int_t planetot(Int_t entry) {return (((CaloTrkVar *)CaloTrk->At(entry))->planetot);}; ///< extract planetot |
|
|
Int_t tibar(Int_t entry, Int_t plane, Int_t view) {return (((CaloTrkVar *)CaloTrk->At(entry))->tibar[plane][view]);}; ///< extract tibar |
|
|
Float_t tbar(Int_t entry, Int_t plane, Int_t view) {return (((CaloTrkVar *)CaloTrk->At(entry))->tbar[plane][view]);}; ///< extract tbar |
|
|
Float_t qcore(Int_t entry) {return (((CaloTrkVar *)CaloTrk->At(entry))->qcore);}; ///< extract qcore |
|
|
Float_t qcyl(Int_t entry) {return (((CaloTrkVar *)CaloTrk->At(entry))->qcyl);}; ///< extract qcyl |
|
|
Float_t qlast(Int_t entry) {return (((CaloTrkVar *)CaloTrk->At(entry))->qlast);}; ///< extract qlast |
|
|
Float_t qpre(Int_t entry) {return (((CaloTrkVar *)CaloTrk->At(entry))->qpre);}; ///< extract qpre |
|
|
Float_t qpresh(Int_t entry) {return (((CaloTrkVar *)CaloTrk->At(entry))->qpresh);}; ///< extract qpresh |
|
|
Float_t qtr(Int_t entry) {return (((CaloTrkVar *)CaloTrk->At(entry))->qtr);}; ///< extract qtr |
|
|
Float_t qtrack(Int_t entry) {return (((CaloTrkVar *)CaloTrk->At(entry))->qtrack);}; ///< extract qtrack |
|
|
Float_t qtrackx(Int_t entry) {return (((CaloTrkVar *)CaloTrk->At(entry))->qtrackx);}; ///< extract qtrackx |
|
|
Float_t qtracky(Int_t entry) {return (((CaloTrkVar *)CaloTrk->At(entry))->qtracky);}; ///< extract qtracky |
|
|
Float_t dxtrack(Int_t entry) {return (((CaloTrkVar *)CaloTrk->At(entry))->dxtrack);}; ///< extract dxtrack |
|
|
Float_t dytrack(Int_t entry) {return (((CaloTrkVar *)CaloTrk->At(entry))->dytrack);}; ///< extract dytrack |
|
|
Float_t qmean(Int_t entry) {return (((CaloTrkVar *)CaloTrk->At(entry))->qmean);}; ///< extract qmean |
|
|
Float_t qlow(Int_t entry) {return (((CaloTrkVar *)CaloTrk->At(entry))->qlow);}; ///< extract qlow |
|
|
Float_t dX0l(Int_t entry) {return (((CaloTrkVar *)CaloTrk->At(entry))->dX0l);}; ///< extract dX0l |
|
118 |
// |
// |
119 |
// Number of strip with energy > emip and their value coded with view plane and strip number: |
// Number of strip with energy > emip and their value coded with view plane and strip number: |
120 |
// view x[y] plane PP strip SS with energy mmmm.iip = +[-] ( PP*10^6 + SS*10^4 + mmmm.iip ) |
// view x[y] plane PP strip SS with energy mmmm.iip = +[-] ( PP*10^6 + SS*10^4 + mmmm.iip ) |
121 |
// |
// |
122 |
TArrayF estrip; ///< MIP values for each strip with energy > emin coded with view plane and strip number; view x[y] plane PP strip SS with energy mmmm.iip = +[-] ( PP*10^6 + SS*10^4 + mmmm.iip ) |
TArrayI estrip; ///< MIP values for each strip with energy > emin coded with view plane and strip number. NOTICE: precision is limited to the 5 most significative ciphers |
123 |
// |
// |
124 |
// METHODS |
// METHODS |
125 |
// |
// |
126 |
void GetElectronEnergy(Float_t &energy, Float_t &sigma); ///< returns energy and sigma using qtot and assuming the particle being an electron |
void GetElectronEnergy(Float_t &energy, Float_t &sigma); ///< returns energy and sigma using qtot and assuming the particle being an electron |
|
Float_t GetEstrip(Int_t view, Int_t plane, Int_t strip); ///< returns saved MIP value for the indicated strip |
|
|
Float_t DecodeEstrip(Int_t entry, Int_t &view, Int_t &plane, Int_t &strip); ///< returns saved MIP value for the entry number "entry" of the TArrayF. |
|
|
CaloTrkVar *GetCaloTrkVar(Int_t notrack); ///< returns a pointer to the CaloTrkVar class containing track related variables |
|
127 |
// |
// |
128 |
TClonesArray *GetTrackArray(){return CaloTrk;}; |
Float_t GetEstrip(Int_t view, Int_t plane, Int_t strip); ///< returns saved MIP value for the indicated strip. |
129 |
|
Float_t DecodeEstrip(Int_t entry, Int_t &view, Int_t &plane, Int_t &strip); ///< returns saved MIP value for the entry number "entry" of the TArrayI. |
130 |
|
// |
131 |
|
CaloTrkVar *GetCaloTrkVar(Int_t notrack); ///< returns a pointer to the CaloTrkVar class containing track related variables for track number notrack |
132 |
|
// |
133 |
|
TClonesArray *GetTrackArray(){return CaloTrk;}; ///< returns a pointer to the track related variables array |
134 |
CaloLevel2* GetCaloLevel2(){return this;}; ///< returns pointer to this object |
CaloLevel2* GetCaloLevel2(){return this;}; ///< returns pointer to this object |
135 |
// |
// |
136 |
void GetLevel2Struct(cCaloLevel2 *l2) const; |
void GetLevel2Struct(cCaloLevel2 *l2) const; |
137 |
|
// |
138 |
void Clear(); |
void Clear(); |
139 |
// |
// |
140 |
// constructor |
// constructor |
143 |
// |
// |
144 |
friend class CaloProcessing; |
friend class CaloProcessing; |
145 |
// |
// |
146 |
ClassDef(CaloLevel2,1); |
ClassDef(CaloLevel2,2); |
147 |
}; |
}; |
148 |
|
|
149 |
#endif |
#endif |