1 |
//--------------------------------------------------------------------------------------------------
|
2 |
// $Id $
|
3 |
//
|
4 |
// WBFExampleAnalysisMod
|
5 |
//
|
6 |
// A Module to select qqH events
|
7 |
// and produces some distributions.
|
8 |
//
|
9 |
//
|
10 |
// Authors: Si Xie
|
11 |
//--------------------------------------------------------------------------------------------------
|
12 |
|
13 |
#ifndef ANA_SELMODS_WBFExampleAnalysisMod_H
|
14 |
#define ANA_SELMODS_WBFExampleAnalysisMod_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/SuperClusterCol.h"
|
22 |
#include "MitAna/DataTree/interface/DecayParticleCol.h"
|
23 |
#include "MitAna/DataTree/interface/VertexCol.h"
|
24 |
#include "MitPhysics/Utils/interface/MuonTools.h"
|
25 |
|
26 |
class TH1D;
|
27 |
class TH2D;
|
28 |
|
29 |
namespace mithep
|
30 |
{
|
31 |
class WBFExampleAnalysisMod : public BaseMod
|
32 |
{
|
33 |
public:
|
34 |
WBFExampleAnalysisMod(const char *name="WBFExampleAnalysisMod",
|
35 |
const char *title="Example analysis module with all branches");
|
36 |
~WBFExampleAnalysisMod() {}
|
37 |
|
38 |
const char *GetMetName() const { return fMetName; }
|
39 |
const char *GetCleanJetsName() const { return fCleanJetsName; }
|
40 |
|
41 |
void SetMetName(const char *name) { fMetName = name; }
|
42 |
void SetCleanJetsName(const char *name) { fCleanJetsName = name; }
|
43 |
void SetJetPtMax(double x) { fJetPtMax = x; }
|
44 |
void SetJetPtMin(double x) { fJetPtMin = x; }
|
45 |
void SetDeltaEtaMin(double x) { fDeltaEtaMin = x; }
|
46 |
void SetDiJetMassMin(double x) { fDiJetMassMin = x; }
|
47 |
|
48 |
protected:
|
49 |
TString fMetName; //name of met collection
|
50 |
TString fCleanJetsName; //name of clean central jets collection
|
51 |
TString fVertexName; //name of vertex collection
|
52 |
const MetCol *fMet; //!Missing Et branch
|
53 |
const VertexCol *fVertices; //!Vertex branch
|
54 |
double fJetPtMax;
|
55 |
double fJetPtMin;
|
56 |
double fDeltaEtaMin;
|
57 |
double fDiJetMassMin;
|
58 |
|
59 |
TH1D *fWBFSelection;
|
60 |
TH1D *fWBFDeltaPhi;
|
61 |
|
62 |
TH1D *fWBFPtJetMax_NMinusOne;
|
63 |
TH1D *fWBFPtJetMin_NMinusOne;
|
64 |
TH1D *fWBFEta12_NMinusOne;
|
65 |
TH1D *fWBFdeltaEta_NMinusOne;
|
66 |
TH1D *fWBFdijetMass_NMinusOne;
|
67 |
TH1D *fWBFZVar_NMinusOne;
|
68 |
|
69 |
TH1D *fWBFSSMass_afterCuts;
|
70 |
TH1D *fWBFSSDeltaPhi_afterCuts;
|
71 |
TH1D *fWBFOSMass_afterCuts;
|
72 |
TH1D *fWBFOSDeltaPhi_afterCuts;
|
73 |
|
74 |
void Begin();
|
75 |
void Process();
|
76 |
void SlaveBegin();
|
77 |
void SlaveTerminate();
|
78 |
void Terminate();
|
79 |
|
80 |
ClassDef(WBFExampleAnalysisMod,1) // TAM example analysis module
|
81 |
};
|
82 |
}
|
83 |
#endif
|