CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes
TrackToTrackComparisonHists Class Reference

#include <TrackToTrackComparisonHists.h>

Inheritance diagram for TrackToTrackComparisonHists:
DQMEDAnalyzer edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

Classes

struct  generalME
 
struct  matchingME
 

Public Types

typedef std::vector< std::pair< int, std::map< double, int > > > idx2idxByDoubleColl
 
- Public Types inherited from DQMEDAnalyzer
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 

Public Member Functions

 TrackToTrackComparisonHists (const edm::ParameterSet &)
 
 ~TrackToTrackComparisonHists () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
void beginStream (edm::StreamID id) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
 EDProducer ()=default
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
static void fillHistoPSetDescription (edm::ParameterSetDescription &pset)
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static void globalEndJob (DQMEDAnalyzerGlobalCache const *)
 
static void globalEndLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup, LuminosityBlockContext const *context)
 
static void globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup, RunContext const *context)
 
static std::unique_ptr< DQMEDAnalyzerGlobalCacheinitializeGlobalCache (edm::ParameterSet const &)
 

Protected Member Functions

void analyze (const edm::Event &iEvent, const edm::EventSetup &iSetup) override
 
void beginJob (const edm::EventSetup &iSetup)
 
void book_generic_tracks_histos (DQMStore::IBooker &ibooker, generalME &mes, TString label, std::string &dir)
 
void book_matching_tracks_histos (DQMStore::IBooker &ibooker, matchingME &mes, TString label, std::string &dir)
 
void bookHistograms (DQMStore::IBooker &iBooker, edm::Run const &iRun, edm::EventSetup const &iSetup) override
 
void bookHistos (DQMStore::IBooker &ibooker, generalME &mes, TString label, std::string &dir)
 
void fill_generic_tracks_histos (generalME &mes, reco::Track *trk, reco::BeamSpot *bs, reco::Vertex *pv, bool requirePlateau=true)
 
void fill_matching_tracks_histos (matchingME &mes, reco::Track *mon, reco::Track *ref, reco::BeamSpot *bs, reco::Vertex *pv)
 
void fillMap (reco::TrackCollection tracks1, reco::TrackCollection tracks2, idx2idxByDoubleColl &map, float dRMin)
 
void initialize_parameter (const edm::ParameterSet &iConfig)
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 

Protected Attributes

DQMStoredqmStore_
 
edm::EDGetTokenT< reco::BeamSpotmonitoredBSToken_
 
edm::EDGetTokenT< reco::VertexCollectionmonitoredPVToken_
 
edm::InputTag monitoredTrackInputTag_
 
edm::EDGetTokenT< reco::TrackCollectionmonitoredTrackToken_
 
edm::EDGetTokenT< reco::BeamSpotreferenceBSToken_
 
edm::EDGetTokenT< reco::VertexCollectionreferencePVToken_
 
edm::InputTag referenceTrackInputTag_
 
edm::EDGetTokenT< reco::TrackCollectionreferenceTrackToken_
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 

Private Attributes

double dRmin_
 
unsigned int Dxy_nbin
 
double Dxy_rangeMax
 
double Dxy_rangeMin
 
double dxyCutForPlateau_
 
unsigned int dxyRes_nbin
 
double dxyRes_rangeMax
 
double dxyRes_rangeMin
 
unsigned int Dz_nbin
 
double Dz_rangeMax
 
double Dz_rangeMin
 
unsigned int dzRes_nbin
 
double dzRes_rangeMax
 
double dzRes_rangeMin
 
double dzWRTPvCut_
 
unsigned int Eta_nbin
 
double Eta_rangeMax
 
double Eta_rangeMin
 
unsigned int etaRes_nbin
 
double etaRes_rangeMax
 
double etaRes_rangeMin
 
std::unique_ptr< GenericTriggerEventFlaggenTriggerEventFlag_
 
bool hltPathsAreValid_ = false
 
generalME matchedReferenceTracksMEs_
 
matchingME matchTracksMEs_
 
generalME monitoredTracksMEs_
 
unsigned int Phi_nbin
 
double Phi_rangeMax
 
double Phi_rangeMin
 
unsigned int phiRes_nbin
 
double phiRes_rangeMax
 
double phiRes_rangeMin
 
unsigned int Pt_nbin
 
double Pt_rangeMax
 
double Pt_rangeMin
 
double pTCutForPlateau_
 
unsigned int ptRes_nbin
 
double ptRes_rangeMax
 
double ptRes_rangeMin
 
generalME referenceTracksMEs_
 
bool requireValidHLTPaths_
 
std::string topDirName_
 
generalME unMatchedMonitoredTracksMEs_
 

Detailed Description

Definition at line 44 of file TrackToTrackComparisonHists.h.

Member Typedef Documentation

◆ idx2idxByDoubleColl

typedef std::vector<std::pair<int, std::map<double, int> > > TrackToTrackComparisonHists::idx2idxByDoubleColl

Definition at line 59 of file TrackToTrackComparisonHists.h.

Constructor & Destructor Documentation

◆ TrackToTrackComparisonHists()

TrackToTrackComparisonHists::TrackToTrackComparisonHists ( const edm::ParameterSet iConfig)
explicit

Definition at line 16 of file TrackToTrackComparisonHists.cc.

17  : monitoredTrackInputTag_(iConfig.getParameter<edm::InputTag>("monitoredTrack")),
18  referenceTrackInputTag_(iConfig.getParameter<edm::InputTag>("referenceTrack")),
19  topDirName_(iConfig.getParameter<std::string>("topDirName")),
20  dRmin_(iConfig.getParameter<double>("dRmin")),
21  pTCutForPlateau_(iConfig.getParameter<double>("pTCutForPlateau")),
22  dxyCutForPlateau_(iConfig.getParameter<double>("dxyCutForPlateau")),
23  dzWRTPvCut_(iConfig.getParameter<double>("dzWRTPvCut")),
24  requireValidHLTPaths_(iConfig.getParameter<bool>("requireValidHLTPaths")),
26  iConfig.getParameter<edm::ParameterSet>("genericTriggerEventPSet"), consumesCollector(), *this))
27 
28 {
29  initialize_parameter(iConfig);
30 
31  //now do what ever initialization is needed
32  monitoredTrackToken_ = consumes<reco::TrackCollection>(monitoredTrackInputTag_);
33  referenceTrackToken_ = consumes<reco::TrackCollection>(referenceTrackInputTag_);
34  monitoredBSToken_ = consumes<reco::BeamSpot>(iConfig.getParameter<edm::InputTag>("monitoredBeamSpot"));
35  referenceBSToken_ = consumes<reco::BeamSpot>(iConfig.getParameter<edm::InputTag>("referenceBeamSpot"));
36  monitoredPVToken_ = consumes<reco::VertexCollection>(iConfig.getParameter<edm::InputTag>("monitoredPrimaryVertices"));
37  referencePVToken_ = consumes<reco::VertexCollection>(iConfig.getParameter<edm::InputTag>("referencePrimaryVertices"));
38 
41 
44 
45  matchTracksMEs_.label = "matches";
46 }

References edm::ParameterSet::getParameter(), initialize_parameter(), edm::InputTag::label(), TrackToTrackComparisonHists::generalME::label, TrackToTrackComparisonHists::matchingME::label, matchedReferenceTracksMEs_, matchTracksMEs_, monitoredBSToken_, monitoredPVToken_, monitoredTrackInputTag_, monitoredTracksMEs_, monitoredTrackToken_, referenceBSToken_, referencePVToken_, referenceTrackInputTag_, referenceTracksMEs_, referenceTrackToken_, and unMatchedMonitoredTracksMEs_.

◆ ~TrackToTrackComparisonHists()

TrackToTrackComparisonHists::~TrackToTrackComparisonHists ( )
override

Definition at line 48 of file TrackToTrackComparisonHists.cc.

48  {
50  genTriggerEventFlag_.reset();
51 }

References genTriggerEventFlag_.

Member Function Documentation

◆ analyze()

void TrackToTrackComparisonHists::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprotectedvirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 55 of file TrackToTrackComparisonHists.cc.

