/[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.41 by pam-fi, Wed Apr 1 09:25:36 2009 UTC revision 1.45 by mocchiut, Wed Dec 14 16:38:30 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;
298      TTree*    sel_tree_clone;      TTree*    sel_tree_clone;
299      int *irunoffset;      int *irunoffset;
300      GL_TIMESYNC *gltsync; // Emiliano      GL_TIMESYNC *gltsync; // Emiliano
301        Bool_t fUpdateRunInfo; // Emiliano
302    
303      // -------------------------------------------      // -------------------------------------------
304      // variables to store total live and dead time      // variables to store total live and dead time
# Line 299  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 422  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(); // Emiliano
443        void    DoRunInfoUpdate(){fUpdateRunInfo = true;}; // [default] Emiliano
444        void    NoDBconnections(){SkipRunInfoUpdate();}; // Emiliano
445    
446      void    CreateCloneTrees0(TChain *fChain, TFile* file);      void    CreateCloneTrees0(TChain *fChain, TFile* file);
447      void    CreateCloneTrees(TFile* file);      void    CreateCloneTrees(TFile* file);
448      void    CreateCloneTrees(){CreateCloneTrees(NULL);};      void    CreateCloneTrees(){CreateCloneTrees(NULL);};
# Line 440  class PamLevel2 : public TObject { Line 457  class PamLevel2 : public TObject {
457      Int_t   GetEntry(Long64_t);      Int_t   GetEntry(Long64_t);
458      Long64_t GetReadEntry();      Long64_t GetReadEntry();
459      Int_t   GetYodaEntry();      Int_t   GetYodaEntry();
460        Int_t   GetYodaEntry_bckw_compat();
461    
462      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
463    
464      Long64_t GetEntries(){return pam_tree->GetEntries();};      Long64_t GetEntries(){return pam_tree->GetEntries();};
465      TChain* GetPamTree(){return pam_tree;};      TChain* GetPamTree(){return pam_tree;};
# Line 558  class PamLevel2 : public TObject { Line 576  class PamLevel2 : public TObject {
576      void SetDebug(Bool_t set){ DBG=set; TrkParams::SetVerboseMode(); };      void SetDebug(Bool_t set){ DBG=set; TrkParams::SetVerboseMode(); };
577    
578    
579      ClassDef(PamLevel2,1);      ClassDef(PamLevel2,2);
580  };  };
581    
582  //===============================================================================================  //===============================================================================================

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.45

  ViewVC Help
Powered by ViewVC 1.1.23