35 |
PamLevel2 *L2; |
PamLevel2 *L2; |
36 |
Bool_t debug; |
Bool_t debug; |
37 |
Bool_t usetrack; |
Bool_t usetrack; |
38 |
|
Bool_t startZero; |
39 |
|
|
40 |
// |
// |
41 |
// needed to avoid reprocessing the same event over and over to obtain the variables |
// needed to avoid reprocessing the same event over and over to obtain the variables |
42 |
// |
// |
61 |
Float_t MIP;//Mev g/cm2 energia al minimo nel silicio per 0.38 mm |
Float_t MIP;//Mev g/cm2 energia al minimo nel silicio per 0.38 mm |
62 |
|
|
63 |
Float_t emin; |
Float_t emin; |
64 |
|
Float_t fzeta; |
65 |
|
|
66 |
|
// |
67 |
|
Bool_t usepl18x; |
68 |
|
Bool_t newchi2; |
69 |
|
Bool_t usenewBB; |
70 |
|
Int_t ndf; |
71 |
|
|
72 |
|
|
73 |
//parametri bethe-bloch |
//parametri bethe-bloch |
74 |
Float_t pigr; |
Float_t pigr; |
75 |
Float_t Na; |
Float_t Na; |
76 |
Float_t ZA; /*Z/A per Si*/ |
Float_t ZA; /*Z/A per Si*/ |
77 |
Float_t ISi; /*MeV*/ |
Float_t ISi; /*MeV*/ |
78 |
|
Float_t IW; /*MeV*/ |
79 |
Float_t Me; /* MeV*/ |
Float_t Me; /* MeV*/ |
80 |
Float_t MassP;/*MeV*/ |
Float_t MassP;/*MeV*/ |
81 |
Float_t r2; /*ro*ro in cm */ |
Float_t r2; /*ro*ro in cm */ |
83 |
//variabili globali caricabili |
//variabili globali caricabili |
84 |
Float_t Integrale; |
Float_t Integrale; |
85 |
Float_t bestchi2[4]; |
Float_t bestchi2[4]; |
86 |
Float_t qtchi2; |
/* Float_t qtchi2; */ |
87 |
Float_t qtz; |
/* Float_t qtz; */ |
88 |
Float_t qtetot; |
/* Float_t qtetot; */ |
89 |
Float_t qtpskip; |
/* Float_t qtpskip; */ |
90 |
Float_t lpchi2; |
Float_t lpchi2; |
91 |
Float_t lpz; |
Float_t lpz; |
92 |
Float_t lpetot; |
Float_t lpetot; |
93 |
Float_t lppskip; |
Float_t lppskip; |
94 |
Float_t calorimetro[44][2]; |
Float_t calorimetro[44][2]; |
95 |
Float_t spessore[3]; |
Float_t spessore[4]; |
96 |
Float_t estremi[2][2];//[0][0]primo piano [0][1]energia primo |
Float_t estremi[2][2];//[0][0]primo piano [0][1]energia primo |
97 |
//[1][0]ultim piano [1][1]energia ultim |
//[1][0]ultim piano [1][1]energia ultim |
98 |
//Float_t shift[2][22];//shift dei piani |
//Float_t shift[2][22];//shift dei piani |
99 |
//Float_t piano[22]; //posizione z dei piani |
//Float_t piano[22]; //posizione z dei piani |
100 |
Float_t elem[32];//A degli elementi |
Float_t elem[32];//A degli elementi |
101 |
// |
// |
102 |
void SWAP(Float_t*,Float_t*); |
|
103 |
|
Float_t dEplan[2*22];//energia rilasciata calcolata |
104 |
|
|
105 |
|
/* void SWAP(Float_t*,Float_t*); */ |
106 |
void LoadParam(); |
void LoadParam(); |
107 |
void conversione(); |
void conversione(); |
108 |
void BetheBloch(Float_t *,Float_t *,Float_t *,Float_t *,Float_t *,Float_t *); |
void BetheBloch(Float_t *,Float_t *,Float_t *,Float_t *,Float_t *,Float_t *, Float_t); |
109 |
void ELOSS(Float_t *,Int_t *, Float_t *, Float_t *); |
void ELOSS(Float_t *,Int_t *, Float_t *, Float_t *, Float_t); |
110 |
void Enetrack(Int_t *, Float_t *, Float_t *,Float_t * ); |
void Enetrack(Int_t *, Float_t *, Float_t *,Float_t *,Float_t * ); |
111 |
void chiquadro(Float_t *, Float_t *); |
void chiquadro(Float_t *, Float_t *); |
112 |
void loopze(Float_t ,Float_t ,Float_t ,Float_t ); |
void loopze(Float_t ,Float_t ,Float_t ,Float_t, Int_t ); |
113 |
void mediatroncata(); |
void mediatroncata(); |
114 |
void Zdaloop(); |
void Zdaloop(); |
115 |
|
void CleanPlanes(Float_t epiano[22][2]); |
116 |
|
|
117 |
public: |
public: |
118 |
// |
// |
119 |
|
void SetStartZero(Bool_t yes=false){ startZero = yes;}; |
120 |
// |
// |
121 |
Float_t Get_qtchi2(){ Process(); return qtchi2;}; ///< Number of available dE/dx measurements before interaction or exit from the calo (interaction plane) |
Float_t Get_firstplane(){ Process(); return estremi[0][0];}; ///< Number of available dE/dx measurements before interaction or exit from the calo (interaction plane) |
122 |
Float_t Get_qtz(){ Process(); return qtz;}; ///< Number of available dE/dx measurements before interaction or exit from the calo (interaction plane) |
Float_t Get_lastplane(){ Process(); return estremi[1][0];}; ///< Number of available dE/dx measurements before interaction or exit from the calo (interaction plane) |
123 |
Float_t Get_qtetot(){ Process(); return qtetot;}; ///< Number of available dE/dx measurements before interaction or exit from the calo (interaction plane) |
/* Float_t Get_qtchi2(){ Process(); return qtchi2;}; ///< Number of available dE/dx measurements before interaction or exit from the calo (interaction plane) */ |
124 |
Float_t Get_qtpskip(){ Process(); return qtpskip;}; ///< Number of available dE/dx measurements before interaction or exit from the calo (interaction plane) |
/* Float_t Get_qtz(){ Process(); return qtz;}; ///< Number of available dE/dx measurements before interaction or exit from the calo (interaction plane) */ |
125 |
|
/* Float_t Get_qtetot(){ Process(); return qtetot;}; ///< Number of available dE/dx measurements before interaction or exit from the calo (interaction plane) */ |
126 |
|
/* Float_t Get_qtpskip(){ Process(); return qtpskip;}; ///< Number of available dE/dx measurements before interaction or exit from the calo (interaction plane) */ |
127 |
Float_t Get_lpchi2(){ Process(); return lpchi2;}; ///< Number of available dE/dx measurements before interaction or exit from the calo (interaction plane) |
Float_t Get_lpchi2(){ Process(); return lpchi2;}; ///< Number of available dE/dx measurements before interaction or exit from the calo (interaction plane) |
128 |
Float_t Get_lpz(){ Process(); return lpz;}; ///< Number of available dE/dx measurements before interaction or exit from the calo (interaction plane) |
Float_t Get_lpz(){ Process(); return lpz;}; ///< Number of available dE/dx measurements before interaction or exit from the calo (interaction plane) |
129 |
Float_t Get_lpetot(){ Process(); return lpetot;}; ///< Number of available dE/dx measurements before interaction or exit from the calo (interaction plane) |
Float_t Get_lpetot(){ Process(); return lpetot;}; ///< Number of available dE/dx measurements before interaction or exit from the calo (interaction plane) |
130 |
Float_t Get_lppskip(){ Process(); return lppskip;}; ///< Number of available dE/dx measurements before interaction or exit from the calo (interaction plane) |
Float_t Get_lppskip(){ Process(); return lppskip;}; ///< Number of available dE/dx measurements before interaction or exit from the calo (interaction plane) |
131 |
|
|
132 |
|
Float_t Integral(); |
133 |
|
Float_t LastIntegral(); |
134 |
|
|
135 |
|
void ForceZeta(Float_t zeta){ fzeta = zeta;}; |
136 |
|
void ForceProcessing(){ sntr = -1000.;}; |
137 |
|
|
138 |
|
void UsePlane18X(Bool_t use){usepl18x = use;}; |
139 |
|
|
140 |
|
void UseNewChi2(Bool_t use){newchi2 = use;}; |
141 |
|
void UseNewBB(Bool_t use){usenewBB = use;}; |
142 |
|
// |
143 |
|
|
144 |
// |
// |
145 |
CaloBragg(); |
CaloBragg(); |
146 |
CaloBragg(PamLevel2 *L2); |
CaloBragg(PamLevel2 *L2); |
160 |
void Print(); |
void Print(); |
161 |
void Print(Option_t *option){Print();}; |
void Print(Option_t *option){Print();}; |
162 |
// |
// |
163 |
ClassDef(CaloBragg,2); |
ClassDef(CaloBragg,6); |
164 |
}; |
}; |
165 |
|
|
166 |
#endif |
#endif |