55  {
56  LogDebug("TrackToTrackComparisonHists")
57  << " requireValidHLTPaths_ " << requireValidHLTPaths_ << " hltPathsAreValid_ " << hltPathsAreValid_ << "\n";
58  // if valid HLT paths are required,
59  // analyze event only if paths are valid
61  return;
62  }
63 
64  LogDebug("TrackToTrackComparisonHists") << " genTriggerEventFlag_->on() " << genTriggerEventFlag_->on()
65  << " accept: " << genTriggerEventFlag_->accept(iEvent, iSetup) << "\n";
66  // Filter out events if Trigger Filtering is requested
67  if (genTriggerEventFlag_->on() && !genTriggerEventFlag_->accept(iEvent, iSetup)) {
68  return;
69  }
70 
71  //
72  // Get Reference Track Info
73  //
74  edm::Handle<reco::TrackCollection> referenceTracksHandle;
75  iEvent.getByToken(referenceTrackToken_, referenceTracksHandle);
76  if (!referenceTracksHandle.isValid()) {
77  edm::LogError("TrackToTrackComparisonHists") << "referenceTracksHandle not found, skipping event";
78  return;
79  }
80  reco::TrackCollection referenceTracks = *referenceTracksHandle;
81 
82  edm::Handle<reco::BeamSpot> referenceBSHandle;
83  iEvent.getByToken(referenceBSToken_, referenceBSHandle);
84  if (!referenceBSHandle.isValid()) {
85  edm::LogError("TrackToTrackComparisonHists") << "referenceBSHandle not found, skipping event";
86  return;
87  }
88  reco::BeamSpot referenceBS = *referenceBSHandle;
89 
90  edm::Handle<reco::VertexCollection> referencePVHandle;
91  iEvent.getByToken(referencePVToken_, referencePVHandle);
92  if (!referencePVHandle.isValid()) {
93  edm::LogError("TrackToTrackComparisonHists") << "referencePVHandle not found, skipping event";
94  return;
95  }
96  if (referencePVHandle->empty()) {
97  edm::LogInfo("TrackToTrackComparisonHists") << "referencePVHandle->size is 0 ";
98  return;
99  }
100  reco::Vertex referencePV = referencePVHandle->at(0);
101 
102  //
103  // Get Monitored Track Info
104  //
105  edm::Handle<reco::TrackCollection> monitoredTracksHandle;
106  iEvent.getByToken(monitoredTrackToken_, monitoredTracksHandle);
107  if (!monitoredTracksHandle.isValid()) {
108  edm::LogError("TrackToTrackComparisonHists") << "monitoredTracksHandle not found, skipping event";
109  return;
110  }
111  reco::TrackCollection monitoredTracks = *monitoredTracksHandle;
112 
113  edm::Handle<reco::BeamSpot> monitoredBSHandle;
114  iEvent.getByToken(monitoredBSToken_, monitoredBSHandle);
115  if (!monitoredTracksHandle.isValid()) {
116  edm::LogError("TrackToTrackComparisonHists") << "monitoredBSHandle not found, skipping event";
117  return;
118  }
119  reco::BeamSpot monitoredBS = *monitoredBSHandle;
120 
121  edm::Handle<reco::VertexCollection> monitoredPVHandle;
122  iEvent.getByToken(monitoredPVToken_, monitoredPVHandle);
123  if (!monitoredTracksHandle.isValid()) {
124  edm::LogError("TrackToTrackComparisonHists") << "monitoredPVHandle not found, skipping event";
125  return;
126  }
127  if (monitoredPVHandle->empty()) {
128  edm::LogInfo("TrackToTrackComparisonHists") << "monitoredPVHandle->size is 0 ";
129  return;
130  }
131  reco::Vertex monitoredPV = monitoredPVHandle->at(0);
132 
133  edm::LogInfo("TrackToTrackComparisonHists")
134  << "analyzing " << monitoredTrackInputTag_.process() << ":" << monitoredTrackInputTag_.label() << ":"
135  << monitoredTrackInputTag_.instance() << " w.r.t. " << referenceTrackInputTag_.process() << ":"
137 
138  //
139  // Build the dR maps
140  //
141  idx2idxByDoubleColl monitored2referenceColl;
142  fillMap(monitoredTracks, referenceTracks, monitored2referenceColl, dRmin_);
143 
144  idx2idxByDoubleColl reference2monitoredColl;
145  fillMap(referenceTracks, monitoredTracks, reference2monitoredColl, dRmin_);
146 
147  unsigned int nReferenceTracks(0); // Counts the number of refernce tracks
148  unsigned int nMatchedReferenceTracks(0); // Counts the number of matched refernce tracks
149  unsigned int nMonitoredTracks(0); // Counts the number of monitored tracks
150  unsigned int nUnmatchedMonitoredTracks(0); // Counts the number of unmatched monitored tracks
151 
152  //
153  // loop over reference tracks
154  //
155  LogDebug("TrackToTrackComparisonHists") << "\n# of tracks (reference): " << referenceTracks.size() << "\n";
156  for (idx2idxByDoubleColl::const_iterator pItr = reference2monitoredColl.begin(), eItr = reference2monitoredColl.end();
157  pItr != eItr;
158  ++pItr) {
159  nReferenceTracks++;
160  int trackIdx = pItr->first;
161  reco::Track track = referenceTracks.at(trackIdx);
162 
163  float dzWRTpv = track.dz(referencePV.position());
164  if (fabs(dzWRTpv) > dzWRTPvCut_)
165  continue;
166 
167  fill_generic_tracks_histos(*&referenceTracksMEs_, &track, &referenceBS, &referencePV);
168 
169  std::map<double, int> trackDRmap = pItr->second;
170  if (trackDRmap.empty()) {
173  continue;
174  }
175 
176  double dRmin = trackDRmap.begin()->first;
177  (referenceTracksMEs_.h_dRmin)->Fill(dRmin);
179 
180  bool matched = false;
181  if (dRmin < dRmin_)
182  matched = true;
183 
184  if (matched) {
185  nMatchedReferenceTracks++;
186  fill_generic_tracks_histos(*&matchedReferenceTracksMEs_, &track, &referenceBS, &referencePV);
189 
190  int matchedTrackIndex = trackDRmap[dRmin];
191  reco::Track matchedTrack = monitoredTracks.at(matchedTrackIndex);
192  fill_matching_tracks_histos(*&matchTracksMEs_, &track, &matchedTrack, &referenceBS, &referencePV);
193  }
194 
195  } // Over reference tracks
196 
197  //
198  // loop over monitoed tracks
199  //
200  LogDebug("TrackToTrackComparisonHists") << "\n# of tracks (monitored): " << monitoredTracks.size() << "\n";
201  for (idx2idxByDoubleColl::const_iterator pItr = monitored2referenceColl.begin(), eItr = monitored2referenceColl.end();
202  pItr != eItr;
203  ++pItr) {
204  nMonitoredTracks++;
205  int trackIdx = pItr->first;
206  reco::Track track = monitoredTracks.at(trackIdx);
207 
208  float dzWRTpv = track.dz(monitoredPV.position());
209  if (fabs(dzWRTpv) > dzWRTPvCut_)
210  continue;
211 
212  fill_generic_tracks_histos(*&monitoredTracksMEs_, &track, &monitoredBS, &monitoredPV);
213 
214  std::map<double, int> trackDRmap = pItr->second;
215  if (trackDRmap.empty()) {
218  continue;
219  }
220 
221  double dRmin = trackDRmap.begin()->first;
222  (monitoredTracksMEs_.h_dRmin)->Fill(dRmin);
224 
225  bool matched = false;
226  if (dRmin < dRmin_)
227  matched = true;
228 
229  if (!matched) {
230  nUnmatchedMonitoredTracks++;
231  fill_generic_tracks_histos(*&unMatchedMonitoredTracksMEs_, &track, &monitoredBS, &monitoredPV);
234  }
235 
236  } // over monitoed tracks
237 
238  edm::LogInfo("TrackToTrackComparisonHists")
239  << "Total reference tracks: " << nReferenceTracks << "\n"
240  << "Total matched reference tracks: " << nMatchedReferenceTracks << "\n"
241  << "Total monitored tracks: " << nMonitoredTracks << "\n"
242  << "Total unMatched monitored tracks: " << nUnmatchedMonitoredTracks << "\n";
243 }

References dRmin_, dzWRTPvCut_, HcalObjRepresent::Fill(), fill_generic_tracks_histos(), fill_matching_tracks_histos(), fillMap(), genTriggerEventFlag_, TrackToTrackComparisonHists::generalME::h_dRmin, TrackToTrackComparisonHists::generalME::h_dRmin_l, hltPathsAreValid_, iEvent, edm::InputTag::instance(), edm::HandleBase::isValid(), edm::InputTag::label(), LogDebug, muonTagProbeFilters_cff::matched, matchedReferenceTracksMEs_, matchTracksMEs_, monitoredBSToken_, monitoredPVToken_, monitoredTrackInputTag_, monitoredTracksMEs_, monitoredTrackToken_, reco::Vertex::position(), edm::InputTag::process(), referenceBSToken_, referencePVToken_, referenceTrackInputTag_, referenceTracksMEs_, referenceTrackToken_, requireValidHLTPaths_, HLT_FULL_cff::track, and unMatchedMonitoredTracksMEs_.

