ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/FakeMods/interface/FakeLeptonExampleAnaMod.h
Revision: 1.3
Committed: Mon Jul 20 19:05:04 2009 UTC (15 years, 9 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_010
Changes since 1.2: +10 -13 lines
Log Message:
Changes for html docu

File Contents

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