ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/TreeMod/interface/AnaFwkMod.h
Revision: 1.5
Committed: Thu Mar 12 15:37:52 2009 UTC (16 years, 1 month ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_008pre2
Changes since 1.4: +5 -4 lines
Log Message:
Deal with skimmed event headers.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.5 // $Id: AnaFwkMod.h,v 1.4 2009/03/09 17:07:05 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     protected:
31 loizides 1.5 TString fAllHeadTreeName; //all events tree name
32     TString fAllHeadBrName; //all event headers branch name
33 loizides 1.4 TStopwatch *fSWtotal; //!stop watch for overall timing
34     TStopwatch *fSWevent; //!stop watch per n events
35     EventHeaderArr fAllHeaders; //!pointer to array of all event headers
36     TTree *fAllHeadTree; //!all event headers tree in current file
37     EventHeader *fAllEventHeader; //!all event header
38     Bool_t fReload; //!reload tree after file changed
39 loizides 1.5 Int_t fCurEnt; //!curent entry in AllEvents tree
40     Int_t fNEventsSkimmed; //!number of skimmed events
41 loizides 1.4
42     void BeginRun();
43     Bool_t Notify();
44     void CopyAllEventHeaders();
45     void Process();
46     void SlaveBegin();
47     void SlaveTerminate();
48 loizides 1.1
49 loizides 1.4 ClassDef(AnaFwkMod, 1) // Analysis framework module
50 loizides 1.1 };
51     }
52     #endif