◆ beginJob()

void TrackToTrackComparisonHists::beginJob ( const edm::EventSetup iSetup)
protected

Definition at line 53 of file TrackToTrackComparisonHists.cc.

53 {}

◆ book_generic_tracks_histos()

void TrackToTrackComparisonHists::book_generic_tracks_histos ( DQMStore::IBooker ibooker,
generalME mes,
TString  label,
std::string &  dir 
)
protected

Definition at line 365 of file TrackToTrackComparisonHists.cc.

368  {
369  ibooker.cd();
370  ibooker.setCurrentFolder(dir);
371  (mes.h_pt) = ibooker.book1D(label + "_pt", "track p_{T}", Pt_nbin, Pt_rangeMin, Pt_rangeMax);
372  (mes.h_eta) = ibooker.book1D(label + "_eta", "track pseudorapidity", Eta_nbin, Eta_rangeMin, Eta_rangeMax);
373  (mes.h_phi) = ibooker.book1D(label + "_phi", "track #phi", Phi_nbin, Phi_rangeMin, Phi_rangeMax);
374  (mes.h_dxy) =
375  ibooker.book1D(label + "_dxy", "track transverse dca to beam spot", Dxy_nbin, Dxy_rangeMin, Dxy_rangeMax);
376  (mes.h_dz) = ibooker.book1D(label + "_dz", "track longitudinal dca to beam spot", Dz_nbin, Dz_rangeMin, Dz_rangeMax);
377  (mes.h_dxyWRTpv) = ibooker.book1D(
378  label + "_dxyWRTpv", "track transverse dca to primary vertex", Dxy_nbin, Dxy_rangeMin, Dxy_rangeMax);
379  (mes.h_dzWRTpv) = ibooker.book1D(
380  label + "_dzWRTpv", "track longitudinal dca to primary vertex", Dz_nbin, 0.1 * Dz_rangeMin, 0.1 * Dz_rangeMax);
381  (mes.h_charge) = ibooker.book1D(label + "_charge", "track charge", 5, -2, 2);
382  (mes.h_hits) = ibooker.book1D(label + "_hits", "track number of hits", 35, -0.5, 34.5);
383  (mes.h_dRmin) = ibooker.book1D(label + "_dRmin", "track min dR", 100, 0., 0.01);
384  (mes.h_dRmin_l) = ibooker.book1D(label + "_dRmin_l", "track min dR", 100, 0., 0.4);
385 
386  (mes.h_pt_vs_eta) = ibooker.book2D(label + "_ptVSeta",
387  "track p_{T} vs #eta",
388  Eta_nbin,
389  Eta_rangeMin,
390  Eta_rangeMax,
391  Pt_nbin,
392  Pt_rangeMin,
393  Pt_rangeMax);
394 }

References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), dqm::implementation::NavigatorBase::cd(), DeadROC_duringRun::dir, Dxy_nbin, Dxy_rangeMax, Dxy_rangeMin, Dz_nbin, Dz_rangeMax, Dz_rangeMin, Eta_nbin, Eta_rangeMax, Eta_rangeMin, TrackToTrackComparisonHists::generalME::h_charge, TrackToTrackComparisonHists::generalME::h_dRmin, TrackToTrackComparisonHists::generalME::h_dRmin_l, TrackToTrackComparisonHists::generalME::h_dxy, TrackToTrackComparisonHists::generalME::h_dxyWRTpv, TrackToTrackComparisonHists::generalME::h_dz, TrackToTrackComparisonHists::generalME::h_dzWRTpv, TrackToTrackComparisonHists::generalME::h_eta, TrackToTrackComparisonHists::generalME::h_hits, TrackToTrackComparisonHists::generalME::h_phi, TrackToTrackComparisonHists::generalME::h_pt, TrackToTrackComparisonHists::generalME::h_pt_vs_eta, label, Phi_nbin, Phi_rangeMax, Phi_rangeMin, Pt_nbin, Pt_rangeMax, Pt_rangeMin, and dqm::implementation::NavigatorBase::setCurrentFolder().

Referenced by bookHistos().

◆ book_matching_tracks_histos()

void TrackToTrackComparisonHists::book_matching_tracks_histos ( DQMStore::IBooker ibooker,
matchingME mes,
TString  label,
std::string &  dir 
)
protected

Definition at line 396 of file TrackToTrackComparisonHists.cc.

399  {
400  ibooker.cd();
401  ibooker.setCurrentFolder(dir);
402 
403  (mes.h_hits_vs_hits) = ibooker.book2D(
404  label + "_hits_vs_hits", "monitored track # hits vs reference track # hits", 35, -0.5, 34.5, 35, -0.5, 34.5);
405  (mes.h_pt_vs_pt) = ibooker.book2D(label + "_pt_vs_pt",
406  "monitored track p_{T} vs reference track p_{T}",
407  Pt_nbin,
408  Pt_rangeMin,
409  Pt_rangeMax,
410  Pt_nbin,
411  Pt_rangeMin,
412  Pt_rangeMax);
413  (mes.h_eta_vs_eta) = ibooker.book2D(label + "_eta_vs_eta",
414  "monitored track #eta vs reference track #eta",
415  Eta_nbin,
416  Eta_rangeMin,
417  Eta_rangeMax,
418  Eta_nbin,
419  Eta_rangeMin,
420  Eta_rangeMax);
421  (mes.h_phi_vs_phi) = ibooker.book2D(label + "_phi_vs_phi",
422  "monitored track #phi vs reference track #phi",
423  Phi_nbin,
424  Phi_rangeMin,
425  Phi_rangeMax,
426  Phi_nbin,
427  Phi_rangeMin,
428  Phi_rangeMax);
429 
430  (mes.h_dPt) = ibooker.book1D(label + "_dPt", "#Delta track #P_T", ptRes_nbin, ptRes_rangeMin, ptRes_rangeMax);
431  (mes.h_dEta) = ibooker.book1D(label + "_dEta", "#Delta track #eta", etaRes_nbin, etaRes_rangeMin, etaRes_rangeMax);
432  (mes.h_dPhi) = ibooker.book1D(label + "_dPhi", "#Delta track #phi", phiRes_nbin, phiRes_rangeMin, phiRes_rangeMax);
433  (mes.h_dDxy) = ibooker.book1D(
434  label + "_dDxy", "#Delta track transverse dca to beam spot", dxyRes_nbin, dxyRes_rangeMin, dxyRes_rangeMax);
435  (mes.h_dDz) = ibooker.book1D(
436  label + "_dDz", "#Delta track longitudinal dca to beam spot", dzRes_nbin, dzRes_rangeMin, dzRes_rangeMax);
437  (mes.h_dDxyWRTpv) = ibooker.book1D(label + "_dDxyWRTpv",
438  "#Delta track transverse dca to primary vertex ",
439  dxyRes_nbin,
442  (mes.h_dDzWRTpv) = ibooker.book1D(label + "_dDzWRTpv",
443  "#Delta track longitudinal dca to primary vertex",
444  dzRes_nbin,
447  (mes.h_dCharge) = ibooker.book1D(label + "_dCharge", "#Delta track charge", 5, -2.5, 2.5);
448  (mes.h_dHits) = ibooker.book1D(label + "_dHits", "#Delta track number of hits", 39, -19.5, 19.5);
449 }

References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), dqm::implementation::NavigatorBase::cd(), DeadROC_duringRun::dir, dxyRes_nbin, dxyRes_rangeMax, dxyRes_rangeMin, dzRes_nbin, dzRes_rangeMax, dzRes_rangeMin, Eta_nbin, Eta_rangeMax, Eta_rangeMin, etaRes_nbin, etaRes_rangeMax, etaRes_rangeMin, TrackToTrackComparisonHists::matchingME::h_dCharge, TrackToTrackComparisonHists::matchingME::h_dDxy, TrackToTrackComparisonHists::matchingME::h_dDxyWRTpv, TrackToTrackComparisonHists::matchingME::h_dDz, TrackToTrackComparisonHists::matchingME::h_dDzWRTpv, TrackToTrackComparisonHists::matchingME::h_dEta, TrackToTrackComparisonHists::matchingME::h_dHits, TrackToTrackComparisonHists::matchingME::h_dPhi, TrackToTrackComparisonHists::matchingME::h_dPt, TrackToTrackComparisonHists::matchingME::h_eta_vs_eta, TrackToTrackComparisonHists::matchingME::h_hits_vs_hits, TrackToTrackComparisonHists::matchingME::h_phi_vs_phi, TrackToTrackComparisonHists::matchingME::h_pt_vs_pt, label, Phi_nbin, Phi_rangeMax, Phi_rangeMin, phiRes_nbin, phiRes_rangeMax, phiRes_rangeMin, Pt_nbin, Pt_rangeMax, Pt_rangeMin, ptRes_nbin, ptRes_rangeMax, ptRes_rangeMin, and dqm::implementation::NavigatorBase::setCurrentFolder().

Referenced by bookHistograms().

◆ bookHistograms()

void TrackToTrackComparisonHists::bookHistograms ( DQMStore::IBooker iBooker,
edm::Run const &  iRun,
edm::EventSetup const &  iSetup 
)
overrideprotectedvirtual

Implements DQMEDAnalyzer.

Definition at line 245 of file TrackToTrackComparisonHists.cc.

247  {
249  genTriggerEventFlag_->initRun(iRun, iSetup);
250 
251  // check if every HLT path specified has a valid match in the HLT Menu
253  (genTriggerEventFlag_ && genTriggerEventFlag_->on() && genTriggerEventFlag_->allHLTPathsAreValid());
254 
255  // if valid HLT paths are required,
256  // create DQM outputs only if all paths are valid
258  return;
259  }
260 
262 
263  bookHistos(ibooker, referenceTracksMEs_, "ref", dir);
264  bookHistos(ibooker, matchedReferenceTracksMEs_, "ref_matched", dir);
265 
266  bookHistos(ibooker, monitoredTracksMEs_, "mon", dir);
267  bookHistos(ibooker, unMatchedMonitoredTracksMEs_, "mon_unMatched", dir);
268 
269  book_matching_tracks_histos(ibooker, matchTracksMEs_, "matches", dir);
270 }

