/[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.47 by mocchiut, Wed Mar 12 16:37:26 2014 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 288  class PamLevel2 : public TObject { Line 299  class PamLevel2 : public TObject {
299      int *irunoffset;      int *irunoffset;
300      GL_TIMESYNC *gltsync; // Emiliano      GL_TIMESYNC *gltsync; // Emiliano
301      Bool_t fUpdateRunInfo; // Emiliano      Bool_t fUpdateRunInfo; // Emiliano
302        Bool_t fUseDBinRunInfo; // Emiliano
303    
304      // -------------------------------------------      // -------------------------------------------
305      // variables to store total live and dead time      // variables to store total live and dead time
# Line 300  class PamLevel2 : public TObject { Line 312  class PamLevel2 : public TObject {
312      TFile*      l0_file;      TFile*      l0_file;
313      TTree*      l0_tree;      TTree*      l0_tree;
314      Int_t       iroot;      Int_t       iroot;
315      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
316        Long64_t       yprevshift; // shift needed to sync level2 data with level0 data (nested+DV_skipped packets) - run wise EM
317      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
318      // --------------------------------------------      // --------------------------------------------
319      // variables to store Level0 info (if required)      // variables to store Level0 info (if required)
# Line 423  class PamLevel2 : public TObject { Line 436  class PamLevel2 : public TObject {
436      TTree*  GetRunTree(TFile*);      TTree*  GetRunTree(TFile*);
437      TChain* GetRunTree(TList*);      TChain* GetRunTree(TList*);
438      TChain* GetRunTree(TString ddir,TString list){ return GetRunTree(GetListOfLevel2Files(ddir,list)); };      TChain* GetRunTree(TString ddir,TString list){ return GetRunTree(GetListOfLevel2Files(ddir,list)); };
439      Bool_t  UpdateRunInfo(Long64_t);//{ return UpdateRunInfo(run_tree,iev); };      Bool_t  UpdateRunInfo(Long64_t);///< new implementation to solve Mori's bug
440      Bool_t  UpdateRunInfo(TTree *,Long64_t);      Bool_t  UpdateRunInfo(TTree *,Long64_t);
441      Bool_t  UpdateRunInfo(TChain *,Long64_t);      Bool_t  UpdateRunInfo(TChain *,Long64_t);
442    
443      void    SkipRunInfoUpdate(){fUpdateRunInfo = false;}; // Emiliano      void    SkipRunInfoUpdate(); // Emiliano
444      void    DoRunInfoUpdate(){fUpdateRunInfo = true;}; // [default] Emiliano      void    DoRunInfoUpdate(){fUpdateRunInfo = true;}; // [default] Emiliano
445        void    UseDBinRunInfo(){fUseDBinRunInfo = true;}; // [default] Emiliano
446        void    NoDBinRunInfo(){fUseDBinRunInfo = false;}; // EM
447      void    NoDBconnections(){SkipRunInfoUpdate();}; // Emiliano      void    NoDBconnections(){SkipRunInfoUpdate();}; // Emiliano
448    
449      void    CreateCloneTrees0(TChain *fChain, TFile* file);      void    CreateCloneTrees0(TChain *fChain, TFile* file);
# Line 446  class PamLevel2 : public TObject { Line 461  class PamLevel2 : public TObject {
461      Long64_t GetReadEntry();      Long64_t GetReadEntry();
462      Int_t   GetYodaEntry();      Int_t   GetYodaEntry();
463    
464      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
465    
466      Long64_t GetEntries(){return pam_tree->GetEntries();};      Long64_t GetEntries(){return pam_tree->GetEntries();};
467      TChain* GetPamTree(){return pam_tree;};      TChain* GetPamTree(){return pam_tree;};
# Line 563  class PamLevel2 : public TObject { Line 578  class PamLevel2 : public TObject {
578      void SetDebug(Bool_t set){ DBG=set; TrkParams::SetVerboseMode(); };      void SetDebug(Bool_t set){ DBG=set; TrkParams::SetVerboseMode(); };
579    
580    
581      ClassDef(PamLevel2,1);      ClassDef(PamLevel2,2);
582  };  };
583    
584  //===============================================================================================  //===============================================================================================

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

  ViewVC Help
Powered by ViewVC 1.1.23