CMS 3D CMS Logo

MuonKinVsEtaAnalyzer.h
Go to the documentation of this file.
1 #ifndef MuonKinVsEtaAnalyzer_H
2 #define MuonKinVsEtaAnalyzer_H
3 
11 #include <memory>
12 #include <fstream>
21 
33 
35  public:
36 
39 
41  ~MuonKinVsEtaAnalyzer() override;
42 
43  void analyze(const edm::Event&, const edm::EventSetup&) override;
44  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
45 
46  private:
47 
48  // ----------member data ---------------------------
51 
52  // Switch for verbosity
54 
55  //Vertex requirements
59 
60  //histo binning parameters
61  int pBin;
62  double pMin;
63  double pMax;
64 
65  int ptBin;
66  double ptMin;
67  double ptMax;
68 
69  int etaBin;
70  double etaMin;
71  double etaMax;
72 
73  int phiBin;
74  double phiMin;
75  double phiMax;
76 
77  int chiBin;
78  double chiMin;
79  double chiMax;
80 
81  double chiprobMin;
82  double chiprobMax;
83 
84  //Defining relevant eta regions
85  double EtaCutMin;
86  double EtaCutMax;
87  double etaBMin;
88  double etaBMax;
89  double etaECMin;
90  double etaECMax;
91  double etaOvlpMin;
92  double etaOvlpMax;
93 
94  //the histos
95  // global muon
96  std::vector<MonitorElement*> etaGlbTrack;
97  std::vector<MonitorElement*> phiGlbTrack;
98  std::vector<MonitorElement*> pGlbTrack;
99  std::vector<MonitorElement*> ptGlbTrack;
100  std::vector<MonitorElement*> chi2GlbTrack;
101  std::vector<MonitorElement*> chi2probGlbTrack;
102 
103  // tracker muon
104  std::vector<MonitorElement*> etaTrack;
105  std::vector<MonitorElement*> phiTrack;
106  std::vector<MonitorElement*> pTrack;
107  std::vector<MonitorElement*> ptTrack;
108  std::vector<MonitorElement*> chi2Track;
109  std::vector<MonitorElement*> chi2probTrack;
110 
111  // sta muon
112  std::vector<MonitorElement*> etaStaTrack;
113  std::vector<MonitorElement*> phiStaTrack;
114  std::vector<MonitorElement*> pStaTrack;
115  std::vector<MonitorElement*> ptStaTrack;
116  std::vector<MonitorElement*> chi2StaTrack;
117  std::vector<MonitorElement*> chi2probStaTrack;
118 
119  // GMPT muon
120  std::vector<MonitorElement*> etaTightTrack;
121  std::vector<MonitorElement*> phiTightTrack;
122  std::vector<MonitorElement*> pTightTrack;
123  std::vector<MonitorElement*> ptTightTrack;
124  std::vector<MonitorElement*> chi2TightTrack;
125  std::vector<MonitorElement*> chi2probTightTrack;
126 
127  // Loose muon;
128  std::vector<MonitorElement*> etaLooseTrack;
129  std::vector<MonitorElement*> phiLooseTrack;
130  std::vector<MonitorElement*> pLooseTrack;
131  std::vector<MonitorElement*> ptLooseTrack;
132  std::vector<MonitorElement*> chi2LooseTrack;
133  std::vector<MonitorElement*> chi2probLooseTrack;
134 
135  // Medium muon;
136  std::vector<MonitorElement*> etaMediumTrack;
137  std::vector<MonitorElement*> phiMediumTrack;
138  std::vector<MonitorElement*> pMediumTrack;
139  std::vector<MonitorElement*> ptMediumTrack;
140  std::vector<MonitorElement*> chi2MediumTrack;
141  std::vector<MonitorElement*> chi2probMediumTrack;
142 
143  // Soft muon;
144  std::vector<MonitorElement*> etaSoftTrack;
145  std::vector<MonitorElement*> phiSoftTrack;
146  std::vector<MonitorElement*> pSoftTrack;
147  std::vector<MonitorElement*> ptSoftTrack;
148  std::vector<MonitorElement*> chi2SoftTrack;
149  std::vector<MonitorElement*> chi2probSoftTrack;
150 
151  // HighPt muon;
152  std::vector<MonitorElement*> etaHighPtTrack;
153  std::vector<MonitorElement*> phiHighPtTrack;
154  std::vector<MonitorElement*> pHighPtTrack;
155  std::vector<MonitorElement*> ptHighPtTrack;
156  std::vector<MonitorElement*> chi2HighPtTrack;
157  std::vector<MonitorElement*> chi2probHighPtTrack;
158 
160 };
161 #endif
MuonServiceProxy * theService
std::vector< MonitorElement * > chi2HighPtTrack
std::vector< MonitorElement * > etaTrack
std::vector< MonitorElement * > pSoftTrack
std::vector< MonitorElement * > chi2probSoftTrack
std::vector< MonitorElement * > etaLooseTrack
std::vector< MonitorElement * > chi2LooseTrack
std::vector< MonitorElement * > phiStaTrack
std::vector< MonitorElement * > etaMediumTrack
std::vector< MonitorElement * > ptMediumTrack
edm::EDGetTokenT< edm::View< reco::Muon > > theMuonCollectionLabel_
edm::EDGetTokenT< reco::VertexCollection > theVertexLabel_
std::vector< MonitorElement * > chi2probLooseTrack
std::vector< MonitorElement * > ptTrack
std::vector< MonitorElement * > chi2TightTrack
std::vector< MonitorElement * > chi2probGlbTrack
std::vector< MonitorElement * > chi2GlbTrack
std::vector< MonitorElement * > ptLooseTrack
std::vector< MonitorElement * > pMediumTrack
std::vector< MonitorElement * > ptHighPtTrack
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< MonitorElement * > pTrack
std::vector< MonitorElement * > ptTightTrack
std::vector< MonitorElement * > chi2probTrack
std::vector< MonitorElement * > phiLooseTrack
std::vector< MonitorElement * > etaTightTrack
edm::ParameterSet parameters
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::vector< MonitorElement * > chi2probStaTrack
std::vector< MonitorElement * > etaSoftTrack
std::vector< MonitorElement * > phiTightTrack
edm::EDGetTokenT< reco::BeamSpot > theBeamSpotLabel_
std::vector< MonitorElement * > pTightTrack
std::vector< MonitorElement * > etaStaTrack
std::vector< MonitorElement * > pGlbTrack
std::vector< MonitorElement * > chi2probTightTrack
std::vector< MonitorElement * > pStaTrack
std::vector< MonitorElement * > etaGlbTrack
std::vector< MonitorElement * > pHighPtTrack
std::vector< MonitorElement * > phiSoftTrack
std::vector< MonitorElement * > phiMediumTrack
~MuonKinVsEtaAnalyzer() override
Destructor.
std::vector< MonitorElement * > chi2Track
std::vector< MonitorElement * > chi2probMediumTrack
std::vector< MonitorElement * > chi2SoftTrack
std::vector< MonitorElement * > pLooseTrack
std::vector< MonitorElement * > chi2MediumTrack
std::vector< MonitorElement * > etaHighPtTrack
std::vector< MonitorElement * > chi2StaTrack
MuonKinVsEtaAnalyzer(const edm::ParameterSet &pSet)
Constructor.
std::vector< MonitorElement * > phiTrack
std::vector< MonitorElement * > ptSoftTrack
std::vector< MonitorElement * > ptStaTrack
std::vector< MonitorElement * > ptGlbTrack
std::vector< MonitorElement * > chi2probHighPtTrack
std::vector< MonitorElement * > phiGlbTrack
Definition: Run.h:45
std::vector< MonitorElement * > phiHighPtTrack