59 std::vector<float>& offlineIP3D,
60 std::vector<float>& offlineIP3DSig);
68 std::vector<float>& onlineIP3D,
69 std::vector<float>& onlineIP3DSig);
236 using namespace reco;
241 : dirname_(iConfig.getUntrackedParameter(
"dirname",
std::
string(
"HLT/BTV/"))),
242 processname_(iConfig.getParameter<
std::
string>(
"processname")),
243 verbose_(iConfig.getUntrackedParameter<
bool>(
"verbose",
false)),
244 triggerSummaryLabel_(iConfig.getParameter<
edm::
InputTag>(
"triggerSummaryLabel")),
245 triggerResultsLabel_(iConfig.getParameter<
edm::
InputTag>(
"triggerResultsLabel")),
246 turnon_threshold_loose_(iConfig.getParameter<double>(
"turnon_threshold_loose")),
247 turnon_threshold_medium_(iConfig.getParameter<double>(
"turnon_threshold_medium")),
248 turnon_threshold_tight_(iConfig.getParameter<double>(
"turnon_threshold_tight")),
250 offlineDiscrTokenbb_(
264 shallowTagInfosTokenCalo_(
266 shallowTagInfosTokenPf_(
269 edm::
InputTag(
"hltInclusiveSecondaryVertexFinderTagInfos"))),
273 minDecayLength_(iConfig.getParameter<double>(
"minDecayLength")),
274 maxDecayLength_(iConfig.getParameter<double>(
"maxDecayLength")),
275 minJetDistance_(iConfig.getParameter<double>(
"minJetDistance")),
276 maxJetDistance_(iConfig.getParameter<double>(
"maxJetDistance")),
277 dRTrackMatch_(iConfig.getParameter<double>(
"dRTrackMatch")) {
278 std::vector<edm::ParameterSet>
paths = iConfig.
getParameter<std::vector<edm::ParameterSet>>(
"pathPairs");
290 LogDebug(
"BTVHLTOfflineSource") <<
"HLTConfigProvider failed to initialize.";
297 if (
pathname.find(custompathnamepair.first) != std::string::npos) {
310 edm::LogInfo(
"BTVHLTOfflineSource") <<
"TriggerResults not found, skipping event";
322 edm::LogInfo(
"BTVHLTOfflineSource") <<
"TriggerEvent not found, skipping event";
348 cout <<
"Run = " <<
iEvent.id().run() <<
", LS = " <<
iEvent.luminosityBlock()
349 <<
", Event = " <<
iEvent.id().event() << endl;
360 edm::LogInfo(
"BTVHLTOfflineSource") <<
"Path " <<
v.getPath() <<
" not in menu, skipping event";
365 edm::LogInfo(
"BTVHLTOfflineSource") <<
"Path " <<
v.getPath() <<
" not accepted, skipping event";
369 if (
v.getTriggerType() ==
"PF") {
376 if ((
v.getTriggerType() ==
"PF" &&
pfTags.isValid()) ||
378 const auto& iter = (
v.getTriggerType() ==
"PF") ?
pfTags->begin() :
caloTags->begin();
380 float Discr_online = iter->second;
381 if (Discr_online < 0)
382 Discr_online = -0.05;
384 v.Discr->Fill(Discr_online);
385 v.Pt->Fill(iter->first->pt());
386 v.Eta->Fill(iter->first->eta());
388 if (offlineJetTagHandlerb.
isValid()) {
389 for (
auto const& iterOffb : *offlineJetTagHandlerb) {
390 float DR =
reco::deltaR(iterOffb.first->eta(), iterOffb.first->phi(), iter->first->eta(), iter->first->phi());
392 float Discr_offline = iterOffb.second;
395 if (offlineJetTagHandlerbb.
isValid()) {
396 for (
auto const& iterOffbb : *offlineJetTagHandlerbb) {
398 iterOffbb.first->eta(), iterOffbb.first->phi(), iter->first->eta(), iter->first->phi());
400 Discr_offline += iterOffbb.second;
406 if (Discr_offline < 0)
407 Discr_offline = -0.05;
408 v.Discr_HLTvsRECO->Fill(Discr_online, Discr_offline);
409 v.Discr_HLTMinusRECO->Fill(Discr_online - Discr_offline);
411 v.Discr_turnon_loose.denominator->Fill(Discr_offline);
412 v.Discr_turnon_medium.denominator->Fill(Discr_offline);
413 v.Discr_turnon_tight.denominator->Fill(Discr_offline);
416 v.Discr_turnon_loose.numerator->Fill(Discr_offline);
418 v.Discr_turnon_medium.numerator->Fill(Discr_offline);
420 v.Discr_turnon_tight.numerator->Fill(Discr_offline);
427 bool pfSVTagCollValid = (
v.getTriggerType() ==
"PF" && jetSVTagsCollPF.
isValid());
428 bool caloSVTagCollValid = (
v.getTriggerType() ==
"Calo" && jetSVTagsCollCalo.
isValid());
429 if (offlineIPTagHandle.
isValid() && (pfSVTagCollValid || caloSVTagCollValid)) {
430 std::vector<float> offlineIP3D;
431 std::vector<float> offlineIP3DSig;
433 iter->first->eta(), iter->first->phi(), offlineIPTagHandle, offlineIP3D, offlineIP3DSig);
434 std::vector<const reco::Track*> onlineTracks;
435 std::vector<float> onlineIP3D;
436 std::vector<float> onlineIP3DSig;
437 if (pfSVTagCollValid)
438 onlineTracks = getOnlineBTagTracks<SVTagInfo>(
439 iter->first->eta(), iter->first->phi(), jetSVTagsCollPF, onlineIP3D, onlineIP3DSig);
440 if (caloSVTagCollValid)
441 onlineTracks = getOnlineBTagTracks<reco::SecondaryVertexTagInfo>(
442 iter->first->eta(), iter->first->phi(), jetSVTagsCollCalo, onlineIP3D, onlineIP3DSig);
444 for (
unsigned int iOffTrk = 0; iOffTrk < offlineTracks.size(); ++iOffTrk) {
445 const reco::Track* offTrk = offlineTracks.at(iOffTrk);
446 bool hasMatch =
false;
447 float offTrkEta = offTrk->
eta();
448 float offTrkPhi = offTrk->
phi();
451 float DR =
reco::deltaR(offTrkEta, offTrkPhi, onTrk->eta(), onTrk->phi());
457 float offTrkPt = offTrk->
pt();
458 v.OnlineTrkEff_Pt.denominator->Fill(offTrkPt);
460 v.OnlineTrkEff_Pt.numerator->Fill(offTrkPt);
462 v.OnlineTrkEff_Eta.denominator->Fill(offTrkEta);
464 v.OnlineTrkEff_Eta.numerator->Fill(offTrkEta);
466 v.OnlineTrkEff_3d_ip_distance.denominator->Fill(offlineIP3D.at(iOffTrk));
468 v.OnlineTrkEff_3d_ip_distance.numerator->Fill(offlineIP3D.at(iOffTrk));
470 v.OnlineTrkEff_3d_ip_sig.denominator->Fill(offlineIP3DSig.at(iOffTrk));
472 v.OnlineTrkEff_3d_ip_sig.numerator->Fill(offlineIP3DSig.at(iOffTrk));
475 for (
unsigned int iOnTrk = 0; iOnTrk < onlineTracks.size(); ++iOnTrk) {
476 const reco::Track* onTrk = onlineTracks.at(iOnTrk);
477 bool hasMatch =
false;
478 float onTrkEta = onTrk->
eta();
479 float onTrkPhi = onTrk->
phi();
482 float DR =
reco::deltaR(onTrkEta, onTrkPhi, offTrk->eta(), offTrk->phi());
488 float onTrkPt = onTrk->
pt();
489 v.OnlineTrkFake_Pt.denominator->Fill(onTrkPt);
491 v.OnlineTrkFake_Pt.numerator->Fill(onTrkPt);
493 v.OnlineTrkFake_Eta.denominator->Fill(onTrkEta);
495 v.OnlineTrkFake_Eta.numerator->Fill(onTrkEta);
497 v.OnlineTrkFake_3d_ip_distance.denominator->Fill(onlineIP3D.at(iOnTrk));
499 v.OnlineTrkFake_3d_ip_distance.numerator->Fill(onlineIP3D.at(iOnTrk));
501 v.OnlineTrkFake_3d_ip_sig.denominator->Fill(onlineIP3DSig.at(iOnTrk));
503 v.OnlineTrkFake_3d_ip_sig.numerator->Fill(onlineIP3DSig.at(iOnTrk));
507 if (
v.getTriggerType() ==
"PF") {
513 v.PVz->Fill(VertexHandler->begin()->z());
514 if (offlineVertexHandler.
isValid()) {
515 v.PVz_HLTMinusRECO->Fill(VertexHandler->begin()->z() - offlineVertexHandler->begin()->z());
524 v.fastPVz->Fill(VertexHandler->begin()->z());
525 if (offlineVertexHandler.
isValid()) {
526 v.fastPVz_HLTMinusRECO->Fill(VertexHandler->begin()->z() - offlineVertexHandler->begin()->z());
547 if ((
v.getTriggerType() ==
"PF" && shallowTagInfosPf.
isValid()) ||
548 (
v.getTriggerType() ==
"Calo" && shallowTagInfosCalo.
isValid())) {
549 const auto& shallowTagInfoCollection = (
v.getTriggerType() ==
"PF") ? shallowTagInfosPf : shallowTagInfosCalo;
550 for (
const auto& shallowTagInfo : *shallowTagInfoCollection) {
551 const auto& tagVars = shallowTagInfo.taggingVariables();
555 v.h_jetNSecondaryVertices->Fill(tagVar);
556 v.n_vtx->Fill(tagVar);
560 v.n_sel_tracks->Fill(tagVar);
561 v.h_jetNSelectedTracks->Fill(tagVar);
565 v.h_jet_pt->Fill(tagVar);
569 v.h_jet_eta->Fill(tagVar);
573 v.h_trackSumJetEtRatio->Fill(tagVar);
577 v.h_trackSumJetDeltaR->Fill(tagVar);
581 v.h_vertexCategory->Fill(tagVar);
585 v.h_trackSip2dValAboveCharm->Fill(tagVar);
589 v.h_trackSip2dSigAboveCharm->Fill(tagVar);
593 v.h_trackSip3dValAboveCharm->Fill(tagVar);
597 v.h_trackSip3dSigAboveCharm->Fill(tagVar);
601 v.h_jetNTracksEtaRel->Fill(tagVar);
616 for (
unsigned i_trk = 0; i_trk <
trackEtaRel.size(); i_trk++) {
624 for (
unsigned i_trk = 0; i_trk <
trackPtRel.size(); i_trk++) {
628 for (
unsigned i_trk = 0; i_trk <
trackDeltaR.size(); i_trk++) {
632 for (
unsigned i_trk = 0; i_trk <
trackPtRatio.size(); i_trk++) {
640 for (
unsigned i_trk = 0; i_trk <
trackSip3dVal.size(); i_trk++) {
643 v.h_3d_ip_distance->Fill(
val);
644 v.h_3d_ip_error->Fill(
val / sig);
645 v.h_3d_ip_sig->Fill(sig);
652 v.vtx_mass->Fill(tagVar);
655 v.n_vtx_trks->Fill(tagVar);
659 v.h_vertexEnergyRatio->Fill(tagVar);
663 v.h_vertexJetDeltaR->Fill(tagVar);
667 v.h_flightDistance2dVal->Fill(tagVar);
671 v.h_flightDistance2dSig->Fill(tagVar);
675 v.h_flightDistance3dVal->Fill(tagVar);
679 v.h_flightDistance3dSig->Fill(tagVar);
731 std::vector<float>& offlineIP3D,
732 std::vector<float>& offlineIP3DSig) {
733 std::vector<const reco::Track*> offlineTracks;
735 for (
auto const& iterOffIP : *offlineIPTagHandle) {
736 float DR =
reco::deltaR(iterOffIP.jet()->eta(), iterOffIP.jet()->phi(), hltJetEta, hltJetPhi);
746 <<
"BTagPerformanceAnalyzer: Extended TagInfo not of type TrackIPTagInfo. " << std::endl;
750 tagInfo->primaryVertex()->position().y(),
751 tagInfo->primaryVertex()->position().z());
753 const std::vector<reco::btag::TrackIPData>& ip =
tagInfo->impactParameterData();
756 std::vector<reco::CandidatePtr> sortedTracks =
tagInfo->sortedTracks(sortedIndices);
757 std::vector<std::size_t> selectedIndices;
759 for (
unsigned int n = 0;
n != sortedIndices.size(); ++
n) {
761 double jetDistance = ip[sortedIndices[
n]].distanceToJetAxis.value();
764 selectedIndices.push_back(sortedIndices[
n]);
769 for (
unsigned int n = 0;
n != selectedIndices.size(); ++
n) {
771 offlineTracks.push_back(
track);
772 offlineIP3D.push_back(ip[
n].
ip3d.value());
773 offlineIP3DSig.push_back(ip[
n].
ip3d.significance());
776 return offlineTracks;
779 template <
class Base>
783 std::vector<float>& onlineIP3D,
784 std::vector<float>& onlineIP3DSig) {
785 std::vector<const reco::Track*> onlineTracks;
787 for (
auto iterTI = jetSVTagsColl->begin(); iterTI != jetSVTagsColl->end(); ++iterTI) {
788 float DR =
reco::deltaR(iterTI->jet()->eta(), iterTI->jet()->phi(), hltJetEta, hltJetPhi);
792 const auto& ipInfo = *(iterTI->trackIPTagInfoRef().get());
793 const std::vector<reco::btag::TrackIPData>& ip = ipInfo.impactParameterData();
795 unsigned int trackSize = ipInfo.selectedTracks().size();
796 for (
unsigned int itt = 0; itt < trackSize; ++itt) {
797 const auto ptrackRef = (ipInfo.selectedTracks()[itt]);
799 if (ptrackRef.isAvailable()) {
801 onlineTracks.push_back(ptrackPtr);
802 onlineIP3D.push_back(ip[itt].
ip3d.value());
803 onlineIP3DSig.push_back(ip[itt].
ip3d.significance());
822 histoname = labelname +
"_Discr";
823 title = labelname +
"_Discr " + trigPath;
824 v.Discr = iBooker.
book1D(histoname.c_str(),
title.c_str(), 110, -0.1, 1);
826 histoname = labelname +
"_Pt";
827 title = labelname +
"_Pt " + trigPath;
828 v.Pt = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, 0, 400);
830 histoname = labelname +
"_Eta";
831 title = labelname +
"_Eta " + trigPath;
832 v.Eta = iBooker.
book1D(histoname.c_str(),
title.c_str(), 60, -3.0, 3.0);
834 histoname =
"HLTvsRECO_Discr";
835 title =
"online discr vs offline discr " + trigPath;
836 v.Discr_HLTvsRECO = iBooker.
book2D(histoname.c_str(),
title.c_str(), 110, -0.1, 1, 110, -0.1, 1);
838 histoname =
"HLTMinusRECO_Discr";
839 title =
"online discr minus offline discr " + trigPath;
840 v.Discr_HLTMinusRECO = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -1, 1);
842 histoname =
"Turnon_loose_Discr";
843 title =
"turn-on with loose threshold " + trigPath;
844 v.bookME(iBooker,
v.Discr_turnon_loose, histoname,
title, 22, -0.1, 1.);
846 histoname =
"Turnon_medium_Discr";
847 title =
"turn-on with medium threshold " + trigPath;
848 v.bookME(iBooker,
v.Discr_turnon_medium, histoname,
title, 22, -0.1, 1.);
850 histoname =
"Turnon_tight_Discr";
851 title =
"turn-on with tight threshold " + trigPath;
852 v.bookME(iBooker,
v.Discr_turnon_tight, histoname,
title, 22, -0.1, 1.);
854 histoname = labelname +
"_PVz";
855 title =
"online z(PV) " + trigPath;
856 v.PVz = iBooker.
book1D(histoname.c_str(),
title.c_str(), 80, -20, 20);
858 histoname = labelname +
"_fastPVz";
859 title =
"online z(fastPV) " + trigPath;
860 v.fastPVz = iBooker.
book1D(histoname.c_str(),
title.c_str(), 80, -20, 20);
862 histoname =
"HLTMinusRECO_PVz";
863 title =
"online z(PV) - offline z(PV) " + trigPath;
864 v.PVz_HLTMinusRECO = iBooker.
book1D(histoname.c_str(),
title.c_str(), 200, -0.5, 0.5);
866 histoname =
"HLTMinusRECO_fastPVz";
867 title =
"online z(fastPV) - offline z(PV) " + trigPath;
868 v.fastPVz_HLTMinusRECO = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -2, 2);
871 title =
"N vertex candidates " + trigPath;
872 v.n_vtx = iBooker.
book1D(histoname.c_str(),
title.c_str(), 10, -0.5, 9.5);
874 histoname =
"vtx_mass";
875 title =
"secondary vertex mass (GeV)" + trigPath;
876 v.vtx_mass = iBooker.
book1D(histoname.c_str(),
title.c_str(), 20, 0, 10);
878 histoname =
"n_vtx_trks";
879 title =
"N tracks associated to secondary vertex" + trigPath;
880 v.n_vtx_trks = iBooker.
book1D(histoname.c_str(),
title.c_str(), 20, -0.5, 19.5);
882 histoname =
"n_sel_tracks";
883 title =
"N selected tracks" + trigPath;
884 v.n_sel_tracks = iBooker.
book1D(histoname.c_str(),
title.c_str(), 25, -0.5, 24.5);
886 histoname =
"3d_ip_distance";
887 title =
"3D IP distance of tracks (cm)" + trigPath;
888 v.h_3d_ip_distance = iBooker.
book1D(histoname.c_str(),
title.c_str(), 40, -0.1, 0.1);
890 histoname =
"3d_ip_error";
891 title =
"3D IP error of tracks (cm)" + trigPath;
892 v.h_3d_ip_error = iBooker.
book1D(histoname.c_str(),
title.c_str(), 40, 0., 0.1);
894 histoname =
"3d_ip_sig";
895 title =
"3D IP significance of tracks (cm)" + trigPath;
896 v.h_3d_ip_sig = iBooker.
book1D(histoname.c_str(),
title.c_str(), 40, -40, 40);
899 histoname =
"jetNSecondaryVertices";
900 title =
"jet N Secondary Vertices" + trigPath;
901 v.h_jetNSecondaryVertices = iBooker.
book1D(histoname.c_str(),
title.c_str(), 10, -0.5, 9.5);
903 histoname =
"jet_pt";
904 title =
"jet pt" + trigPath;
905 v.h_jet_pt = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -0.1, 100);
907 histoname =
"jet_eta";
908 title =
"jet eta" + trigPath;
909 v.h_jet_eta = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -2.5, 2.5);
911 histoname =
"trackSumJetEtRatio";
912 title =
"trackSumJetEtRatio" + trigPath;
913 v.h_trackSumJetEtRatio = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -0.1, 1.5);
915 histoname =
"trackSip2dValAboveCharm";
916 title =
"trackSip2dSigAboveCharm" + trigPath;
917 v.h_trackSip2dSigAboveCharm = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -0.2, 0.2);
919 histoname =
"trackSip2dSigAboveCharm";
920 title =
"trackSip2dSigAboveCharm" + trigPath;
921 v.h_trackSip2dValAboveCharm = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -50, 50);
923 histoname =
"trackSip3dValAboveCharm";
924 title =
"trackSip3dValAboveCharm" + trigPath;
925 v.h_trackSip3dValAboveCharm = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -0.2, 0.2);
927 histoname =
"trackSip3dSigAboveCharm";
928 title =
"trackSip3dSigAboveCharm" + trigPath;
929 v.h_trackSip3dSigAboveCharm = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -50, 50);
931 histoname =
"jetNSelectedTracks";
932 title =
"jet N Selected Tracks" + trigPath;
933 v.h_jetNSelectedTracks = iBooker.
book1D(histoname.c_str(),
title.c_str(), 42, -1.5, 40.5);
935 histoname =
"jetNTracksEtaRel";
936 title =
"jetNTracksEtaRel" + trigPath;
937 v.h_jetNTracksEtaRel = iBooker.
book1D(histoname.c_str(),
title.c_str(), 42, -1.5, 40.5);
939 histoname =
"vertexCategory";
940 title =
"vertex category" + trigPath;
941 v.h_vertexCategory = iBooker.
book1D(histoname.c_str(),
title.c_str(), 4, -1.5, 2.5);
943 histoname =
"trackSumJetDeltaR";
944 title =
"trackSumJetDeltaR" + trigPath;
945 v.h_trackSumJetDeltaR = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -0.1, 0.35);
948 histoname =
"trackJetDistVal";
949 title =
"trackJetDistVal" + trigPath;
950 v.h_trackJetDistVal = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -1, 0.01);
952 histoname =
"trackPtRel";
953 title =
"track pt rel" + trigPath;
954 v.h_trackPtRel = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -0.1, 7);
956 histoname =
"trackDeltaR";
957 title =
"trackDeltaR" + trigPath;
958 v.h_trackDeltaR = iBooker.
book1D(histoname.c_str(),
title.c_str(), 160, -0.05, .47);
960 histoname =
"trackPtRatio";
961 title =
"trackPtRatio" + trigPath;
962 v.h_trackPtRatio = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -0.01, 0.3);
964 histoname =
"trackSip2dSig";
965 title =
"trackSip2dSig" + trigPath;
966 v.h_trackSip2dSig = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -55, 55);
968 histoname =
"trackDecayLenVal";
969 title =
"trackDecayLenVal" + trigPath;
970 v.h_trackDecayLenVal = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -0.1, 22);
972 histoname =
"trackEtaRel";
973 title =
"trackEtaRel" + trigPath;
974 v.h_trackEtaRel = iBooker.
book1D(histoname.c_str(),
title.c_str(), 31, 0, 30);
977 histoname =
"vertexEnergyRatio";
978 title =
"vertexEnergyRatio" + trigPath;
979 v.h_vertexEnergyRatio = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -0.1, 3);
981 histoname =
"vertexJetDeltaR";
982 title =
"vertexJetDeltaR" + trigPath;
983 v.h_vertexJetDeltaR = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -0.01, 0.4);
985 histoname =
"flightDistance2dVal";
986 title =
"flightDistance2dVal" + trigPath;
987 v.h_flightDistance2dVal = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -0.1, 5);
989 histoname =
"flightDistance2dSig";
990 title =
"flightDistance2dSig" + trigPath;
991 v.h_flightDistance2dSig = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -10, 150);
993 histoname =
"flightDistance3dVal";
994 title =
"flightDistance3dVal" + trigPath;
995 v.h_flightDistance3dVal = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -0.1, 5);
997 histoname =
"flightDistance3dSig";
998 title =
"flightDistance3dSig" + trigPath;
999 v.h_flightDistance3dSig = iBooker.
book1D(histoname.c_str(),
title.c_str(), 100, -10, 150);
1003 histoname =
"OnlineTrkEff_Pt";
1004 title =
"Relative Online Trk Efficiency vs Pt " + trigPath;
1005 v.bookME(iBooker,
v.OnlineTrkEff_Pt, histoname,
title, 50, -0.5, 20.);
1007 histoname =
"OnlineTrkEff_Eta";
1008 title =
"Relative Online Trk Efficiency vs Eta " + trigPath;
1009 v.bookME(iBooker,
v.OnlineTrkEff_Eta, histoname,
title, 60, -3.0, 3.0);
1011 histoname =
"OnlineTrkEff_3d_ip_distance";
1012 title =
"Relative Online Trk Efficiency vs IP3D " + trigPath;
1013 v.bookME(iBooker,
v.OnlineTrkEff_3d_ip_distance, histoname,
title, 40, -0.1, 0.1);
1015 histoname =
"OnlineTrkEff_3d_ip_sig";
1016 title =
"Relative Online Trk Efficiency vs IP3D significance " + trigPath;
1017 v.bookME(iBooker,
v.OnlineTrkEff_3d_ip_sig, histoname,
title, 40, -40, 40);
1019 histoname =
"OnlineTrkFake_Pt";
1020 title =
"Relative Online Trk Fake Rate vs Pt " + trigPath;
1021 v.bookME(iBooker,
v.OnlineTrkFake_Pt, histoname,
title, 50, -0.5, 20.);
1023 histoname =
"OnlineTrkFake_Eta";
1024 title =
"Relative Online Trk Fake Rate vs Eta " + trigPath;
1025 v.bookME(iBooker,
v.OnlineTrkFake_Eta, histoname,
title, 60, -3.0, 3.0);
1027 histoname =
"OnlineTrkFake_3d_ip_distance";
1028 title =
"Relative Online Trk Fake Rate vs IP3D " + trigPath;
1029 v.bookME(iBooker,
v.OnlineTrkFake_3d_ip_distance, histoname,
title, 40, -0.1, 0.1);
1031 histoname =
"OnlineTrkFake_3d_ip_sig";
1032 title =
"Relative Online Trk Fake Rate vs IP3D significance " + trigPath;
1033 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< std::vector< reco::ShallowTagInfo > > shallowTagInfosTokenCalo_
edm::EDGetTokenT< reco::JetTagCollection > pfTagsToken_
edm::EDGetTokenT< reco::JetTagCollection > offlineDiscrTokenb_
void setLabel(std::string labelName)
edm::EDGetTokenT< std::vector< reco::Vertex > > hltCaloPVToken_
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
edm::EDGetTokenT< std::vector< reco::SecondaryVertexTagInfo > > SVTagInfosTokenCalo_
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())
edm::EDGetTokenT< reco::JetTagCollection > offlineDiscrTokenbb_
edm::EDGetTokenT< std::vector< reco::Vertex > > hltFastPVToken_
MonitorElement * h_jetNSelectedTracks
Log< level::Info, false > LogInfo
double eta() const
pseudorapidity of momentum vector
MonitorElement * h_vertexJetDeltaR
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_
edm::Handle< reco::JetTagCollection > caloTags
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
edm::EDGetTokenT< reco::JetTagCollection > caloTagsToken_
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_