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

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

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

revision 1.1.1.1 by mocchiut, Fri Aug 10 12:23:35 2007 UTC revision 1.3 by mocchiut, Mon Dec 14 14:51:35 2009 UTC
# Line 32  CaloDoubleShower::CaloDoubleShower(PamLe Line 32  CaloDoubleShower::CaloDoubleShower(PamLe
32    cstrip = new CaloStrip(false);    cstrip = new CaloStrip(false);
33    debug = false;    debug = false;
34    simulation = false;    simulation = false;
35      usepl18x = false;
36    //    //
37    Clear();    Clear();
38    //    //
# Line 156  void CaloDoubleShower::Process(UInt_t nt Line 157  void CaloDoubleShower::Process(UInt_t nt
157    for ( Int_t i=0; i<L2->GetCaloLevel1()->istrip; i++ ){    for ( Int_t i=0; i<L2->GetCaloLevel1()->istrip; i++ ){
158      //      //
159      mip = L2->GetCaloLevel1()->DecodeEstrip(i,view,plane,strip);      mip = L2->GetCaloLevel1()->DecodeEstrip(i,view,plane,strip);
160        //
161        if ( !usepl18x && view==0 && plane==18 ) mip = 0.;
162        //
163      event->clevel1->estrip[strip][plane][view] = mip;      event->clevel1->estrip[strip][plane][view] = mip;
164      //      //
165    };    };
# Line 193  void CaloDoubleShower::Process(UInt_t nt Line 197  void CaloDoubleShower::Process(UInt_t nt
197    Float_t m = (ptrack->GetToFTrack()->xtr_tof[0] - ptrack->GetToFTrack()->xtr_tof[3])/(ZTOF11-ZTOF21);    Float_t m = (ptrack->GetToFTrack()->xtr_tof[0] - ptrack->GetToFTrack()->xtr_tof[3])/(ZTOF11-ZTOF21);
198    Float_t q = ptrack->GetToFTrack()->xtr_tof[3] - m * ZTOF21;    Float_t q = ptrack->GetToFTrack()->xtr_tof[3] - m * ZTOF21;
199    //    //
200    c2s->pos = (m * event->clevel1->zalig + q)*10. + event->clevel1->xalig;    c2s->pos = (m * (event->clevel1->zalig/10.) + q)*10. + event->clevel1->xalig;
201    c2s->angol = m;    c2s->angol = m;
202    //    //
203    // call fortran routine    // call fortran routine

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.23