References book_matching_tracks_histos(), bookHistos(), DeadROC_duringRun::dir, genTriggerEventFlag_, hltPathsAreValid_, matchedReferenceTracksMEs_, matchTracksMEs_, monitoredTracksMEs_, referenceTracksMEs_, requireValidHLTPaths_, AlCaHLTBitMon_QueryRunRegistry::string, topDirName_, and unMatchedMonitoredTracksMEs_.

◆ bookHistos()

void TrackToTrackComparisonHists::bookHistos ( DQMStore::IBooker ibooker,
generalME mes,
TString  label,
std::string &  dir 
)
protected

Definition at line 358 of file TrackToTrackComparisonHists.cc.

361  {
362  book_generic_tracks_histos(ibooker, mes, label, dir);
363 }

References book_generic_tracks_histos(), DeadROC_duringRun::dir, and label.

Referenced by bookHistograms().

◆ fill_generic_tracks_histos()

void TrackToTrackComparisonHists::fill_generic_tracks_histos ( generalME mes,
reco::Track trk,
reco::BeamSpot bs,
reco::Vertex pv,
bool  requirePlateau = true 
)
protected

Definition at line 451 of file TrackToTrackComparisonHists.cc.

452  {
453  float pt = trk->pt();
454  float eta = trk->eta();
455  float phi = trk->phi();
456  float dxy = trk->dxy(bs->position());
457  float dz = trk->dz(bs->position());
458  float dxyWRTpv = trk->dxy(pv->position());
459  float dzWRTpv = trk->dz(pv->position());
460  float charge = trk->charge();
461  float nhits = trk->hitPattern().numberOfValidHits();
462 
463  bool dxyOnPlateau = (fabs(dxyWRTpv) < dxyCutForPlateau_);
464  bool pTOnPlateau = (pt > pTCutForPlateau_);
465 
466  if (dxyOnPlateau || !requirePlateau) {
467  (mes.h_pt)->Fill(pt);
468  }
469 
470  if ((pTOnPlateau && dxyOnPlateau) || !requirePlateau) {
471  (mes.h_eta)->Fill(eta);
472  (mes.h_phi)->Fill(phi);
473  (mes.h_dz)->Fill(dz);
474  (mes.h_dzWRTpv)->Fill(dzWRTpv);
475  (mes.h_charge)->Fill(charge);
476  (mes.h_hits)->Fill(nhits);
477  }
478 
479  if (pTOnPlateau || !requirePlateau) {
480  (mes.h_dxy)->Fill(dxy);
481  (mes.h_dxyWRTpv)->Fill(dxyWRTpv);
482  }
483 
484  (mes.h_pt_vs_eta)->Fill(eta, pt);
485 }

References cms::cuda::bs, ALCARECOTkAlJpsiMuMu_cff::charge, reco::TrackBase::charge(), PVValHelper::dxy, reco::TrackBase::dxy(), dxyCutForPlateau_, PVValHelper::dz, reco::TrackBase::dz(), PVValHelper::eta, reco::TrackBase::eta(), HcalObjRepresent::Fill(), TrackToTrackComparisonHists::generalME::h_charge, TrackToTrackComparisonHists::generalME::h_dxy, TrackToTrackComparisonHists::generalME::h_dxyWRTpv, TrackToTrackComparisonHists::generalME::h_dz, TrackToTrackComparisonHists::generalME::h_dzWRTpv, TrackToTrackComparisonHists::generalME::h_eta, TrackToTrackComparisonHists::generalME::h_hits, TrackToTrackComparisonHists::generalME::h_phi, TrackToTrackComparisonHists::generalME::h_pt, TrackToTrackComparisonHists::generalME::h_pt_vs_eta, reco::TrackBase::hitPattern(), nhits, reco::HitPattern::numberOfValidHits(), phi, reco::TrackBase::phi(), DiDispStaMuonMonitor_cfi::pt, reco::TrackBase::pt(), pTCutForPlateau_, and MetAnalyzer::pv().

Referenced by analyze().

◆ fill_matching_tracks_histos()

void TrackToTrackComparisonHists::fill_matching_tracks_histos ( matchingME mes,
reco::Track mon,
reco::Track ref,
reco::BeamSpot bs,
reco::Vertex pv 
)
protected

Definition at line 487 of file TrackToTrackComparisonHists.cc.

488  {
489  float mon_pt = mon->pt();
490  float mon_eta = mon->eta();
491  float mon_phi = mon->phi();
492  float mon_dxy = mon->dxy(bs->position());
493  float mon_dz = mon->dz(bs->position());
494  float mon_dxyWRTpv = mon->dxy(pv->position());
495  float mon_dzWRTpv = mon->dz(pv->position());
496  float mon_charge = mon->charge();
497  float mon_nhits = mon->hitPattern().numberOfValidHits();
498 
499  float ref_pt = ref->pt();
500  float ref_eta = ref->eta();
501  float ref_phi = ref->phi();
502  float ref_dxy = ref->dxy(bs->position());
503  float ref_dz = ref->dz(bs->position());
504  float ref_dxyWRTpv = ref->dxy(pv->position());
505  float ref_dzWRTpv = ref->dz(pv->position());
506  float ref_charge = ref->charge();
507  float ref_nhits = ref->hitPattern().numberOfValidHits();
508 
509  (mes.h_hits_vs_hits)->Fill(ref_nhits, mon_nhits);
510  (mes.h_pt_vs_pt)->Fill(ref_pt, mon_pt);
511  (mes.h_eta_vs_eta)->Fill(ref_eta, mon_eta);
512  (mes.h_phi_vs_phi)->Fill(ref_phi, mon_phi);
513 
514  (mes.h_dPt)->Fill(ref_pt - mon_pt);
515  (mes.h_dEta)->Fill(ref_eta - mon_eta);
516  (mes.h_dPhi)->Fill(ref_phi - mon_phi);
517  (mes.h_dDxy)->Fill(ref_dxy - mon_dxy);
518  (mes.h_dDz)->Fill(ref_dz - mon_dz);
519  (mes.h_dDxyWRTpv)->Fill(ref_dxyWRTpv - mon_dxyWRTpv);
520  (mes.h_dDzWRTpv)->Fill(ref_dzWRTpv - mon_dzWRTpv);
521  (mes.h_dCharge)->Fill(ref_charge - mon_charge);
522  (mes.h_dHits)->Fill(ref_nhits - mon_nhits);
523 }

