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 |
|
|
#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 |
ceballos |
1.2 |
const char *GetCleanJetsNoPtCutName() const { return fCleanJetsNoPtCutName; }
|
43 |
ceballos |
1.1 |
|
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 |
ceballos |
1.2 |
void SetCleanJetsNoPtCutName(const char *name) { fCleanJetsNoPtCutName = name; }
|
48 |
ceballos |
1.1 |
|
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 |
ceballos |
1.2 |
TString fCleanJetsNoPtCutName; //name of clean all jets collection
|
54 |
|
|
TString fCaloJetName0; //name of jet collection used in b-tagging
|
55 |
ceballos |
1.1 |
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 |
ceballos |
1.2 |
const CaloJetCol *fCaloJet0; //!Jet branch
|
60 |
ceballos |
1.3 |
Int_t fNEventsSelected; //selected events
|
61 |
ceballos |
1.1 |
|
62 |
|
|
TH1D *fHWWSelection;
|
63 |
|
|
TH1D *fHWWToEESelection;
|
64 |
|
|
TH1D *fHWWToMuMuSelection;
|
65 |
|
|
TH1D *fHWWToEMuSelection;
|
66 |
|
|
|
67 |
|
|
TH1D *fLeptonEta;
|
68 |
|
|
TH1D *fLeptonPtMax;
|
69 |
|
|
TH1D *fLeptonPtMin;
|
70 |
|
|
TH1D *fMetPtHist;
|
71 |
|
|
TH1D *fMetPhiHist;
|
72 |
|
|
TH1D *fUncorrMetPtHist;
|
73 |
|
|
TH1D *fUncorrMetPhiHist;
|
74 |
|
|
TH1D *fDeltaPhiLeptons;
|
75 |
|
|
TH1D *fDeltaEtaLeptons;
|
76 |
|
|
TH1D *fDileptonMass;
|
77 |
|
|
|
78 |
|
|
TH1D *fLeptonEta_NMinusOne;
|
79 |
|
|
TH1D *fLeptonPtMax_NMinusOne;
|
80 |
|
|
TH1D *fLeptonPtMin_NMinusOne;
|
81 |
|
|
TH1D *fMetPtHist_NMinusOne;
|
82 |
|
|
TH1D *fMetPhiHist_NMinusOne;
|
83 |
|
|
TH1D *fMETdeltaPhilEtHist_NMinusOne;
|
84 |
|
|
TH1D *fNCentralJets_NMinusOne;
|
85 |
|
|
TH1D *fNSoftMuonsHist_NMinusOne;
|
86 |
|
|
TH1D *fDeltaPhiLeptons_NMinusOne;
|
87 |
|
|
TH1D *fDeltaEtaLeptons_NMinusOne;
|
88 |
|
|
TH1D *fDileptonMass_NMinusOne;
|
89 |
|
|
TH1D *fMinDeltaPhiLeptonMet_NMinusOne;
|
90 |
|
|
|
91 |
|
|
TH1D *fMinDeltaPhiLeptonMet_afterCuts;
|
92 |
|
|
TH1D *fMtLepton1_afterCuts;
|
93 |
|
|
TH1D *fMtLepton2_afterCuts;
|
94 |
|
|
TH1D *fMtHiggs_afterCuts;
|
95 |
|
|
TH1D *fLeptonPtPlusMet_afterCuts;
|
96 |
|
|
|
97 |
|
|
void Begin();
|
98 |
|
|
void Process();
|
99 |
|
|
void SlaveBegin();
|
100 |
|
|
void SlaveTerminate();
|
101 |
|
|
void Terminate();
|
102 |
|
|
|
103 |
|
|
ClassDef(HwwExampleAnalysisMod,1) // TAM example analysis module
|
104 |
|
|
};
|
105 |
|
|
}
|
106 |
|
|
#endif
|