ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/SelMods/interface/HwwExampleAnalysisMod.h
Revision: 1.2
Committed: Sat Oct 23 04:47:59 2010 UTC (14 years, 6 months ago) by ceballos
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_018, Mit_017, Mit_017pre3, Mit_017pre2, Mit_017pre1, Mit_016
Changes since 1.1: +6 -0 lines
Log Message:
new cuts

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/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 HwwExampleAnalysisMod : public BaseMod
33 {
34 public:
35 HwwExampleAnalysisMod(const char *name="HwwExampleAnalysisMod",
36 const char *title="Example analysis module with all branches");
37 ~HwwExampleAnalysisMod() {}
38
39 const char *GetMuonBranchName() const { return fMuonBranchName; }
40 const char *GetMetName() const { return fMetName; }
41 const char *GetCleanJetsName() const { return fCleanJetsName; }
42 const char *GetCleanJetsNoPtCutName() const { return fCleanJetsNoPtCutName; }
43
44 void SetMuonBranchName(const char *name) { fMuonBranchName = name; }
45 void SetMetName(const char *name) { fMetName = name; }
46 void SetCleanJetsName(const char *name) { fCleanJetsName = name; }
47 void SetCleanJetsNoPtCutName(const char *name) { fCleanJetsNoPtCutName = name; }
48
49 protected:
50 TString fMuonBranchName; //name of muon branch
51 TString fMetName; //name of met collection
52 TString fCleanJetsName; //name of clean central jets collection
53 TString fCleanJetsNoPtCutName; //name of clean all jets collection
54 TString fCaloJetName0; //name of jet collection used in b-tagging
55 TString fVertexName; //name of vertex collection
56 const MuonCol *fMuons; //!Muon branch
57 const MetCol *fMet; //!Missing Et branch
58 const VertexCol *fVertices; //!Vertex branch
59 const CaloJetCol *fCaloJet0; //!Jet branch
60
61 TH1D *fHWWSelection;
62 TH1D *fHWWToEESelection;
63 TH1D *fHWWToMuMuSelection;
64 TH1D *fHWWToEMuSelection;
65
66 TH1D *fLeptonEta;
67 TH1D *fLeptonPtMax;
68 TH1D *fLeptonPtMin;
69 TH1D *fMetPtHist;
70 TH1D *fMetPhiHist;
71 TH1D *fUncorrMetPtHist;
72 TH1D *fUncorrMetPhiHist;
73 TH1D *fDeltaPhiLeptons;
74 TH1D *fDeltaEtaLeptons;
75 TH1D *fDileptonMass;
76
77 TH1D *fLeptonEta_NMinusOne;
78 TH1D *fLeptonPtMax_NMinusOne;
79 TH1D *fLeptonPtMin_NMinusOne;
80 TH1D *fMetPtHist_NMinusOne;
81 TH1D *fMetPhiHist_NMinusOne;
82 TH1D *fMETdeltaPhilEtHist_NMinusOne;
83 TH1D *fNCentralJets_NMinusOne;
84 TH1D *fNSoftMuonsHist_NMinusOne;
85 TH1D *fDeltaPhiLeptons_NMinusOne;
86 TH1D *fDeltaEtaLeptons_NMinusOne;
87 TH1D *fDileptonMass_NMinusOne;
88 TH1D *fMinDeltaPhiLeptonMet_NMinusOne;
89
90 TH1D *fMinDeltaPhiLeptonMet_afterCuts;
91 TH1D *fMtLepton1_afterCuts;
92 TH1D *fMtLepton2_afterCuts;
93 TH1D *fMtHiggs_afterCuts;
94 TH1D *fLeptonPtPlusMet_afterCuts;
95
96 void Begin();
97 void Process();
98 void SlaveBegin();
99 void SlaveTerminate();
100 void Terminate();
101
102 ClassDef(HwwExampleAnalysisMod,1) // TAM example analysis module
103 };
104 }
105 #endif