92 ,
m_cutMinPt ( iConfig.getParameter<double> (
"minPt") )
94 ,
m_maxTrackPt ( iConfig.getParameter<double> (
"maxTrackPt") )
95 ,
m_maxChi2 ( iConfig.getParameter<double> (
"maxChi2") )
96 ,
m_maxNjets ( iConfig.getParameter<int32_t>(
"maxNJetsToCheck") )
99 ,
m_maxETA ( iConfig.getParameter<double> (
"maxETA") )
100 ,
m_pvErr_x ( iConfig.getParameter<double> (
"pvErr_x") )
101 ,
m_pvErr_y ( iConfig.getParameter<double> (
"pvErr_y") )
102 ,
m_pvErr_z ( iConfig.getParameter<double> (
"pvErr_z") )
105 produces<std::vector<reco::CaloJet> >();
106 produces<reco::VertexCollection >();
130 auto pOut = std::make_unique<std::vector<reco::CaloJet>>();
150 else trkpt += iTrack.
pt();
152 calopt += jetMomentum.rho();
155 pOut->push_back(* dynamic_cast<const reco::CaloJet *>(&(*it->first)));
170 auto pOut2 = std::make_unique<reco::VertexCollection>();
171 pOut2->push_back(thePV);
185 desc.
add<
double> (
"minPtRatio", 0.1);
186 desc.
add<
double> (
"minPt", 0.0);
187 desc.
add<
bool> (
"doFilter",
false);
188 desc.
add<
int> (
"maxNJetsToCheck",2);
189 desc.
add<
int> (
"maxNjetsOutput", 2);
190 desc.
add<
double> (
"maxChi2", 20.0);
191 desc.
add<
double> (
"maxTrackPt", 20.0);
192 desc.
add<
bool> (
"newMethod",
false);
193 desc.
add<
double> (
"maxETA", 2.4 );
194 desc.
add<
double> (
"pvErr_x", 0.0015);
195 desc.
add<
double> (
"pvErr_y", 0.0015);
196 desc.
add<
double> (
"pvErr_z", 1.5 );
197 descriptions.
add(
"jetVertexChecker",desc);
double z0() const
z coordinate
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
transient_vector_type::const_iterator const_iterator
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
JetTracksAssociation::Container JetTracksAssociationCollection
typedefs for backward compatibility
const double m_maxTrackPt
const_iterator end() const
math::Error< dimension >::type Error
covariance error matrix (3x3)
const Vector & momentum() const
track momentum vector
const_iterator end() const
Termination of iteration.
const_iterator begin() const
Initialize an iterator over the RefVector.
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
double chi2() const
chi-squared of the fit
double pt() const
track transverse momentum
Abs< T >::type abs(const T &t)
math::XYZPoint Point
point in the space
bool filter(edm::Event &, const edm::EventSetup &) override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
const edm::EDGetTokenT< reco::JetTracksAssociationCollection > m_associator
XYZVectorD XYZVector
spatial vector with cartesian internal representation
JetVertexChecker(const edm::ParameterSet &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
et
define resolution functions of each parameter
~JetVertexChecker() override
double y0() const
y coordinate
const edm::EDGetTokenT< reco::BeamSpot > m_beamSpot
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const_iterator begin() const
const int32_t m_maxNjetsOutput
const double m_cutMinPtRatio
double x0() const
x coordinate