/[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.32 by mocchiut, Tue Oct 14 14:07:41 2014 UTC
# Line 116  TSQLServer* TrkParams::SetDBConnection() Line 116  TSQLServer* TrkParams::SetDBConnection()
116      if( !dbc->IsConnected() )return NULL;          if( !dbc->IsConnected() )return NULL;    
117      stringstream myquery;  // EMILIANO      stringstream myquery;  // EMILIANO
118      myquery.str("");  // EMILIANO      myquery.str("");  // EMILIANO
119      myquery << "SET time_zone='+0:00'";  // EMILIANO      myquery << "SET time_zone='+0:00';";  // EMILIANO
120      dbc->Query(myquery.str().c_str());  // EMILIANO      delete dbc->Query(myquery.str().c_str());  // EMILIANO
121        delete dbc->Query("SET sql_mode = 'NO_UNSIGNED_SUBTRACTION';");//EM
122      if(TrkParams::DebugMode()){      if(TrkParams::DebugMode()){
123          cout << " ...done"<<endl;          cout << " ...done"<<endl;
124          cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<endl;          cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<endl;
# Line 258  UInt_t TrkParams::ValidateTrkCalib( Cali Line 259  UInt_t TrkParams::ValidateTrkCalib( Cali
259  //  -------------------------------------------------  //  -------------------------------------------------
260      UInt_t build=0;      UInt_t build=0;
261      UInt_t base=0;      UInt_t base=0;
262      UInt_t mask=0;      //    UInt_t mask=0;// EM GCC 4.7
263      if(classname.Contains("CalibTrk1Event")){      if(classname.Contains("CalibTrk1Event")){
264          base=12;          base=12;
265          mask=0x03F000;          //      mask=0x03F000; // EM GCC 4.7
266      }      }
267      if(classname.Contains("CalibTrk2Event")){      if(classname.Contains("CalibTrk2Event")){
268          base=18;          base=18;
269          mask=0xFC0000;          //      mask=0xFC0000;  // EM GCC 4.7
270      }      }
271  //  -------------------------------------------------  //  -------------------------------------------------
272  //  Count number of packets and set build variable  //  Count number of packets and set build variable
# Line 900  Bool_t TrkParams::IsLoaded( ){ Line 901  Bool_t TrkParams::IsLoaded( ){
901      return true;      return true;
902  };  };
903    
904    /**
905     * Get ADC-to-MIP conversion parameters
906     * @param nl ladder number (0-2)
907     * @param nv view number (0-11)
908     */
909    float TrkParams::GetMIP(int nl, int nv){
910        TrkParams::Load(2);
911        if( !TrkParams::IsLoaded(2) )return 0.;
912        return adc2mip_.mip[nl][nv];
913    }
914    
915  /**  /**
916   * Get BY (kGauss)   * Get BY (kGauss)

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

  ViewVC Help
Powered by ViewVC 1.1.23