CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
V0Validator.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: V0Validator
4 // Class: V0Validator
5 //
13 //
14 // Original Author: Brian Drell
15 // Created: Wed Feb 18 17:21:04 MST 2009
16 //
17 //
18 
19 
20 // system include files
21 #include <memory>
22 
23 // user include files
25 
28 
32 
36 
38 
52 
57 
60 
67 
70 
73 
74 
75 #include "HepMC/GenVertex.h"
76 #include "HepMC/GenParticle.h"
77 
78 #include "TROOT.h"
79 #include "TMath.h"
80 #include "TH1F.h"
81 #include "TH1I.h"
82 #include "TH2F.h"
83 
84 class V0Validator : public DQMEDAnalyzer {
85 
86 public:
87  explicit V0Validator(const edm::ParameterSet&);
88  ~V0Validator();
89 
90 
91 private:
92  virtual void analyze(const edm::Event&, const edm::EventSetup&);
93  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
94 
95  //Quantities that are to be histogrammed
100  unsigned int K0sPiCandStatus[2], LamPiCandStatus[2], K0sPiEff[2], LamPiEff[2];
101 
102  //Bookkeeping quantities
105 
106  // MonitorElements for final histograms
119 
132 
139 
146 
159 
172 
181 
184 
187 
192 
195 
196 
199 
200 
212 };
213 
MonitorElement * ksTkFakeVsPt
Definition: V0Validator.h:118
edm::EDGetTokenT< edm::SimVertexContainer > edmSimVertexContainerToken_
Definition: V0Validator.h:208
MonitorElement * nLam
Definition: V0Validator.h:183
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: V0Validator.cc:60
MonitorElement * lamTkFakeVsR_num
Definition: V0Validator.h:169
MonitorElement * ksEffVsR
Definition: V0Validator.h:107
unsigned int K0sCandStatus
Definition: V0Validator.h:99
edm::EDGetTokenT< reco::SimToRecoCollection > recoSimToRecoCollectionToken_
Definition: V0Validator.h:204
V0Validator(const edm::ParameterSet &)
Definition: V0Validator.cc:28
edm::EDGetTokenT< reco::VertexCompositeCandidateCollection > recoVertexCompositeCandidateCollection_k0s_Token_
Definition: V0Validator.h:210
float LamGenR
Definition: V0Validator.h:96
MonitorElement * ksFakeVsPt_denom
Definition: V0Validator.h:135
float LamCandR
Definition: V0Validator.h:98
MonitorElement * lamTkEffVsR
Definition: V0Validator.h:150
MonitorElement * lamFakeVsPt
Definition: V0Validator.h:155
MonitorElement * ksTkFakeVsEta
Definition: V0Validator.h:117
MonitorElement * ksFakeVsR_denom
Definition: V0Validator.h:133
MonitorElement * ksFakeVsEta_num
Definition: V0Validator.h:127
unsigned int LamPiCandStatus[2]
Definition: V0Validator.h:100
MonitorElement * lamEffVsEta_num
Definition: V0Validator.h:161
MonitorElement * lamFakeVsPt_denom
Definition: V0Validator.h:142
float KsGenX
Definition: V0Validator.h:97
MonitorElement * ksEffVsR_num
Definition: V0Validator.h:120
MonitorElement * ksFakeVsPt_num
Definition: V0Validator.h:128
MonitorElement * lamFakeVsR_denom
Definition: V0Validator.h:140
MonitorElement * lamEffVsPt_denom
Definition: V0Validator.h:145
unsigned int K0sPiCandStatus[2]
Definition: V0Validator.h:100
MonitorElement * lamEffVsPt_num
Definition: V0Validator.h:162
float KsGenY
Definition: V0Validator.h:97
MonitorElement * lamTkFakeVsR
Definition: V0Validator.h:156
MonitorElement * lamFakeVsR
Definition: V0Validator.h:153
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition: V0Validator.cc:275
MonitorElement * ksFakeVsEta
Definition: V0Validator.h:114
MonitorElement * lamZResolution
Definition: V0Validator.h:179
unsigned int LamPiEff[2]
Definition: V0Validator.h:100
MonitorElement * lamFakeDauRadDist
Definition: V0Validator.h:198
MonitorElement * lamTkEffVsEta
Definition: V0Validator.h:151
MonitorElement * lamEffVsR
Definition: V0Validator.h:147
MonitorElement * ksFakeVsEta_denom
Definition: V0Validator.h:134
edm::EDGetTokenT< TrackingParticleCollection > trackingParticleCollectionToken_
Definition: V0Validator.h:205
MonitorElement * fakeLamMass
Definition: V0Validator.h:190
MonitorElement * ksFakeDauRadDist
Definition: V0Validator.h:197
MonitorElement * lamTkFakeVsEta_num
Definition: V0Validator.h:170
MonitorElement * lamTkFakeVsPt
Definition: V0Validator.h:158
MonitorElement * ksEffVsPt_denom
Definition: V0Validator.h:138
int lamCandFound
Definition: V0Validator.h:104
MonitorElement * ksTkFakeVsEta_num
Definition: V0Validator.h:130
int k0sCandFound
Definition: V0Validator.h:104
int noTPforLamCand
Definition: V0Validator.h:104
MonitorElement * ksTkEffVsR_num
Definition: V0Validator.h:123
MonitorElement * lamFakeVsEta_denom
Definition: V0Validator.h:141
MonitorElement * lamXResolution
Definition: V0Validator.h:177
MonitorElement * ksEffVsEta_denom
Definition: V0Validator.h:137
MonitorElement * lamTkEffVsPt
Definition: V0Validator.h:152
float K0sCandEta
Definition: V0Validator.h:98
MonitorElement * goodKsMass
Definition: V0Validator.h:189
float LamGenpT
Definition: V0Validator.h:96
float LamGenY
Definition: V0Validator.h:97
int realLamFound
Definition: V0Validator.h:103
edm::EDGetTokenT< reco::TrackToTrackingParticleAssociator > recoTrackToTrackingParticleAssociator_Token_
Definition: V0Validator.h:211
MonitorElement * fakeKsMass
Definition: V0Validator.h:188
edm::EDGetTokenT< std::vector< reco::Vertex > > vec_recoVertex_Token_
Definition: V0Validator.h:209
MonitorElement * ksTkEffVsPt
Definition: V0Validator.h:112
MonitorElement * goodLamMass
Definition: V0Validator.h:191
MonitorElement * ksFakeVsPt
Definition: V0Validator.h:115
unsigned int LamGenStatus
Definition: V0Validator.h:99
edm::EDGetTokenT< edm::SimTrackContainer > edmSimTrackContainerToken_
Definition: V0Validator.h:207
MonitorElement * lamTkFakeVsEta
Definition: V0Validator.h:157
unsigned int K0sGenStatus
Definition: V0Validator.h:99
MonitorElement * ksMassAll
Definition: V0Validator.h:193
MonitorElement * lamTkEffVsR_num
Definition: V0Validator.h:163
MonitorElement * ksTkEffVsR
Definition: V0Validator.h:110
MonitorElement * nKs
Definition: V0Validator.h:182
MonitorElement * lamTkEffVsEta_num
Definition: V0Validator.h:164
int noTPforK0sCand
Definition: V0Validator.h:104
float K0sGenEta
Definition: V0Validator.h:96
MonitorElement * ksXResolution
Definition: V0Validator.h:173
float K0sCandpT
Definition: V0Validator.h:98
float K0sGenpT
Definition: V0Validator.h:96
MonitorElement * lamEffVsEta_denom
Definition: V0Validator.h:144
MonitorElement * lamFakeVsEta
Definition: V0Validator.h:154
MonitorElement * ksAbsoluteDistResolution
Definition: V0Validator.h:176
edm::EDGetTokenT< TrackingParticleCollection > trackingParticleCollection_Eff_Token_
Definition: V0Validator.h:205
MonitorElement * ksCandStatus
Definition: V0Validator.h:185
MonitorElement * lamCandStatus
Definition: V0Validator.h:186
MonitorElement * lamEffVsEta
Definition: V0Validator.h:148
float LamGenX
Definition: V0Validator.h:97
MonitorElement * lamTkFakeVsPt_num
Definition: V0Validator.h:171
MonitorElement * lamFakeVsEta_num
Definition: V0Validator.h:167
std::string theDQMRootFileName
Definition: V0Validator.h:201
MonitorElement * ksTkEffVsPt_num
Definition: V0Validator.h:125
MonitorElement * lamFakeVsPt_num
Definition: V0Validator.h:168
MonitorElement * lamMassAll
Definition: V0Validator.h:194
float K0sCandR
Definition: V0Validator.h:98
MonitorElement * lamFakeVsR_num
Definition: V0Validator.h:166
edm::EDGetTokenT< edm::View< reco::Track > > edmView_recoTrack_Token_
Definition: V0Validator.h:206
float LamGenEta
Definition: V0Validator.h:96
float LamCandEta
Definition: V0Validator.h:98
MonitorElement * lamEffVsR_num
Definition: V0Validator.h:160
MonitorElement * ksFakeVsR
Definition: V0Validator.h:113
MonitorElement * ksEffVsEta
Definition: V0Validator.h:108
MonitorElement * lamTkEffVsPt_num
Definition: V0Validator.h:165
edm::EDGetTokenT< reco::RecoToSimCollection > recoRecoToSimCollectionToken_
Definition: V0Validator.h:203
edm::EDGetTokenT< reco::VertexCompositeCandidateCollection > recoVertexCompositeCandidateCollection_lambda_Token_
Definition: V0Validator.h:210
MonitorElement * lamAbsoluteDistResolution
Definition: V0Validator.h:180
float LamGenZ
Definition: V0Validator.h:97
int lamTracksFound
Definition: V0Validator.h:104
MonitorElement * ksZResolution
Definition: V0Validator.h:175
float KsGenZ
Definition: V0Validator.h:97
unsigned int LamCandStatus
Definition: V0Validator.h:99
MonitorElement * ksEffVsPt_num
Definition: V0Validator.h:122
MonitorElement * ksTkEffVsEta_num
Definition: V0Validator.h:124
MonitorElement * lamEffVsPt
Definition: V0Validator.h:149
MonitorElement * ksEffVsR_denom
Definition: V0Validator.h:136
MonitorElement * ksTkFakeVsPt_num
Definition: V0Validator.h:131
int realK0sFoundEff
Definition: V0Validator.h:103
MonitorElement * ksTkEffVsEta
Definition: V0Validator.h:111
MonitorElement * ksFakeVsR_num
Definition: V0Validator.h:126
MonitorElement * ksEffVsEta_num
Definition: V0Validator.h:121
MonitorElement * lamYResolution
Definition: V0Validator.h:178
std::string dirName
Definition: V0Validator.h:202
MonitorElement * ksEffVsPt
Definition: V0Validator.h:109
unsigned int K0sPiEff[2]
Definition: V0Validator.h:100
int k0sTracksFound
Definition: V0Validator.h:104
int realLamFoundEff
Definition: V0Validator.h:103
float K0sGenR
Definition: V0Validator.h:96
MonitorElement * ksTkFakeVsR
Definition: V0Validator.h:116
MonitorElement * ksYResolution
Definition: V0Validator.h:174
MonitorElement * lamEffVsR_denom
Definition: V0Validator.h:143
Definition: Run.h:41
int realK0sFound
Definition: V0Validator.h:103
float LamCandpT
Definition: V0Validator.h:98
MonitorElement * ksTkFakeVsR_num
Definition: V0Validator.h:129