ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/FakeMods/interface/FakeLeptonExampleAnaMod.h
Revision: 1.2
Committed: Mon Jul 13 11:27:13 2009 UTC (15 years, 9 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.1: +4 -5 lines
Log Message:
Fix compiler warnings... Still this code needs further cleanup.

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: FakeLeptonExampleAnaMod.h,v 1.1 2009/06/30 10:47:16 loizides Exp $
3 //
4 // FakeLeptonExampleAnaMod
5 //
6 // A Module for Selecting H->WW events
7 // and produces some distributions.
8 //
9 //
10 // Authors: Si Xie
11 //--------------------------------------------------------------------------------------------------
12
13 #ifndef MITHIGGS_HWWMODS_FAKELEPTONEXAMPLEANAMOD_H
14 #define MITHIGGS_HWWMODS_FAKELEPTONEXAMPLEANAMOD_H
15
16 #include "MitAna/TreeMod/interface/BaseMod.h"
17 #include "MitAna/DataTree/interface/CollectionsFwd.h"
18
19 class TH1D;
20 class TH2D;
21
22 namespace mithep
23 {
24 class FakeLeptonExampleAnaMod : public BaseMod
25 {
26 public:
27 FakeLeptonExampleAnaMod(const char *name="FakeLeptonExampleAnaMod",
28 const char *title="Example analysis module with all branches");
29
30 Bool_t GetUseMCFake() { return fUseMCFake; }
31 Bool_t GetPerformFakeMuonMetCorrection() { return fPerformFakeMuonMetCorrection; }
32 const char *GetSampleName() const { return fSampleName; }
33 const char *GetFakeEventHeaderName() const { return fFakeEventHeaderName; }
34 const char *GetElectronFakeableObjectsName() const { return fElectronFakeableObjectsName; }
35 const char *GetMuonFakeableObjectsName() const { return fMuonFakeableObjectsName; }
36 const char *GetMCPartBranchName() const { return fMCPartBranchName; }
37 const char *GetGenJetBranchName() const { return fGenJetBranchName; }
38 const char *GetTrackBranchName() const { return fTrackBranchName; }
39 const char *GetMuonBranchName() const { return fMuonBranchName; }
40 const char *GetMetName() const { return fMetName; }
41 const char *GetTriggerObjectsName() const { return fTriggerObjectsName; }
42
43 void SetUseMCFake(Bool_t b) { fUseMCFake = b; }
44 void SetPerformFakeMuonMetCorrection(Bool_t b) { fPerformFakeMuonMetCorrection = b; }
45 void SetSampleName(const char *s) { fSampleName = s; }
46 void SetFakeEventHeaderName (const char *s) { fFakeEventHeaderName = s; }
47 void SetElectronFakeableObjectsName(const char *s) { fElectronFakeableObjectsName = s; }
48 void SetMuonFakeableObjectsName(const char *s) { fMuonFakeableObjectsName = s; }
49 void SetCleanJetsName (TString s) { fCleanJetsName = s; }
50 void SetMCPartBranchName (TString s) { fMCPartBranchName = s; }
51 void SetGenJetBranchName (TString s) { fGenJetBranchName = s; }
52 void SetTrackBranchName (TString s) { fTrackBranchName = s; }
53 void SetMuonBranchName (TString s) { fMuonBranchName = s; }
54 void SetMetName (TString s) { fMetName = s; }
55 void SetTriggerObjectsName(const char *name) { fTriggerObjectsName = name; }
56
57 protected:
58 Bool_t fUseMCFake; //whether to use MC simulation fakes
59 Bool_t fPerformFakeMuonMetCorrection; //whether to perform fake muon
60 //met correction
61 TString fSampleName; //name of Sample
62 TString fFakeEventHeaderName; //name of fake event header (input)
63 TString fElectronFakeableObjectsName; //name of electron denominators (input)
64 TString fMuonFakeableObjectsName; //name of muon denominators (input)
65 TString fMCPartBranchName; //name of particle collection
66 TString fGenJetBranchName; //name of genjet collection
67 TString fTrackBranchName; //name of track collection
68 TString fMuonBranchName; //name of muon collection
69 TString fMetName; //name of met collection
70 TString fCleanJetsName; //name of clean central jets collection
71 TString fTriggerObjectsName; //name of trigger objects
72 const MCParticleCol *fParticles; //!GenParticle branch
73 const GenJetCol *fGenJets; //!GenJet branch
74 const TrackCol *fTracks; //!Track branch
75 const MuonCol *fMuons; //!Muon branch
76 const MetCol *fMet; //!Missing Et
77
78
79 TH1D *fDileptonCharge;
80 TH1D *fLeptonPtMax;
81 TH1D *fLeptonPtMin;
82 TH1D *fMetPtHist;
83 TH1D *fDeltaPhiLeptons;
84 TH1D *fDeltaEtaLeptons;
85 TH1D *fDileptonMass;
86
87 TH1D *fLeptonEta_NMinusOne;
88 TH1D *fLeptonPtMax_NMinusOne;
89 TH1D *fLeptonPtMin_NMinusOne;
90 TH1D *fMetPtHist_NMinusOne;
91 TH1D *fMetPhiHist_NMinusOne;
92 TH1D *fMETdeltaPhilEtHist_NMinusOne;
93 TH1D *fNCentralJets_NMinusOne;
94 TH1D *fNDirtyMuonsHist_NMinusOne;
95 TH1D *fNCleanExtraTracksHist_NMinusOne;
96 TH1D *fDeltaPhiLeptons_NMinusOne;
97 TH1D *fDeltaEtaLeptons_NMinusOne;
98 TH1D *fDileptonMass_NMinusOne;
99 TH1D *fMinDeltaPhiLeptonMet_NMinusOne;
100
101 TH1D *fMinDeltaPhiLeptonMet_afterCuts;
102 TH1D *fMtLepton1_afterCuts;
103 TH1D *fMtLepton2_afterCuts;
104 TH1D *fMtHiggs_afterCuts;
105
106
107 void Begin();
108 void Process();
109 void SlaveBegin();
110 void SlaveTerminate();
111 void Terminate();
112
113 ClassDef(FakeLeptonExampleAnaMod,1) // TAM example analysis module
114 };
115 }
116 #endif