/[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.66 by pam-fi, Thu Dec 4 15:34:26 2008 UTC revision 1.70 by mocchiut, Wed Dec 10 11:56:35 2008 UTC
# Line 403  PamLevel2::PamLevel2(TString ddir,TStrin Line 403  PamLevel2::PamLevel2(TString ddir,TStrin
403      GetRunTree(listf);      GetRunTree(listf);
404  };  };
405    
406    PamLevel2::PamLevel2(TString ddir,TList *list,TString detlist){
407        Initialize();
408        GetPamTree(list,detlist);
409        GetRunTree(list);
410    };
411  /**  /**
412   * Constructor   * Constructor
413   * @param ddir Name of directory where level2 files are stored.   * @param ddir Name of directory where level2 files are stored.
# Line 720  void PamLevel2::Reset(){ Line 725  void PamLevel2::Reset(){
725      //      //
726  };  };
727    
728  Bool_t PamLevel2::IsGood(){  Bool_t PamLevel2::IsGood(Bool_t strict){
729      Bool_t goodev=true;    Bool_t goodev=true;
730      //
731      if(calo2_obj && !calo2_obj->IsGood(strict) ) goodev = false;
732      //
733      if ( strict ){
734      if(trk2_obj && trk2_obj->UnpackError() != 0 ) goodev = false;      if(trk2_obj && trk2_obj->UnpackError() != 0 ) goodev = false;
     if(calo2_obj && calo2_obj->good != 1) goodev = false;  
735      if(tof_obj && tof_obj->unpackError != 0) goodev = false;        if(tof_obj && tof_obj->unpackError != 0) goodev = false;  
736      if(trig_obj && trig_obj->unpackError != 0) goodev = false;      if(trig_obj && trig_obj->unpackError != 0) goodev = false;
737      if(s4_obj && s4_obj->unpackError != 0) goodev = false;        if(s4_obj && s4_obj->unpackError != 0) goodev = false;  
738      if(nd_obj && nd_obj->unpackError != 0) goodev = false;        if(nd_obj && nd_obj->unpackError != 0) goodev = false;  
739      if(ac_obj && ac_obj->unpackError != 255) goodev = false;        if(ac_obj && (ac_obj->unpackError != 0 || ((ac_obj->status[0]>>3)&1) || ((ac_obj->status[0]>>3)&1)) ) goodev = false;      
740      //  if(orb_obj)        //  if(orb_obj)  
741      return goodev;    } else {
742        if(nd_obj && nd_obj->unpackError != 0) goodev = false;  
743        if(ac_obj && (ac_obj->unpackError != 0 || ((ac_obj->status[0]>>3)&1) || ((ac_obj->status[0]>>3)&1)) ) goodev = false;      
744      };
745      return(goodev);
746  };  };
747    
748  //--------------------------------------  //--------------------------------------
# Line 3992  Int_t PamLevel2::GetYodaEntry(){ Line 4004  Int_t PamLevel2::GetYodaEntry(){
4004      //    Int_t maxshift = 50; // EMILIANO      //    Int_t maxshift = 50; // EMILIANO
4005      do{      do{
4006          if(shift>0){              if(shift>0){    
 <<<<<<< PamLevel2.cpp  
             if(DBG)cout << " PKTNUM  L2 --- "<< pktn << " --- L0 --- "<< GetEventHeader()->GetPscuHeader()->GetCounter()<<endl;  
             if(DBG)cout << "         RUN: ID "<< GetRunInfo()->ID << " ID_ROOT_L0 "<<run_obj->ID_ROOT_L0<<" ID_RUN_FRAG "<<GetRunInfo()->ID_RUN_FRAG << " EV_FROM "<<GetRunInfo()->EV_FROM  <<endl;  
             if(DBG)cout << "         L2 <--> L0 mismatch ( irun "<<irun<<" irunentry "<<irunentry<<" shift "<<shift<<" prevshift "<<prevshift<<" )"<<endl;  
 =======  
4007              cout << " PKTNUM  L2 --- "<< pktn << " --- L0 --- "<< GetEventHeader()->GetPscuHeader()->GetCounter()<<endl;              cout << " PKTNUM  L2 --- "<< pktn << " --- L0 --- "<< GetEventHeader()->GetPscuHeader()->GetCounter()<<endl;
4008              if(DBG)cout << "         RUN: ID "<< GetRunInfo()->ID << " ID_ROOT_L0 "<<run_obj->ID_ROOT_L0<<" ID_RUN_FRAG "<<GetRunInfo()->ID_RUN_FRAG << " EV_FROM "<<GetRunInfo()->EV_FROM  <<endl;              if(DBG)cout << "         RUN: ID "<< GetRunInfo()->ID << " ID_ROOT_L0 "<<run_obj->ID_ROOT_L0<<" ID_RUN_FRAG "<<GetRunInfo()->ID_RUN_FRAG << " EV_FROM "<<GetRunInfo()->EV_FROM  <<endl;
4009              if(DBG)cout << "         L2 <--> L0 mismatch ( irun "<<irun<<" irunentry "<<irunentry<<" shift "<<shift<<" prevshift "<<prevshift<<" )"<<endl;              if(DBG)cout << "         L2 <--> L0 mismatch ( irun "<<irun<<" irunentry "<<irunentry<<" shift "<<shift<<" prevshift "<<prevshift<<" )"<<endl;
 >>>>>>> 1.65  
4010          }          }
4011          answer = l0_tree->GetEntry(quellagiusta+(Long64_t)shift+(Long64_t)prevshift);          answer = l0_tree->GetEntry(quellagiusta+(Long64_t)shift+(Long64_t)prevshift);
4012          shift++;          shift++;

Legend:
Removed from v.1.66  
changed lines
  Added in v.1.70

  ViewVC Help
Powered by ViewVC 1.1.23