References cms::cuda::bs, reco::TrackBase::charge(), reco::TrackBase::dxy(), reco::TrackBase::dz(), reco::TrackBase::eta(), HcalObjRepresent::Fill(), TrackToTrackComparisonHists::matchingME::h_dCharge, TrackToTrackComparisonHists::matchingME::h_dDxy, TrackToTrackComparisonHists::matchingME::h_dDxyWRTpv, TrackToTrackComparisonHists::matchingME::h_dDz, TrackToTrackComparisonHists::matchingME::h_dDzWRTpv, TrackToTrackComparisonHists::matchingME::h_dEta, TrackToTrackComparisonHists::matchingME::h_dHits, TrackToTrackComparisonHists::matchingME::h_dPhi, TrackToTrackComparisonHists::matchingME::h_dPt, TrackToTrackComparisonHists::matchingME::h_eta_vs_eta, TrackToTrackComparisonHists::matchingME::h_hits_vs_hits, TrackToTrackComparisonHists::matchingME::h_phi_vs_phi, TrackToTrackComparisonHists::matchingME::h_pt_vs_pt, reco::TrackBase::hitPattern(), LaserDQM_cfi::mon, reco::HitPattern::numberOfValidHits(), reco::TrackBase::phi(), reco::TrackBase::pt(), and MetAnalyzer::pv().

Referenced by analyze().

◆ fillDescriptions()

void TrackToTrackComparisonHists::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 273 of file TrackToTrackComparisonHists.cc.

273  {
275 
276  desc.add<bool>("requireValidHLTPaths", true);
277 
278  desc.add<edm::InputTag>("monitoredTrack", edm::InputTag("hltMergedTracks"));
279  desc.add<edm::InputTag>("monitoredBeamSpot", edm::InputTag("hltOnlineBeamSpot"));
280  desc.add<edm::InputTag>("monitoredPrimaryVertices", edm::InputTag("hltVerticesPFSelector"));
281 
282  desc.add<edm::InputTag>("referenceTrack", edm::InputTag("generalTracks"));
283  desc.add<edm::InputTag>("referenceBeamSpot", edm::InputTag("offlineBeamSpot"));
284  desc.add<edm::InputTag>("referencePrimaryVertices", edm::InputTag("offlinePrimaryVertices"));
285 
286  desc.add<std::string>("topDirName", "HLT/Tracking/ValidationWRTOffline");
287  desc.add<double>("dRmin", 0.002);
288 
289  desc.add<double>("pTCutForPlateau", 0.9);
290  desc.add<double>("dxyCutForPlateau", 2.5);
291  desc.add<double>("dzWRTPvCut", 1e6);
292 
294  genericTriggerEventPSet.add<bool>("andOr", false);
295  genericTriggerEventPSet.add<edm::InputTag>("dcsInputTag", edm::InputTag("scalersRawToDigi"));
296  genericTriggerEventPSet.add<std::vector<int> >("dcsPartitions", {24, 25, 26, 27, 28, 29}); // 24-27: strip, 28-29
297  genericTriggerEventPSet.add<bool>("andOrDcs", false);
298  genericTriggerEventPSet.add<bool>("errorReplyDcs", true);
299  genericTriggerEventPSet.add<std::string>("dbLabel", "");
300  genericTriggerEventPSet.add<bool>("andOrHlt", true); // True:=OR; False:=AND
301  genericTriggerEventPSet.add<edm::InputTag>("hltInputTag", edm::InputTag("TriggerResults::HLT"));
302  genericTriggerEventPSet.add<std::vector<std::string> >("hltPaths", {});
303  genericTriggerEventPSet.add<std::string>("hltDBKey", "");
304  genericTriggerEventPSet.add<bool>("errorReplyHlt", false);
305  genericTriggerEventPSet.add<unsigned int>("verbosityLevel", 1);
306  desc.add<edm::ParameterSetDescription>("genericTriggerEventPSet", genericTriggerEventPSet);
307 
310  desc.add<edm::ParameterSetDescription>("histoPSet", histoPSet);
311 
312  descriptions.add("trackToTrackComparisonHists", desc);
313 }

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, fillHistoPSetDescription(), SiStripSourceConfigTier0_cff::genericTriggerEventPSet, LumiMonitor_cff::histoPSet, HLT_FULL_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ fillHistoPSetDescription()

void TrackToTrackComparisonHists::fillHistoPSetDescription ( edm::ParameterSetDescription pset)
static

Definition at line 569 of file TrackToTrackComparisonHists.cc.

569  {
570  pset.add<double>("Eta_rangeMin", -2.5);
571  pset.add<double>("Eta_rangeMax", 2.5);
572  pset.add<unsigned int>("Eta_nbin", 50);
573 
574  pset.add<double>("Pt_rangeMin", 0.1);
575  pset.add<double>("Pt_rangeMax", 100.0);
576  pset.add<unsigned int>("Pt_nbin", 1000);
577 
578  pset.add<double>("Phi_rangeMin", -3.1416);
579  pset.add<double>("Phi_rangeMax", 3.1416);
580  pset.add<unsigned int>("Phi_nbin", 36);
581 
582  pset.add<double>("Dxy_rangeMin", -1.0);
583  pset.add<double>("Dxy_rangeMax", 1.0);
584  pset.add<unsigned int>("Dxy_nbin", 300);
585 
586  pset.add<double>("Dz_rangeMin", -30.0);
587  pset.add<double>("Dz_rangeMax", 30.0);
588  pset.add<unsigned int>("Dz_nbin", 60);
589 
590  pset.add<double>("ptRes_rangeMin", -0.1);
591  pset.add<double>("ptRes_rangeMax", 0.1);
592  pset.add<unsigned int>("ptRes_nbin", 100);
593 
594  pset.add<double>("phiRes_rangeMin", -0.01);
595  pset.add<double>("phiRes_rangeMax", 0.01);
596  pset.add<unsigned int>("phiRes_nbin", 300);
597 
598  pset.add<double>("etaRes_rangeMin", -0.01);
599  pset.add<double>("etaRes_rangeMax", 0.01);
600  pset.add<unsigned int>("etaRes_nbin", 300);
601 
602  pset.add<double>("dxyRes_rangeMin", -0.05);
603  pset.add<double>("dxyRes_rangeMax", 0.05);
604  pset.add<unsigned int>("dxyRes_nbin", 500);
605 
606  pset.add<double>("dzRes_rangeMin", -0.05);
607  pset.add<double>("dzRes_rangeMax", 0.05);
608  pset.add<unsigned int>("dzRes_nbin", 150);
609 }

References muonDTDigis_cfi::pset.

Referenced by fillDescriptions().

◆ fillMap()

void TrackToTrackComparisonHists::fillMap ( reco::TrackCollection  tracks1,
reco::TrackCollection  tracks2,
idx2idxByDoubleColl map,
float  dRMin 
)
protected

Definition at line 315 of file TrackToTrackComparisonHists.cc.

318  {
319  //
320  // loop on tracks1
321  //
322  int i = 0;
323  for (const auto& track1 : tracks1) {
324  std::map<double, int> tmp;
325  int j = 0;
326  float smallest_dR = 1e9;
327  int smallest_dR_j = -1;
328 
329  //
330  // loop on tracks2
331  //
332  for (const auto& track2 : tracks2) {
333  double dR = reco::deltaR(track1.eta(), track1.phi(), track2.eta(), track2.phi());
334 
335  if (dR < smallest_dR) {
336  smallest_dR = dR;
337  smallest_dR_j = j;
338  }
339 
340  if (dR < dRMin) {
341  tmp[dR] = j;
342  }
343 
344  j++;
345  }
346 
347  //
348  // If there are no tracks that pass the dR store the smallest (for debugging/validating matching)
349  //
350  if (tmp.empty())
351  tmp[smallest_dR] = smallest_dR_j;
352 
353  map.push_back(std::make_pair(i, tmp));
354  i++;
355  }
356 }

References reco::deltaR(), HGC3DClusterGenMatchSelector_cfi::dR, HLT_FULL_cff::dRMin, mps_fire::i, dqmiolumiharvest::j, genParticles_cff::map, and createJobs::tmp.

Referenced by analyze().

◆ initialize_parameter()

void TrackToTrackComparisonHists::initialize_parameter ( const edm::ParameterSet iConfig)
protected

