/[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.22 by mocchiut, Wed Jan 31 16:15:02 2007 UTC revision 1.23 by mocchiut, Wed Feb 14 10:54:59 2007 UTC
# Line 1399  GL_TIMESYNC::GL_TIMESYNC(UInt_t id, TStr Line 1399  GL_TIMESYNC::GL_TIMESYNC(UInt_t id, TStr
1399    TSQLRow *Row;    TSQLRow *Row;
1400    stringstream myquery;    stringstream myquery;
1401    stringstream rname;    stringstream rname;
1402      //  pcksList packetsNames;
1403      //  pcksList::iterator Iter;
1404      //  getPacketsNames(packetsNames);
1405    rname.str("");    rname.str("");
1406    // ----------------    // ----------------
1407    myquery.str("");    myquery.str("");
# Line 1434  GL_TIMESYNC::GL_TIMESYNC(UInt_t id, TStr Line 1437  GL_TIMESYNC::GL_TIMESYNC(UInt_t id, TStr
1437      ph = eh->GetPscuHeader();      ph = eh->GetPscuHeader();
1438      pktfirst = ph->GetCounter();      pktfirst = ph->GetCounter();
1439      obtfirst = ph->GetOrbitalTime();        obtfirst = ph->GetOrbitalTime();  
1440        //
1441    //     code = eh->GetCounter();
1442    //     UInt_t en = 0;
1443    //     for(Iter = packetsNames.begin(); Iter != packetsNames.end(); Iter++){
1444    //       en = code->Get(GetPacketType(*Iter));
1445    //       if ( !strcmp("CalibCalPed",*Iter) || !strcmp("CalibTrk1",*Iter) || !strcmp("CalibTrk2",*Iter) || !strcmp("CalibS4",*Iter) ){
1446    //      //
1447    //      TTree *TC = 0;
1448    //      TC = (TTree*)file->Get("CalibCalPed");
1449    //      if ( !TC || TC->IsZombie() ) return;
1450    //      EventHeader *ehc = 0;
1451    //      PscuHeader *phc = 0;
1452    //      TC->SetBranchAddress("Header", &ehc);
1453    //      TC->GetEntry(0);
1454    //      phc = ehc->GetPscuHeader();
1455    //      pktfirst = phc->GetCounter();
1456    //      obtfirst = phc->GetOrbitalTime();  
1457    //       //
1458    //       };
1459    //     };  
1460        //
1461    };    };
1462    //    //
1463    // look for Resurs offset    // look for Resurs offset
# Line 1465  GL_TIMESYNC::GL_TIMESYNC(UInt_t id, TStr Line 1489  GL_TIMESYNC::GL_TIMESYNC(UInt_t id, TStr
1489      for (Int_t i = 8; i<13; i++){      for (Int_t i = 8; i<13; i++){
1490        dwo.Append(name[i],1);        dwo.Append(name[i],1);
1491      };          };    
1492      if ( dwo.IsDigit() ) dworbit = (UInt_t)dwo.Atoi();      if ( dwo.IsDigit() ){
1493          dworbit = (UInt_t)dwo.Atoi();
1494        } else {
1495          dworbit = 1;
1496        };
1497    };    };
1498    //    //
1499      //
1500    if ( !Row ){    if ( !Row ){
1501      oss.str("");      oss.str("");
1502      oss << "SELECT YEAR(OFFSET_DATE),MONTH(OFFSET_DATE),DAY(OFFSET_DATE),HOUR(OFFSET_DATE),MINUTE(OFFSET_DATE),SECOND(OFFSET_DATE) FROM GL_RESURS_OFFSET WHERE FROM_ORBIT< "      oss << "SELECT YEAR(OFFSET_DATE),MONTH(OFFSET_DATE),DAY(OFFSET_DATE),HOUR(OFFSET_DATE),MINUTE(OFFSET_DATE),SECOND(OFFSET_DATE) FROM GL_RESURS_OFFSET WHERE FROM_ORBIT< "

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

  ViewVC Help
Powered by ViewVC 1.1.23