/[PAMELA software]/DarthVader/TrackerLevel2/src/TrkParams.cpp
ViewVC logotype

Diff of /DarthVader/TrackerLevel2/src/TrkParams.cpp

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

revision 1.28 by mocchiut, Wed Mar 6 14:18:33 2013 UTC revision 1.30 by pam-fi, Thu Feb 27 11:24:43 2014 UTC
# Line 258  UInt_t TrkParams::ValidateTrkCalib( Cali Line 258  UInt_t TrkParams::ValidateTrkCalib( Cali
258  //  -------------------------------------------------  //  -------------------------------------------------
259      UInt_t build=0;      UInt_t build=0;
260      UInt_t base=0;      UInt_t base=0;
261      UInt_t mask=0;      //    UInt_t mask=0;// EM GCC 4.7
262      if(classname.Contains("CalibTrk1Event")){      if(classname.Contains("CalibTrk1Event")){
263          base=12;          base=12;
264          mask=0x03F000;          //      mask=0x03F000; // EM GCC 4.7
265      }      }
266      if(classname.Contains("CalibTrk2Event")){      if(classname.Contains("CalibTrk2Event")){
267          base=18;          base=18;
268          mask=0xFC0000;          //      mask=0xFC0000;  // EM GCC 4.7
269      }      }
270  //  -------------------------------------------------  //  -------------------------------------------------
271  //  Count number of packets and set build variable  //  Count number of packets and set build variable
# Line 900  Bool_t TrkParams::IsLoaded( ){ Line 900  Bool_t TrkParams::IsLoaded( ){
900      return true;      return true;
901  };  };
902    
903    /**
904     * Get ADC-to-MIP conversion parameters
905     * @param nl ladder number (0-2)
906     * @param nv view number (0-11)
907     */
908    float TrkParams::GetMIP(int nl, int nv){
909        TrkParams::Load(2);
910        if( !TrkParams::IsLoaded(2) )return 0.;
911        return adc2mip_.mip[nl][nv];
912    }
913    
914  /**  /**
915   * Get BY (kGauss)   * Get BY (kGauss)

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.30

  ViewVC Help
Powered by ViewVC 1.1.23