59 std::vector<float>& offlineIP3D,
60 std::vector<float>& offlineIP3DSig);
68 std::vector<float>& onlineIP3D,
69 std::vector<float>& onlineIP3DSig);
238 using namespace reco;
243 : dirname_(iConfig.getUntrackedParameter(
"dirname",
std::
string(
"HLT/BTV/"))),
244 processname_(iConfig.getParameter<
std::
string>(
"processname")),
245 verbose_(iConfig.getUntrackedParameter<
bool>(
"verbose",
false)),
246 triggerSummaryLabel_(iConfig.getParameter<
edm::
InputTag>(
"triggerSummaryLabel")),
247 triggerResultsLabel_(iConfig.getParameter<
edm::
InputTag>(
"triggerResultsLabel")),
248 turnon_threshold_loose_(iConfig.getParameter<double>(
"turnon_threshold_loose")),
249 turnon_threshold_medium_(iConfig.getParameter<double>(
"turnon_threshold_medium")),
250 turnon_threshold_tight_(iConfig.getParameter<double>(
"turnon_threshold_tight")),
262 shallowTagInfosTokenPf_(
266 minDecayLength_(iConfig.getParameter<double>(
"minDecayLength")),
267 maxDecayLength_(iConfig.getParameter<double>(
"maxDecayLength")),
268 minJetDistance_(iConfig.getParameter<double>(
"minJetDistance")),
269 maxJetDistance_(iConfig.getParameter<double>(
"maxJetDistance")),
270 dRTrackMatch_(iConfig.getParameter<double>(
"dRTrackMatch")) {
271 std::vector<edm::ParameterSet>
paths = iConfig.
getParameter<std::vector<edm::ParameterSet>>(
"pathPairs");
283 LogDebug(
"BTVHLTOfflineSource") <<
"HLTConfigProvider failed to initialize.";
290 if (
pathname.find(custompathnamepair.first) != std::string::npos) {
303 edm::LogInfo(
"BTVHLTOfflineSource") <<
"TriggerResults not found, skipping event";
315 edm::LogInfo(
"BTVHLTOfflineSource") <<
"TriggerEvent not found, skipping event";
335 cout <<
"Run = " <<
iEvent.id().run() <<
", LS = " <<
iEvent.luminosityBlock()
336 <<
", Event = " <<
iEvent.id().event() << endl;
346 edm::LogInfo(
"BTVHLTOfflineSource") <<
"Path " <<
v.getPath() <<
" not in menu, skipping event";
351 edm::LogInfo(
"BTVHLTOfflineSource") <<
"Path " <<
v.getPath() <<
" not accepted, skipping event";
358 if (
v.getTriggerType() ==
"PF" &&
pfTags.isValid()) {
359 const auto& iter =
pfTags->begin();
361 float Discr_online = iter->second;
362 if (Discr_online < 0)
363 Discr_online = -0.05;
365 v.Discr->Fill(Discr_online);
366 v.Pt->Fill(iter->first->pt());
367 v.Eta->Fill(iter->first->eta());
369 if (offlineJetTagHandlerb.
isValid()) {
370 for (
auto const& iterOffb : *offlineJetTagHandlerb) {
371 float DR =
reco::deltaR(iterOffb.first->eta(), iterOffb.first->phi(), iter->first->eta(), iter->first->phi());
373 float Discr_offline = iterOffb.second;
374 float Pt_offline = iterOffb.first->pt();
375 float Eta_offline = iterOffb.first->eta();
376 float Phi_offline = iterOffb.first->phi();
378 if (Discr_offline < 0)
379 Discr_offline = -0.05;
380 v.Discr_HLTvsRECO->Fill(Discr_online, Discr_offline);
381 v.Discr_HLTMinusRECO->Fill(Discr_online - Discr_offline);
383 v.Discr_turnon_loose.denominator->Fill(Discr_offline);
384 v.Discr_turnon_medium.denominator->Fill(Discr_offline);
385 v.Discr_turnon_tight.denominator->Fill(Discr_offline);
387 v.Pt_turnon_loose.denominator->Fill(Pt_offline);
388 v.Pt_turnon_medium.denominator->Fill(Pt_offline);
389 v.Pt_turnon_tight.denominator->Fill(Pt_offline);
391 v.Eta_turnon_loose.denominator->Fill(Eta_offline);
392 v.Eta_turnon_medium.denominator->Fill(Eta_offline);
393 v.Eta_turnon_tight.denominator->Fill(Eta_offline);
395 v.Phi_turnon_loose.denominator->Fill(Phi_offline);
396 v.Phi_turnon_medium.denominator->Fill(Phi_offline);
397 v.Phi_turnon_tight.denominator->Fill(Phi_offline);
400 v.Discr_turnon_loose.numerator->Fill(Discr_offline);
401 v.Pt_turnon_loose.numerator->Fill(Pt_offline);
402 v.Eta_turnon_loose.numerator->Fill(Eta_offline);
403 v.Phi_turnon_loose.numerator->Fill(Phi_offline);
406 v.Discr_turnon_medium.numerator->Fill(Discr_offline);
407 v.Pt_turnon_medium.numerator->Fill(Pt_offline);
408 v.Eta_turnon_medium.numerator->Fill(Eta_offline);
409 v.Phi_turnon_medium.numerator->Fill(Phi_offline);
412 v.Discr_turnon_tight.numerator->Fill(Discr_offline);
413 v.Pt_turnon_tight.numerator->Fill(Pt_offline);
414 v.Eta_turnon_tight.numerator->Fill(Eta_offline);
415 v.Phi_turnon_tight.numerator->Fill(Phi_offline);
423 bool pfSVTagCollValid = (
v.getTriggerType() ==
"PF" && jetSVTagsCollPF.
isValid());
424 if (offlineIPTagHandle.
isValid() && pfSVTagCollValid) {
425 std::vector<float> offlineIP3D;
426 std::vector<float> offlineIP3DSig;
428 iter->first->eta(), iter->first->phi(), offlineIPTagHandle, offlineIP3D, offlineIP3DSig);
429 std::vector<const reco::Track*> onlineTracks;
430 std::vector<float> onlineIP3D;
431 std::vector<float> onlineIP3DSig;
432 if (pfSVTagCollValid)
433 onlineTracks = getOnlineBTagTracks<SVTagInfo>(
434 iter->first->eta(), iter->first->phi(), jetSVTagsCollPF, onlineIP3D, onlineIP3DSig);
436 for (
unsigned int iOffTrk = 0; iOffTrk < offlineTracks.size(); ++iOffTrk) {
437 const reco::Track* offTrk = offlineTracks.at(iOffTrk);
438 bool hasMatch =
false;
439 float offTrkEta = offTrk->
eta();
440 float offTrkPhi = offTrk->
phi();
443 float DR =
reco::deltaR(offTrkEta, offTrkPhi, onTrk->eta(), onTrk->phi());
449 float offTrkPt = offTrk->
pt();
450 v.OnlineTrkEff_Pt.denominator->Fill(offTrkPt);
452 v.OnlineTrkEff_Pt.numerator->Fill(offTrkPt);
454 v.OnlineTrkEff_Eta.denominator->Fill(offTrkEta);
456 v.OnlineTrkEff_Eta.numerator->Fill(offTrkEta);
458 v.OnlineTrkEff_3d_ip_distance.denominator->Fill(offlineIP3D.at(iOffTrk));
460 v.OnlineTrkEff_3d_ip_distance.numerator->Fill(offlineIP3D.at(iOffTrk));
462 v.OnlineTrkEff_3d_ip_sig.denominator->Fill(offlineIP3DSig.at(iOffTrk));
464 v.OnlineTrkEff_3d_ip_sig.numerator->Fill(offlineIP3DSig.at(iOffTrk));
467 for (
unsigned int iOnTrk = 0; iOnTrk < onlineTracks.size(); ++iOnTrk) {
468 const reco::Track* onTrk = onlineTracks.at(iOnTrk);
469 bool hasMatch =
false;
470 float onTrkEta = onTrk->
eta();
471 float onTrkPhi = onTrk->
phi();
474 float DR =
reco::deltaR(onTrkEta, onTrkPhi, offTrk->eta(), offTrk->phi());
480 float onTrkPt = onTrk->
pt();
481 v.OnlineTrkFake_Pt.denominator->Fill(onTrkPt);
483 v.OnlineTrkFake_Pt.numerator->Fill(onTrkPt);
485 v.OnlineTrkFake_Eta.denominator->Fill(onTrkEta);
487 v.OnlineTrkFake_Eta.numerator->Fill(onTrkEta);
489 v.OnlineTrkFake_3d_ip_distance.denominator->Fill(onlineIP3D.at(iOnTrk));
491 v.OnlineTrkFake_3d_ip_distance.numerator->Fill(onlineIP3D.at(iOnTrk));
493 v.OnlineTrkFake_3d_ip_sig.denominator->Fill(onlineIP3DSig.at(iOnTrk));
495 v.OnlineTrkFake_3d_ip_sig.numerator->Fill(onlineIP3DSig.at(iOnTrk));
501 v.PVz->Fill(VertexHandler->begin()->z());
502 if (offlineVertexHandler.
isValid()) {
503 v.PVz_HLTMinusRECO->Fill(VertexHandler->begin()->z() - offlineVertexHandler->begin()->z());
521 if (
v.getTriggerType() ==
"PF" && shallowTagInfosPf.
isValid()) {
522 const auto& shallowTagInfoCollection = shallowTagInfosPf;
523 for (
const auto& shallowTagInfo : *shallowTagInfoCollection) {
524 const auto& tagVars = shallowTagInfo.taggingVariables();
528 v.h_jetNSecondaryVertices->Fill(tagVar);
529 v.n_vtx->Fill(tagVar);
533 v.n_sel_tracks->Fill(tagVar);
534 v.h_jetNSelectedTracks->Fill(tagVar);
538 v.h_jet_pt->Fill(tagVar);
542 v.h_jet_eta->Fill(tagVar);
546 v.h_trackSumJetEtRatio->Fill(tagVar);
550 v.h_trackSumJetDeltaR->Fill(tagVar);
554 v.h_vertexCategory->Fill(tagVar);
558 v.h_trackSip2dValAboveCharm->Fill(tagVar);
562 v.h_trackSip2dSigAboveCharm->Fill(tagVar);
566 v.h_trackSip3dValAboveCharm->Fill(tagVar);
570 v.h_trackSip3dSigAboveCharm->Fill(tagVar);
574 v.h_jetNTracksEtaRel->Fill(tagVar);
589 for (
unsigned i_trk = 0; i_trk <
trackEtaRel.size(); i_trk++) {
597 for (
unsigned i_trk = 0; i_trk <
trackPtRel.size(); i_trk++) {
601 for (
unsigned i_trk = 0; i_trk <
trackDeltaR.size(); i_trk++) {
605 for (
unsigned i_trk = 0; i_trk <
trackPtRatio.size(); i_trk++) {
613 for (
unsigned i_trk = 0; i_trk <
trackSip3dVal.size(); i_trk++) {
616 v.h_3d_ip_distance->Fill(
val);
617 v.h_3d_ip_error->Fill(
val / sig);
618 v.h_3d_ip_sig->Fill(sig);
625 v.vtx_mass->Fill(tagVar);
628 v.n_vtx_trks->Fill(tagVar);
632 v.h_vertexEnergyRatio->Fill(tagVar);
636 v.h_vertexJetDeltaR->Fill(tagVar);
640 v.h_flightDistance2dVal->Fill(tagVar);
644 v.h_flightDistance2dSig->Fill(tagVar);
648 v.h_flightDistance3dVal->Fill(tagVar);
652 v.h_flightDistance3dSig->Fill(tagVar);
704 std::vector<float>& offlineIP3D,
705 std::vector<float>& offlineIP3DSig) {
706 std::vector<const reco::Track*> offlineTracks;
708 for (
auto const& iterOffIP : *offlineIPTagHandle) {
709 float DR =
reco::deltaR(iterOffIP.jet()->eta(), iterOffIP.jet()->phi(), hltJetEta, hltJetPhi);
719 <<
"BTagPerformanceAnalyzer: Extended TagInfo not of type TrackIPTagInfo. " << std::endl;
723 tagInfo->primaryVertex()->position().y(),
724 tagInfo->primaryVertex()->position().z());
726 const std::vector<reco::btag::TrackIPData>& ip =
tagInfo->impactParameterData();
729 std::vector<reco::CandidatePtr> sortedTracks =
tagInfo->sortedTracks(sortedIndices);
730 std::vector<std::size_t> selectedIndices;
732 for (
unsigned int n = 0;
n != sortedIndices.size(); ++
n) {
734 double jetDistance = ip[sortedIndices[
n]].distanceToJetAxis.value();
737 selectedIndices.push_back(sortedIndices[
n]);
742 for (
unsigned int n = 0;
n != selectedIndices.size(); ++
n) {
744 offlineTracks.push_back(
track);
745 offlineIP3D.push_back(ip[
n].
ip3d.value());
746 offlineIP3DSig.push_back(ip[
n].
ip3d.significance());
749 return offlineTracks;
752 template <
class Base>
756 std::vector<float>& onlineIP3D,
757 std::vector<float>& onlineIP3DSig) {
758 std::vector<const reco::Track*> onlineTracks;
760 for (
auto iterTI = jetSVTagsColl->begin(); iterTI != jetSVTagsColl->end(); ++iterTI) {
761 float DR =
reco::deltaR(iterTI->jet()->eta(), iterTI->jet()->phi(), hltJetEta, hltJetPhi);
765 const auto& ipInfo = *(iterTI->trackIPTagInfoRef().get());
766 const std::vector<reco::btag::TrackIPData>& ip = ipInfo.impactParameterData();
768 unsigned int trackSize = ipInfo.selectedTracks().size();
769 for (
unsigned int itt = 0; itt < trackSize; ++itt) {
770 const auto ptrackRef = (ipInfo.selectedTracks()[itt]);
772 if (ptrackRef.isAvailable()) {
774 onlineTracks.push_back(ptrackPtr);
775 onlineIP3D.push_back(ip[itt].
ip3d.value());
776 onlineIP3DSig.push_back(ip[itt].
ip3d.significance());
795 histoname = labelname +
"_Discr";
796 title = labelname +
"_Discr " + trigPath;
797 v.Discr = iBooker.
book1D(histoname.c_str(),
title.c_str(), 110, -0.1, 1);
799 histoname = labelname +
"_Pt";
800 title = labelname +
"_Pt " + trigPath;
801 v.Pt = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, 0, 400);
803 histoname = labelname +
"_Eta";
804 title = labelname +
"_Eta " + trigPath;
805 v.Eta = iBooker.
book1D(histoname.c_str(),
title.c_str(), 60, -3.0, 3.0);
807 histoname =
"HLTvsRECO_Discr";
808 title =
"online discr vs offline discr " + trigPath;
809 v.Discr_HLTvsRECO = iBooker.
book2D(histoname.c_str(),
title.c_str(), 110, -0.1, 1, 110, -0.1, 1);
811 histoname =
"HLTMinusRECO_Discr";
812 title =
"online discr minus offline discr " + trigPath;
813 v.Discr_HLTMinusRECO = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -1, 1);
815 histoname =
"Turnon_loose_Discr";
816 title =
"turn-on with loose threshold " + trigPath;
817 v.bookME(iBooker,
v.Discr_turnon_loose, histoname,
title, 22, -0.1, 1.);
819 histoname =
"Turnon_medium_Discr";
820 title =
"turn-on with medium threshold " + trigPath;
821 v.bookME(iBooker,
v.Discr_turnon_medium, histoname,
title, 22, -0.1, 1.);
823 histoname =
"Turnon_tight_Discr";
824 title =
"turn-on with tight threshold " + trigPath;
825 v.bookME(iBooker,
v.Discr_turnon_tight, histoname,
title, 22, -0.1, 1.);
827 histoname =
"Turnon_loose_Pt";
828 title =
"turn-on with loose threshold " + trigPath;
829 v.bookME(iBooker,
v.Pt_turnon_loose, histoname,
title, 50, 0., 500.);
831 histoname =
"Turnon_medium_Pt";
832 title =
"turn-on with medium threshold " + trigPath;
833 v.bookME(iBooker,
v.Pt_turnon_medium, histoname,
title, 50, 0., 500.);
835 histoname =
"Turnon_tight_Pt";
836 title =
"turn-on with tight threshold " + trigPath;
837 v.bookME(iBooker,
v.Pt_turnon_tight, histoname,
title, 50, 0., 500.);
839 histoname =
"Turnon_loose_Eta";
840 title =
"turn-on with loose threshold " + trigPath;
841 v.bookME(iBooker,
v.Eta_turnon_loose, histoname,
title, 60, -3., 3.);
843 histoname =
"Turnon_medium_Eta";
844 title =
"turn-on with medium threshold " + trigPath;
845 v.bookME(iBooker,
v.Eta_turnon_medium, histoname,
title, 60, -3., 3.);
847 histoname =
"Turnon_tight_Eta";
848 title =
"turn-on with tight threshold " + trigPath;
849 v.bookME(iBooker,
v.Eta_turnon_tight, histoname,
title, 60, -3., 3.);
851 histoname =
"Turnon_loose_Phi";
852 title =
"turn-on with loose threshold " + trigPath;
853 v.bookME(iBooker,
v.Phi_turnon_loose, histoname,
title, 60, -3., 3.);
855 histoname =
"Turnon_medium_Phi";
856 title =
"turn-on with medium threshold " + trigPath;
857 v.bookME(iBooker,
v.Phi_turnon_medium, histoname,
title, 60, -3., 3.);
859 histoname =
"Turnon_tight_Phi";
860 title =
"turn-on with tight threshold " + trigPath;
861 v.bookME(iBooker,
v.Phi_turnon_tight, histoname,
title, 60, -3., 3.);
863 histoname = labelname +
"_PVz";
864 title =
"online z(PV) " + trigPath;
865 v.PVz = iBooker.
book1D(histoname.c_str(),
title.c_str(), 80, -20, 20);
867 histoname = labelname +
"_fastPVz";
868 title =
"online z(fastPV) " + trigPath;
869 v.fastPVz = iBooker.
book1D(histoname.c_str(),
title.c_str(), 80, -20, 20);
871 histoname =
"HLTMinusRECO_PVz";
872 title =
"online z(PV) - offline z(PV) " + trigPath;
873 v.PVz_HLTMinusRECO = iBooker.
book1D(histoname.c_str(),
title.c_str(), 200, -0.5, 0.5);
875 histoname =
"HLTMinusRECO_fastPVz";
876 title =
"online z(fastPV) - offline z(PV) " + trigPath;
877 v.fastPVz_HLTMinusRECO = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -2, 2);
880 title =
"N vertex candidates " + trigPath;
881 v.n_vtx = iBooker.
book1D(histoname.c_str(),
title.c_str(), 10, -0.5, 9.5);
883 histoname =
"vtx_mass";
884 title =
"secondary vertex mass (GeV)" + trigPath;
885 v.vtx_mass = iBooker.
book1D(histoname.c_str(),
title.c_str(), 20, 0, 10);
887 histoname =
"n_vtx_trks";
888 title =
"N tracks associated to secondary vertex" + trigPath;
889 v.n_vtx_trks = iBooker.
book1D(histoname.c_str(),
title.c_str(), 20, -0.5, 19.5);
891 histoname =
"n_sel_tracks";
892 title =
"N selected tracks" + trigPath;
893 v.n_sel_tracks = iBooker.
book1D(histoname.c_str(),
title.c_str(), 25, -0.5, 24.5);
895 histoname =
"3d_ip_distance";
896 title =
"3D IP distance of tracks (cm)" + trigPath;
897 v.h_3d_ip_distance = iBooker.
book1D(histoname.c_str(),
title.c_str(), 40, -0.1, 0.1);
899 histoname =
"3d_ip_error";
900 title =
"3D IP error of tracks (cm)" + trigPath;
901 v.h_3d_ip_error = iBooker.
book1D(histoname.c_str(),
title.c_str(), 40, 0., 0.1);
903 histoname =
"3d_ip_sig";
904 title =
"3D IP significance of tracks (cm)" + trigPath;
905 v.h_3d_ip_sig = iBooker.
book1D(histoname.c_str(),
title.c_str(), 40, -40, 40);
908 histoname =
"jetNSecondaryVertices";
909 title =
"jet N Secondary Vertices" + trigPath;
910 v.h_jetNSecondaryVertices = iBooker.
book1D(histoname.c_str(),
title.c_str(), 10, -0.5, 9.5);
912 histoname =
"jet_pt";
913 title =
"jet pt" + trigPath;
914 v.h_jet_pt = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -0.1, 100);
916 histoname =
"jet_eta";
917 title =
"jet eta" + trigPath;
918 v.h_jet_eta = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -2.5, 2.5);
920 histoname =
"trackSumJetEtRatio";
921 title =
"trackSumJetEtRatio" + trigPath;
922 v.h_trackSumJetEtRatio = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -0.1, 1.5);
924 histoname =
"trackSip2dValAboveCharm";
925 title =
"trackSip2dSigAboveCharm" + trigPath;
926 v.h_trackSip2dSigAboveCharm = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -0.2, 0.2);
928 histoname =
"trackSip2dSigAboveCharm";
929 title =
"trackSip2dSigAboveCharm" + trigPath;
930 v.h_trackSip2dValAboveCharm = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -50, 50);
932 histoname =
"trackSip3dValAboveCharm";
933 title =
"trackSip3dValAboveCharm" + trigPath;
934 v.h_trackSip3dValAboveCharm = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -0.2, 0.2);
936 histoname =
"trackSip3dSigAboveCharm";
937 title =
"trackSip3dSigAboveCharm" + trigPath;
938 v.h_trackSip3dSigAboveCharm = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -50, 50);
940 histoname =
"jetNSelectedTracks";
941 title =
"jet N Selected Tracks" + trigPath;
942 v.h_jetNSelectedTracks = iBooker.
book1D(histoname.c_str(),
title.c_str(), 42, -1.5, 40.5);
944 histoname =
"jetNTracksEtaRel";
945 title =
"jetNTracksEtaRel" + trigPath;
946 v.h_jetNTracksEtaRel = iBooker.
book1D(histoname.c_str(),
title.c_str(), 42, -1.5, 40.5);
948 histoname =
"vertexCategory";
949 title =
"vertex category" + trigPath;
950 v.h_vertexCategory = iBooker.
book1D(histoname.c_str(),
title.c_str(), 4, -1.5, 2.5);
952 histoname =
"trackSumJetDeltaR";
953 title =
"trackSumJetDeltaR" + trigPath;
954 v.h_trackSumJetDeltaR = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -0.1, 0.35);
957 histoname =
"trackJetDistVal";
958 title =
"trackJetDistVal" + trigPath;
959 v.h_trackJetDistVal = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -1, 0.01);
961 histoname =
"trackPtRel";
962 title =
"track pt rel" + trigPath;
963 v.h_trackPtRel = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -0.1, 7);
965 histoname =
"trackDeltaR";
966 title =
"trackDeltaR" + trigPath;
967 v.h_trackDeltaR = iBooker.
book1D(histoname.c_str(),
title.c_str(), 160, -0.05, .47);
969 histoname =
"trackPtRatio";
970 title =
"trackPtRatio" + trigPath;
971 v.h_trackPtRatio = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -0.01, 0.3);
973 histoname =
"trackSip2dSig";
974 title =
"trackSip2dSig" + trigPath;
975 v.h_trackSip2dSig = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -55, 55);
977 histoname =
"trackDecayLenVal";
978 title =
"trackDecayLenVal" + trigPath;
979 v.h_trackDecayLenVal = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -0.1, 22);
981 histoname =
"trackEtaRel";
982 title =
"trackEtaRel" + trigPath;
983 v.h_trackEtaRel = iBooker.
book1D(histoname.c_str(),
title.c_str(), 31, 0, 30);
986 histoname =
"vertexEnergyRatio";
987 title =
"vertexEnergyRatio" + trigPath;
988 v.h_vertexEnergyRatio = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -0.1, 3);
990 histoname =
"vertexJetDeltaR";
991 title =
"vertexJetDeltaR" + trigPath;
992 v.h_vertexJetDeltaR = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -0.01, 0.4);
994 histoname =
"flightDistance2dVal";
995 title =
"flightDistance2dVal" + trigPath;
996 v.h_flightDistance2dVal = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -0.1, 5);
998 histoname =
"flightDistance2dSig";
999 title =
"flightDistance2dSig" + trigPath;
1000 v.h_flightDistance2dSig = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -10, 150);
1002 histoname =
"flightDistance3dVal";
1003 title =
"flightDistance3dVal" + trigPath;
1004 v.h_flightDistance3dVal = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -0.1, 5);
1006 histoname =
"flightDistance3dSig";
1007 title =
"flightDistance3dSig" + trigPath;
1008 v.h_flightDistance3dSig = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -10, 150);
1012 histoname =
"OnlineTrkEff_Pt";
1013 title =
"Relative Online Trk Efficiency vs Pt " + trigPath;
1014 v.bookME(iBooker,
v.OnlineTrkEff_Pt, histoname,
title, 50, -0.5, 20.);
1016 histoname =
"OnlineTrkEff_Eta";
1017 title =
"Relative Online Trk Efficiency vs Eta " + trigPath;
1018 v.bookME(iBooker,
v.OnlineTrkEff_Eta, histoname,
title, 60, -3.0, 3.0);
1020 histoname =
"OnlineTrkEff_3d_ip_distance";
1021 title =
"Relative Online Trk Efficiency vs IP3D " + trigPath;
1022 v.bookME(iBooker,
v.OnlineTrkEff_3d_ip_distance, histoname,
title, 40, -0.1, 0.1);
1024 histoname =
"OnlineTrkEff_3d_ip_sig";
1025 title =
"Relative Online Trk Efficiency vs IP3D significance " + trigPath;
1026 v.bookME(iBooker,
v.OnlineTrkEff_3d_ip_sig, histoname,
title, 40, -40, 40);
1028 histoname =
"OnlineTrkFake_Pt";
1029 title =
"Relative Online Trk Fake Rate vs Pt " + trigPath;
1030 v.bookME(iBooker,
v.OnlineTrkFake_Pt, histoname,
title, 50, -0.5, 20.);
1032 histoname =
"OnlineTrkFake_Eta";
1033 title =
"Relative Online Trk Fake Rate vs Eta " + trigPath;
1034 v.bookME(iBooker,
v.OnlineTrkFake_Eta, histoname,
title, 60, -3.0, 3.0);
1036 histoname =
"OnlineTrkFake_3d_ip_distance";
1037 title =
"Relative Online Trk Fake Rate vs IP3D " + trigPath;
1038 v.bookME(iBooker,
v.OnlineTrkFake_3d_ip_distance, histoname,
title, 40, -0.1, 0.1);
1040 histoname =
"OnlineTrkFake_3d_ip_sig";
1041 title =
"Relative Online Trk Fake Rate vs IP3D significance " + trigPath;
1042 v.bookME(iBooker,
v.OnlineTrkFake_3d_ip_sig, histoname,
title, 40, -40, 40);
void analyze(const edm::Event &, const edm::EventSetup &) override
ObjME OnlineTrkFake_3d_ip_distance
BTVHLTOfflineSource(const edm::ParameterSet &)
const std::string & triggerName(unsigned int triggerIndex) const
MonitorElement * h_trackDeltaR
T getParameter(std::string const &) const
edm::EDGetTokenT< std::vector< SVTagInfo > > SVTagInfosTokenPf_
The single EDProduct to be saved for each event (AOD case)
ObjME OnlineTrkEff_3d_ip_distance
const bool operator==(const std::string &v) const
ObjME OnlineTrkEff_3d_ip_sig
virtual void setCurrentFolder(std::string const &fullpath)
static PFTauRenderPlugin instance
MonitorElement * fastPVz_HLTMinusRECO
MonitorElement * h_jetNTracksEtaRel
MonitorElement * h_3d_ip_sig
edm::EDGetTokenT< reco::JetTagCollection > pfTagsToken_
edm::EDGetTokenT< reco::JetTagCollection > offlineDiscrTokenb_
void setLabel(std::string labelName)
ObjME Discr_turnon_medium
MonitorElement * h_vertexEnergyRatio
reco::TemplatedSecondaryVertexTagInfo< reco::CandIPTagInfo, reco::VertexCompositePtrCandidate > SVTagInfo
MonitorElement * h_3d_ip_error
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
const reco::Track * toTrack(const reco::TrackBaseRef &t)
MonitorElement * h_flightDistance3dSig
MonitorElement * h_vertexCategory
static const std::string removeVersion(const std::string &trigger)
edm::EDGetTokenT< std::vector< reco::Vertex > > offlinePVToken_
edm::EDGetTokenT< trigger::TriggerEvent > triggerSummaryFUToken
double pt() const
track transverse momentum
MonitorElement * h_trackJetDistVal
MonitorElement * h_trackSumJetEtRatio
std::vector< PathInfo >::iterator find(const std::string &pathName)
MonitorElement * h_trackEtaRel
edm::InputTag triggerResultsLabel_
MonitorElement * vtx_mass
ObjME OnlineTrkFake_3d_ip_sig
MonitorElement * h_flightDistance3dVal
edm::Handle< reco::JetTagCollection > pfTags
unsigned int size() const
number of trigger paths in trigger table
MonitorElement * h_trackPtRatio
edm::InputTag triggerSummaryLabel_
const int getprescaleUsed() const
const std::string getTriggerType() const
~PathInfo() override=default
PathInfo(const int prescaleUsed, const std::string &pathName, const std::string &filterName, const std::string &processName, const int type, const std::string &triggerType)
MonitorElement * h_trackSip2dSigAboveCharm
double phi() const
azimuthal angle of momentum vector
PathInfoCollection hltPathsAll_
#define DEFINE_FWK_MODULE(type)
MonitorElement * PVz_HLTMinusRECO
MonitorElement * h_trackPtRel
MonitorElement * n_vtx_trks
~BTVHLTOfflineSource() override
static std::string const triggerResults
const std::string getProcess() const
HLTConfigProvider hltConfig_
MonitorElement * h_trackSip2dSig
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
MonitorElement * h_jetNSelectedTracks
Log< level::Info, false > LogInfo
double eta() const
pseudorapidity of momentum vector
MonitorElement * h_vertexJetDeltaR
labelName
Custom Jet reco ####.
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken
MonitorElement * Discr_HLTMinusRECO
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
edm::EDGetTokenT< std::vector< reco::Vertex > > hltPFPVToken_
float turnon_threshold_loose_
MonitorElement * h_trackDecayLenVal
void dqmBeginRun(edm::Run const &run, edm::EventSetup const &c) override
MonitorElement * h_flightDistance2dSig
MonitorElement * h_3d_ip_distance
std::vector< const reco::Track * > getOfflineBTagTracks(float hltJetEta, float hltJetPhi, edm::Handle< edm::View< reco::BaseTagInfo >> offlineIPTagHandle, std::vector< float > &offlineIP3D, std::vector< float > &offlineIP3DSig)
std::vector< std::pair< std::string, std::string > > custompathnamepairs_
edm::EDGetTokenT< trigger::TriggerEvent > triggerSummaryToken
const std::string getPath() const
edm::EDGetTokenT< edm::View< reco::BaseTagInfo > > offlineIPToken_
const int getObjectType() const
edm::EDGetTokenT< std::vector< reco::ShallowTagInfo > > shallowTagInfosTokenPf_
MonitorElement * h_flightDistance2dVal
MonitorElement * h_trackSip3dValAboveCharm
MonitorElement * Discr_HLTvsRECO
const edm::InputTag getTag() const
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
void bookHistograms(DQMStore::IBooker &, edm::Run const &run, edm::EventSetup const &c) override
MonitorElement * h_trackSip3dSig
const std::string getLabel() const
MonitorElement * h_jet_pt
MonitorElement * h_trackSip3dSigAboveCharm
float turnon_threshold_tight_
edm::EDGetTokenT< edm::TriggerResults > triggerResultsFUToken
std::vector< const reco::Track * > getOnlineBTagTracks(float hltJetEta, float hltJetPhi, edm::Handle< std::vector< Base >> jetSVTagsColl, std::vector< float > &onlineIP3D, std::vector< float > &onlineIP3DSig)
MonitorElement * h_jet_eta
MonitorElement * n_sel_tracks
MonitorElement * h_trackSip2dValAboveCharm
MonitorElement * h_jetNSecondaryVertices
MonitorElement * h_trackSumJetDeltaR
float turnon_threshold_medium_