ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/TreeMod/interface/AnaFwkMod.h
Revision: 1.6
Committed: Mon Mar 23 08:30:58 2009 UTC (16 years, 1 month ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_009a, Mit_009, Mit_008
Changes since 1.5: +14 -9 lines
Log Message:
Introduce possibility to skip N first events.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.6 // $Id: AnaFwkMod.h,v 1.5 2009/03/12 15:37:52 loizides Exp $
3 loizides 1.1 //
4     // AnaFwkMod
5     //
6     // This module collects interesting global information, like the overall number of processed
7     // events and puts this information into the OutputList.
8     //
9     // Authors: C.Loizides
10     //--------------------------------------------------------------------------------------------------
11    
12     #ifndef MITANA_TREEEMOD_ANAFWKMOD_H
13     #define MITANA_TREEEMOD_ANAFWKMOD_H
14    
15     #include "MitAna/TreeMod/interface/BaseMod.h"
16     #include "MitAna/DataTree/interface/Collections.h"
17    
18 loizides 1.4 class TTree;
19 loizides 1.1 class TH1D;
20     class TStopwatch;
21    
22     namespace mithep
23     {
24     class AnaFwkMod : public BaseMod
25     {
26     public:
27     AnaFwkMod(const char *name="AnaFwkMod",
28     const char *title="Analysis framework module");
29    
30 loizides 1.6 Long64_t GetSkipNEvents() const { return fSkipNEvents; }
31     void SetSkipNEvents(Long64_t n) { fSkipNEvents = n; }
32    
33 loizides 1.1 protected:
34 loizides 1.6 void BeginRun();
35     Bool_t Notify();
36     void CopyAllEventHeaders();
37     void Process();
38     void SlaveBegin();
39     void SlaveTerminate();
40    
41 loizides 1.5 TString fAllHeadTreeName; //all events tree name
42     TString fAllHeadBrName; //all event headers branch name
43 loizides 1.6 Long64_t fSkipNEvents; //number of events to skip from beginning (def=0)
44 loizides 1.4 TStopwatch *fSWtotal; //!stop watch for overall timing
45     TStopwatch *fSWevent; //!stop watch per n events
46     EventHeaderArr fAllHeaders; //!pointer to array of all event headers
47     TTree *fAllHeadTree; //!all event headers tree in current file
48     EventHeader *fAllEventHeader; //!all event header
49     Bool_t fReload; //!reload tree after file changed
50 loizides 1.5 Int_t fCurEnt; //!curent entry in AllEvents tree
51     Int_t fNEventsSkimmed; //!number of skimmed events
52 loizides 1.6 Int_t fNEventsSkipped; //!number of skippeded events
53    
54 loizides 1.4 ClassDef(AnaFwkMod, 1) // Analysis framework module
55 loizides 1.1 };
56     }
57     #endif