10 |
#include <TArrayI.h> |
#include <TArrayI.h> |
11 |
// |
// |
12 |
#include <CaloStruct.h> |
#include <CaloStruct.h> |
13 |
|
// |
14 |
|
|
15 |
/** |
/** |
16 |
* \brief Calorimeter track-related variables class |
* \brief Calorimeter track-related variables class |
17 |
* |
* |
118 |
// |
// |
119 |
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 |
120 |
// |
// |
|
// Number of strip with energy > emip and their value 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 |
|
|
// |
|
121 |
// METHODS |
// METHODS |
122 |
// |
// |
123 |
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 |
124 |
// |
// |
|
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 TArrayI. |
|
|
// |
|
125 |
CaloTrkVar *GetCaloTrkVar(Int_t notrack); ///< returns a pointer to the CaloTrkVar class containing track related variables for track number notrack |
CaloTrkVar *GetCaloTrkVar(Int_t notrack); ///< returns a pointer to the CaloTrkVar class containing track related variables for track number notrack |
126 |
// |
// |
127 |
TClonesArray *GetTrackArray(){return CaloTrk;}; ///< returns a pointer to the track related variables array |
TClonesArray *GetTrackArray(){return CaloTrk;}; ///< returns a pointer to the track related variables array |
130 |
void GetLevel2Struct(cCaloLevel2 *l2) const; |
void GetLevel2Struct(cCaloLevel2 *l2) const; |
131 |
// |
// |
132 |
void Clear(); |
void Clear(); |
133 |
|
void Delete(); //ELENA |
134 |
|
void Set(); //ELENA |
135 |
// |
// |
136 |
// constructor |
// constructor |
137 |
// |
// |
138 |
CaloLevel2(); ///< Constructor. |
CaloLevel2(); ///< Constructor. |
139 |
|
~CaloLevel2(){Delete();}; //ELENA |
140 |
// |
// |
141 |
friend class CaloProcessing; |
friend class CaloProcessing; |
142 |
// |
// |
143 |
ClassDef(CaloLevel2,2); |
ClassDef(CaloLevel2,3); |
144 |
}; |
}; |
145 |
|
|
146 |
#endif |
#endif |