40 src_(consumes<edm::
View<pat::
Tau> >(iConfig.getParameter<edm::
InputTag>(
"src"))),
41 linkToPackedPF_(iConfig.getParameter<bool>(
"linkToPackedPFCandidates"))
43 produces<std::vector<pat::Tau> >();
60 if (linkToPackedPF_) iEvent.
getByToken(pf2pc_, pf2pc);
62 auto_ptr<vector<pat::Tau> >
out(
new vector<pat::Tau>());
63 out->reserve(
src->size());
72 if (linkToPackedPF_) {
74 reco::CandidatePtrVector signalChHPtrs, signalNHPtrs, signalGammaPtrs, isolationChHPtrs, isolationNHPtrs, isolationGammaPtrs;
108 tau.
pfSpecific_[0].signalPiZeroCandidates_.clear();
109 tau.
pfSpecific_[0].isolationPiZeroCandidates_.clear();
111 if(dropTauChargedHadronRefs_){
112 tau.
pfSpecific_[0].signalTauChargedHadronCandidates_.clear();
113 tau.
pfSpecific_[0].isolationTauChargedHadronCandidates_.clear();
T getParameter(std::string const &) const
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)
void push_back(Ptr< T > const &iPtr)
const std::vector< reco::PFCandidatePtr > & isolationPFChargedHadrCands() const
bool exists(std::string const ¶meterName) const
checks if a parameter exists
edm::EDGetTokenT< edm::View< pat::Tau > > src_
void setIsolationGammaCands(const reco::CandidatePtrVector &ptrs)
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
void setIsolationNeutralHadrCands(const reco::CandidatePtrVector &ptrs)
void setIsolationChargedHadrCands(const reco::CandidatePtrVector &ptrs)
PATTauSlimmer(const edm::ParameterSet &iConfig)
void setSignalChargedHadrCands(const reco::CandidatePtrVector &ptrs)
setters for the PtrVectors (for miniAOD)
Analysis-level tau class.
IsoDepositPairs isoDeposits_
const std::vector< reco::PFCandidatePtr > & signalPFChargedHadrCands() const
void setSignalGammaCands(const reco::CandidatePtrVector &ptrs)
const std::vector< reco::PFCandidatePtr > & signalPFNeutrHadrCands() const
const std::vector< reco::PFCandidatePtr > & isolationPFGammaCands() const
std::vector< float > isolations_
bool dropTauChargedHadronRefs_
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
edm::EDGetTokenT< edm::Association< pat::PackedCandidateCollection > > pf2pc_
const std::vector< reco::PFCandidatePtr > & signalPFGammaCands() const
std::vector< pat::tau::TauPFSpecific > pfSpecific_
holder for PFTau info, or empty vector if CaloTau
const std::vector< reco::PFCandidatePtr > & isolationPFNeutrHadrCands() const
void setSignalNeutralHadrCands(const reco::CandidatePtrVector &ptrs)