37 produces<reco::RecoTauPiZeroCollection>(
"pizeros");
38 produces<reco::PFTauCollection>();
41 std::auto_ptr<reco::RecoTauPiZeroCollection> piZerosOut(
49 reco::tau::castView<reco::PFTauRefVector>(tauView);
55 for (
size_t iTau = 0; iTau < taus.
size(); ++iTau) {
67 for (
size_t iPiZero = 0; iPiZero < signalPiZeros.size(); ++iPiZero) {
68 piZerosOut->push_back(signalPiZeros[iPiZero]);
76 for (
size_t iPiZero = 0; iPiZero < isolationPiZeroCandidates.size(); ++iPiZero) {
77 piZerosOut->push_back(isolationPiZeroCandidates[iPiZero]);
86 tausOut->push_back(myTau);
89 evt.
put(piZerosOut,
"pizeros");
T getParameter(std::string const &) const
std::vector< PFTau > PFTauCollection
collection of PFTau objects
#define DEFINE_FWK_MODULE(type)
std::vector< RecoTauPiZero > RecoTauPiZeroCollection
collection of RecoTauPiZero objects
void produce(edm::Event &evt, const edm::EventSetup &es)
virtual ~RecoTauPiZeroUnembedder()
RecoTauPiZeroUnembedder(const edm::ParameterSet &pset)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
const std::vector< RecoTauPiZero > & signalPiZeroCandidates() const
Retrieve the association of signal region gamma candidates into candidate PiZeros.
void setIsolationPiZeroCandidatesRefs(const RecoTauPiZeroRefVector &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
RefProd< PROD > getRefBeforePut()
const std::vector< RecoTauPiZero > & isolationPiZeroCandidates() const
Retrieve the association of isolation region gamma candidates into candidate PiZeros.
void setSignalPiZeroCandidatesRefs(const RecoTauPiZeroRefVector &)
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
size_type size() const
Size of the RefVector.