44 linkToPackedPF_(iConfig.getParameter<
bool>("linkToPackedPFCandidates")),
45 modifyTau_(iConfig.getParameter<
bool>("modifyTaus"))
51 tauModifier_->setConsumes(sumes);
53 tauModifier_.reset(
nullptr);
55 produces<std::vector<pat::Tau> >();
56 if (linkToPackedPF_) pf2pc_ = consumes<edm::Association<pat::PackedCandidateCollection>>(iConfig.
getParameter<
edm::InputTag>(
"packedPFCandidates"));
57 dropPiZeroRefs_ = iConfig.
exists(
"dropPiZeroRefs") ? iConfig.
getParameter<
bool>(
"dropPiZeroRefs") :
true;
58 dropTauChargedHadronRefs_ = iConfig.
exists(
"dropTauChargedHadronRefs") ? iConfig.
getParameter<
bool>(
"dropTauChargedHadronRefs") :
true;
59 dropPFSpecific_ = iConfig.
exists(
"dropPFSpecific") ? iConfig.
getParameter<
bool>(
"dropPFSpecific"):
true;
79 auto_ptr<vector<pat::Tau> >
out(
new vector<pat::Tau>());
80 out->reserve(
src->size());
96 reco::CandidatePtrVector signalChHPtrs, signalNHPtrs, signalGammaPtrs, isolationChHPtrs, isolationNHPtrs, isolationGammaPtrs;
130 tau.
pfSpecific_[0].signalPiZeroCandidates_.clear();
131 tau.
pfSpecific_[0].isolationPiZeroCandidates_.clear();
134 tau.
pfSpecific_[0].signalTauChargedHadronCandidates_.clear();
135 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
std::vector< pat::PackedCandidate > PackedCandidateCollection
bool exists(std::string const ¶meterName) const
checks if a parameter exists
edm::EDGetTokenT< edm::View< pat::Tau > > src_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
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.
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
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)
virtual void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) overridefinal
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)
std::unique_ptr< pat::ObjectModifier< pat::Tau > > tauModifier_