13 folderName_ ( iConfig.getParameter<
std::
string>(
"FolderName") )
15 , bsToken_ ( mayConsume<
reco::
BeamSpot> (iConfig.getParameter<
edm::InputTag>(
"beamSpot")))
32 , muoSelection_ ( iConfig.getParameter<
std::
string>(
"muoSelection") )
33 , muoSelection_ref ( iConfig.getParameter<
std::
string>(
"muoSelection_ref") )
34 , muoSelection_tag ( iConfig.getParameter<
std::
string>(
"muoSelection_tag") )
35 , muoSelection_probe ( iConfig.getParameter<
std::
string>(
"muoSelection_probe") )
36 , nmuons_ ( iConfig.getParameter<
int>(
"nmuons" ) )
37 , tnp_ ( iConfig.getParameter<
bool>(
"tnp" ) )
38 , L3_ ( iConfig.getParameter<
int>(
"L3" ) )
39 , trOrMu_ ( iConfig.getParameter<
int>(
"trOrMu" ) )
40 , Jpsi_ ( iConfig.getParameter<
int>(
"Jpsi" ) )
41 , Upsilon_ ( iConfig.getParameter<
int>(
"Upsilon" ) )
42 , enum_ ( iConfig.getParameter<
int>(
"enum" ) )
43 , seagull_ ( iConfig.getParameter<
int>(
"seagull" ) )
44 , maxmass_ ( iConfig.getParameter<double>(
"maxmass" ) )
45 , minmass_ ( iConfig.getParameter<double>(
"minmass" ) )
46 , maxmassJpsi ( iConfig.getParameter<double>(
"maxmassJpsi" ) )
47 , minmassJpsi ( iConfig.getParameter<double>(
"minmassJpsi" ) )
48 , maxmassUpsilon ( iConfig.getParameter<double>(
"maxmassUpsilon" ) )
49 , minmassUpsilon ( iConfig.getParameter<double>(
"minmassUpsilon" ) )
50 , maxmassJpsiTk ( iConfig.getParameter<double>(
"maxmassJpsiTk" ) )
51 , minmassJpsiTk ( iConfig.getParameter<double>(
"minmassJpsiTk" ) )
52 , kaon_mass ( iConfig.getParameter<double>(
"kaon_mass" ) )
53 , mu_mass ( iConfig.getParameter<double>(
"mu_mass" ) )
54 , min_dR ( iConfig.getParameter<double>(
"min_dR" ) )
55 , minprob ( iConfig.getParameter<double>(
"minprob" ) )
56 , mincos ( iConfig.getParameter<double>(
"mincos" ) )
57 , minDS ( iConfig.getParameter<double>(
"minDS" ) )
58 , hltTrigResTag_ (mayConsume<
edm::TriggerResults>( iConfig.getParameter<
edm::
ParameterSet>(
"denGenericTriggerEventPSet").getParameter<
edm::InputTag>(
"hltInputTag")))
59 , hltInputTag_ (mayConsume<
trigger::TriggerEvent>( iConfig.getParameter<
edm::InputTag>(
"hltTriggerSummaryAOD")))
60 , hltpaths_num ( iConfig.getParameter<
edm::
ParameterSet>(
"numGenericTriggerEventPSet").getParameter<
std::vector<
std::
string>>(
"hltPaths"))
61 , hltpaths_den ( iConfig.getParameter<
edm::
ParameterSet>(
"denGenericTriggerEventPSet").getParameter<
std::vector<
std::
string>>(
"hltPaths"))
62 , trSelection_ ( iConfig.getParameter<
std::
string>(
"muoSelection") )
63 , trSelection_ref ( iConfig.getParameter<
std::
string>(
"trSelection_ref") )
64 , DMSelection_ref ( iConfig.getParameter<
std::
string>(
"DMSelection_ref") )
140 if (pset.
existsAs<std::vector<double>>(
"edges")) {
171 me.
numerator = ibooker.
book1D(histname+
"_numerator", histtitle+
" (numerator)", nbins, min, max);
172 me.
denominator = ibooker.
book1D(histname+
"_denominator", histtitle+
" (denominator)", nbins, min, max);
176 int nbins = binning.size()-1;
177 std::vector<float> fbinning(binning.begin(),binning.end());
178 float* arr = &fbinning[0];
179 me.
numerator = ibooker.
book1D(histname+
"_numerator", histtitle+
" (numerator)", nbins, arr);
180 me.
denominator = ibooker.
book1D(histname+
"_denominator", histtitle+
" (denominator)", nbins, arr);
184 me.
numerator = ibooker.
bookProfile(histname+
"_numerator", histtitle+
" (numerator)", nbinsX, xmin, xmax, ymin, ymax);
185 me.
denominator = ibooker.
bookProfile(histname+
"_denominator", histtitle+
" (denominator)", nbinsX, xmin, xmax, ymin, ymax);
189 me.
numerator = ibooker.
book2D(histname+
"_numerator", histtitle+
" (numerator)", nbinsX, xmin, xmax, nbinsY, ymin, ymax);
190 me.
denominator = ibooker.
book2D(histname+
"_denominator", histtitle+
" (denominator)", nbinsX, xmin, xmax, nbinsY, ymin, ymax);
194 int nbinsX = binningX.size()-1;
195 std::vector<float> fbinningX(binningX.begin(),binningX.end());
196 float* arrX = &fbinningX[0];
197 int nbinsY = binningY.size()-1;
198 std::vector<float> fbinningY(binningY.begin(),binningY.end());
199 float* arrY = &fbinningY[0];
201 me.
numerator = ibooker.
book2D(histname+
"_numerator", histtitle+
" (numerator)", nbinsX, arrX, nbinsY, arrY);
202 me.
denominator = ibooker.
book2D(histname+
"_denominator", histtitle+
" (denominator)", nbinsX, arrX, nbinsY, arrY);
209 if (binning.
edges.empty()) {
212 this->
bookME(ibooker, me, histname, histtitle, binning.
edges);
223 bool Ph_;
if (
enum_==7) Ph_ =
true;
224 if (
tnp_) istnp =
"Tag_and_Probe/";
else istnp =
"";
227 if (
trOrMu_) trMuPh =
"tr";
else if (Ph_) trMuPh =
"ph";
else trMuPh =
"mu";
230 histname = trMuPh+
"Pt"; histtitle = trMuPh+
"_P_{t}";
234 histname =trMuPh+
"Phi"; histtitle =trMuPh+
"Phi";
238 histname =trMuPh+
"Eta"; histtitle = trMuPh+
"_Eta";
244 histname = trMuPh+
"1Pt"; histtitle = trMuPh+
"1_P_{t}";
248 histname =trMuPh+
"1Phi"; histtitle =trMuPh+
"1Phi";
252 histname =trMuPh+
"1Eta"; histtitle = trMuPh+
"1_Eta";
256 histname = trMuPh+
"2Pt"; histtitle = trMuPh+
"2_P_{t}";
260 histname =trMuPh+
"2Phi"; histtitle =trMuPh+
"2Phi";
264 histname =trMuPh+
"2Eta"; histtitle = trMuPh+
"2_Eta";
271 histname =
"mu1Eta"; histtitle =
"mu1Eta";
275 histname =
"mu1Pt"; histtitle =
"mu1_P_{t}";
279 histname =
"mu1Phi"; histtitle =
"mu1Phi";
283 histname =
"mu2Eta"; histtitle =
"mu2Eta";
287 histname =
"mu2Pt"; histtitle =
"mu2_P_{t}";
291 histname =
"mu2Phi"; histtitle =
"mu2Phi";
295 histname =
"mu3Eta"; histtitle =
"mu3Eta";
299 histname =
"mu3Pt"; histtitle =
"mu3_P_{t}";
303 histname =
"mu3Phi"; histtitle =
"mu3Phi";
307 histname =
"DiMuEta"; histtitle =
"DiMuEta";
311 histname =
"DiMuPt"; histtitle =
"DiMu_P_{t}";
315 histname =
"DiMuPhi"; histtitle =
"DiMuPhi";
319 histname =
"DiMuPVcos"; histtitle =
"DiMuPVcos";
323 histname =
"DiMuProb"; histtitle =
"DiMuProb";
327 histname =
"DiMuDS"; histtitle =
"DiMuDS";
332 histname =
"DiMuDCA"; histtitle =
"DiMuDCA";
336 histname =
"DiMuMass"; histtitle =
"DiMuMass";
340 histname =
"DiMudR"; histtitle =
"DiMudR";
347 histname =trMuPh+
"_d0"; histtitle =trMuPh+
"_d0";
351 histname = trMuPh+
"_z0"; histtitle =trMuPh+
"_z0";
366 #include "TLorentzVector.h" 394 std::vector<reco::Muon> tagMuons;
395 for (
auto const &
m : *muoHandle ) {
399 for (
int i = 0;
i<
int(tagMuons.size());
i++){
400 for (
auto const &
m : *muoHandle ) {
402 if ((tagMuons[
i].
pt() ==
m.pt()))
continue;
424 for (
auto const &
m : *muoHandle ) {
427 for (
auto const & m1 : *muoHandle ) {
428 if (m1.pt() ==
m.pt())
continue;
430 if(
false && !
matchToTrigger(hltpath,m1, handleTriggerEvent))
continue;
433 if (
m.charge()*m1.charge()>0 )
continue;
437 std::vector<reco::TransientTrack> j_tks;
440 j_tks.push_back(mu1TT);
441 j_tks.push_back(mu2TT);
447 if( (jpsivertex.
chi2()>=0) && (jpsivertex.
ndof()>0) )
448 dimuonCL = TMath::Prob(jpsivertex.
chi2(), jpsivertex.
ndof() );
454 GlobalPoint displacementFromBeamspotJpsi( -1*((vertexBeamSpot.
x0() - jVertex.
x()) + (jVertex.
z() - vertexBeamSpot.
z0()) * vertexBeamSpot.
dxdz()),
455 -1*((vertexBeamSpot.
y0() - jVertex.
y()) + (jVertex.
z() - vertexBeamSpot.
z0()) * vertexBeamSpot.
dydz()),
458 float jpsi_cos = vperpj.Dot(jpperp)/(vperpj.R()*jpperp.R());
465 double DiMuMass = (m1.p4()+
m.p4()).M();
547 for (
auto const & m2 : *muoHandle) {
548 if(
false && !
matchToTrigger(hltpath,m2, handleTriggerEvent))
continue;
549 if (m2.pt() ==
m.pt())
continue;
585 if (fabs(jpsi_cos)<
mincos)
continue;
586 if ((displacementFromBeamspotJpsi.
perp()/
sqrt(jerr.
rerr(displacementFromBeamspotJpsi)))<
minDS)
continue;
591 for (
auto const &
t : *trHandle) {
605 double e1 =
sqrt(
m.momentum().Mag2() + MuMass2 );
606 double e2 =
sqrt(m1.momentum().Mag2() + MuMass2 );
616 std::vector<reco::TransientTrack> t_tks;
617 t_tks.push_back(mu1TT);
618 t_tks.push_back(mu2TT);
619 t_tks.push_back(trTT);
626 if ((vertex.
chi2()>=0.0) && (vertex.
ndof()>0) )
627 JpsiTkCL = TMath::Prob(vertex.
chi2(), vertex.
ndof() );
629 m.py() + m1.py() + itrk1.
py(),
633 GlobalPoint displacementFromBeamspot( -1*((vertexBeamSpot.
x0() - secondaryVertex.
x()) +
634 (secondaryVertex.
z() - vertexBeamSpot.
z0()) * vertexBeamSpot.
dxdz()),
635 -1*((vertexBeamSpot.
y0() - secondaryVertex.
y()) +
636 (secondaryVertex.
z() - vertexBeamSpot.
z0()) * vertexBeamSpot.
dydz()),
639 float jpsiKcos = vperp.Dot(pperp)/(vperp.R()*pperp.R());
641 if (fabs(jpsiKcos)<
mincos)
continue;
642 if ((displacementFromBeamspot.
perp()/
sqrt(err.
rerr(displacementFromBeamspot)))<
minDS)
continue;
653 for (
auto const &
t : *trHandle) {
663 double e2 =
sqrt(m1.momentum().Mag2() + MuMass2 );
670 std::vector<reco::TransientTrack> t_tks;
671 t_tks.push_back(mu2TT);
672 t_tks.push_back(trTT);
678 if ((vertex.
chi2()>=0.0) && (vertex.
ndof()>0) )
679 JpsiTkCL = TMath::Prob(vertex.
chi2(), vertex.
ndof() );
681 m1.py() + itrk1.
py(),
685 GlobalPoint displacementFromBeamspot( -1*((vertexBeamSpot.
x0() - secondaryVertex.
x()) +
686 (secondaryVertex.
z() - vertexBeamSpot.
z0()) * vertexBeamSpot.
dxdz()),
687 -1*((vertexBeamSpot.
y0() - secondaryVertex.
y()) +
688 (secondaryVertex.
z() - vertexBeamSpot.
z0()) * vertexBeamSpot.
dydz()),
700 if (fabs(jpsi_cos)<
mincos)
continue;
701 if ((displacementFromBeamspotJpsi.
perp()/
sqrt(jerr.
rerr(displacementFromBeamspotJpsi)))<
minDS)
continue;
704 for (
auto const &
t : *trHandle) {
707 for (
auto const & t1 : *trHandle) {
709 if(
false && !
matchToTrigger(hltpath,t1, handleTriggerEvent))
continue;
720 double e1 =
sqrt(
m.momentum().Mag2() + MuMass2 );
721 double e2 =
sqrt(m1.momentum().Mag2() + MuMass2 );
728 pB = p1 + p2 + p3 +
p4;
732 std::vector<reco::TransientTrack> t_tks;
733 t_tks.push_back(mu1TT);
734 t_tks.push_back(mu2TT);
735 t_tks.push_back(trTT);
736 t_tks.push_back(tr1TT);
742 if ((vertex.
chi2()>=0.0) && (vertex.
ndof()>0) )
743 JpsiTkCL = TMath::Prob(vertex.
chi2(), vertex.
ndof() );
745 m.py() + m1.py() + itrk1.
py() + itrk2.
py(),
749 GlobalPoint displacementFromBeamspot( -1*((vertexBeamSpot.
x0() - secondaryVertex.
x()) +
750 (secondaryVertex.
z() - vertexBeamSpot.
z0()) * vertexBeamSpot.
dxdz()),
751 -1*((vertexBeamSpot.
y0() - secondaryVertex.
y()) +
752 (secondaryVertex.
z() - vertexBeamSpot.
z0()) * vertexBeamSpot.
dydz()),
755 float jpsiKcos = vperp.Dot(pperp)/(vperp.R()*pperp.R());
757 if (fabs(jpsiKcos)<
mincos)
continue;
758 if ((displacementFromBeamspot.
perp()/
sqrt(err.
rerr(displacementFromBeamspot)))<
minDS)
continue;
777 for (
auto const &
p : *phHandle) {
792 for (
auto const &
m : *muoHandle ) {
795 for (
auto const & m1 : *muoHandle ) {
797 if (
m.charge()*m1.charge()>0 )
continue;
798 if (m1.pt() ==
m.pt())
continue;
800 if(
false && !
matchToTrigger(hltpath1,m1, handleTriggerEvent))
continue;
804 std::vector<reco::TransientTrack> j_tks;
807 j_tks.push_back(mu1TT);
808 j_tks.push_back(mu2TT);
814 if( (jpsivertex.
chi2()>=0) && (jpsivertex.
ndof()>0) )
815 dimuonCL = TMath::Prob(jpsivertex.
chi2(), jpsivertex.
ndof() );
821 GlobalPoint displacementFromBeamspotJpsi( -1*((vertexBeamSpot.
x0() - jVertex.
x()) + (jVertex.
z() - vertexBeamSpot.
z0()) * vertexBeamSpot.
dxdz()),
822 -1*((vertexBeamSpot.
y0() - jVertex.
y()) + (jVertex.
z() - vertexBeamSpot.
z0()) * vertexBeamSpot.
dydz()),
825 float jpsi_cos = vperpj.Dot(jpperp)/(vperpj.R()*jpperp.R());
832 double DiMuMass = (m1.p4()+
m.p4()).M();
914 for (
auto const & m2 : *muoHandle) {
915 if(
false && !
matchToTrigger(hltpath1,m2, handleTriggerEvent))
continue;
916 if (m2.pt() ==
m.pt())
continue;
948 if (fabs(jpsi_cos)<
mincos)
continue;
949 if ((displacementFromBeamspotJpsi.
perp()/
sqrt(jerr.
rerr(displacementFromBeamspotJpsi)))<
minDS)
continue;
951 for (
auto const &
t : *trHandle) {
961 double e1 =
sqrt(
m.momentum().Mag2() + MuMass2 );
962 double e2 =
sqrt(m1.momentum().Mag2() + MuMass2 );
970 std::vector<reco::TransientTrack> t_tks;
971 t_tks.push_back(mu1TT);
972 t_tks.push_back(mu2TT);
973 t_tks.push_back(trTT);
979 if ((vertex.
chi2()>=0.0) && (vertex.
ndof()>0) )
980 JpsiTkCL = TMath::Prob(vertex.
chi2(), vertex.
ndof() );
982 m.py() + m1.py() + itrk1.
py(),
986 GlobalPoint displacementFromBeamspot( -1*((vertexBeamSpot.
x0() - secondaryVertex.
x()) +
987 (secondaryVertex.
z() - vertexBeamSpot.
z0()) * vertexBeamSpot.
dxdz()),
988 -1*((vertexBeamSpot.
y0() - secondaryVertex.
y()) +
989 (secondaryVertex.
z() - vertexBeamSpot.
z0()) * vertexBeamSpot.
dydz()),
992 float jpsiKcos = vperp.Dot(pperp)/(vperp.R()*pperp.R());
994 if (fabs(jpsiKcos)<
mincos)
continue;
995 if ((displacementFromBeamspot.
perp()/
sqrt(err.
rerr(displacementFromBeamspot)))<
minDS)
continue;
1005 for (
auto const &
t : *trHandle) {
1007 if(
false && !
matchToTrigger(hltpath1,
t, handleTriggerEvent))
continue;
1015 double e2 =
sqrt(m1.momentum().Mag2() + MuMass2 );
1022 std::vector<reco::TransientTrack> t_tks;
1023 t_tks.push_back(mu2TT);
1024 t_tks.push_back(trTT);
1025 if (t_tks.size()!=2)
continue;
1031 if ((vertex.
chi2()>=0.0) && (vertex.
ndof()>0) )
1032 JpsiTkCL = TMath::Prob(vertex.
chi2(), vertex.
ndof() );
1034 m1.py() + itrk1.
py(),
1038 GlobalPoint displacementFromBeamspot( -1*((vertexBeamSpot.
x0() - secondaryVertex.
x()) +
1039 (secondaryVertex.
z() - vertexBeamSpot.
z0()) * vertexBeamSpot.
dxdz()),
1040 -1*((vertexBeamSpot.
y0() - secondaryVertex.
y()) +
1041 (secondaryVertex.
z() - vertexBeamSpot.
z0()) * vertexBeamSpot.
dydz()),
1044 if (JpsiTkCL<
minprob)
continue;
1052 if (dimuonCL<
minprob)
continue;
1053 if (fabs(jpsi_cos)<
mincos)
continue;
1054 if ((displacementFromBeamspotJpsi.
perp()/
sqrt(jerr.
rerr(displacementFromBeamspotJpsi)))<
minDS)
continue;
1056 for (
auto const &
t : *trHandle) {
1058 if(
false && !
matchToTrigger(hltpath1,
t, handleTriggerEvent))
continue;
1059 for (
auto const & t1 : *trHandle) {
1061 if(
false && !
matchToTrigger(hltpath1,t1, handleTriggerEvent))
continue;
1073 double e1 =
sqrt(
m.momentum().Mag2() + MuMass2 );
1074 double e2 =
sqrt(m1.momentum().Mag2() + MuMass2 );
1081 pB = p1 + p2 + p3 +
p4;
1085 std::vector<reco::TransientTrack> t_tks;
1086 t_tks.push_back(mu1TT);
1087 t_tks.push_back(mu2TT);
1088 t_tks.push_back(trTT);
1089 t_tks.push_back(tr1TT);
1095 if ((vertex.
chi2()>=0.0) && (vertex.
ndof()>0) )
1096 JpsiTkCL = TMath::Prob(vertex.
chi2(), vertex.
ndof() );
1098 m.py() + m1.py() + itrk1.
py() + itrk2.
py(),
1102 GlobalPoint displacementFromBeamspot( -1*((vertexBeamSpot.
x0() - secondaryVertex.
x()) +
1103 (secondaryVertex.
z() - vertexBeamSpot.
z0()) * vertexBeamSpot.
dxdz()),
1104 -1*((vertexBeamSpot.
y0() - secondaryVertex.
y()) +
1105 (secondaryVertex.
z() - vertexBeamSpot.
z0()) * vertexBeamSpot.
dydz()),
1108 float jpsiKcos = vperp.Dot(pperp)/(vperp.R()*pperp.R());
1109 if (JpsiTkCL<
minprob)
continue;
1110 if (fabs(jpsiKcos)<
mincos)
continue;
1111 if ((displacementFromBeamspot.
perp()/
sqrt(err.
rerr(displacementFromBeamspot)))<
minDS)
continue;
1128 for (
auto const &
p : *phHandle) {
1151 pset.
add<
int> (
"nbins", 2500);
1164 desc.
add<
std::string>(
"muoSelection",
"abs(eta)<1.4 & isPFMuon & isGlobalMuon & innerTrack.hitPattern.trackerLayersWithMeasurement>5 & innerTrack.hitPattern.numberOfValidPixelHits>0");
1165 desc.
add<
std::string>(
"muoSelection_ref",
"isPFMuon & isGlobalMuon & innerTrack.hitPattern.trackerLayersWithMeasurement>5 & innerTrack.hitPattern.numberOfValidPixelHits>0");
1166 desc.
add<
std::string>(
"muoSelection_tag",
"isGlobalMuon && isPFMuon && isTrackerMuon && abs(eta) < 2.4 && innerTrack.hitPattern.numberOfValidPixelHits > 0 && innerTrack.hitPattern.trackerLayersWithMeasurement > 5 && globalTrack.hitPattern.numberOfValidMuonHits > 0 && globalTrack.normalizedChi2 < 10");
1167 desc.
add<
std::string>(
"muoSelection_probe",
"isPFMuon & isGlobalMuon & innerTrack.hitPattern.trackerLayersWithMeasurement>5 & innerTrack.hitPattern.numberOfValidPixelHits>0");
1171 desc.
add<
int>(
"nmuons", 1);
1173 desc.
add<
int>(
"L3", 0 );
1174 desc.
add<
int>(
"trOrMu", 0 );
1175 desc.
add<
int>(
"Jpsi", 0 );
1176 desc.
add<
int>(
"Upsilon", 0 );
1177 desc.
add<
int>(
"enum", 1 );
1178 desc.
add<
int>(
"seagull", 1 );
1179 desc.
add<
double>(
"maxmass", 3.596 );
1180 desc.
add<
double>(
"minmass", 2.596 );
1181 desc.
add<
double>(
"maxmassJpsi", 3.2 );
1182 desc.
add<
double>(
"minmassJpsi", 3. );
1183 desc.
add<
double>(
"maxmassUpsilon", 8.1 );
1184 desc.
add<
double>(
"minmassUpsilon", 8. );
1185 desc.
add<
double>(
"maxmassJpsiTk", 5.46 );
1186 desc.
add<
double>(
"minmassJpsiTk", 5.1 );
1187 desc.
add<
double>(
"kaon_mass", 0.493677 );
1188 desc.
add<
double>(
"mu_mass", 0.1056583745);
1189 desc.
add<
double>(
"min_dR", 0.001);
1190 desc.
add<
double>(
"minprob", 0.005 );
1191 desc.
add<
double>(
"mincos", 0.95 );
1192 desc.
add<
double>(
"minDS", 3. );
1195 genericTriggerEventPSet.
add<
bool>(
"andOr");
1198 genericTriggerEventPSet.add<std::vector<int> >(
"dcsPartitions",{});
1199 genericTriggerEventPSet.add<
bool>(
"andOrDcs",
false);
1200 genericTriggerEventPSet.add<
bool>(
"errorReplyDcs",
true);
1201 genericTriggerEventPSet.add<
std::string>(
"dbLabel",
"");
1202 genericTriggerEventPSet.add<
bool>(
"andOrHlt",
true);
1203 genericTriggerEventPSet.add<
bool>(
"andOrL1",
true);
1204 genericTriggerEventPSet.add<std::vector<std::string> >(
"hltPaths",{});
1205 genericTriggerEventPSet.add<std::vector<std::string> >(
"l1Algorithms",{});
1206 genericTriggerEventPSet.add<
std::string>(
"hltDBKey",
"");
1207 genericTriggerEventPSet.add<
bool>(
"errorReplyHlt",
false);
1208 genericTriggerEventPSet.add<
bool>(
"errorReplyL1",
true);
1209 genericTriggerEventPSet.add<
bool>(
"l1BeforeMask",
true);
1210 genericTriggerEventPSet.add<
unsigned int>(
"verbosityLevel",0);
1215 PrescaleTriggerEventPSet.
add<
unsigned int>(
"prescaleWeightVerbosityLevel",0);
1218 PrescaleTriggerEventPSet.add<std::vector<std::string>>(
"prescaleWeightHltPaths",{});
1257 descriptions.
add(
"bphMonitoring", desc);
1259 template <
typename T>
1263 bool matchedToTrigger =
false;
1266 for (
size_t ia = 0; ia < handleTriggerEvent->
sizeFilters(); ++ ia) {
1269 size_t p = fullname.find_first_of(
':');
1270 if ( p != std::string::npos) {name = fullname.substr(0, p);}
1271 else {name = fullname;}
1273 for (trigger::Keys::const_iterator ki = k.begin(); ki !=k.end(); ++ki ) {
1275 if(name.find(theTriggerName) != string::npos){
1276 if((
reco::deltaR(t.eta(), t.phi(),theTriggerParticle.
eta(),theTriggerParticle.
phi()) <= 0.2)){
1277 matchedToTrigger =
true;
1283 return matchedToTrigger;
1285 else {
cout<<theTriggerName<<
"\t\tNo HLT filters"<<endl;
return false;}
GlobalError positionError() const
MonitorElement * numerator
T getParameter(std::string const &) const
double z0() const
z coordinate
float distance() const override
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
StringCutObjectSelector< reco::Candidate::LorentzVector, true > DMSelection_ref
trigger::size_type sizeFilters() const
int prescaleWeight(const edm::Event &event, const edm::EventSetup &setup)
MonitorElement * bookProfile(Args &&...args)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const FreeTrajectoryState & theState() const
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< reco::MuonCollection > muoToken_
void bookME(DQMStore::IBooker &, METME &me, std::string &histname, std::string &histtitle, int &nbins, double &xmin, double &xmax)
const Keys & filterKeys(trigger::size_type index) const
std::vector< Track > TrackCollection
collection of Tracks
static void fillHistoLSPSetDescription(edm::ParameterSetDescription &pset)
ParameterDescriptionNode * addNode(ParameterDescriptionNode const &node)
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
std::vector< double > edges
PrescaleWeightProvider * prescaleWeightProvider_
bool matchToTrigger(const std::string &theTriggerName, T t, edm::Handle< trigger::TriggerEvent > handleTriggerEvent)
double px() const
x coordinate of momentum vector
const Vector & momentum() const
track momentum vector
edm::EDGetTokenT< trigger::TriggerEvent > hltInputTag_
edm::EDGetTokenT< reco::TrackCollection > trToken_
std::vector< Muon > MuonCollection
collection of Muon objects
double dydz() const
dydz slope
void setMETitle(METME &me, std::string titleX, std::string titleY)
double phi() const
momentum azimuthal angle
const TriggerObjectCollection & getObjects() const
bool calculate(const TrajectoryStateOnSurface &sta, const TrajectoryStateOnSurface &stb) override
bool accept(const edm::Event &event, const edm::EventSetup &setup)
To be called from analyze/filter() methods.
GlobalPoint position() const
GenericTriggerEventFlag * den_genTriggerEventFlag_
BPHMonitor(const edm::ParameterSet &)
MonitorElement * book1D(Args &&...args)
double chi2() const
chi-squares
MonitorElement * denominator
CachingVertex< 5 > vertex(const std::vector< reco::TransientTrack > &tracks) const override
void initRun(const edm::Run &run, const edm::EventSetup &setup)
auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
math::XYZPoint Point
point in the space
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void analyze(edm::Event const &iEvent, edm::EventSetup const &iSetup) override
double dxdz() const
dxdz slope
std::vector< std::string > hltpaths_den
StringCutObjectSelector< reco::Muon, true > muoSelection_
double pz() const
z coordinate of momentum vector
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
const edm::InputTag filterTag(trigger::size_type index) const
edm::EDGetTokenT< reco::PhotonCollection > phToken_
edm::EDGetTokenT< reco::BeamSpot > bsToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void setCurrentFolder(const std::string &fullpath)
StringCutObjectSelector< reco::Muon, true > muoSelection_ref
MonitorElement * book2D(Args &&...args)
XYZVectorD XYZVector
spatial vector with cartesian internal representation
This class takes a vector of HLT paths and returns a weight based on their HLT and L1 prescales...
std::vector< size_type > Keys
T rerr(const GlobalPoint &aPoint) const
std::vector< Photon > PhotonCollection
collectin of Photon objects
static MEbinning getHistoPSet(edm::ParameterSet pset)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
bool quality(const TrackQuality) const
Track quality.
double y0() const
y coordinate
std::vector< std::string > hltpaths_num
void initRun(const edm::Run &run, const edm::EventSetup &setup)
To be called from beginRun() methods.
double eta() const
momentum pseudorapidity
GenericTriggerEventFlag * num_genTriggerEventFlag_
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
math::XYZTLorentzVector LorentzVector
Lorentz vector.
StringCutObjectSelector< reco::Track, true > trSelection_ref
double py() const
y coordinate of momentum vector
double x0() const
x coordinate