5 produces<JetChargeCollection>();
14 if (hJTAs->keyProduct().isNull()) {
16 iEvent.
put(std::make_unique<JetChargeCollection>());
19 auto ret = std::make_unique<JetChargeCollection>(hJTAs->keyProduct());
20 for (IT it = hJTAs->begin(), ed = hJTAs->end(); it != ed; ++it) {
21 const JetRef &
jet = it->first;
tuple ret
prodAgent to be discontinued
double charge(const LorentzVector &lv, const reco::TrackCollection &vec) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
transient_vector_type::const_iterator const_iterator
bool getByToken(EDGetToken token, Handle< PROD > &result) const
JetTracksAssociation::Container JetTracksAssociationCollection
typedefs for backward compatibility
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
edm::Ref< JetBxCollection > JetRef
auto const & tracks
cannot be loose
const edm::EDGetTokenT< reco::JetTracksAssociationCollection > srcToken_
std::vector< LinkConnSpec >::const_iterator IT
bool setValue(Container &, const reco::JetBaseRef &, float)
associate jet with value
JetChargeProducer(const edm::ParameterSet &cfg)