ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/SelMods/interface/HwwExampleAnalysisMod.h
Revision: 1.7
Committed: Sat Apr 7 11:46:44 2012 UTC (13 years, 1 month ago) by ceballos
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_029c, Mit_029b, Mit_029a, Mit_028a, Mit_028, Mit_027, Mit_027a, HEAD
Changes since 1.6: +0 -3 lines
Log Message:
removing cleanjets

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 *GetCleanJetsNoPtCutName() const { return fCleanJetsNoPtCutName; }
44
45 void SetMuonBranchName(const char *name) { fMuonBranchName = name; }
46 void SetMetName(const char *name) { fMetName = name; }
47 void SetCleanJetsNoPtCutName(const char *name) { fCleanJetsNoPtCutName = name; }
48 void SetPFJetBranchName(const char *name) { fPFJetName0 = name; }
49
50 protected:
51 TString fMuonBranchName; //name of muon branch
52 TString fMetName; //name of met collection
53 TString fCleanJetsNoPtCutName; //name of clean all jets collection
54 TString fVertexName; //name of vertex collection
55 TString fPFCandidatesName; //name of PFCandidate collection
56 const MuonCol *fMuons; //!Muon branch
57 const MetCol *fMet; //!Missing Et branch
58 const VertexCol *fVertices; //!Vertex branch
59 const PFCandidateCol *fPFCandidates; //!PFCandidates branch
60 TString fPFJetName0; //!PFJet branch name
61 const PFJetCol *fPFJet0; //!PFJet branch
62 Int_t fNEventsSelected; //selected events
63
64 TH1D *fHWWSelection;
65 TH1D *fHWWToEESelection;
66 TH1D *fHWWToMuMuSelection;
67 TH1D *fHWWToEMuSelection;
68 TH1D *fHWWToMuESelection;
69
70 TH1D *fLeptonEta;
71 TH1D *fLeptonPtMax;
72 TH1D *fLeptonPtMin;
73 TH1D *fMetPtHist;
74 TH1D *fMetPhiHist;
75 TH1D *fUncorrMetPtHist;
76 TH1D *fUncorrMetPhiHist;
77 TH1D *fDeltaPhiLeptons;
78 TH1D *fDeltaEtaLeptons;
79 TH1D *fDileptonMass;
80
81 TH1D *fLeptonEta_NMinusOne;
82 TH1D *fLeptonPtMax_NMinusOne;
83 TH1D *fLeptonPtMin_NMinusOne;
84 TH1D *fMetPtHist_NMinusOne;
85 TH1D *fMetPhiHist_NMinusOne;
86 TH1D *fMETdeltaPhilEtHist_NMinusOne;
87 TH1D *fNCentralJets_NMinusOne;
88 TH1D *fNSoftMuonsHist_NMinusOne;
89 TH1D *fDeltaPhiLeptons_NMinusOne;
90 TH1D *fDeltaEtaLeptons_NMinusOne;
91 TH1D *fDileptonMass_NMinusOne;
92 TH1D *fMinDeltaPhiLeptonMet_NMinusOne;
93
94 TH1D *fMinDeltaPhiLeptonMet_afterCuts;
95 TH1D *fMtLepton1_afterCuts;
96 TH1D *fMtLepton2_afterCuts;
97 TH1D *fMtHiggs_afterCuts;
98 TH1D *fLeptonPtPlusMet_afterCuts;
99
100 void Begin();
101 void Process();
102 void SlaveBegin();
103 void SlaveTerminate();
104 void Terminate();
105
106 ClassDef(HwwExampleAnalysisMod,1) // TAM example analysis module
107 };
108 }
109 #endif