19 : mAssociator (fConfig.getParameter<double> (
"coneSize")),
20 mAssociatorAssigned (fConfig.getParameter<double> (
"coneSize")),
21 useAssigned(
false), pvSrc()
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) allJets.push_back (jets_h->refAt(
i));
48 allTracks.reserve (tracks_h->size());
50 for (
unsigned i = 0;
i < tracks_h->size(); ++
i) {
64 fEvent.
put (jetTracks);
std::vector< reco::JetBaseRef > allJets(const Container &)
fill list of all jets associated with values. Return # of jets in the list
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::TrackCollection > mTracks
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 &)
virtual void produce(edm::Event &, const edm::EventSetup &)
edm::EDGetTokenT< edm::View< reco::Jet > > mJets
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
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
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
virtual ~JetTracksAssociatorAtVertex()
JetTracksAssociationDRVertexAssigned mAssociatorAssigned
T const * product() const
JetTracksAssociationDRVertex mAssociator
volatile std::atomic< bool > shutdown_flag false