CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Member Functions | Private Attributes
BTVHLTOfflineSource Class Reference
Inheritance diagram for BTVHLTOfflineSource:

Classes

class  PathInfo
 
class  PathInfoCollection
 

Public Member Functions

 BTVHLTOfflineSource (const edm::ParameterSet &)
 
 ~BTVHLTOfflineSource () override
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &run, edm::EventSetup const &c) override
 
void dqmBeginRun (edm::Run const &run, edm::EventSetup const &c) override
 

Private Attributes

edm::Handle< reco::JetTagCollectioncaloTags
 
edm::EDGetTokenT< reco::JetTagCollectioncaloTagsToken_
 
std::vector< std::pair< std::string, std::string > > custompathnamepairs_
 
std::string dirname_
 
edm::EDGetTokenT< std::vector< reco::Vertex > > hltCaloPVToken_
 
HLTConfigProvider hltConfig_
 
edm::EDGetTokenT< std::vector< reco::Vertex > > hltFastPVToken_
 
PathInfoCollection hltPathsAll_
 
edm::EDGetTokenT< std::vector< reco::Vertex > > hltPFPVToken_
 
edm::EDGetTokenT< reco::JetTagCollectionofflineDiscrTokenb_
 
edm::EDGetTokenT< reco::JetTagCollectionofflineDiscrTokenbb_
 
edm::EDGetTokenT< std::vector< reco::Vertex > > offlinePVToken_
 
edm::Handle< reco::JetTagCollectionpfTags
 
edm::EDGetTokenT< reco::JetTagCollectionpfTagsToken_
 
std::string processname_
 
edm::EDGetTokenT< std::vector< reco::ShallowTagInfo > > shallowTagInfosTokenCalo_
 
edm::EDGetTokenT< std::vector< reco::ShallowTagInfo > > shallowTagInfosTokenPf_
 
edm::EDGetTokenT< edm::TriggerResultstriggerResultsFUToken
 
edm::InputTag triggerResultsLabel_
 
edm::EDGetTokenT< edm::TriggerResultstriggerResultsToken
 
edm::EDGetTokenT< trigger::TriggerEventtriggerSummaryFUToken
 
edm::InputTag triggerSummaryLabel_
 
edm::EDGetTokenT< trigger::TriggerEventtriggerSummaryToken
 
float turnon_threshold_loose_
 
float turnon_threshold_medium_
 
float turnon_threshold_tight_
 
bool verbose_
 

Detailed Description

Definition at line 44 of file BTVHLTOfflineSource.cc.

Constructor & Destructor Documentation

◆ BTVHLTOfflineSource()

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

Definition at line 170 of file BTVHLTOfflineSource.cc.

