89 m_doFilter(iConfig.getParameter<
bool>(
"doFilter")),
90 m_cutMinPt(iConfig.getParameter<double>(
"minPt")),
91 m_cutMinPtRatio(iConfig.getParameter<double>(
"minPtRatio")),
92 m_maxTrackPt(iConfig.getParameter<double>(
"maxTrackPt")),
93 m_maxChi2(iConfig.getParameter<double>(
"maxChi2")),
94 m_maxNjets(iConfig.getParameter<int32_t>(
"maxNJetsToCheck")),
95 m_maxNjetsOutput(iConfig.getParameter<int32_t>(
"maxNjetsOutput")),
96 m_newMethod(iConfig.getParameter<
bool>(
"newMethod")),
97 m_maxETA(iConfig.getParameter<double>(
"maxETA")),
98 m_pvErr_x(iConfig.getParameter<double>(
"pvErr_x")),
99 m_pvErr_y(iConfig.getParameter<double>(
"pvErr_y")),
100 m_pvErr_z(iConfig.getParameter<double>(
"pvErr_z")) {
102 produces<std::vector<reco::CaloJet>>();
103 produces<reco::VertexCollection>();
120 auto pOut = std::make_unique<std::vector<reco::CaloJet>>();
128 et = jetTracksAssociation->
end();
143 trkpt += iTrack.
pt();
145 calopt += jetMomentum.rho();
147 pOut->push_back(*dynamic_cast<const reco::CaloJet*>(&(*it->first)));
162 auto pOut2 = std::make_unique<reco::VertexCollection>();
163 pOut2->push_back(thePV);
177 desc.add<
double>(
"minPtRatio", 0.1);
178 desc.add<
double>(
"minPt", 0.0);
179 desc.add<
bool>(
"doFilter",
false);
180 desc.add<
int>(
"maxNJetsToCheck", 2);
181 desc.add<
int>(
"maxNjetsOutput", 2);
182 desc.add<
double>(
"maxChi2", 20.0);
183 desc.add<
double>(
"maxTrackPt", 20.0);
184 desc.add<
bool>(
"newMethod",
false);
185 desc.add<
double>(
"maxETA", 2.4);
186 desc.add<
double>(
"pvErr_x", 0.0015);
187 desc.add<
double>(
"pvErr_y", 0.0015);
188 desc.add<
double>(
"pvErr_z", 1.5);
189 descriptions.
add(
"jetVertexChecker",
desc);