|
| JetTracksAssociationToTrackRefs (const edm::ParameterSet &iConfig) |
|
virtual void | produce (edm::StreamID, edm::Event &iEvent, const edm::EventSetup &iSetup) const override |
|
| EDProducer ()=default |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
virtual | ~EDProducerBase () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
void | resolvePutIndicies (BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel) |
|
virtual | ~ProducerBase () noexcept(false) |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
The purpose of this producer is to convert AssociationVector<JetRefBaseProd, vector<RefVector<Track> > to a RefVector<Track> of the (unique) values.
Definition at line 23 of file JetTracksAssociationToTrackRefs.cc.
Definition at line 57 of file JetTracksAssociationToTrackRefs.cc.
References TrackValidation_cff::association, associationToken_, reco::JetCorrector::correction(), mitigatedMETSequence_cff::corrector, correctorToken_, DEFINE_FWK_MODULE, edm::Event::getByToken(), mps_fire::i, metsig::jet, fwrapper::jets, jetToken_, eostools::move(), p4, reco::LeafCandidate::p4(), ptMin_, edm::Event::put(), edm::View< T >::refAt(), reco::JetCorrector::refRequired(), Scenarios_cff::scale, edm::View< T >::size(), and reco::JetCorrector::vectorialCorrection().
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
70 auto ret = std::make_unique<reco::TrackRefVector>();
71 std::unordered_set<reco::TrackRefVector::key_type> alreadyAdded;
75 for(
size_t i=0;
i<jets.
size(); ++
i) {
99 for(
const auto& trackRef: association[jetRef]) {
100 if(alreadyAdded.find(trackRef.key()) == alreadyAdded.end()) {
101 ret->push_back(trackRef);
102 alreadyAdded.insert(trackRef.key());
edm::EDGetTokenT< edm::View< reco::Jet > > jetToken_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Base class for all types of Jets.
bool refRequired() const
if correction needs the jet reference
double correction(const LorentzVector &fJet) const
get correction using Jet information only
edm::EDGetTokenT< reco::JetCorrector > correctorToken_
RefToBase< value_type > refAt(size_type i) const
edm::EDGetTokenT< reco::JetTracksAssociation::Container > associationToken_
bool vectorialCorrection() const
if vectorial correction is provided
virtual const LorentzVector & p4() const final
four-momentum Lorentz vector