/[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.9 by mocchiut, Fri Nov 9 10:38:25 2007 UTC revision 1.13 by mocchiut, Thu Mar 13 16:34:58 2008 UTC
# Line 70  CaloStrip::CaloStrip(CaloLevel1 *calo, B Line 70  CaloStrip::CaloStrip(CaloLevel1 *calo, B
70  /**  /**
71   * Clear variables   * Clear variables
72  **/  **/
73  void CaloStrip::Clear() {    void CaloStrip::Clear(Option_t *t) {  
74    fE = 0.;    fE = 0.;
75    fX = 0.;    fX = 0.;
76    fY = 0.;    fY = 0.;
# Line 326  CaloLevel1::CaloLevel1() {     Line 326  CaloLevel1::CaloLevel1() {    
326  /**  /**
327   * Clear the CaloLevel1 object   * Clear the CaloLevel1 object
328   **/   **/
329  void CaloLevel1::Clear() {      void CaloLevel1::Clear(Option_t *t) {    
330    //    //
331    istrip = 0;    istrip = 0;
332    estrip.Reset();    estrip.Reset();
# Line 421  Float_t CaloLevel1::DecodeEstrip(Int_t e Line 421  Float_t CaloLevel1::DecodeEstrip(Int_t e
421    //    //
422    strip = (Int_t)truncf((Float_t)((eval - fbi*1000000000 -plom*10000000)/100000));    strip = (Int_t)truncf((Float_t)((eval - fbi*1000000000 -plom*10000000)/100000));
423    //    //
424    Float_t mip = ((Float_t)(eval - fbi*1000000000 -plom*10000000 -strip*100000))/tim;    Double_t mip = (Double_t)(((Float_t)(eval - fbi*1000000000 -plom*10000000 -strip*100000))/tim);
425    //    //
426    saturated = false;    saturated = false;
427    if ( mip > 5000. ){    if ( mip > 5000. ){
428      mip -= 5000.;      mip -= 5000.;
429      saturated = true;      saturated = true;
430    };    };
431    if ( mip > 0. && mip < 99999. ) return(mip);    if ( mip > 0. && mip < 99999. ) return((Float_t)mip);
432    //    //
433    printf(" ERROR: problems decoding value %i at entry %i \n",estrip.At(entry),entry);    printf(" ERROR: problems decoding value %i at entry %i \n",estrip.At(entry),entry);
434    //    //
# Line 456  Float_t CaloLevel1::qtotpl(Int_t nplane, Line 456  Float_t CaloLevel1::qtotpl(Int_t nplane,
456    Int_t sview = 1;    Int_t sview = 1;
457    if ( nplane%2 ) sview = 0;    if ( nplane%2 ) sview = 0;
458    //    //
459    Int_t splane = nplane-(sview+1)/2;  //  Int_t splane = nplane-(sview+1)/2;
460      Int_t splane = (nplane+sview-1)/2;
461    //    //
462    Float_t totmip = qtotpl(sview,splane,sat);    Float_t totmip = qtotpl(sview,splane,sat);
463    //    //
# Line 496  Float_t CaloLevel1::qtotpl(Int_t sview, Line 497  Float_t CaloLevel1::qtotpl(Int_t sview,
497      if ( view == sview && splane == plane ){      if ( view == sview && splane == plane ){
498        if ( lsat ) sat = true;        if ( lsat ) sat = true;
499        totmip += mip;        totmip += mip;
500          //printf(" totmip %f mip %f \n",totmip,mip);
501      };      };
502      //      //
503      // entry are ordered by strip, plane and view number. Go out if you pass the input strip      // entry are ordered by strip, plane and view number. Go out if you pass the input strip

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.23