Go to the documentation of this file.
43 token = consumes<reco::CandidateView>(
src_);
44 produces<reco::RecoTauPiZeroCollection>(
"pizeros");
45 produces<reco::PFTauCollection>();
48 auto piZerosOut = std::make_unique<reco::RecoTauPiZeroCollection>();
49 auto tausOut = std::make_unique<reco::PFTauCollection>();
59 for (
size_t iTau = 0; iTau <
taus.size(); ++iTau) {
70 for (
size_t iPiZero = 0; iPiZero < signalPiZeros.size(); ++iPiZero) {
71 piZerosOut->push_back(signalPiZeros[iPiZero]);
77 for (
size_t iPiZero = 0; iPiZero < isolationPiZeroCandidates.size(); ++iPiZero) {
78 piZerosOut->push_back(isolationPiZeroCandidates[iPiZero]);
86 tausOut->push_back(myTau);
97 descriptions.
add(
"RecoTauPiZeroUnembedder", desc);
RefProd< PROD > getRefBeforePut()
ParameterDescriptionBase * add(U const &iLabel, T const &value)
~RecoTauPiZeroUnembedder() override
void setIsolationPiZeroCandidatesRefs(RecoTauPiZeroRefVector)
RecoTauPiZeroUnembedder(const edm::ParameterSet &pset)
const std::vector< RecoTauPiZero > & isolationPiZeroCandidates() const
Retrieve the association of isolation region gamma candidates into candidate PiZeros.
const std::vector< RecoTauPiZero > & signalPiZeroCandidates() const
Retrieve the association of signal region gamma candidates into candidate PiZeros.
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< RecoTauPiZero > RecoTauPiZeroCollection
collection of RecoTauPiZero objects
void setSignalPiZeroCandidatesRefs(RecoTauPiZeroRefVector)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
void produce(edm::Event &evt, const edm::EventSetup &es) override
edm::EDGetTokenT< reco::CandidateView > token