19 : mAssociator(fConfig.getParameter<double>(
"coneSize")),
20 mAssociatorAssigned(fConfig.getParameter<double>(
"coneSize")),
25 if (fConfig.
exists(
"useAssigned")) {
30 produces<reco::JetTracksAssociation::Container>();
44 std::vector<edm::RefToBase<reco::Jet> >
allJets;
45 allJets.reserve(jets_h->size());
46 for (
unsigned i = 0;
i < jets_h->size(); ++
i)
51 for (
unsigned i = 0;
i < tracks_h->size(); ++
i) {
std::vector< reco::JetBaseRef > allJets(const Container &)
fill list of all jets associated with values. Return # of jets in the list
edm::EDGetTokenT< reco::TrackCollection > mTracks
T getParameter(std::string const &) const
bool exists(std::string const ¶meterName) const
checks if a parameter exists
T const * product() const
std::vector< Vertex > VertexCollection
collection of Vertex objects
JetTracksAssociatorAtVertex(const edm::ParameterSet &)
edm::RefToBaseProd< reco::Jet > JetRefBaseProd
edm::EDGetTokenT< reco::VertexCollection > pvSrc
if true, use the track/jet association with vertex assignment to tracks
JetTracksAssociationDRVertexAssigned mAssociatorAssigned
JetTracksAssociationDRVertex mAssociator
void produce(reco::JetTracksAssociation::Container *fAssociation, const std::vector< edm::RefToBase< reco::Jet > > &fJets, const std::vector< reco::TrackRef > &fTracks) const
~JetTracksAssociatorAtVertex() override
void produce(reco::JetTracksAssociation::Container *fAssociation, const std::vector< edm::RefToBase< reco::Jet > > &fJets, const std::vector< reco::TrackRef > &fTracks, const reco::VertexCollection &vertices) const
edm::EDGetTokenT< edm::View< reco::Jet > > mJets
void produce(edm::Event &, const edm::EventSetup &) override