/[PAMELA software]/PamelaLevel2/src/PamLevel2.cpp
ViewVC logotype

Diff of /PamelaLevel2/src/PamLevel2.cpp

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

revision 1.49 by pam-fi, Wed Oct 24 08:41:25 2007 UTC revision 1.51 by mocchiut, Mon Oct 29 09:13:06 2007 UTC
# Line 145  void PamLevel2::Initialize(){ Line 145  void PamLevel2::Initialize(){
145      dbc     = 0;      dbc     = 0;
146    
147      prevshift = 0;      prevshift = 0;
148        maxshift = 10; //EMILIANO
149            
150      run_tree = NULL;      run_tree = NULL;
151      run_tree_clone = NULL;      run_tree_clone = NULL;
# Line 3295  TTree* PamLevel2::GetYodaTree( ){ Line 3296  TTree* PamLevel2::GetYodaTree( ){
3296          //===================================          //===================================
3297          if(!dbc || (dbc && !dbc->IsConnected())){          if(!dbc || (dbc && !dbc->IsConnected())){
3298              cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<endl;              cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<endl;
3299              cout<<"Connecting to DB"<<endl;              cout<<"Re-connecting to DB"<<endl;
3300              cout<<"HOST "<<host<<endl;              cout<<"HOST "<<host<<endl;
3301              cout<<"USER "<<user<<endl;              cout<<"USER "<<user<<endl;
3302              cout<<"PSW  "<<psw<<endl;              cout<<"PSW  "<<psw<<endl;
# Line 3354  TTree* PamLevel2::GetYodaTree( ){ Line 3355  TTree* PamLevel2::GetYodaTree( ){
3355              cout << "PamLevel2::GetYodaTree() --- level0 TOF not implemented "<<endl;              cout << "PamLevel2::GetYodaTree() --- level0 TOF not implemented "<<endl;
3356          }          }
3357    
3358            dbc->Close();
3359    
3360    
3361      };      };
3362    
3363      if(!dbc || (dbc && !dbc->IsConnected())){  //     if(!dbc || (dbc && !dbc->IsConnected())){
3364          cout << " TTree* PamLevel2::GetYodaTree( ) -- no DB connected... hai fatto qualche cazzata "<<endl;  //      cout << " TTree* PamLevel2::GetYodaTree( ) -- no DB connected... hai fatto qualche cazzata "<<endl;
3365      }  //     }
3366    
3367      if ( TRK0 ){      if ( TRK0 ){
3368          TrkParams::Load(6);          TrkParams::Load(6);
# Line 3372  TTree* PamLevel2::GetYodaTree( ){ Line 3376  TTree* PamLevel2::GetYodaTree( ){
3376          };          };
3377      }      }
3378    
3379    
3380  //    cout << l0_tree << endl;  //    cout << l0_tree << endl;
       
3381      return l0_tree;      return l0_tree;
3382    
3383  }  }
# Line 3434  Int_t PamLevel2::GetYodaEntry(){ Line 3438  Int_t PamLevel2::GetYodaEntry(){
3438      Int_t answer = 0;      Int_t answer = 0;
3439      Int_t shift =0;      Int_t shift =0;
3440      //    printf(" siamo qui %i %i \n",shift,prevshift);      //    printf(" siamo qui %i %i \n",shift,prevshift);
3441      Int_t maxshift = 10;      //    Int_t maxshift = 50; // EMILIANO
3442      do{      do{
3443          if(shift>0){              if(shift>0){    
3444              cout << " PKTNUM  L2 --- "<< pktn << " --- L0 --- "<< GetEventHeader()->GetPscuHeader()->GetCounter()<<endl;              cout << " PKTNUM  L2 --- "<< pktn << " --- L0 --- "<< GetEventHeader()->GetPscuHeader()->GetCounter()<<endl;

Legend:
Removed from v.1.49  
changed lines
  Added in v.1.51

  ViewVC Help
Powered by ViewVC 1.1.23