ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/SelMods/interface/HwwExampleAnalysisMod.h
Revision: 1.6
Committed: Thu Oct 20 19:21:49 2011 UTC (13 years, 6 months ago) by ceballos
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_025e, Mit_025d, Mit_025c, Mit_025b, Mit_025a
Changes since 1.5: +4 -0 lines
Log Message:
new

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id $
3 //
4 // HwwExampleAnalysisMod
5 //
6 // A Module for Selecting H->WW events
7 // and produces some distributions.
8 //
9 //
10 // Authors: Si Xie
11 //--------------------------------------------------------------------------------------------------
12
13 #ifndef ANA_SELMODS_HWWEXAMPLEANALYSISMOD_H
14 #define ANA_SELMODS_HWWEXAMPLEANALYSISMOD_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/JetCol.h"
21 #include "MitAna/DataTree/interface/CaloJetCol.h"
22 #include "MitAna/DataTree/interface/PFJetCol.h"
23 #include "MitAna/DataTree/interface/SuperClusterCol.h"
24 #include "MitAna/DataTree/interface/DecayParticleCol.h"
25 #include "MitAna/DataTree/interface/PFCandidateCol.h"
26 #include "MitAna/DataTree/interface/VertexCol.h"
27 #include "MitPhysics/Utils/interface/MuonTools.h"
28
29 class TH1D;
30 class TH2D;
31
32 namespace mithep
33 {
34 class HwwExampleAnalysisMod : public BaseMod
35 {
36 public:
37 HwwExampleAnalysisMod(const char *name="HwwExampleAnalysisMod",
38 const char *title="Example analysis module with all branches");
39 ~HwwExampleAnalysisMod() {}
40
41 const char *GetMuonBranchName() const { return fMuonBranchName; }
42 const char *GetMetName() const { return fMetName; }
43 const char *GetCleanJetsName() const { return fCleanJetsName; }
44 const char *GetCleanJetsNoPtCutName() const { return fCleanJetsNoPtCutName; }
45
46 void SetMuonBranchName(const char *name) { fMuonBranchName = name; }
47 void SetMetName(const char *name) { fMetName = name; }
48 void SetCleanJetsName(const char *name) { fCleanJetsName = name; }
49 void SetCleanJetsNoPtCutName(const char *name) { fCleanJetsNoPtCutName = name; }
50 void SetPFJetBranchName(const char *name) { fPFJetName0 = name; }
51
52 protected:
53 TString fMuonBranchName; //name of muon branch
54 TString fMetName; //name of met collection
55 TString fCleanJetsName; //name of clean central jets collection
56 TString fCleanJetsNoPtCutName; //name of clean all jets collection
57 TString fVertexName; //name of vertex collection
58 TString fPFCandidatesName; //name of PFCandidate collection
59 const MuonCol *fMuons; //!Muon branch
60 const MetCol *fMet; //!Missing Et branch
61 const VertexCol *fVertices; //!Vertex branch
62 const PFCandidateCol *fPFCandidates; //!PFCandidates branch
63 TString fPFJetName0; //!PFJet branch name
64 const PFJetCol *fPFJet0; //!PFJet branch
65 Int_t fNEventsSelected; //selected events
66
67 TH1D *fHWWSelection;
68 TH1D *fHWWToEESelection;
69 TH1D *fHWWToMuMuSelection;
70 TH1D *fHWWToEMuSelection;
71 TH1D *fHWWToMuESelection;
72
73 TH1D *fLeptonEta;
74 TH1D *fLeptonPtMax;
75 TH1D *fLeptonPtMin;
76 TH1D *fMetPtHist;
77 TH1D *fMetPhiHist;
78 TH1D *fUncorrMetPtHist;
79 TH1D *fUncorrMetPhiHist;
80 TH1D *fDeltaPhiLeptons;
81 TH1D *fDeltaEtaLeptons;
82 TH1D *fDileptonMass;
83
84 TH1D *fLeptonEta_NMinusOne;
85 TH1D *fLeptonPtMax_NMinusOne;
86 TH1D *fLeptonPtMin_NMinusOne;
87 TH1D *fMetPtHist_NMinusOne;
88 TH1D *fMetPhiHist_NMinusOne;
89 TH1D *fMETdeltaPhilEtHist_NMinusOne;
90 TH1D *fNCentralJets_NMinusOne;
91 TH1D *fNSoftMuonsHist_NMinusOne;
92 TH1D *fDeltaPhiLeptons_NMinusOne;
93 TH1D *fDeltaEtaLeptons_NMinusOne;
94 TH1D *fDileptonMass_NMinusOne;
95 TH1D *fMinDeltaPhiLeptonMet_NMinusOne;
96
97 TH1D *fMinDeltaPhiLeptonMet_afterCuts;
98 TH1D *fMtLepton1_afterCuts;
99 TH1D *fMtLepton2_afterCuts;
100 TH1D *fMtHiggs_afterCuts;
101 TH1D *fLeptonPtPlusMet_afterCuts;
102
103 void Begin();
104 void Process();
105 void SlaveBegin();
106 void SlaveTerminate();
107 void Terminate();
108
109 ClassDef(HwwExampleAnalysisMod,1) // TAM example analysis module
110 };
111 }
112 #endif