ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/SelMods/interface/HwwExampleAnalysisMod.h
Revision: 1.4
Committed: Tue Apr 12 07:38:45 2011 UTC (14 years ago) by ceballos
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_025, Mit_025pre2, Mit_024b, Mit_025pre1, Mit_024a, Mit_024, Mit_023, Mit_022a, Mit_022, Mit_020d, TMit_020d, Mit_020c, Mit_021, Mit_021pre2, Mit_021pre1, Mit_020b
Changes since 1.3: +3 -2 lines
Log Message:
minor update

File Contents

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