43 auto piZerosOut = std::make_unique<reco::RecoTauPiZeroCollection>();
44 auto tausOut = std::make_unique<reco::PFTauCollection>();
50 reco::tau::castView<reco::PFTauRefVector>(tauView);
56 for (
size_t iTau = 0; iTau < taus.
size(); ++iTau) {
68 for (
size_t iPiZero = 0; iPiZero < signalPiZeros.size(); ++iPiZero) {
69 piZerosOut->push_back(signalPiZeros[iPiZero]);
77 for (
size_t iPiZero = 0; iPiZero < isolationPiZeroCandidates.size(); ++iPiZero) {
78 piZerosOut->push_back(isolationPiZeroCandidates[iPiZero]);
87 tausOut->push_back(myTau);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< RecoTauPiZero > RecoTauPiZeroCollection
collection of RecoTauPiZero objects
const std::vector< RecoTauPiZero > & signalPiZeroCandidates() const
Retrieve the association of signal region gamma candidates into candidate PiZeros.
RefProd< PROD > getRefBeforePut()
const std::vector< RecoTauPiZero > & isolationPiZeroCandidates() const
Retrieve the association of isolation region gamma candidates into candidate PiZeros.
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
size_type size() const
Size of the RefVector.
void setIsolationPiZeroCandidatesRefs(RecoTauPiZeroRefVector)
edm::EDGetTokenT< reco::CandidateView > token
void setSignalPiZeroCandidatesRefs(RecoTauPiZeroRefVector)