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

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

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

revision 1.18 by mocchiut, Thu Dec 18 10:31:00 2008 UTC revision 1.19 by mocchiut, Mon Dec 14 14:42:53 2009 UTC
# Line 28  CaloNuclei::CaloNuclei(PamLevel2 *l2p){ Line 28  CaloNuclei::CaloNuclei(PamLevel2 *l2p){
28    debug = false;    debug = false;
29    // debug = true;    // debug = true;
30    usetrack = true;    usetrack = true;
31      usepl18x = false;
32    //    //
33  };  };
34    
# Line 146  void CaloNuclei::Process(Int_t ntr){ Line 147  void CaloNuclei::Process(Int_t ntr){
147      //      //
148      mip = L2->GetCaloLevel1()->DecodeEstrip(i,view,plane,strip);      mip = L2->GetCaloLevel1()->DecodeEstrip(i,view,plane,strip);
149      //      //
150        if ( !usepl18x && view==0 && plane==18 ) mip = 0.;
151        //
152        //
153      // put in vfpl vector the energy release on the first plane      // put in vfpl vector the energy release on the first plane
154      //      //
155      if ( strip != -1 && view == 1 && plane == 0 ) {      if ( strip != -1 && view == 1 && plane == 0 ) {
# Line 214  void CaloNuclei::Process(Int_t ntr){ Line 218  void CaloNuclei::Process(Int_t ntr){
218      //      //
219      mip = L2->GetCaloLevel1()->DecodeEstrip(i,view,plane,strip);      mip = L2->GetCaloLevel1()->DecodeEstrip(i,view,plane,strip);
220      //      //
221        if ( !usepl18x && view==0 && plane==18 ) mip = 0.;
222        //
223      if ( ntr >= 0 ){      if ( ntr >= 0 ){
224        //        //
225        if ( strip != -1 &&        if ( strip != -1 &&
# Line 283  void CaloNuclei::Process(Int_t ntr){ Line 289  void CaloNuclei::Process(Int_t ntr){
289      //      //
290      mip = L2->GetCaloLevel1()->DecodeEstrip(ii,view,plane,strip);          mip = L2->GetCaloLevel1()->DecodeEstrip(ii,view,plane,strip);    
291      //      //
292        if ( !usepl18x && view==0 && plane==18 ) mip = 0.;
293        //
294        //
295      if ( ntr >= 0 ){      if ( ntr >= 0 ){
296        if ( strip != -1 && mip > ethr && !wmulthit[view] && !wgap[view] &&        if ( strip != -1 && mip > ethr && !wmulthit[view] && !wgap[view] &&
297             ( strip == (track->tibar[plane][view]-1) || strip == (track->tibar[plane][view]-2) || strip == (track->tibar[plane][view]) )             ( strip == (track->tibar[plane][view]-1) || strip == (track->tibar[plane][view]-2) || strip == (track->tibar[plane][view]) )
# Line 411  void CaloNuclei::Process(Int_t ntr){ Line 420  void CaloNuclei::Process(Int_t ntr){
420        //        //
421        mip = L2->GetCaloLevel1()->DecodeEstrip(ii,view,plane,strip);            mip = L2->GetCaloLevel1()->DecodeEstrip(ii,view,plane,strip);    
422        //        //
423          if ( !usepl18x && view==0 && plane==18 ) mip = 0.;
424          //
425          //
426        if ( strip != -1 ){        if ( strip != -1 ){
427          if ( view == 0 ){          if ( view == 0 ){
428            ipl = (1 + plane) * 2;            ipl = (1 + plane) * 2;

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

  ViewVC Help
Powered by ViewVC 1.1.23