ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/TreeMod/interface/AnaFwkMod.h
Revision: 1.9
Committed: Fri Jul 22 18:21:01 2011 UTC (13 years, 9 months ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_025c_branch2, Mit_025c_branch1, Mit_029, Mit_029_pre1, Mit_028a, Mit_025c_branch0, Mit_028, Mit_027a, Mit_027, Mit_026, Mit_025e, Mit_025d, Mit_025c, Mit_025b, Mit_025a, Mit_025, Mit_025pre2, Mit_024b, Mit_025pre1, Mit_024a, Mit_024
Branch point for: Mit_025c_branch
Changes since 1.8: +9 -2 lines
Log Message:
Add filling of pileup histograms

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 bendavid 1.9 // $Id: AnaFwkMod.h,v 1.8 2009/06/19 07:39:01 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 loizides 1.7 #include "MitAna/DataTree/interface/EventHeaderCol.h"
17 bendavid 1.9 #include "MitAna/DataTree/interface/PileupInfoFwd.h"
18 loizides 1.1
19 loizides 1.4 class TTree;
20 loizides 1.1 class TH1D;
21 bendavid 1.9 class TH3D;
22 loizides 1.1 class TStopwatch;
23    
24     namespace mithep
25     {
26     class AnaFwkMod : public BaseMod
27     {
28     public:
29     AnaFwkMod(const char *name="AnaFwkMod",
30     const char *title="Analysis framework module");
31    
32 loizides 1.8 Long64_t GetPrintScale() const { return fPrintScale; }
33 loizides 1.6 Long64_t GetSkipNEvents() const { return fSkipNEvents; }
34 loizides 1.8 void SetPrintScale(UInt_t n) { fPrintScale = n; }
35 loizides 1.6 void SetSkipNEvents(Long64_t n) { fSkipNEvents = n; }
36    
37 loizides 1.1 protected:
38 loizides 1.6 void BeginRun();
39     Bool_t Notify();
40     void CopyAllEventHeaders();
41     void Process();
42     void SlaveBegin();
43     void SlaveTerminate();
44    
45 loizides 1.5 TString fAllHeadTreeName; //all events tree name
46     TString fAllHeadBrName; //all event headers branch name
47 loizides 1.6 Long64_t fSkipNEvents; //number of events to skip from beginning (def=0)
48 loizides 1.8 UInt_t fPrintScale; //scale of when to print event number/timings (def=100)
49 loizides 1.4 TStopwatch *fSWtotal; //!stop watch for overall timing
50     TStopwatch *fSWevent; //!stop watch per n events
51     EventHeaderArr fAllHeaders; //!pointer to array of all event headers
52     TTree *fAllHeadTree; //!all event headers tree in current file
53     EventHeader *fAllEventHeader; //!all event header
54     Bool_t fReload; //!reload tree after file changed
55 loizides 1.5 Int_t fCurEnt; //!curent entry in AllEvents tree
56     Int_t fNEventsSkimmed; //!number of skimmed events
57 loizides 1.6 Int_t fNEventsSkipped; //!number of skippeded events
58 bendavid 1.9 const PileupInfoCol *fPileupInfo; //!
59     TString fPileupInfoName; //Name of PileupInfo Branch for pileup truth distributions
60     Bool_t fDoPUInfo;
61     TH1D *hNPU; //in-time pileup distribution
62     TH3D *hNPU50ns; //three-dimensional pileup distribution (bx=0,-2,+2) suitable for 50ns spacing
63    
64 loizides 1.4 ClassDef(AnaFwkMod, 1) // Analysis framework module
65 loizides 1.1 };
66     }
67     #endif