/[PAMELA software]/calo/flight/CaloBragg/src/CaloBragg.cpp
ViewVC logotype

Diff of /calo/flight/CaloBragg/src/CaloBragg.cpp

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

revision 1.5 by mocchiut, Fri Nov 28 15:59:25 2008 UTC revision 1.7 by mocchiut, Mon Dec 14 14:37:58 2009 UTC
# Line 25  CaloBragg::CaloBragg(PamLevel2 *l2p){   Line 25  CaloBragg::CaloBragg(PamLevel2 *l2p){  
25    //    //
26    debug = false;    debug = false;
27    usetrack = false;    usetrack = false;
28      usepl18x = false;
29    //    //
30  };  };
31    
# Line 124  void CaloBragg::Process(Int_t ntr){ Line 125  void CaloBragg::Process(Int_t ntr){
125    for ( Int_t i=0; i<L2->GetCaloLevel1()->istrip; i++ ){    for ( Int_t i=0; i<L2->GetCaloLevel1()->istrip; i++ ){
126      //      //
127      mip = L2->GetCaloLevel1()->DecodeEstrip(i,view,plane,strip);      mip = L2->GetCaloLevel1()->DecodeEstrip(i,view,plane,strip);
128        //
129        if ( !usepl18x && view==0 && plane==18 ) mip = 0.;
130        //
131      epiano[plane][view]+=mip;      epiano[plane][view]+=mip;
132      //      //
133      //      //
# Line 184  void CaloBragg::Process(Int_t ntr){ Line 188  void CaloBragg::Process(Int_t ntr){
188      Float_t sum4 = 0.;      Float_t sum4 = 0.;
189      Float_t qm = 0.;      Float_t qm = 0.;
190      while ( RN < 4 && ind < 44 ){      while ( RN < 4 && ind < 44 ){
191        qm = TMath::KOrdStat((Long_64_t)44,ordplane,(Long_64_t)ind,work);        qm = TMath::KOrdStat((Long64_t)44,ordplane,(Long64_t)ind,work);
192        if (qm >= 0.7 ){          if (qm >= 0.7 ){  
193          if ( RN < 4 ){          if ( RN < 4 ){
194            sum4 += qm;            sum4 += qm;

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.23