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)
47 allJets.push_back(jets_h->refAt(
i));
49 allTracks.reserve(tracks_h->size());
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
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
bool exists(std::string const ¶meterName) const
checks if a parameter exists
std::vector< Vertex > VertexCollection
collection of Vertex objects
JetTracksAssociatorAtVertex(const edm::ParameterSet &)
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::RefToBaseProd< reco::Jet > JetRefBaseProd
edm::EDGetTokenT< reco::VertexCollection > pvSrc
if true, use the track/jet association with vertex assignment to tracks
void produce(reco::JetTracksAssociation::Container *fAssociation, const std::vector< edm::RefToBase< reco::Jet > > &fJets, const std::vector< reco::TrackRef > &fTracks) const
JetTracksAssociationDRVertexAssigned mAssociatorAssigned
T const * product() const
T getParameter(std::string const &) const
JetTracksAssociationDRVertex mAssociator
~JetTracksAssociatorAtVertex() override
edm::EDGetTokenT< edm::View< reco::Jet > > mJets
void produce(edm::Event &, const edm::EventSetup &) override