/[PAMELA software]/chewbacca/YodaProfiler/src/PamelaDBOperations.cpp
ViewVC logotype

Diff of /chewbacca/YodaProfiler/src/PamelaDBOperations.cpp

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

revision 1.32 by mocchiut, Mon Feb 1 13:27:28 2010 UTC revision 1.33 by mocchiut, Tue May 15 14:04:40 2012 UTC
# Line 1730  Int_t PamelaDBOperations::insertPamelaGL Line 1730  Int_t PamelaDBOperations::insertPamelaGL
1730      TYPE = 0;      TYPE = 0;
1731      TSYNC = 0;      TSYNC = 0;
1732      //      //
1733      Double_t minimum = 0.;      //    Double_t minimum = 0.;
1734      Double_t maximum = 0.;      // Double_t maximum = 0.;
1735      Double_t minimum2 = 0.;      //Double_t minimum2 = 0.;
1736      Double_t maximum2 = 0.;      Double_t maximum2 = 0.;
1737      //      //
1738      //      //
# Line 1740  Int_t PamelaDBOperations::insertPamelaGL Line 1740  Int_t PamelaDBOperations::insertPamelaGL
1740      pamela::McmdRecord *mcrc = 0;      pamela::McmdRecord *mcrc = 0;
1741      TArrayC *mcmddata = 0;      TArrayC *mcmddata = 0;
1742      //      //
1743      minimum = numeric_limits<Double_t>::max();      //    minimum = numeric_limits<Double_t>::max();
1744      maximum = numeric_limits<Double_t>::min();      //    maximum = numeric_limits<Double_t>::min();
1745      minimum2 = numeric_limits<Double_t>::max();      //    minimum2 = numeric_limits<Double_t>::max();
1746      maximum2 = numeric_limits<Double_t>::min();      maximum2 = numeric_limits<Double_t>::min();
1747      //      //
1748      T = (TTree*)file->Get("Mcmd");      T = (TTree*)file->Get("Mcmd");
# Line 3598  Bool_t PamelaDBOperations::IsRunConsiste Line 3598  Bool_t PamelaDBOperations::IsRunConsiste
3598    //      //  
3599    EventCounter *code=0;    EventCounter *code=0;
3600    //    //
3601    UInt_t nevent = 0;    //  UInt_t nevent = 0;
3602    UInt_t checkfirst = 0;    UInt_t checkfirst = 0;
3603    UInt_t checklast = 0;    UInt_t checklast = 0;
3604    UInt_t firstentry = 0;    UInt_t firstentry = 0;
# Line 3620  Bool_t PamelaDBOperations::IsRunConsiste Line 3620  Bool_t PamelaDBOperations::IsRunConsiste
3620    EventHeader *eh = 0;    EventHeader *eh = 0;
3621    PscuHeader *ph = 0;    PscuHeader *ph = 0;
3622    T->SetBranchAddress("Header", &eh);    T->SetBranchAddress("Header", &eh);
3623    nevent = T->GetEntries();    //  nevent = T->GetEntries();
3624    //    //
3625    //    //
3626    if ( firstev == lastev+1 || lastev == firstev ) { // no events inside the run!    if ( firstev == lastev+1 || lastev == firstev ) { // no events inside the run!
# Line 4141  void PamelaDBOperations::HandleSuspiciou Line 4141  void PamelaDBOperations::HandleSuspiciou
4141    EventCounter *code=0;    EventCounter *code=0;
4142    UInt_t firstev = 0;    UInt_t firstev = 0;
4143    UInt_t lastev = 0;    UInt_t lastev = 0;
4144    UInt_t nevent = 0;    //  UInt_t nevent = 0;
4145    UInt_t checkfirst = 0;    UInt_t checkfirst = 0;
4146    UInt_t checklast = 0;    UInt_t checklast = 0;
4147    UInt_t firstentry = 0;    UInt_t firstentry = 0;
# Line 4166  void PamelaDBOperations::HandleSuspiciou Line 4166  void PamelaDBOperations::HandleSuspiciou
4166    EventHeader *eh = 0;    EventHeader *eh = 0;
4167    PscuHeader *ph = 0;    PscuHeader *ph = 0;
4168    T->SetBranchAddress("Header", &eh);    T->SetBranchAddress("Header", &eh);
4169    nevent = T->GetEntries();    //  nevent = T->GetEntries();
4170    //    //
4171    codt = eht->GetCounter();    codt = eht->GetCounter();
4172    codh = ehh->GetCounter();    codh = ehh->GetCounter();
# Line 5527  Int_t PamelaDBOperations::insertTRK_CALI Line 5527  Int_t PamelaDBOperations::insertTRK_CALI
5527              TString path       = "";              TString path       = "";
5528              TString name       = "";              TString name       = "";
5529              TString raw        = "";              TString raw        = "";
5530              UInt_t obt0        = 0;              //      UInt_t obt0        = 0;
5531              UInt_t timesync    = 0;              //      UInt_t timesync    = 0;
5532              UInt_t boot_number = 0;              //      UInt_t boot_number = 0;
5533              bool   FOUND       = false;              bool   FOUND       = false;
5534    
5535              if ( IsDebug() ) cout << "------------------------------------------------------------" <<endl;              if ( IsDebug() ) cout << "------------------------------------------------------------" <<endl;
# Line 5602  Int_t PamelaDBOperations::insertTRK_CALI Line 5602  Int_t PamelaDBOperations::insertTRK_CALI
5602                      path       = (TString)row2->GetField(0);                      path       = (TString)row2->GetField(0);
5603                      name       = (TString)row2->GetField(1);                      name       = (TString)row2->GetField(1);
5604                      raw        = (TString)row2->GetField(5);                      raw        = (TString)row2->GetField(5);
5605                      obt0        = (UInt_t)atoll(row2->GetField(2));                      //              obt0        = (UInt_t)atoll(row2->GetField(2));
5606                      timesync    = (UInt_t)atoll(row2->GetField(3));                      //              timesync    = (UInt_t)atoll(row2->GetField(3));
5607                      boot_number = (UInt_t)atoll(row2->GetField(4));                      //              boot_number = (UInt_t)atoll(row2->GetField(4));
5608                                    
5609                      if ( IsDebug() ) cout << "- - - - - - - - - - -" <<endl;                      if ( IsDebug() ) cout << "- - - - - - - - - - -" <<endl;
5610  //                  cout << path <<endl;  //                  cout << path <<endl;

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

  ViewVC Help
Powered by ViewVC 1.1.23