CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TkConvValidator.h
Go to the documentation of this file.
1 #ifndef TkConvValidator_H
2 #define TkConvValidator_H
22 
23 //
24 //DQM services
29 
30 //
31 #include <map>
32 #include <vector>
33 
34 // forward declarations
35 class TFile;
36 class TH1F;
37 class TH2F;
38 class TProfile;
39 class TTree;
40 class SimVertex;
41 class SimTrack;
52 {
53 
54  public:
55 
56  //
57  explicit TkConvValidator( const edm::ParameterSet& ) ;
58  virtual ~TkConvValidator();
59 
60 
61  virtual void analyze( const edm::Event&, const edm::EventSetup& ) ;
62  void bookHistograms( DQMStore::IBooker&, edm::Run const &, edm::EventSetup const &) override;
63  virtual void dqmBeginRun( edm::Run const & r, edm::EventSetup const & theEventSetup) ;
64  virtual void endRun (edm::Run& r, edm::EventSetup const & es);
65  virtual void endJob() ;
66 
67  private:
68  //
69 
70  float phiNormalization( float& a);
71  float etaTransformation( float a, float b);
73 
74 
78 
80  int nEvt_;
81  int nEntry_;
82  int nSimConv_[2];
83  int nMatched_;
84  int nRecConv_;
87 
89 
93 
97 
99 
103 
112 
114 
116 
119 
121 
122  double minPhoEtCut_;
125  double trkPtLow_;
126  double lip_;
128  double bcEtLow_;
133  double trkPtSumCut_;
144  double minProb_;
146  double minLxy_;
147 
148 
150  double mcPhi_;
151  double mcEta_;
152  double mcConvPt_;
153  double mcConvR_;
154  double mcConvZ_;
155  double mcConvY_;
156  double mcConvX_;
157  double mcConvPhi_;
158  double mcConvEta_;
159  double mcJetEta_;
160  double mcJetPhi_;
161 
163  //std::vector<TrackingParticleRef> theConvTP_;
164 
173 
174  double simMinPt_;
175  double simMaxPt_;
176 
178  double recMinPt_;
179  double recMaxPt_;
180 
181  //
182  //
185  //
188 
191 
192 
205  // Numerator for double-counting quantification
210 
211  // Denominators for conversion fake rate
213  // Numerators for conversion fake rate
215 
216 
227 
230 
231 
234 
236 
238 
244 
250 
252 
258 
260 
261 
262 
267 
274 
279 
284 
285 
288 
291 
296 
297 
300 
302 
303 
305 
306 
307 
312 
323 
324 
325 
338 
340 
346 
348 
350 
354 
355 };
356 
357 
358 
359 
360 #endif
MonitorElement * h2_DPhiTracksAtVtxVsR_
MonitorElement * h_SimRecConvOneMTracks_[5]
MonitorElement * h2_dzPVVsR_
MonitorElement * h_maxDlClosestHitToVtx_[3][3]
MonitorElement * h_convPt_[3][3]
MonitorElement * p_convVtxdYVsY_
std::string dqmpath_
MonitorElement * h2_DCotTracksVsR_
MonitorElement * h_VisSimConvLarge_
MonitorElement * h_convVtxdR_
edm::ESHandle< CaloTopology > theCaloTopo_
std::string conversionTrackProducer_
MonitorElement * h2_DCotTracksVsEta_
MonitorElement * h_simConvVtxRvsZ_[4]
virtual void endRun(edm::Run &r, edm::EventSetup const &es)
MonitorElement * h_convZplot_
MonitorElement * h_nSimConv_[2]
MonitorElement * h_convSCdPhi_[3][3]
MonitorElement * h_SimConvTwoMTracksAndVtxPGT0_[5]
MonitorElement * h_SimConvOneMTracks_[5]
MonitorElement * h_SimConvTwoMTracksAndVtxPGT0005_[5]
std::string photonCollection_
MonitorElement * h_DCotTracks_[3][3]
MonitorElement * nHitsVsEta_[3]
MonitorElement * h_lxybs_[3][3]
edm::RefVector< TrackingParticleCollection > theConvTP_
MonitorElement * h_trailNHitsBeforeVtx_[3][3]
math::XYZVector recalculateMomentumAtFittedVertex(const MagneticField &mf, const TrackerGeometry &trackerGeom, const edm::RefToBase< reco::Track > &tk, const reco::Vertex &vtx)
MonitorElement * p_Chi2VsR_[3]
MonitorElement * h_convVtxYvsX_zoom_[2]
edm::EDGetTokenT< reco::PhotonCollection > photonCollectionPr_Token_
MonitorElement * p_DCotTracksVsR_
MonitorElement * h_tkChi2_[3]
MonitorElement * h_SimConvTwoMTracksAndVtxPGT01_[5]
MonitorElement * h_convVtxdX_
virtual void analyze(const edm::Event &, const edm::EventSetup &)
MonitorElement * h_convPtRes_[3]
MonitorElement * h_convEtaMatchSC_[3][3]
MonitorElement * h2_Chi2VsEta_[3]
MonitorElement * p_TkPtPull_[3]
MonitorElement * h_SimRecConvTwoMTracks_[5]
MonitorElement * h_vtxChi2Prob_[3][3]
MonitorElement * h_convVtxdX_endcap_
MonitorElement * h_convVtxdR_endcap_
edm::EDGetTokenT< reco::VertexCollection > offline_pvToken_
MonitorElement * h_zPVFromTracks_[2]
MonitorElement * h_convVtxdY_barrel_
MonitorElement * h_tkChi2Large_[3]
edm::ParameterSet parameters_
edm::EDGetTokenT< edm::SimTrackContainer > g4_simTk_Token_
MonitorElement * p_DCotTracksVsEta_
edm::EDGetTokenT< edm::SimVertexContainer > g4_simVtx_Token_
MonitorElement * h_maxDlClosestHitToVtxSig_[3][3]
MonitorElement * h_convVtxdR_barrel_
MonitorElement * h_leadExpectedHitsInner_[3][3]
MonitorElement * h_convSCdEta_[3][3]
MonitorElement * h_sumNHitsBeforeVtx_[3][3]
virtual ~TkConvValidator()
MonitorElement * h_dzPVFromTracks_[2]
MonitorElement * h_nConv_[3][3]
info per conversion
edm::ESHandle< CaloGeometry > theCaloGeom_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * h_convVtxdY_
MonitorElement * p2_effRZ_
MonitorElement * p_DPhiTracksAtVtxVsEta_
MonitorElement * h_deltaExpectedHitsInner_[3][3]
MonitorElement * h_convVtxdEta_
edm::EDGetTokenT< reco::BeamSpot > beamspotToken_
edm::EDGetTokenT< edm::HepMCProduct > hepMC_Token_
MonitorElement * h_convVtxYvsX_
TrackAssociatorBase * theTrackAssociator_
MonitorElement * p_convVtxdZVsR_
MonitorElement * p_convVtxdRVsR_
MonitorElement * h_convR_[3][3]
float etaTransformation(float a, float b)
double recMinPt_
Global variables for reco Photon.
float phiNormalization(float &a)
std::string conversionCollection_
MonitorElement * h_VisSimConv_[6]
MonitorElement * h2_photonPtRecVsPtSim_
MonitorElement * h2_DPhiTracksAtEcalVsR_
MonitorElement * h_EoverPTracks_[3][3]
edm::ESHandle< MagneticField > theMF_
PhotonMCTruthFinder * thePhotonMCTruthFinder_
MonitorElement * h_leadNHitsBeforeVtx_[3][3]
edm::EDGetTokenT< TrackingParticleCollection > tpSelForEff_Token_
edm::EDGetTokenT< reco::ConversionCollection > conversionCollectionPr_Token_
MonitorElement * h_distMinAppTracks_[3][3]
MonitorElement * p_DPhiTracksAtVtxVsR_
TkConvValidator(const edm::ParameterSet &)
MonitorElement * h_SimConvEtaPix_[2]
MonitorElement * h_convVtxdX_barrel_
MonitorElement * h_DEtaTracksAtEcal_[3][3]
MonitorElement * p_nHitsVsEta_[3]
MonitorElement * h_simTkPt_
MonitorElement * p_convVtxdXVsX_
MonitorElement * h_convVtxdY_endcap_
MonitorElement * h_convEta_[3][3]
edm::EDGetTokenT< TrackingParticleCollection > tpSelForFake_Token_
MonitorElement * h2_DPhiTracksAtEcalVsEta_
virtual void dqmBeginRun(edm::Run const &r, edm::EventSetup const &theEventSetup)
MonitorElement * h_convVtxRvsZ_zoom_[2]
MonitorElement * h_simConvVtxYvsX_
MonitorElement * h_DPhiTracksAtEcal_[3][3]
MonitorElement * h_convEta2_[3][3]
MonitorElement * h_nHitsBeforeVtx_[3]
MonitorElement * p2_convVtxdRVsRZ_
MonitorElement * p_Chi2VsEta_[3]
MonitorElement * nHits_[3]
MonitorElement * h_SimConvTwoTracks_[5]
MonitorElement * h_RecoConvTwoMTracks_[5]
MonitorElement * h_convVtxdZ_
MonitorElement * h_SimConvOneTracks_[5]
Numerator for efficiencies.
MonitorElement * h_convVtxRvsZ_[3]
MonitorElement * h2_DPhiTracksAtVtxVsEta_
MonitorElement * h_convPhi_[3][3]
MonitorElement * p_DPhiTracksAtEcalVsR_
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:30
MonitorElement * h_convVtxdZ_barrel_
MonitorElement * h2_convVtxRrecVsTrue_
virtual void endJob()
double b
Definition: hdecay.h:120
MonitorElement * h_AllSimConv_[5]
Denominator for efficiencies.
MonitorElement * h_convRplot_
MonitorElement * p_nHitsVsR_[3]
MonitorElement * p_dzPVVsR_
MonitorElement * h2_Chi2VsR_[3]
MonitorElement * h_SimRecConvOneTracks_[5]
std::string conversionCollectionProducer_
std::string fName_
MonitorElement * h_convVtxdPhi_
MonitorElement * h_invMass_[3][3]
MonitorElement * h_convZ_[3][3]
MonitorElement * h_dlClosestHitToVtxSig_[3]
MonitorElement * h2_PtRecVsPtSim_[3]
std::string photonCollectionProducer_
MonitorElement * h_match_
double mcPhi_
global variable for the MC photon
MonitorElement * p_convVtxdZVsZ_
MonitorElement * h2_TkPtPull_[3]
double a
Definition: hdecay.h:121
MonitorElement * h_RecoConvTwoTracks_[5]
edm::InputTag label_tp_
MonitorElement * h_convVtxdZ_endcap_
MonitorElement * h2_convVtxdRVsR_
MonitorElement * h_DPhiTracksAtVtx_[3][3]
MonitorElement * nHitsVsR_[3]
MonitorElement * p_DPhiTracksAtEcalVsEta_
MonitorElement * h_simTkEta_
MonitorElement * h_TkPtPull_[3]
MonitorElement * p2_convVtxdZVsRZ_
MonitorElement * h_SimRecConvTwoTracks_[5]
MonitorElement * h_SimConvTwoMTracks_[5]
MonitorElement * p_convVtxdRVsEta_
MonitorElement * h_dlClosestHitToVtx_[3]
MonitorElement * h_TkD0_[3]
MonitorElement * h2_convVtxdRVsEta_
edm::EDGetTokenT< reco::GenJetCollection > genjets_Token_
MonitorElement * h_nSharedHits_[3][3]
Definition: Run.h:41
MonitorElement * h_maxNHitsBeforeVtx_[3][3]