ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/SelMods/interface/WBFExampleAnalysisMod.h
Revision: 1.1
Committed: Wed Dec 22 13:40:29 2010 UTC (14 years, 4 months ago) by ceballos
Content type: text/plain
Branch: MAIN
Log Message:
new module

File Contents

# User Rev Content
1 ceballos 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id $
3     //
4     // WBFExampleAnalysisMod
5     //
6     // A Module to select qqH events
7     // and produces some distributions.
8     //
9     //
10     // Authors: Si Xie
11     //--------------------------------------------------------------------------------------------------
12    
13     #ifndef ANA_SELMODS_WBFExampleAnalysisMod_H
14     #define ANA_SELMODS_WBFExampleAnalysisMod_H
15    
16     #include "MitAna/TreeMod/interface/BaseMod.h"
17     #include "MitAna/DataTree/interface/MetCol.h"
18     #include "MitAna/DataTree/interface/ElectronCol.h"
19     #include "MitAna/DataTree/interface/MuonCol.h"
20     #include "MitAna/DataTree/interface/PhotonCol.h"
21     #include "MitAna/DataTree/interface/JetCol.h"
22     #include "MitAna/DataTree/interface/SuperClusterCol.h"
23     #include "MitAna/DataTree/interface/DecayParticleCol.h"
24     #include "MitAna/DataTree/interface/VertexCol.h"
25     #include "MitPhysics/Utils/interface/MuonTools.h"
26    
27     class TH1D;
28     class TH2D;
29    
30     namespace mithep
31     {
32     class WBFExampleAnalysisMod : public BaseMod
33     {
34     public:
35     WBFExampleAnalysisMod(const char *name="WBFExampleAnalysisMod",
36     const char *title="Example analysis module with all branches");
37     ~WBFExampleAnalysisMod() {}
38    
39     const char *GetMetName() const { return fMetName; }
40     const char *GetCleanJetsName() const { return fCleanJetsName; }
41    
42     void SetMetName(const char *name) { fMetName = name; }
43     void SetCleanJetsName(const char *name) { fCleanJetsName = name; }
44     void SetJetPtMax(double x) { fJetPtMax = x; }
45     void SetJetPtMin(double x) { fJetPtMin = x; }
46     void SetDeltaEtaMin(double x) { fDeltaEtaMin = x; }
47     void SetDiJetMassMin(double x) { fDiJetMassMin = x; }
48    
49     protected:
50     TString fMetName; //name of met collection
51     TString fCleanJetsName; //name of clean central jets collection
52     TString fVertexName; //name of vertex collection
53     const MetCol *fMet; //!Missing Et branch
54     const VertexCol *fVertices; //!Vertex branch
55     double fJetPtMax;
56     double fJetPtMin;
57     double fDeltaEtaMin;
58     double fDiJetMassMin;
59    
60     TH1D *fWBFSelection;
61    
62     TH1D *fWBFPtJetMax_NMinusOne;
63     TH1D *fWBFPtJetMin_NMinusOne;
64     TH1D *fWBFdeltaEta_NMinusOne;
65     TH1D *fWBFdijetMass_NMinusOne;
66    
67     TH1D *fWBFSSMass_afterCuts;
68     TH1D *fWBFSSDeltaPhi_afterCuts;
69     TH1D *fWBFOSMass_afterCuts;
70     TH1D *fWBFOSDeltaPhi_afterCuts;
71     TH1D *fWBFDiPhotonMass_afterCuts;
72    
73     void Begin();
74     void Process();
75     void SlaveBegin();
76     void SlaveTerminate();
77     void Terminate();
78    
79     ClassDef(WBFExampleAnalysisMod,1) // TAM example analysis module
80     };
81     }
82     #endif