/[PAMELA software]/YodaProfiler/src/GLTables.cpp
ViewVC logotype

Diff of /YodaProfiler/src/GLTables.cpp

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

revision 1.37 by mocchiut, Mon Nov 26 08:38:52 2007 UTC revision 1.40 by mocchiut, Mon Sep 29 12:41:34 2008 UTC
# Line 1310  Int_t GL_CALO_CALIB::Query_GL_CALO_CALIB Line 1310  Int_t GL_CALO_CALIB::Query_GL_CALO_CALIB
1310    //    //
1311    // if the selected calibration is too old (more than 5 orbits old) try to take the closest not corrupted one    // if the selected calibration is too old (more than 5 orbits old) try to take the closest not corrupted one
1312    //    //
1313    if ( (time-myfromtime)>28500 ){    if ( (time-myfromtime)>28500 && myfromtime > 0 ){
1314      //      //
1315      myquery.str("");      myquery.str("");
1316      myquery << "select ID_ROOT_L0, FROM_TIME, TO_TIME, EV_ROOT from GL_CALO_CALIB where SECTION=" << section;      myquery << "select ID_ROOT_L0, FROM_TIME, TO_TIME, EV_ROOT from GL_CALO_CALIB where SECTION=" << section;
# Line 1705  UInt_t GL_TIMESYNC::DBabsTime(UInt_t OBT Line 1705  UInt_t GL_TIMESYNC::DBabsTime(UInt_t OBT
1705   */   */
1706  UInt_t GL_TIMESYNC::ResursTime(UInt_t OBT){    UInt_t GL_TIMESYNC::ResursTime(UInt_t OBT){  
1707    //    //
1708    return(((UInt_t)((Int_t)(this->DBobt(OBT)-this->DBobt(OBT0))/1000)+TIMESYNC));    return(((UInt_t)((Int_t)(this->DBobt(OBT)-this->DBobt(OBT0)/1000))+TIMESYNC));
1709    //    //
1710  };  };
1711    
# Line 1732  Long64_t GL_TIMESYNC::DBpkt(UInt_t pkt_n Line 1732  Long64_t GL_TIMESYNC::DBpkt(UInt_t pkt_n
1732   */   */
1733  Long64_t GL_TIMESYNC::DBobt(UInt_t obt){    Long64_t GL_TIMESYNC::DBobt(UInt_t obt){  
1734    //    //
1735    if ( obt < (obtfirst/2) && obtfirst > (numeric_limits<UInt_t>::max()/2) ) return((Long64_t)(obt+numeric_limits<UInt_t>::max()));    if ( obt < (obtfirst/2) && obtfirst > (numeric_limits<UInt_t>::max()/2) ){
1736        return((Long64_t)obt+(Long64_t)numeric_limits<UInt_t>::max());
1737      };
1738    //    //
1739    if ( obt > (obtfirst*2) && obt > (numeric_limits<UInt_t>::max()/2) ){    if ( obt > (obtfirst*2) && obt > (numeric_limits<UInt_t>::max()/2) ){
1740      return((Long64_t)obt-(Long64_t)numeric_limits<UInt_t>::max());      return((Long64_t)obt-(Long64_t)numeric_limits<UInt_t>::max());

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.40

  ViewVC Help
Powered by ViewVC 1.1.23