| 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; | 
     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 */ | 
| 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 | 
  | 
  | 
| 103 | 
  | 
     Float_t dEplan[2*22];//energia rilasciata calcolata | 
| 104 | 
  | 
  | 
| 105 | 
 /*     void SWAP(Float_t*,Float_t*); */ | 
 /*     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 *,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, Int_t  ); | 
     void loopze(Float_t ,Float_t ,Float_t ,Float_t, Int_t  ); | 
| 116 | 
  | 
  | 
| 117 | 
  public: | 
  public: | 
| 118 | 
     // | 
     // | 
| 119 | 
  | 
     void SetStartZero(Bool_t yes=false){ startZero = yes;}; | 
| 120 | 
     // | 
     // | 
| 121 | 
     Float_t Get_firstplane(){ Process(); return estremi[0][0];}; ///< 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_lastplane(){ Process(); return estremi[1][0];}; ///< 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)  | 
| 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;}; | 
     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 | 
     // | 
     // | 
| 160 | 
     void Print(); | 
     void Print(); | 
| 161 | 
     void Print(Option_t *option){Print();}; | 
     void Print(Option_t *option){Print();}; | 
| 162 | 
     // | 
     // | 
| 163 | 
     ClassDef(CaloBragg,4); | 
     ClassDef(CaloBragg,6); | 
| 164 | 
 }; | 
 }; | 
| 165 | 
  | 
  | 
| 166 | 
 #endif | 
 #endif |