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

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

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

revision 1.5 by mocchiut, Wed Mar 28 13:35:13 2007 UTC revision 1.6 by mocchiut, Fri Mar 30 11:17:16 2007 UTC
# Line 145  void CaloStrip::UseStandardAlig(){ Line 145  void CaloStrip::UseStandardAlig(){
145  };  };
146    
147    
   
   
   
   
148  /**  /**
149   * Given a strip returns its position in the PAMELA reference system   * Given a strip returns its position in the PAMELA reference system
150  **/  **/
# Line 181  void CaloStrip::Set(Int_t view, Int_t pl Line 177  void CaloStrip::Set(Int_t view, Int_t pl
177    fPlane = plane + 1;    fPlane = plane + 1;
178    fStrip = strip + 1;    fStrip = strip + 1;
179    if ( fPlane%2 ){    if ( fPlane%2 ){
180      lShift = -0.5;      lShift = +0.5;
181    } else {    } else {
182      lShift = 0.5;      lShift = -0.5;
183    };    };
184    //    //
   if ( fView == 2 ) lShift = - lShift;  
   //  
185    shift_.shift = lShift;    shift_.shift = lShift;
186    //    //
187    Float_t zplane[22];    Float_t zplane[22];
# Line 211  void CaloStrip::Set(Int_t view, Int_t pl Line 205  void CaloStrip::Set(Int_t view, Int_t pl
205      fX = (lPos - UXal)/10.;      fX = (lPos - UXal)/10.;
206      fY = 0.;      fY = 0.;
207      fZ = (zplane[fPlane-1] - 5.81 + UZal)/10.;          fZ = (zplane[fPlane-1] - 5.81 + UZal)/10.;    
208    } else {      //
209       } else {
210      //      //
211      // Y view      // Y view
212      //      //
# Line 402  Float_t CaloLevel1::DecodeEstrip(Int_t e Line 397  Float_t CaloLevel1::DecodeEstrip(Int_t e
397    //    //
398    Float_t mip = ((Float_t)(eval - fbi*1000000000 -plom*10000000 -strip*100000))/tim;    Float_t mip = ((Float_t)(eval - fbi*1000000000 -plom*10000000 -strip*100000))/tim;
399    //    //
400     //  if ( view == 0 ){
401    //     if ( plane%2 ){
402    //       plane -= 1;
403    //     } else {
404    //       plane += 1;
405    //     };
406    //   };
407      //
408      //
409    if ( mip > 0. && mip < 99999. ) return(mip);    if ( mip > 0. && mip < 99999. ) return(mip);
410    //    //
411    printf(" WARNING: problems decoding value %i at entry %i \n",estrip.At(entry),entry);    printf(" WARNING: problems decoding value %i at entry %i \n",estrip.At(entry),entry);
# Line 422  Float_t CaloLevel1::qtotpl(Int_t nplane) Line 426  Float_t CaloLevel1::qtotpl(Int_t nplane)
426    //    //
427    Int_t splane = nplane-(sview+1)/2;    Int_t splane = nplane-(sview+1)/2;
428    //    //
429    //   if ( sview == 0 ){
430    //     if ( splane%2 ){
431    //       splane += 1;
432    //     } else {
433    //       splane -= 1;
434    //     };
435    //   };
436      //
437    Float_t totmip = qtotpl(sview,splane);    Float_t totmip = qtotpl(sview,splane);
438    //    //
439    return(totmip);    return(totmip);

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

  ViewVC Help
Powered by ViewVC 1.1.23