/[PAMELA software]/PamelaLevel2/inc/PamLevel2.h
ViewVC logotype

Diff of /PamelaLevel2/inc/PamLevel2.h

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

revision 1.42 by mocchiut, Tue May 11 03:57:46 2010 UTC revision 1.46 by mocchiut, Thu Dec 15 08:54:11 2011 UTC
# Line 281  class PamLevel2 : public TObject { Line 281  class PamLevel2 : public TObject {
281      Long64_t  runfirstentry; //first entry of run, relative to the TChain      Long64_t  runfirstentry; //first entry of run, relative to the TChain
282      Long64_t  runlastentry;  //last  entry of run, relative to the TChain      Long64_t  runlastentry;  //last  entry of run, relative to the TChain
283      Long64_t  irunentry;     //position of current entry, relative to the run      Long64_t  irunentry;     //position of current entry, relative to the run
284        Long64_t  totrunentry;
285        Long64_t  totrunentrymax;
286        Long64_t  totrunentrymin;
287        ULong64_t    prevabstime; // abs time of previous event
288        UInt_t    prevpktnum; // packet number of previous event
289        ULong64_t    abstime; // current abs time
290        UInt_t    pktnum; // current packet number
291        Bool_t isFragment;
292        Bool_t isSync; ///< the file is fully sinchronized between L2 and L0/DB data
293            //    Bool_t hasL0EE; ///< backward compatibility flag for preselected event list
294        Long64_t il0entry; ///< entry of level0 file in selection list
295      TChain*   run_tree;      TChain*   run_tree;
296      TTree*    run_tree_clone;      TTree*    run_tree_clone;
297      TChain*   sel_tree;      TChain*   sel_tree;
# Line 300  class PamLevel2 : public TObject { Line 311  class PamLevel2 : public TObject {
311      TFile*      l0_file;      TFile*      l0_file;
312      TTree*      l0_tree;      TTree*      l0_tree;
313      Int_t       iroot;      Int_t       iroot;
314      Int_t       prevshift; // to remember if any shift is needed to synchronize l0 and l2 data instead of calculating any time      Long64_t       prevshift; // shift needed to sync level2 data with the DB (nested+DV_skipped packets) - global position in level2 file EM
315        Long64_t       yprevshift; // shift needed to sync level2 data with level0 data (nested+DV_skipped packets) - run wise EM
316      Int_t       maxshift; // EMILIANO maximum discrepancy between L2 and L0 data (the bigger the better concering synch but the processing speed drops) default = 10      Int_t       maxshift; // EMILIANO maximum discrepancy between L2 and L0 data (the bigger the better concering synch but the processing speed drops) default = 10
317      // --------------------------------------------      // --------------------------------------------
318      // variables to store Level0 info (if required)      // variables to store Level0 info (if required)
# Line 423  class PamLevel2 : public TObject { Line 435  class PamLevel2 : public TObject {
435      TTree*  GetRunTree(TFile*);      TTree*  GetRunTree(TFile*);
436      TChain* GetRunTree(TList*);      TChain* GetRunTree(TList*);
437      TChain* GetRunTree(TString ddir,TString list){ return GetRunTree(GetListOfLevel2Files(ddir,list)); };      TChain* GetRunTree(TString ddir,TString list){ return GetRunTree(GetListOfLevel2Files(ddir,list)); };
438      Bool_t  UpdateRunInfo(Long64_t);//{ return UpdateRunInfo(run_tree,iev); };      Bool_t  UpdateRunInfo(Long64_t);///< new implementation to solve Mori's bug
439      Bool_t  UpdateRunInfo(TTree *,Long64_t);      Bool_t  UpdateRunInfo(TTree *,Long64_t);
440      Bool_t  UpdateRunInfo(TChain *,Long64_t);      Bool_t  UpdateRunInfo(TChain *,Long64_t);
441    
442      void    SkipRunInfoUpdate(){fUpdateRunInfo = false;}; // Emiliano      void    SkipRunInfoUpdate(); // Emiliano
443      void    DoRunInfoUpdate(){fUpdateRunInfo = true;}; // [default] Emiliano      void    DoRunInfoUpdate(){fUpdateRunInfo = true;}; // [default] Emiliano
444      void    NoDBconnections(){SkipRunInfoUpdate();}; // Emiliano      void    NoDBconnections(){SkipRunInfoUpdate();}; // Emiliano
445    
# Line 446  class PamLevel2 : public TObject { Line 458  class PamLevel2 : public TObject {
458      Long64_t GetReadEntry();      Long64_t GetReadEntry();
459      Int_t   GetYodaEntry();      Int_t   GetYodaEntry();
460    
461      void SetMaxShift(Int_t sh){ maxshift = sh; return;}; // EMILIANO method to change the maxshift variable      void SetMaxShift(Int_t sh); // EMILIANO method to change the maxshift variable
462    
463      Long64_t GetEntries(){return pam_tree->GetEntries();};      Long64_t GetEntries(){return pam_tree->GetEntries();};
464      TChain* GetPamTree(){return pam_tree;};      TChain* GetPamTree(){return pam_tree;};
# Line 563  class PamLevel2 : public TObject { Line 575  class PamLevel2 : public TObject {
575      void SetDebug(Bool_t set){ DBG=set; TrkParams::SetVerboseMode(); };      void SetDebug(Bool_t set){ DBG=set; TrkParams::SetVerboseMode(); };
576    
577    
578      ClassDef(PamLevel2,1);      ClassDef(PamLevel2,2);
579  };  };
580    
581  //===============================================================================================  //===============================================================================================

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.46

  ViewVC Help
Powered by ViewVC 1.1.23