43 linkToPackedPF_(iConfig.getParameter<bool>(
"linkToPackedPFCandidates")),
45 dropPiZeroRefs_(iConfig.exists(
"dropPiZeroRefs") ? iConfig.getParameter<bool>(
"dropPiZeroRefs") :
true ),
47 dropPFSpecific_(iConfig.exists(
"dropPFSpecific") ? iConfig.getParameter<bool>(
"dropPFSpecific") :
true),
48 modifyTau_(iConfig.getParameter<bool>(
"modifyTaus"))
58 produces<std::vector<pat::Tau> >();
77 auto out = std::make_unique<std::vector<pat::Tau>>();
78 out->reserve(src->size());
94 reco::CandidatePtrVector signalChHPtrs, signalNHPtrs, signalGammaPtrs, isolationChHPtrs, isolationNHPtrs, isolationGammaPtrs;
128 tau.
pfSpecific_[0].signalPiZeroCandidates_.clear();
129 tau.
pfSpecific_[0].isolationPiZeroCandidates_.clear();
132 tau.
pfSpecific_[0].signalTauChargedHadronCandidates_.clear();
133 tau.
pfSpecific_[0].isolationTauChargedHadronCandidates_.clear();
T getParameter(std::string const &) const
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
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)
void push_back(Ptr< T > const &iPtr)
const std::vector< reco::PFCandidatePtr > & isolationPFChargedHadrCands() const
std::vector< pat::PackedCandidate > PackedCandidateCollection
const edm::EDGetTokenT< edm::View< pat::Tau > > src_
const bool dropPFSpecific_
const bool dropPiZeroRefs_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
void setIsolationGammaCands(const reco::CandidatePtrVector &ptrs)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
void setIsolationNeutralHadrCands(const reco::CandidatePtrVector &ptrs)
void setIsolationChargedHadrCands(const reco::CandidatePtrVector &ptrs)
virtual void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override final
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
const edm::EDGetTokenT< edm::Association< pat::PackedCandidateCollection > > pf2pc_
std::vector< float > isolations_
const bool dropTauChargedHadronRefs_
const bool linkToPackedPF_
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
const std::vector< reco::PFCandidatePtr > & signalPFGammaCands() const
EDGetTokenT< ProductType > mayConsume(edm::InputTag const &tag)
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_