91 , m_doFilter ( iConfig.getParameter<bool> (
"doFilter") )
92 , m_cutMinPt ( iConfig.getParameter<double> (
"minPt") )
93 , m_cutMinPtRatio ( iConfig.getParameter<double> (
"minPtRatio") )
94 , m_maxTrackPt ( iConfig.getParameter<double> (
"maxTrackPt") )
95 , m_maxChi2 ( iConfig.getParameter<double> (
"maxChi2") )
96 , m_maxNjets ( iConfig.getParameter<int32_t>(
"maxNJetsToCheck") )
97 , m_maxNjetsOutput ( iConfig.getParameter<int32_t>(
"maxNjetsOutput") )
98 , m_newMethod ( iConfig.getParameter<bool> (
"newMethod") )
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 std::auto_ptr<std::vector<reco::CaloJet> > pOut(
new std::vector<reco::CaloJet> );
150 else trkpt += iTrack.
pt();
152 calopt += jetMomentum.rho();
155 pOut->push_back(* dynamic_cast<const reco::CaloJet *>(&(*it->first)));
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);
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
math::Error< dimension >::type Error
covariance error matrix (3x3)
std::vector< Vertex > VertexCollection
collection of Vertex objects
const Vector & momentum() const
track momentum vector
const_iterator end() const
Termination of iteration.
const_iterator begin() const
Initialize an iterator over the RefVector.
double chi2() const
chi-squared of the fit
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
double pt() const
track transverse momentum
Abs< T >::type abs(const T &t)
math::XYZPoint Point
point in the space
virtual 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)
const edm::EDGetTokenT< reco::BeamSpot > m_beamSpot
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const int32_t m_maxNjetsOutput
const double m_cutMinPtRatio