97 produces<std::vector<reco::CaloJet> >();
98 produces<reco::VertexCollection >();
122 std::auto_ptr<std::vector<reco::CaloJet> > pOut(
new std::vector<reco::CaloJet> );
130 it != jetTracksAssociation->end() &&
i <
m_maxNjets; it++,
i++) {
131 if(
std::abs(it->first->eta()) < 2.4)
142 else trkpt += iTrack.
pt();
144 calopt += jetMomentum.rho();
147 pOut->push_back(* dynamic_cast<const reco::CaloJet *>(&(*it->first)));
157 e(0, 0) = 0.0015 * 0.0015;
158 e(1, 1) = 0.0015 * 0.0015;
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 descriptions.
add(
"jetVertexChecker",desc);
T getParameter(std::string const &) const
transient_vector_type::const_iterator const_iterator
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
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)
edm::EDGetTokenT< reco::BeamSpot > m_beamSpot
math::XYZPoint Point
point in the space
virtual bool filter(edm::Event &, const edm::EventSetup &) override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
XYZVectorD XYZVector
spatial vector with cartesian internal representation
JetVertexChecker(const edm::ParameterSet &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< reco::JetTracksAssociationCollection > m_associator