/[PAMELA software]/DarthVader/CalorimeterLevel2/src/CaloLevel2.cpp
ViewVC logotype

Diff of /DarthVader/CalorimeterLevel2/src/CaloLevel2.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by mocchiut, Fri Nov 23 16:42:34 2007 UTC revision 1.16 by mocchiut, Thu Nov 29 14:20:30 2007 UTC
# Line 109  void CaloLevel2::Clear(Option_t *t ) {   Line 109  void CaloLevel2::Clear(Option_t *t ) {  
109    if(CaloTrk)CaloTrk->Delete(); //ELENA    if(CaloTrk)CaloTrk->Delete(); //ELENA
110    //    //
111    nstrip = 0;    nstrip = 0;
112      nsatstrip = 0;
113    qtot = 0.;    qtot = 0.;
114    //  impx = 0.;    //  impx = 0.;
115    //  impy = 0.;    //  impy = 0.;
# Line 261  Float_t CaloLevel2::impy(Int_t tr){ Line 262  Float_t CaloLevel2::impy(Int_t tr){
262  **/  **/
263  void CaloLevel2::GetElectronEnergy(Float_t &energy, Float_t &sigma){  void CaloLevel2::GetElectronEnergy(Float_t &energy, Float_t &sigma){
264    if ( nstrip == 0 ) return;    if ( nstrip == 0 ) return;
265    energy = qtot * 40.82 * 0.000106;    energy = qtot * 260.;
266      //  energy = qtot * 40.82 * 0.000106;
267    sigma = 0.;    sigma = 0.;
268    if ( energy > 0. ) sigma = energy * (0.01183 + 0.121/sqrt(energy));    if ( energy > 0. ) sigma = energy * (0.01183 + 0.121/sqrt(energy));
269    return;    return;

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.23