43 jets_(consumes<edm::
View<pat::
Jet> >(iConfig.getParameter<edm::
InputTag>(
"src"))),
44 dropJetVars_(iConfig.getParameter<std::
string>(
"dropJetVars")),
45 dropDaughters_(iConfig.getParameter<std::
string>(
"dropDaughters")),
46 rekeyDaughters_(iConfig.getParameter<std::
string>(
"rekeyDaughters")),
47 dropTrackRefs_(iConfig.getParameter<std::
string>(
"dropTrackRefs")),
48 dropSpecific_(iConfig.getParameter<std::
string>(
"dropSpecific")),
49 dropTagInfos_(iConfig.getParameter<std::
string>(
"dropTagInfos"))
51 produces<std::vector<pat::Jet> >();
64 auto_ptr<vector<pat::Jet> >
out(
new vector<pat::Jet>());
65 out->reserve(
src->size());
70 if(dropTagInfos_(*it)){
74 if (dropJetVars_(*it)) {
79 if(dropTrackRefs_(*it))
83 if (dropDaughters_(*it)) {
87 }
else if (rekeyDaughters_(*it)) {
91 std::map<unsigned int,reco::CandidatePtr> ptrs;
92 for(
unsigned int i=0;
i<old.size();
i++)
97 for(std::map<unsigned int,reco::CandidatePtr>::iterator itp=ptrs.begin();itp!=ptrs.end();itp++)
104 if (dropSpecific_(*it)) {
CaloTowerFwdPtrVector caloTowersFwdPtr_
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
StringCutObjectSelector< pat::Jet > dropTrackRefs_
#define DEFINE_FWK_MODULE(type)
TagInfoFwdPtrCollection tagInfosFwdPtr_
std::vector< pat::PackedCandidate > PackedCandidateCollection
edm::EDGetTokenT< edm::Association< pat::PackedCandidateCollection > > pf2pc_
StringCutObjectSelector< pat::Jet > rekeyDaughters_
std::vector< PFSpecific > specificPF_
edm::OwnVector< reco::BaseTagInfo > tagInfos_
std::vector< CaloSpecific > specificCalo_
edm::EDGetTokenT< edm::View< pat::Jet > > jets_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
StringCutObjectSelector< pat::Jet > dropSpecific_
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
StringCutObjectSelector< pat::Jet > dropJetVars_
std::vector< CandidatePtr > daughters
collection of references to daughters
StringCutObjectSelector< pat::Jet > dropTagInfos_
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.
PATJetSlimmer(const edm::ParameterSet &iConfig)
void clearDaughters()
clear daughter references
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 daughters & daughterPtrVector() const
references to daughtes
void addDaughter(const CandidatePtr &)
add a daughter via a reference
Matcher of reconstructed objects to L1 Muons.
StringCutObjectSelector< pat::Jet > dropDaughters_