Definition at line 525 of file TrackToTrackComparisonHists.cc.

525  {
526  const edm::ParameterSet& pset = iConfig.getParameter<edm::ParameterSet>("histoPSet");
527 
528  Eta_rangeMin = pset.getParameter<double>("Eta_rangeMin");
529  Eta_rangeMax = pset.getParameter<double>("Eta_rangeMax");
530  Eta_nbin = pset.getParameter<unsigned int>("Eta_nbin");
531 
532  Pt_rangeMin = pset.getParameter<double>("Pt_rangeMin");
533  Pt_rangeMax = pset.getParameter<double>("Pt_rangeMax");
534  Pt_nbin = pset.getParameter<unsigned int>("Pt_nbin");
535 
536  Phi_rangeMin = pset.getParameter<double>("Phi_rangeMin");
537  Phi_rangeMax = pset.getParameter<double>("Phi_rangeMax");
538  Phi_nbin = pset.getParameter<unsigned int>("Phi_nbin");
539 
540  Dxy_rangeMin = pset.getParameter<double>("Dxy_rangeMin");
541  Dxy_rangeMax = pset.getParameter<double>("Dxy_rangeMax");
542  Dxy_nbin = pset.getParameter<unsigned int>("Dxy_nbin");
543 
544  Dz_rangeMin = pset.getParameter<double>("Dz_rangeMin");
545  Dz_rangeMax = pset.getParameter<double>("Dz_rangeMax");
546  Dz_nbin = pset.getParameter<unsigned int>("Dz_nbin");
547 
548  ptRes_rangeMin = pset.getParameter<double>("ptRes_rangeMin");
549  ptRes_rangeMax = pset.getParameter<double>("ptRes_rangeMax");
550  ptRes_nbin = pset.getParameter<unsigned int>("ptRes_nbin");
551 
552  phiRes_rangeMin = pset.getParameter<double>("phiRes_rangeMin");
553  phiRes_rangeMax = pset.getParameter<double>("phiRes_rangeMax");
554  phiRes_nbin = pset.getParameter<unsigned int>("phiRes_nbin");
555 
556  etaRes_rangeMin = pset.getParameter<double>("etaRes_rangeMin");
557  etaRes_rangeMax = pset.getParameter<double>("etaRes_rangeMax");
558  etaRes_nbin = pset.getParameter<unsigned int>("etaRes_nbin");
559 
560  dxyRes_rangeMin = pset.getParameter<double>("dxyRes_rangeMin");
561  dxyRes_rangeMax = pset.getParameter<double>("dxyRes_rangeMax");
562  dxyRes_nbin = pset.getParameter<unsigned int>("dxyRes_nbin");
563 
564  dzRes_rangeMin = pset.getParameter<double>("dzRes_rangeMin");
565  dzRes_rangeMax = pset.getParameter<double>("dzRes_rangeMax");
566  dzRes_nbin = pset.getParameter<unsigned int>("dzRes_nbin");
567 }

References Dxy_nbin, Dxy_rangeMax, Dxy_rangeMin, dxyRes_nbin, dxyRes_rangeMax, dxyRes_rangeMin, Dz_nbin, Dz_rangeMax, Dz_rangeMin, dzRes_nbin, dzRes_rangeMax, dzRes_rangeMin, Eta_nbin, Eta_rangeMax, Eta_rangeMin, etaRes_nbin, etaRes_rangeMax, etaRes_rangeMin, edm::ParameterSet::getParameter(), Phi_nbin, Phi_rangeMax, Phi_rangeMin, phiRes_nbin, phiRes_rangeMax, phiRes_rangeMin, muonDTDigis_cfi::pset, Pt_nbin, Pt_rangeMax, Pt_rangeMin, ptRes_nbin, ptRes_rangeMax, and ptRes_rangeMin.

Referenced by TrackToTrackComparisonHists().

Member Data Documentation

◆ dqmStore_

DQMStore* TrackToTrackComparisonHists::dqmStore_
protected

Definition at line 84 of file TrackToTrackComparisonHists.h.

◆ dRmin_

double TrackToTrackComparisonHists::dRmin_
private

Definition at line 100 of file TrackToTrackComparisonHists.h.

Referenced by analyze().

◆ Dxy_nbin

unsigned int TrackToTrackComparisonHists::Dxy_nbin
private

◆ Dxy_rangeMax

double TrackToTrackComparisonHists::Dxy_rangeMax
private

◆ Dxy_rangeMin

double TrackToTrackComparisonHists::Dxy_rangeMin
private

◆ dxyCutForPlateau_

double TrackToTrackComparisonHists::dxyCutForPlateau_
private

Definition at line 102 of file TrackToTrackComparisonHists.h.

Referenced by fill_generic_tracks_histos().

◆ dxyRes_nbin

unsigned int TrackToTrackComparisonHists::dxyRes_nbin
private

◆ dxyRes_rangeMax

double TrackToTrackComparisonHists::dxyRes_rangeMax
private

◆ dxyRes_rangeMin

double TrackToTrackComparisonHists::dxyRes_rangeMin
private

◆ Dz_nbin

unsigned int TrackToTrackComparisonHists::Dz_nbin
private

◆ Dz_rangeMax

double TrackToTrackComparisonHists::Dz_rangeMax
private

◆ Dz_rangeMin

double TrackToTrackComparisonHists::Dz_rangeMin
private

◆ dzRes_nbin

unsigned int TrackToTrackComparisonHists::dzRes_nbin
private

◆ dzRes_rangeMax

double TrackToTrackComparisonHists::dzRes_rangeMax
private

◆ dzRes_rangeMin

double TrackToTrackComparisonHists::dzRes_rangeMin
private

◆ dzWRTPvCut_

double TrackToTrackComparisonHists::dzWRTPvCut_
private

Definition at line 103 of file TrackToTrackComparisonHists.h.

Referenced by analyze().

◆ Eta_nbin

unsigned int TrackToTrackComparisonHists::Eta_nbin
private

◆ Eta_rangeMax

double TrackToTrackComparisonHists::Eta_rangeMax
private

◆ Eta_rangeMin

double TrackToTrackComparisonHists::Eta_rangeMin
private

◆ etaRes_nbin

unsigned int TrackToTrackComparisonHists::etaRes_nbin
private

◆ etaRes_rangeMax

double TrackToTrackComparisonHists::etaRes_rangeMax
private

◆ etaRes_rangeMin

double TrackToTrackComparisonHists::etaRes_rangeMin
private

◆ genTriggerEventFlag_

std::unique_ptr<GenericTriggerEventFlag> TrackToTrackComparisonHists::genTriggerEventFlag_
private

◆ hltPathsAreValid_

bool TrackToTrackComparisonHists::hltPathsAreValid_ = false
private

Definition at line 105 of file TrackToTrackComparisonHists.h.

Referenced by analyze(), and bookHistograms().

◆ matchedReferenceTracksMEs_

generalME TrackToTrackComparisonHists::matchedReferenceTracksMEs_
private

◆ matchTracksMEs_

matchingME TrackToTrackComparisonHists::matchTracksMEs_
private

◆ monitoredBSToken_

edm::EDGetTokenT<reco::BeamSpot> TrackToTrackComparisonHists::monitoredBSToken_
protected

Definition at line 92 of file TrackToTrackComparisonHists.h.

Referenced by analyze(), and TrackToTrackComparisonHists().

◆ monitoredPVToken_

edm::EDGetTokenT<reco::VertexCollection> TrackToTrackComparisonHists::monitoredPVToken_
protected

Definition at line 94 of file TrackToTrackComparisonHists.h.

Referenced by analyze(), and TrackToTrackComparisonHists().

◆ monitoredTrackInputTag_

edm::InputTag TrackToTrackComparisonHists::monitoredTrackInputTag_
protected

Definition at line 86 of file TrackToTrackComparisonHists.h.

Referenced by analyze(), and TrackToTrackComparisonHists().

◆ monitoredTracksMEs_

generalME TrackToTrackComparisonHists::monitoredTracksMEs_
private

◆ monitoredTrackToken_

edm::EDGetTokenT<reco::TrackCollection> TrackToTrackComparisonHists::monitoredTrackToken_
protected

Definition at line 90 of file TrackToTrackComparisonHists.h.

Referenced by analyze(), and TrackToTrackComparisonHists().

◆ Phi_nbin

unsigned int TrackToTrackComparisonHists::Phi_nbin
private

◆ Phi_rangeMax

double TrackToTrackComparisonHists::Phi_rangeMax
private

