ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/TreeMod/interface/AnaFwkMod.h
Revision: 1.1
Committed: Wed Nov 19 15:30:26 2008 UTC (16 years, 5 months ago) by loizides
Content type: text/plain
Branch: MAIN
Log Message:
Added general ana fwk module. Currently only used to give an overall event counter. Could be extended for other purposes.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id: GeneratorMod.h,v 1.3 2008/11/11 21:22:58 ceballos Exp $
3     //
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     class TH1D;
19     class TStopwatch;
20    
21     namespace mithep
22     {
23     class AnaFwkMod : public BaseMod
24     {
25     public:
26     AnaFwkMod(const char *name="AnaFwkMod",
27     const char *title="Analysis framework module");
28     ~AnaFwkMod() {}
29    
30     protected:
31     Int_t fNEventsProcessed; //number of events
32     TH1D *hDEvents; //!one-bin histo for event counting
33     TStopwatch *fSWtotal; //!stop watch for overall timing
34     TStopwatch *fSWevent; //!stop watch per n events
35    
36     void Process();
37     void SlaveBegin();
38     void SlaveTerminate();
39    
40     ClassDef(AnaFwkMod,1) // Analysis framework module
41     };
42     }
43     #endif