48 dropJetVars_(iConfig.getParameter<std::
string>("dropJetVars")),
49 dropDaughters_(iConfig.getParameter<std::
string>("dropDaughters")),
50 rekeyDaughters_(iConfig.getParameter<std::
string>("rekeyDaughters")),
51 dropTrackRefs_(iConfig.getParameter<std::
string>("dropTrackRefs")),
52 dropSpecific_(iConfig.getParameter<std::
string>("dropSpecific")),
53 dropTagInfos_(iConfig.getParameter<std::
string>("dropTagInfos")),
54 modifyJet_(iConfig.getParameter<
bool>("modifyJets"))
60 jetModifier_->setConsumes(sumes);
62 jetModifier_.reset(
nullptr);
64 produces<std::vector<pat::Jet> >();
82 auto out = std::make_unique<std::vector<pat::Jet>>();
115 std::map<unsigned int,reco::CandidatePtr> ptrs;
116 for(
unsigned int i=0;
i<old.size();
i++)
121 for(std::map<unsigned int,reco::CandidatePtr>::iterator itp=ptrs.begin();itp!=ptrs.end();itp++)
std::unique_ptr< pat::ObjectModifier< pat::Jet > > jetModifier_
T getParameter(std::string const &) const
const StringCutObjectSelector< pat::Jet > dropDaughters_
CaloTowerFwdPtrVector caloTowersFwdPtr_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Ptr< typename C::value_type > refToPtr(Ref< C, typename C::value_type, refhelper::FindUsingAdvance< C, typename C::value_type > > const &ref)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
TagInfoFwdPtrCollection tagInfosFwdPtr_
std::vector< pat::PackedCandidate > PackedCandidateCollection
const StringCutObjectSelector< pat::Jet > dropTrackRefs_
virtual void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) overridefinal
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
std::vector< PFSpecific > specificPF_
edm::OwnVector< reco::BaseTagInfo > tagInfos_
std::vector< CaloSpecific > specificCalo_
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
const StringCutObjectSelector< pat::Jet > dropSpecific_
const StringCutObjectSelector< pat::Jet > dropTagInfos_
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
std::vector< std::string > tagInfoLabels_
std::vector< CandidatePtr > daughters
collection of references to daughters
const StringCutObjectSelector< pat::Jet > rekeyDaughters_
void setAssociatedTracks(const reco::TrackRefVector &tracks)
method to set the vector of refs to the tracks associated to this jet
Analysis-level calorimeter jet class.
const edm::EDGetTokenT< edm::View< pat::Jet > > jets_
PATJetSlimmer(const edm::ParameterSet &iConfig)
void clearDaughters()
clear daughter references
const StringCutObjectSelector< pat::Jet > dropJetVars_
virtual void setNPasses(int fPasses)
Set number of passes taken by algorithm.
reco::PFCandidateFwdPtrVector pfCandidatesFwdPtr_
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
const edm::EDGetTokenT< edm::Association< pat::PackedCandidateCollection > > pf2pc_
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
const daughters & daughterPtrVector() const
references to daughtes
void addDaughter(const CandidatePtr &)
add a daughter via a reference
Matcher of reconstructed objects to L1 Muons.