171  : dirname_(iConfig.getUntrackedParameter("dirname", std::string("HLT/BTV/"))),
172  processname_(iConfig.getParameter<std::string>("processname")),
173  verbose_(iConfig.getUntrackedParameter<bool>("verbose", false)),
174  triggerSummaryLabel_(iConfig.getParameter<edm::InputTag>("triggerSummaryLabel")),
175  triggerResultsLabel_(iConfig.getParameter<edm::InputTag>("triggerResultsLabel")),
176  turnon_threshold_loose_(iConfig.getParameter<double>("turnon_threshold_loose")),
177  turnon_threshold_medium_(iConfig.getParameter<double>("turnon_threshold_medium")),
178  turnon_threshold_tight_(iConfig.getParameter<double>("turnon_threshold_tight")),
179  offlineDiscrTokenb_(consumes<reco::JetTagCollection>(iConfig.getParameter<edm::InputTag>("offlineDiscrLabelb"))),
181  consumes<reco::JetTagCollection>(iConfig.getParameter<edm::InputTag>("offlineDiscrLabelbb"))),
182  hltFastPVToken_(consumes<std::vector<reco::Vertex> >(iConfig.getParameter<edm::InputTag>("hltFastPVLabel"))),
183  hltPFPVToken_(consumes<std::vector<reco::Vertex> >(iConfig.getParameter<edm::InputTag>("hltPFPVLabel"))),
184  hltCaloPVToken_(consumes<std::vector<reco::Vertex> >(iConfig.getParameter<edm::InputTag>("hltCaloPVLabel"))),
185  offlinePVToken_(consumes<std::vector<reco::Vertex> >(iConfig.getParameter<edm::InputTag>("offlinePVLabel"))),
186  triggerResultsToken(consumes<edm::TriggerResults>(triggerResultsLabel_)),
187  triggerResultsFUToken(consumes<edm::TriggerResults>(
189  triggerSummaryToken(consumes<trigger::TriggerEvent>(triggerSummaryLabel_)),
190  triggerSummaryFUToken(consumes<trigger::TriggerEvent>(
193  consumes<vector<reco::ShallowTagInfo> >(edm::InputTag("hltDeepCombinedSecondaryVertexBJetTagsInfosCalo"))),
195  consumes<vector<reco::ShallowTagInfo> >(edm::InputTag("hltDeepCombinedSecondaryVertexBJetTagsInfos"))),
196  caloTagsToken_(consumes<reco::JetTagCollection>(iConfig.getParameter<edm::InputTag>("onlineDiscrLabelCalo"))),
197  pfTagsToken_(consumes<reco::JetTagCollection>(iConfig.getParameter<edm::InputTag>("onlineDiscrLabelPF"))) {
198  std::vector<edm::ParameterSet> paths = iConfig.getParameter<std::vector<edm::ParameterSet> >("pathPairs");
199  for (const auto& path : paths) {
200  custompathnamepairs_.push_back(
201  make_pair(path.getParameter<std::string>("pathname"), path.getParameter<std::string>("pathtype")));
202  }
203 }

References custompathnamepairs_, edm::ParameterSet::getParameter(), castor_dqm_sourceclient_file_cfg::path, Skims_PA_cff::paths, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ ~BTVHLTOfflineSource()

BTVHLTOfflineSource::~BTVHLTOfflineSource ( )
overridedefault

Member Function Documentation

◆ analyze()

void BTVHLTOfflineSource::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivate

Definition at line 224 of file BTVHLTOfflineSource.cc.

224  {
227  if (!triggerResults.isValid()) {
229  if (!triggerResults.isValid()) {
230  edm::LogInfo("BTVHLTOfflineSource") << "TriggerResults not found, skipping event";
231  return;
232  }
233  }
234 
235  const edm::TriggerNames& triggerNames = iEvent.triggerNames(*triggerResults);
236 
238  iEvent.getByToken(triggerSummaryToken, triggerObj);
239  if (!triggerObj.isValid()) {
240  iEvent.getByToken(triggerSummaryFUToken, triggerObj);
241  if (!triggerObj.isValid()) {
242  edm::LogInfo("BTVHLTOfflineSource") << "TriggerEvent not found, skipping event";
243  return;
244  }
245  }
246 
248  iEvent.getByToken(caloTagsToken_, caloTags);
249 
251  iEvent.getByToken(pfTagsToken_, pfTags);
252 
253  Handle<reco::VertexCollection> VertexHandler;
254 
255  Handle<reco::JetTagCollection> offlineJetTagHandlerb;
256  iEvent.getByToken(offlineDiscrTokenb_, offlineJetTagHandlerb);
257 
258  Handle<reco::JetTagCollection> offlineJetTagHandlerbb;
259  iEvent.getByToken(offlineDiscrTokenbb_, offlineJetTagHandlerbb);
260 
261  Handle<reco::VertexCollection> offlineVertexHandler;
262  iEvent.getByToken(offlinePVToken_, offlineVertexHandler);
263 
264  if (verbose_ && iEvent.id().event() % 10000 == 0)
265  cout << "Run = " << iEvent.id().run() << ", LS = " << iEvent.luminosityBlock()
266  << ", Event = " << iEvent.id().event() << endl;
267 
268  if (!triggerResults.isValid())
269  return;
270 
271  for (auto& v : hltPathsAll_) {
272  unsigned index = triggerNames.triggerIndex(v.getPath());
273  if (!(index < triggerNames.size())) {
274  continue;
275  }
276 
277  // PF and Calo btagging
278  if ((v.getTriggerType() == "PF" && pfTags.isValid()) ||
279  (v.getTriggerType() == "Calo" && caloTags.isValid() && !caloTags->empty())) {
280  const auto& iter = (v.getTriggerType() == "PF") ? pfTags->begin() : caloTags->begin();
281 
282  float Discr_online = iter->second;
283  if (Discr_online < 0)
284  Discr_online = -0.05;
285 
286  v.Discr->Fill(Discr_online);
287  v.Pt->Fill(iter->first->pt());
288  v.Eta->Fill(iter->first->eta());
289 
290  if (offlineJetTagHandlerb.isValid()) {
291  for (auto const& iterOffb : *offlineJetTagHandlerb) {
292  float DR = reco::deltaR(iterOffb.first->eta(), iterOffb.first->phi(), iter->first->eta(), iter->first->phi());
293  if (DR < 0.3) {
294  float Discr_offline = iterOffb.second;
295 
296  // offline probb and probbb must be added (if probbb isn't specified, it'll just use probb)
297  if (offlineJetTagHandlerbb.isValid()) {
298  for (auto const& iterOffbb : *offlineJetTagHandlerbb) {
299  DR = reco::deltaR(
300  iterOffbb.first->eta(), iterOffbb.first->phi(), iter->first->eta(), iter->first->phi());
301  if (DR < 0.3) {
302  Discr_offline += iterOffbb.second;
303  break;
304  }
305  }
306  }
307 
308  if (Discr_offline < 0)
309  Discr_offline = -0.05;
310  v.Discr_HLTvsRECO->Fill(Discr_online, Discr_offline);
311  v.Discr_HLTMinusRECO->Fill(Discr_online - Discr_offline);
312 
313  v.Discr_turnon_loose.denominator->Fill(Discr_offline);
314  v.Discr_turnon_medium.denominator->Fill(Discr_offline);
315  v.Discr_turnon_tight.denominator->Fill(Discr_offline);
316 
317  if (Discr_online > turnon_threshold_loose_)
318  v.Discr_turnon_loose.numerator->Fill(Discr_offline);
319  if (Discr_online > turnon_threshold_medium_)
320  v.Discr_turnon_medium.numerator->Fill(Discr_offline);
321  if (Discr_online > turnon_threshold_tight_)
322  v.Discr_turnon_tight.numerator->Fill(Discr_offline);
323 
324  break;
325  }
326  }
327  }
328 
329  if (v.getTriggerType() == "PF") {
330  iEvent.getByToken(hltPFPVToken_, VertexHandler);
331  } else {
332  iEvent.getByToken(hltFastPVToken_, VertexHandler);
333  }
334  if (VertexHandler.isValid()) {
335  v.PVz->Fill(VertexHandler->begin()->z());
336  if (offlineVertexHandler.isValid()) {
337  v.PVz_HLTMinusRECO->Fill(VertexHandler->begin()->z() - offlineVertexHandler->begin()->z());
338  }
339  }
340  }
341 
342  // specific to Calo b-tagging
343  if (caloTags.isValid() && v.getTriggerType() == "Calo" && !caloTags->empty()) {
344  iEvent.getByToken(hltCaloPVToken_, VertexHandler);
345  if (VertexHandler.isValid()) {
346  v.fastPVz->Fill(VertexHandler->begin()->z());
347  if (offlineVertexHandler.isValid()) {
348  v.fastPVz_HLTMinusRECO->Fill(VertexHandler->begin()->z() - offlineVertexHandler->begin()->z());
349  }
350  }
351  }
352 
353  // additional plots from tag info collections
355 
356  edm::Handle<std::vector<reco::ShallowTagInfo> > shallowTagInfosCalo;
357  iEvent.getByToken(shallowTagInfosTokenCalo_, shallowTagInfosCalo);
358 
360  iEvent.getByToken(shallowTagInfosTokenPf_, shallowTagInfosPf);
361 
362  // edm::Handle<std::vector<reco::TemplatedSecondaryVertexTagInfo<reco::IPTagInfo<edm::RefVector<std::vector<reco::Track>, reco::Track, edm::refhelper::FindUsingAdvance<std::vector<reco::Track>, reco::Track> >, reco::JTATagInfo>, reco::Vertex> > > caloTagInfos;
363  // iEvent.getByToken(caloTagInfosToken_, caloTagInfos);
364 
365  // edm::Handle<std::vector<reco::TemplatedSecondaryVertexTagInfo<reco::IPTagInfo<edm::RefVector<std::vector<reco::Track>, reco::Track, edm::refhelper::FindUsingAdvance<std::vector<reco::Track>, reco::Track> >, reco::JTATagInfo>, reco::Vertex> > > pfTagInfos;
366  // iEvent.getByToken(pfTagInfosToken_, pfTagInfos);
367 
368  // first try to get info from shallowTagInfos ...
369  if ((v.getTriggerType() == "PF" && shallowTagInfosPf.isValid()) ||
370  (v.getTriggerType() == "Calo" && shallowTagInfosCalo.isValid())) {
371  const auto& shallowTagInfoCollection = (v.getTriggerType() == "PF") ? shallowTagInfosPf : shallowTagInfosCalo;
372  for (const auto& shallowTagInfo : *shallowTagInfoCollection) {
373  const auto& tagVars = shallowTagInfo.taggingVariables();
374 
375  // n secondary vertices and n selected tracks
376  for (const auto& tagVar : tagVars.getList(reco::btau::jetNSecondaryVertices, false)) {
377  v.n_vtx->Fill(tagVar);
378  }
379  for (const auto& tagVar : tagVars.getList(reco::btau::jetNSelectedTracks, false)) {
380  v.n_sel_tracks->Fill(tagVar);
381  }
382 
383  // impact parameter
384  const auto& trackSip3dVal = tagVars.getList(reco::btau::trackSip3dVal, false);
385  const auto& trackSip3dSig = tagVars.getList(reco::btau::trackSip3dSig, false);
386  for (unsigned i_trk = 0; i_trk < trackSip3dVal.size(); i_trk++) {
387  float val = trackSip3dVal[i_trk];
388  float sig = trackSip3dSig[i_trk];
389  v.h_3d_ip_distance->Fill(val);
390  v.h_3d_ip_error->Fill(val / sig);
391  v.h_3d_ip_sig->Fill(sig);
392  }
393 
394  // vertex mass and tracks per vertex
395  for (const auto& tagVar : tagVars.getList(reco::btau::vertexMass, false)) {
396  v.vtx_mass->Fill(tagVar);
397  }
398  for (const auto& tagVar : tagVars.getList(reco::btau::vertexNTracks, false)) {
399  v.n_vtx_trks->Fill(tagVar);
400  }
401 
402  // // track N total/pixel hits
403  // for (const auto & tagVar : tagVars.getList(reco::btau::trackNPixelHits, false)) {
404  // v.n_pixel_hits->Fill(tagVar);}
405  // for (const auto & tagVar : tagVars.getList(reco::btau::trackNTotalHits, false)) {
406  // v.n_total_hits->Fill(tagVar);}
407  }
408  }
409 
410  // ... otherwise from usual tag infos.
411  // else
412  // if ( (v.getTriggerType() == "PF" && pfTagInfos.isValid())
413  // || (v.getTriggerType() == "Calo" && caloTagInfos.isValid()) )
414  // {
415  // const auto & DiscrTagInfoCollection = (v.getTriggerType() == "PF") ? pfTagInfos : caloTagInfos;
416 
417  // // loop over secondary vertex tag infos
418  // for (const auto & DiscrTagInfo : *DiscrTagInfoCollection) {
419  // v.n_vtx->Fill(DiscrTagInfo.nVertexCandidates());
420  // v.n_sel_tracks->Fill(DiscrTagInfo.nSelectedTracks());
421 
422  // // loop over selected tracks in each tag info
423  // for (unsigned i_trk=0; i_trk < DiscrTagInfo.nSelectedTracks(); i_trk++) {
424  // const auto & ip3d = DiscrTagInfo.trackIPData(i_trk).ip3d;
425  // v.h_3d_ip_distance->Fill(ip3d.value());
426  // v.h_3d_ip_error->Fill(ip3d.error());
427  // v.h_3d_ip_sig->Fill(ip3d.significance());
428  // }
429 
430  // // loop over vertex candidates in each tag info
431  // for (unsigned i_sv=0; i_sv < DiscrTagInfo.nVertexCandidates(); i_sv++) {
432  // const auto & sv = DiscrTagInfo.secondaryVertex(i_sv);
433  // v.vtx_mass->Fill(sv.p4().mass());
434  // v.n_vtx_trks->Fill(sv.nTracks());
435 
436  // // loop over tracks for number of pixel and total hits
437  // const auto & trkIPTagInfo = DiscrTagInfo.trackIPTagInfoRef().get();
438  // for (const auto & trk : trkIPTagInfo->selectedTracks()) {
439  // v.n_pixel_hits->Fill(trk.get()->hitPattern().numberOfValidPixelHits());
440  // v.n_total_hits->Fill(trk.get()->hitPattern().numberOfValidHits());
441  // }
442  // }
443  // }
444  // }
445  }
446 }

References caloTags, caloTagsToken_, gather_cfg::cout, reco::deltaR(), hltCaloPVToken_, hltFastPVToken_, hltPathsAll_, hltPFPVToken_, iEvent, edm::HandleBase::isValid(), reco::btau::jetNSecondaryVertices, reco::btau::jetNSelectedTracks, offlineDiscrTokenb_, offlineDiscrTokenbb_, offlinePVToken_, pfTags, pfTagsToken_, shallowTagInfosTokenCalo_, shallowTagInfosTokenPf_, reco::btau::trackSip3dSig, reco::btau::trackSip3dVal, L1TEGammaOffline_cfi::triggerNames, triggerResults, triggerResultsFUToken, triggerResultsToken, triggerSummaryFUToken, triggerSummaryToken, turnon_threshold_loose_, turnon_threshold_medium_, turnon_threshold_tight_, findQualityFiles::v, heppy_batch::val, verbose_, reco::btau::vertexMass, and reco::btau::vertexNTracks.

◆ bookHistograms()

void BTVHLTOfflineSource::bookHistograms ( DQMStore::IBooker &  iBooker,
edm::Run const &  run,
edm::EventSetup const &  c 
)
overrideprivate

Definition at line 448 of file BTVHLTOfflineSource.cc.

448  {
449  iBooker.setCurrentFolder(dirname_);
450  for (auto& v : hltPathsAll_) {
451  std::string trgPathName = HLTConfigProvider::removeVersion(v.getPath());
452  std::string subdirName = dirname_ + "/" + trgPathName + v.getTriggerType();
453  std::string trigPath = "(" + trgPathName + ")";
454  iBooker.setCurrentFolder(subdirName);
455 
456  std::string labelname("HLT");
457  std::string histoname(labelname + "");
458  std::string title(labelname + "");
459 
460  histoname = labelname + "_Discr";
461  title = labelname + "_Discr " + trigPath;
462  v.Discr = iBooker.book1D(histoname.c_str(), title.c_str(), 110, -0.1, 1);
463 
464  histoname = labelname + "_Pt";
465  title = labelname + "_Pt " + trigPath;
466  v.Pt = iBooker.book1D(histoname.c_str(), title.c_str(), 100, 0, 400);
467 
468  histoname = labelname + "_Eta";
469  title = labelname + "_Eta " + trigPath;
470  v.Eta = iBooker.book1D(histoname.c_str(), title.c_str(), 60, -3.0, 3.0);
471 
472  histoname = "HLTvsRECO_Discr";
473  title = "online discr vs offline discr " + trigPath;
474  v.Discr_HLTvsRECO = iBooker.book2D(histoname.c_str(), title.c_str(), 110, -0.1, 1, 110, -0.1, 1);
475 
476  histoname = "HLTMinusRECO_Discr";
477  title = "online discr minus offline discr " + trigPath;
478  v.Discr_HLTMinusRECO = iBooker.book1D(histoname.c_str(), title.c_str(), 100, -1, 1);
479 
480  histoname = "Turnon_loose_Discr";
481  title = "turn-on with loose threshold " + trigPath;
482  v.bookME(iBooker, v.Discr_turnon_loose, histoname, title, 22, -0.1, 1.);
483 
484  histoname = "Turnon_medium_Discr";
485  title = "turn-on with medium threshold " + trigPath;
486  v.bookME(iBooker, v.Discr_turnon_medium, histoname, title, 22, -0.1, 1.);
487 
488  histoname = "Turnon_tight_Discr";
489  title = "turn-on with tight threshold " + trigPath;
490  v.bookME(iBooker, v.Discr_turnon_tight, histoname, title, 22, -0.1, 1.);
491 
492  histoname = labelname + "_PVz";
493  title = "online z(PV) " + trigPath;
494  v.PVz = iBooker.book1D(histoname.c_str(), title.c_str(), 80, -20, 20);
495 
496  histoname = labelname + "_fastPVz";
497  title = "online z(fastPV) " + trigPath;
498  v.fastPVz = iBooker.book1D(histoname.c_str(), title.c_str(), 80, -20, 20);
499 
500  histoname = "HLTMinusRECO_PVz";
501  title = "online z(PV) - offline z(PV) " + trigPath;
502  v.PVz_HLTMinusRECO = iBooker.book1D(histoname.c_str(), title.c_str(), 200, -0.5, 0.5);
503 
504  histoname = "HLTMinusRECO_fastPVz";
505  title = "online z(fastPV) - offline z(PV) " + trigPath;
506  v.fastPVz_HLTMinusRECO = iBooker.book1D(histoname.c_str(), title.c_str(), 100, -2, 2);
507 
508  histoname = "n_vtx";
509  title = "N vertex candidates " + trigPath;
510  v.n_vtx = iBooker.book1D(histoname.c_str(), title.c_str(), 10, -0.5, 9.5);
511 
512  histoname = "vtx_mass";
513  title = "secondary vertex mass (GeV)" + trigPath;
514  v.vtx_mass = iBooker.book1D(histoname.c_str(), title.c_str(), 20, 0, 10);
515 
516  histoname = "n_vtx_trks";
517  title = "N tracks associated to secondary vertex" + trigPath;
518  v.n_vtx_trks = iBooker.book1D(histoname.c_str(), title.c_str(), 20, -0.5, 19.5);
519 
520  histoname = "n_sel_tracks";
521  title = "N selected tracks" + trigPath;
522  v.n_sel_tracks = iBooker.book1D(histoname.c_str(), title.c_str(), 25, -0.5, 24.5);
523 
524  histoname = "3d_ip_distance";
525  title = "3D IP distance of tracks (cm)" + trigPath;
526  v.h_3d_ip_distance = iBooker.book1D(histoname.c_str(), title.c_str(), 40, -0.1, 0.1);
527 
528  histoname = "3d_ip_error";
529  title = "3D IP error of tracks (cm)" + trigPath;
530  v.h_3d_ip_error = iBooker.book1D(histoname.c_str(), title.c_str(), 40, 0., 0.1);
531 
532  histoname = "3d_ip_sig";
533  title = "3D IP significance of tracks (cm)" + trigPath;
534  v.h_3d_ip_sig = iBooker.book1D(histoname.c_str(), title.c_str(), 40, -40, 40);
535 
536  // histoname = "n_pixel_hits";
537  // title = "N pixel hits"+trigPath;
538  // v.n_pixel_hits = iBooker.book1D(histoname.c_str(), title.c_str(), 16, -0.5, 15.5);
539 
540  // histoname = "n_total_hits";
541  // title = "N hits"+trigPath;
542  // v.n_total_hits = iBooker.book1D(histoname.c_str(), title.c_str(), 40, -0.5, 39.5);
543  }
544 }

References dirname_, hltPathsAll_, HLTConfigProvider::removeVersion(), AlCaHLTBitMon_QueryRunRegistry::string, overlapproblemtsosanalyzer_cfi::title, and findQualityFiles::v.

◆ dqmBeginRun()

void BTVHLTOfflineSource::dqmBeginRun ( edm::Run const &  run,
edm::EventSetup const &  c 
)
overrideprivate

Definition at line 207 of file BTVHLTOfflineSource.cc.

207  {
208  bool changed = true;
209  if (!hltConfig_.init(run, c, processname_, changed)) {
210  LogDebug("BTVHLTOfflineSource") << "HLTConfigProvider failed to initialize.";
211  }
212 
213  for (unsigned int idx = 0; idx != hltConfig_.size(); ++idx) {
214  const auto& pathname = hltConfig_.triggerName(idx);
215 
216  for (const auto& custompathnamepair : custompathnamepairs_) {
217  if (pathname.find(custompathnamepair.first) != std::string::npos) {
218  hltPathsAll_.push_back(PathInfo(1, pathname, "dummy", processname_, 0, custompathnamepair.second));
219  }
220  }
221  }
222 }

References HltBtagPostValidation_cff::c, custompathnamepairs_, hltConfig_, hltPathsAll_, training_settings::idx, HLTConfigProvider::init(), LogDebug, BTVHLTOfflineSource_cfi::pathname, processname_, writedatasetfile::run, HLTConfigProvider::size(), and HLTConfigProvider::triggerName().

Member Data Documentation

◆ caloTags

edm::Handle<reco::JetTagCollection> BTVHLTOfflineSource::caloTags
private

Definition at line 85 of file BTVHLTOfflineSource.cc.

Referenced by analyze().

◆ caloTagsToken_

edm::EDGetTokenT<reco::JetTagCollection> BTVHLTOfflineSource::caloTagsToken_
private

Definition at line 83 of file BTVHLTOfflineSource.cc.

Referenced by analyze().

◆ custompathnamepairs_

std::vector<std::pair<std::string, std::string> > BTVHLTOfflineSource::custompathnamepairs_
private

Definition at line 58 of file BTVHLTOfflineSource.cc.

Referenced by BTVHLTOfflineSource(), and dqmBeginRun().

◆ dirname_

std::string BTVHLTOfflineSource::dirname_
private

Definition at line 54 of file BTVHLTOfflineSource.cc.

Referenced by bookHistograms().

◆ hltCaloPVToken_

edm::EDGetTokenT<std::vector<reco::Vertex> > BTVHLTOfflineSource::hltCaloPVToken_
private

Definition at line 72 of file BTVHLTOfflineSource.cc.

Referenced by analyze().

◆ hltConfig_

HLTConfigProvider BTVHLTOfflineSource::hltConfig_
private

Definition at line 88 of file BTVHLTOfflineSource.cc.

Referenced by dqmBeginRun().

◆ hltFastPVToken_

edm::EDGetTokenT<std::vector<reco::Vertex> > BTVHLTOfflineSource::hltFastPVToken_
private

Definition at line 70 of file BTVHLTOfflineSource.cc.

Referenced by analyze().

◆ hltPathsAll_

PathInfoCollection BTVHLTOfflineSource::hltPathsAll_
private

Definition at line 162 of file BTVHLTOfflineSource.cc.

Referenced by analyze(), bookHistograms(), and dqmBeginRun().

◆ hltPFPVToken_

edm::EDGetTokenT<std::vector<reco::Vertex> > BTVHLTOfflineSource::hltPFPVToken_
private

Definition at line 71 of file BTVHLTOfflineSource.cc.

Referenced by analyze().

◆ offlineDiscrTokenb_

edm::EDGetTokenT<reco::JetTagCollection> BTVHLTOfflineSource::offlineDiscrTokenb_
private

Definition at line 67 of file BTVHLTOfflineSource.cc.

Referenced by analyze().

◆ offlineDiscrTokenbb_

edm::EDGetTokenT<reco::JetTagCollection> BTVHLTOfflineSource::offlineDiscrTokenbb_
private

Definition at line 68 of file BTVHLTOfflineSource.cc.

Referenced by analyze().

◆ offlinePVToken_

edm::EDGetTokenT<std::vector<reco::Vertex> > BTVHLTOfflineSource::offlinePVToken_
private

Definition at line 73 of file BTVHLTOfflineSource.cc.

Referenced by analyze().

◆ pfTags

edm::Handle<reco::JetTagCollection> BTVHLTOfflineSource::pfTags
private

Definition at line 86 of file BTVHLTOfflineSource.cc.

Referenced by analyze().

◆ pfTagsToken_

edm::EDGetTokenT<reco::JetTagCollection> BTVHLTOfflineSource::pfTagsToken_
private

Definition at line 84 of file BTVHLTOfflineSource.cc.

Referenced by analyze().

◆ processname_

std::string BTVHLTOfflineSource::processname_
private

Definition at line 55 of file BTVHLTOfflineSource.cc.

Referenced by dqmBeginRun().

◆ shallowTagInfosTokenCalo_

edm::EDGetTokenT<std::vector<reco::ShallowTagInfo> > BTVHLTOfflineSource::shallowTagInfosTokenCalo_
private

Definition at line 80 of file BTVHLTOfflineSource.cc.

Referenced by analyze().

◆ shallowTagInfosTokenPf_

edm::EDGetTokenT<std::vector<reco::ShallowTagInfo> > BTVHLTOfflineSource::shallowTagInfosTokenPf_
private

Definition at line 81 of file BTVHLTOfflineSource.cc.

Referenced by analyze().

◆ triggerResultsFUToken

edm::EDGetTokenT<edm::TriggerResults> BTVHLTOfflineSource::triggerResultsFUToken
private

Definition at line 76 of file BTVHLTOfflineSource.cc.

Referenced by analyze().

◆ triggerResultsLabel_

edm::InputTag BTVHLTOfflineSource::triggerResultsLabel_
private

Definition at line 61 of file BTVHLTOfflineSource.cc.

◆ triggerResultsToken

edm::EDGetTokenT<edm::TriggerResults> BTVHLTOfflineSource::triggerResultsToken
private

Definition at line 75 of file BTVHLTOfflineSource.cc.

Referenced by analyze().

◆ triggerSummaryFUToken

edm::EDGetTokenT<trigger::TriggerEvent> BTVHLTOfflineSource::triggerSummaryFUToken
private

Definition at line 78 of file BTVHLTOfflineSource.cc.

Referenced by analyze().

◆ triggerSummaryLabel_

edm::InputTag BTVHLTOfflineSource::triggerSummaryLabel_
private

Definition at line 60 of file BTVHLTOfflineSource.cc.

◆ triggerSummaryToken

edm::EDGetTokenT<trigger::TriggerEvent> BTVHLTOfflineSource::triggerSummaryToken
private

Definition at line 77 of file BTVHLTOfflineSource.cc.

Referenced by analyze().

◆ turnon_threshold_loose_

float BTVHLTOfflineSource::turnon_threshold_loose_
private

Definition at line 63 of file BTVHLTOfflineSource.cc.

Referenced by analyze().

◆ turnon_threshold_medium_

float BTVHLTOfflineSource::turnon_threshold_medium_
private

Definition at line 64 of file BTVHLTOfflineSource.cc.

Referenced by analyze().

◆ turnon_threshold_tight_

float BTVHLTOfflineSource::turnon_threshold_tight_
private

Definition at line 65 of file BTVHLTOfflineSource.cc.

Referenced by analyze().

◆ verbose_

bool BTVHLTOfflineSource::verbose_
private

Definition at line 56 of file BTVHLTOfflineSource.cc.

Referenced by analyze().

BTVHLTOfflineSource::caloTags
edm::Handle< reco::JetTagCollection > caloTags
Definition: BTVHLTOfflineSource.cc:85
reco::btau::jetNSelectedTracks
Definition: TaggingVariable.h:38
BTVHLTOfflineSource::custompathnamepairs_
std::vector< std::pair< std::string, std::string > > custompathnamepairs_
Definition: BTVHLTOfflineSource.cc:58
BTVHLTOfflineSource::hltFastPVToken_
edm::EDGetTokenT< std::vector< reco::Vertex > > hltFastPVToken_
Definition: BTVHLTOfflineSource.cc:70
edm::InputTag::instance
std::string const & instance() const
Definition: InputTag.h:37
BTVHLTOfflineSource_cfi.pathname
pathname
Definition: BTVHLTOfflineSource_cfi.py:28
BTVHLTOfflineSource::hltConfig_
HLTConfigProvider hltConfig_
Definition: BTVHLTOfflineSource.cc:88
BTVHLTOfflineSource::triggerResultsLabel_
edm::InputTag triggerResultsLabel_
Definition: BTVHLTOfflineSource.cc:61
gather_cfg.cout
cout
Definition: gather_cfg.py:144
edm::LogInfo
Definition: MessageLogger.h:254
triggerResults
static const std::string triggerResults
Definition: EdmProvDump.cc:45
BTVHLTOfflineSource::triggerSummaryLabel_
edm::InputTag triggerSummaryLabel_
Definition: BTVHLTOfflineSource.cc:60
BTVHLTOfflineSource::pfTagsToken_
edm::EDGetTokenT< reco::JetTagCollection > pfTagsToken_
Definition: BTVHLTOfflineSource.cc:84
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
findQualityFiles.v
v
Definition: findQualityFiles.py:179
BTVHLTOfflineSource::triggerSummaryFUToken
edm::EDGetTokenT< trigger::TriggerEvent > triggerSummaryFUToken
Definition: BTVHLTOfflineSource.cc:78
edm::Handle< edm::TriggerResults >
training_settings.idx
idx
Definition: training_settings.py:16
BTVHLTOfflineSource::shallowTagInfosTokenPf_
edm::EDGetTokenT< std::vector< reco::ShallowTagInfo > > shallowTagInfosTokenPf_
Definition: BTVHLTOfflineSource.cc:81
edm::InputTag::label
std::string const & label() const
Definition: InputTag.h:36
BTVHLTOfflineSource::turnon_threshold_loose_
float turnon_threshold_loose_
Definition: BTVHLTOfflineSource.cc:63
L1TEGammaOffline_cfi.triggerNames
triggerNames
Definition: L1TEGammaOffline_cfi.py:40
BTVHLTOfflineSource::caloTagsToken_
edm::EDGetTokenT< reco::JetTagCollection > caloTagsToken_
Definition: BTVHLTOfflineSource.cc:83
BTVHLTOfflineSource::turnon_threshold_medium_
float turnon_threshold_medium_
Definition: BTVHLTOfflineSource.cc:64
HLTConfigProvider::removeVersion
static const std::string removeVersion(const std::string &trigger)
Definition: HLTConfigProvider.cc:238
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
BTVHLTOfflineSource::hltPathsAll_
PathInfoCollection hltPathsAll_
Definition: BTVHLTOfflineSource.cc:162
HLTConfigProvider::size
unsigned int size() const
number of trigger paths in trigger table
Definition: HLTConfigProvider.h:62
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:670
BTVHLTOfflineSource::triggerResultsToken
edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken
Definition: BTVHLTOfflineSource.cc:75
reco::btau::trackSip3dSig
Definition: TaggingVariable.h:57
reco::btau::jetNSecondaryVertices
Definition: TaggingVariable.h:72
BTVHLTOfflineSource::hltPFPVToken_
edm::EDGetTokenT< std::vector< reco::Vertex > > hltPFPVToken_
Definition: BTVHLTOfflineSource.cc:71
iEvent
int iEvent
Definition: GenABIO.cc:224
BTVHLTOfflineSource::offlinePVToken_
edm::EDGetTokenT< std::vector< reco::Vertex > > offlinePVToken_
Definition: BTVHLTOfflineSource.cc:73
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
reco::btau::trackSip3dVal
Definition: TaggingVariable.h:56
BTVHLTOfflineSource::processname_
std::string processname_
Definition: BTVHLTOfflineSource.cc:55
overlapproblemtsosanalyzer_cfi.title
title
Definition: overlapproblemtsosanalyzer_cfi.py:7
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
BTVHLTOfflineSource::triggerResultsFUToken
edm::EDGetTokenT< edm::TriggerResults > triggerResultsFUToken
Definition: BTVHLTOfflineSource.cc:76
heppy_batch.val
val
Definition: heppy_batch.py:351
writedatasetfile.run
run
Definition: writedatasetfile.py:27
HLTConfigProvider::init
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
Definition: HLTConfigProvider.cc:36
BTVHLTOfflineSource::shallowTagInfosTokenCalo_
edm::EDGetTokenT< std::vector< reco::ShallowTagInfo > > shallowTagInfosTokenCalo_
Definition: BTVHLTOfflineSource.cc:80
edm::TriggerNames
Definition: TriggerNames.h:55
reco::deltaR
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Definition: deltaR.h:30
Skims_PA_cff.paths
paths
Definition: Skims_PA_cff.py:18
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
HLTConfigProvider::triggerName
const std::string & triggerName(unsigned int triggerIndex) const
Definition: HLTConfigProvider.h:69
BTVHLTOfflineSource::offlineDiscrTokenbb_
edm::EDGetTokenT< reco::JetTagCollection > offlineDiscrTokenbb_
Definition: BTVHLTOfflineSource.cc:68
BTVHLTOfflineSource::dirname_
std::string dirname_
Definition: BTVHLTOfflineSource.cc:54
BTVHLTOfflineSource::turnon_threshold_tight_
float turnon_threshold_tight_
Definition: BTVHLTOfflineSource.cc:65
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
BTVHLTOfflineSource::verbose_
bool verbose_
Definition: BTVHLTOfflineSource.cc:56
BTVHLTOfflineSource::pfTags
edm::Handle< reco::JetTagCollection > pfTags
Definition: BTVHLTOfflineSource.cc:86
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
BTVHLTOfflineSource::offlineDiscrTokenb_
edm::EDGetTokenT< reco::JetTagCollection > offlineDiscrTokenb_
Definition: BTVHLTOfflineSource.cc:67
edm::InputTag
Definition: InputTag.h:15
reco::btau::vertexMass
Definition: TaggingVariable.h:75
reco::btau::vertexNTracks
Definition: TaggingVariable.h:76
BTVHLTOfflineSource::triggerSummaryToken
edm::EDGetTokenT< trigger::TriggerEvent > triggerSummaryToken
Definition: BTVHLTOfflineSource.cc:77
BTVHLTOfflineSource::hltCaloPVToken_
edm::EDGetTokenT< std::vector< reco::Vertex > > hltCaloPVToken_
Definition: BTVHLTOfflineSource.cc:72