◆ Phi_rangeMin

double TrackToTrackComparisonHists::Phi_rangeMin
private

◆ phiRes_nbin

unsigned int TrackToTrackComparisonHists::phiRes_nbin
private

◆ phiRes_rangeMax

double TrackToTrackComparisonHists::phiRes_rangeMax
private

◆ phiRes_rangeMin

double TrackToTrackComparisonHists::phiRes_rangeMin
private

◆ Pt_nbin

unsigned int TrackToTrackComparisonHists::Pt_nbin
private

◆ Pt_rangeMax

double TrackToTrackComparisonHists::Pt_rangeMax
private

◆ Pt_rangeMin

double TrackToTrackComparisonHists::Pt_rangeMin
private

◆ pTCutForPlateau_

double TrackToTrackComparisonHists::pTCutForPlateau_
private

Definition at line 101 of file TrackToTrackComparisonHists.h.

Referenced by fill_generic_tracks_histos().

◆ ptRes_nbin

unsigned int TrackToTrackComparisonHists::ptRes_nbin
private

◆ ptRes_rangeMax

double TrackToTrackComparisonHists::ptRes_rangeMax
private

◆ ptRes_rangeMin

double TrackToTrackComparisonHists::ptRes_rangeMin
private

◆ referenceBSToken_

edm::EDGetTokenT<reco::BeamSpot> TrackToTrackComparisonHists::referenceBSToken_
protected

Definition at line 93 of file TrackToTrackComparisonHists.h.

Referenced by analyze(), and TrackToTrackComparisonHists().

◆ referencePVToken_

edm::EDGetTokenT<reco::VertexCollection> TrackToTrackComparisonHists::referencePVToken_
protected

Definition at line 95 of file TrackToTrackComparisonHists.h.

Referenced by analyze(), and TrackToTrackComparisonHists().

◆ referenceTrackInputTag_

edm::InputTag TrackToTrackComparisonHists::referenceTrackInputTag_
protected

Definition at line 87 of file TrackToTrackComparisonHists.h.

Referenced by analyze(), and TrackToTrackComparisonHists().

◆ referenceTracksMEs_

generalME TrackToTrackComparisonHists::referenceTracksMEs_
private

◆ referenceTrackToken_

edm::EDGetTokenT<reco::TrackCollection> TrackToTrackComparisonHists::referenceTrackToken_
protected

Definition at line 91 of file TrackToTrackComparisonHists.h.

Referenced by analyze(), and TrackToTrackComparisonHists().

◆ requireValidHLTPaths_

bool TrackToTrackComparisonHists::requireValidHLTPaths_
private

Definition at line 104 of file TrackToTrackComparisonHists.h.

Referenced by analyze(), and bookHistograms().

◆ topDirName_

std::string TrackToTrackComparisonHists::topDirName_
private

Definition at line 99 of file TrackToTrackComparisonHists.h.

Referenced by bookHistograms().

◆ unMatchedMonitoredTracksMEs_

generalME TrackToTrackComparisonHists::unMatchedMonitoredTracksMEs_
private
muonTagProbeFilters_cff.matched
matched
Definition: muonTagProbeFilters_cff.py:62
TrackToTrackComparisonHists::matchingME::label
std::string label
Definition: TrackToTrackComparisonHists.h:54
TrackToTrackComparisonHists::Pt_nbin
unsigned int Pt_nbin
Definition: TrackToTrackComparisonHists.h:122
TrackToTrackComparisonHists::initialize_parameter
void initialize_parameter(const edm::ParameterSet &iConfig)
Definition: TrackToTrackComparisonHists.cc:525
TrackToTrackComparisonHists::bookHistos
void bookHistos(DQMStore::IBooker &ibooker, generalME &mes, TString label, std::string &dir)
Definition: TrackToTrackComparisonHists.cc:358
mps_fire.i
i
Definition: mps_fire.py:428
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11713
TrackToTrackComparisonHists::matchedReferenceTracksMEs_
generalME matchedReferenceTracksMEs_
Definition: TrackToTrackComparisonHists.h:110
TrackToTrackComparisonHists::dzWRTPvCut_
double dzWRTPvCut_
Definition: TrackToTrackComparisonHists.h:103
edm::InputTag::instance
std::string const & instance() const
Definition: InputTag.h:37
TrackToTrackComparisonHists::dzRes_nbin
unsigned int dzRes_nbin
Definition: TrackToTrackComparisonHists.h:139
TrackToTrackComparisonHists::Dxy_rangeMin
double Dxy_rangeMin
Definition: TrackToTrackComparisonHists.h:125
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
TrackToTrackComparisonHists::generalME::label
std::string label
Definition: TrackToTrackComparisonHists.h:47
TrackToTrackComparisonHists::etaRes_nbin
unsigned int etaRes_nbin
Definition: TrackToTrackComparisonHists.h:135
TrackToTrackComparisonHists::referenceBSToken_
edm::EDGetTokenT< reco::BeamSpot > referenceBSToken_
Definition: TrackToTrackComparisonHists.h:93
TrackToTrackComparisonHists::etaRes_rangeMax
double etaRes_rangeMax
Definition: TrackToTrackComparisonHists.h:134
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89285
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
TrackToTrackComparisonHists::Phi_rangeMax
double Phi_rangeMax
Definition: TrackToTrackComparisonHists.h:123
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
edm::InputTag::process
std::string const & process() const
Definition: InputTag.h:40
SiStripSourceConfigTier0_cff.genericTriggerEventPSet
genericTriggerEventPSet
Definition: SiStripSourceConfigTier0_cff.py:96
TrackToTrackComparisonHists::unMatchedMonitoredTracksMEs_
generalME unMatchedMonitoredTracksMEs_
Definition: TrackToTrackComparisonHists.h:114
reco::Vertex::position
const Point & position() const
position
Definition: Vertex.h:114
TrackToTrackComparisonHists::phiRes_rangeMin
double phiRes_rangeMin
Definition: TrackToTrackComparisonHists.h:132
TrackToTrackComparisonHists::monitoredPVToken_
edm::EDGetTokenT< reco::VertexCollection > monitoredPVToken_
Definition: TrackToTrackComparisonHists.h:94
TrackToTrackComparisonHists::monitoredTracksMEs_
generalME monitoredTracksMEs_
Definition: TrackToTrackComparisonHists.h:113
HLT_FULL_cff.dRMin
dRMin
Definition: HLT_FULL_cff.py:8664
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
TrackToTrackComparisonHists::referenceTrackInputTag_
edm::InputTag referenceTrackInputTag_
Definition: TrackToTrackComparisonHists.h:87
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
edm::Handle< reco::TrackCollection >
TrackToTrackComparisonHists::book_generic_tracks_histos
void book_generic_tracks_histos(DQMStore::IBooker &ibooker, generalME &mes, TString label, std::string &dir)
Definition: TrackToTrackComparisonHists.cc:365
TrackToTrackComparisonHists::fillMap
void fillMap(reco::TrackCollection tracks1, reco::TrackCollection tracks2, idx2idxByDoubleColl &map, float dRMin)
Definition: TrackToTrackComparisonHists.cc:315
TrackToTrackComparisonHists::topDirName_
std::string topDirName_
Definition: TrackToTrackComparisonHists.h:99
TrackToTrackComparisonHists::genTriggerEventFlag_
std::unique_ptr< GenericTriggerEventFlag > genTriggerEventFlag_
Definition: TrackToTrackComparisonHists.h:106
TrackToTrackComparisonHists::Phi_rangeMin
double Phi_rangeMin
Definition: TrackToTrackComparisonHists.h:123
TrackToTrackComparisonHists::Pt_rangeMax
double Pt_rangeMax
Definition: TrackToTrackComparisonHists.h:121
reco::TrackBase::pt
double pt() const
track transverse momentum
Definition: TrackBase.h:637
TrackToTrackComparisonHists::fill_matching_tracks_histos
void fill_matching_tracks_histos(matchingME &mes, reco::Track *mon, reco::Track *ref, reco::BeamSpot *bs, reco::Vertex *pv)
Definition: TrackToTrackComparisonHists.cc:487
edm::InputTag::label
std::string const & label() const
Definition: InputTag.h:36
TrackToTrackComparisonHists::Pt_rangeMin
double Pt_rangeMin
Definition: TrackToTrackComparisonHists.h:121
cms::cuda::bs
bs
Definition: HistoContainer.h:127
TrackToTrackComparisonHists::dxyRes_nbin
unsigned int dxyRes_nbin
Definition: TrackToTrackComparisonHists.h:137
TrackToTrackComparisonHists::referencePVToken_
edm::EDGetTokenT< reco::VertexCollection > referencePVToken_
Definition: TrackToTrackComparisonHists.h:95
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
TrackToTrackComparisonHists::book_matching_tracks_histos
void book_matching_tracks_histos(DQMStore::IBooker &ibooker, matchingME &mes, TString label, std::string &dir)
Definition: TrackToTrackComparisonHists.cc:396
PVValHelper::eta
Definition: PVValidationHelpers.h:70
TrackToTrackComparisonHists::monitoredBSToken_
edm::EDGetTokenT< reco::BeamSpot > monitoredBSToken_
Definition: TrackToTrackComparisonHists.h:92
TrackToTrackComparisonHists::phiRes_nbin
unsigned int phiRes_nbin
Definition: TrackToTrackComparisonHists.h:133
reco::BeamSpot
Definition: BeamSpot.h:21
TrackToTrackComparisonHists::Eta_rangeMax
double Eta_rangeMax
Definition: TrackToTrackComparisonHists.h:119
reco::Track
Definition: Track.h:27
TrackToTrackComparisonHists::dxyCutForPlateau_
double dxyCutForPlateau_
Definition: TrackToTrackComparisonHists.h:102
dqm::implementation::NavigatorBase::cd
virtual void cd()
Definition: DQMStore.cc:29
reco::TrackBase::charge
int charge() const
track electric charge
Definition: TrackBase.h:596
reco::TrackBase::dz
double dz() const
dz parameter (= dsz/cos(lambda)). This is the track z0 w.r.t (0,0,0) only if the refPoint is close to...
Definition: TrackBase.h:622
TrackToTrackComparisonHists::Eta_nbin
unsigned int Eta_nbin
Definition: TrackToTrackComparisonHists.h:120
nhits
Definition: HIMultiTrackSelector.h:42
reco::TrackBase::phi
double phi() const
azimuthal angle of momentum vector
Definition: TrackBase.h:649
LaserDQM_cfi.mon
mon
Definition: LaserDQM_cfi.py:3
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TrackToTrackComparisonHists::monitoredTrackInputTag_
edm::InputTag monitoredTrackInputTag_
Definition: TrackToTrackComparisonHists.h:86
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47
TrackToTrackComparisonHists::requireValidHLTPaths_
bool requireValidHLTPaths_
Definition: TrackToTrackComparisonHists.h:104
TrackToTrackComparisonHists::pTCutForPlateau_
double pTCutForPlateau_
Definition: TrackToTrackComparisonHists.h:101
TrackToTrackComparisonHists::Dxy_nbin
unsigned int Dxy_nbin
Definition: TrackToTrackComparisonHists.h:126
TrackToTrackComparisonHists::referenceTrackToken_
edm::EDGetTokenT< reco::TrackCollection > referenceTrackToken_
Definition: TrackToTrackComparisonHists.h:91
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:233
TrackToTrackComparisonHists::generalME::h_dRmin
MonitorElement * h_dRmin
Definition: TrackToTrackComparisonHists.h:49
edm::ParameterSet
Definition: ParameterSet.h:47
GenericTriggerEventFlag
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
Definition: GenericTriggerEventFlag.h:42
TrackToTrackComparisonHists::Dz_nbin
unsigned int Dz_nbin
Definition: TrackToTrackComparisonHists.h:128
TrackToTrackComparisonHists::dxyRes_rangeMin
double dxyRes_rangeMin
Definition: TrackToTrackComparisonHists.h:136
reco::TrackBase::eta
double eta() const
pseudorapidity of momentum vector
Definition: TrackBase.h:652
MetAnalyzer.pv
def pv(vc)
Definition: MetAnalyzer.py:7
iEvent
int iEvent
Definition: GenABIO.cc:224
LumiMonitor_cff.histoPSet
histoPSet
Definition: LumiMonitor_cff.py:12
TrackToTrackComparisonHists::Dz_rangeMin
double Dz_rangeMin
Definition: TrackToTrackComparisonHists.h:127
TrackToTrackComparisonHists::idx2idxByDoubleColl
std::vector< std::pair< int, std::map< double, int > > > idx2idxByDoubleColl
Definition: TrackToTrackComparisonHists.h:59
TrackToTrackComparisonHists::dzRes_rangeMax
double dzRes_rangeMax
Definition: TrackToTrackComparisonHists.h:138
TrackToTrackComparisonHists::dzRes_rangeMin
double dzRes_rangeMin
Definition: TrackToTrackComparisonHists.h:138
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
TrackToTrackComparisonHists::generalME::h_dRmin_l
MonitorElement * h_dRmin_l
Definition: TrackToTrackComparisonHists.h:49
TrackToTrackComparisonHists::ptRes_nbin
unsigned int ptRes_nbin
Definition: TrackToTrackComparisonHists.h:131
HcalObjRepresent::Fill
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
Definition: HcalObjRepresent.h:1053
DDAxes::phi
reco::TrackBase::hitPattern
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
Definition: TrackBase.h:504
TrackToTrackComparisonHists::Dxy_rangeMax
double Dxy_rangeMax
Definition: TrackToTrackComparisonHists.h:125
TrackToTrackComparisonHists::ptRes_rangeMin
double ptRes_rangeMin
Definition: TrackToTrackComparisonHists.h:130
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
TrackToTrackComparisonHists::dxyRes_rangeMax
double dxyRes_rangeMax
Definition: TrackToTrackComparisonHists.h:136
TrackToTrackComparisonHists::fill_generic_tracks_histos
void fill_generic_tracks_histos(generalME &mes, reco::Track *trk, reco::BeamSpot *bs, reco::Vertex *pv, bool requirePlateau=true)
Definition: TrackToTrackComparisonHists.cc:451
PVValHelper::dxy
Definition: PVValidationHelpers.h:48
PVValHelper::dz
Definition: PVValidationHelpers.h:51
dqm::implementation::IBooker::book2D
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:177
TrackToTrackComparisonHists::phiRes_rangeMax
double phiRes_rangeMax
Definition: TrackToTrackComparisonHists.h:132
reco::deltaR
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Definition: deltaR.h:30
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
TrackToTrackComparisonHists::Eta_rangeMin
double Eta_rangeMin
Definition: TrackToTrackComparisonHists.h:119
TrackToTrackComparisonHists::ptRes_rangeMax
double ptRes_rangeMax
Definition: TrackToTrackComparisonHists.h:130
genParticles_cff.map
map
Definition: genParticles_cff.py:11
HGC3DClusterGenMatchSelector_cfi.dR
dR
Definition: HGC3DClusterGenMatchSelector_cfi.py:7
TrackToTrackComparisonHists::referenceTracksMEs_
generalME referenceTracksMEs_
Definition: TrackToTrackComparisonHists.h:109
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
reco::HitPattern::numberOfValidHits
int numberOfValidHits() const
Definition: HitPattern.h:786
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
TrackToTrackComparisonHists::matchTracksMEs_
matchingME matchTracksMEs_
Definition: TrackToTrackComparisonHists.h:117
TrackToTrackComparisonHists::hltPathsAreValid_
bool hltPathsAreValid_
Definition: TrackToTrackComparisonHists.h:105
reco::TrackBase::dxy
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
Definition: TrackBase.h:608
TrackToTrackComparisonHists::etaRes_rangeMin
double etaRes_rangeMin
Definition: TrackToTrackComparisonHists.h:134
TrackToTrackComparisonHists::Dz_rangeMax
double Dz_rangeMax
Definition: TrackToTrackComparisonHists.h:127
edm::InputTag
Definition: InputTag.h:15
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
label
const char * label
Definition: PFTauDecayModeTools.cc:11
TrackToTrackComparisonHists::monitoredTrackToken_
edm::EDGetTokenT< reco::TrackCollection > monitoredTrackToken_
Definition: TrackToTrackComparisonHists.h:90
TrackToTrackComparisonHists::dRmin_
double dRmin_
Definition: TrackToTrackComparisonHists.h:100
reco::Vertex
Definition: Vertex.h:35
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
dqm::implementation::IBooker::book1D
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23
TrackToTrackComparisonHists::Phi_nbin
unsigned int Phi_nbin
Definition: TrackToTrackComparisonHists.h:124
TrackToTrackComparisonHists::fillHistoPSetDescription
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset)
Definition: TrackToTrackComparisonHists.cc:569