File indexing completed on 2024-04-06 12:24:52
0001 #include "DataFormats/Common/interface/Ptr.h"
0002 #include "DataFormats/Common/interface/RefToPtr.h"
0003
0004 #include "EgammaHLTFilteredObjProducer.h"
0005
0006 template <>
0007 void EgammaHLTFilteredObjProducer<reco::RecoEcalCandidateCollection>::addObj(
0008 const reco::RecoEcalCandidateRef& cand, reco::RecoEcalCandidateCollection& output) {
0009 output.push_back(*cand);
0010 }
0011
0012 using EgammaHLTFilteredEcalCandProducer = EgammaHLTFilteredObjProducer<reco::RecoEcalCandidateCollection>;
0013 DEFINE_FWK_MODULE(EgammaHLTFilteredEcalCandProducer);
0014
0015 template <>
0016 void EgammaHLTFilteredObjProducer<std::vector<edm::Ptr<reco::Candidate> > >::addObj(
0017 const reco::RecoEcalCandidateRef& cand, std::vector<edm::Ptr<reco::Candidate> >& output) {
0018 output.push_back(edm::refToPtr(cand));
0019 }
0020
0021 using EgammaHLTFilteredEcalCandPtrProducer = EgammaHLTFilteredObjProducer<std::vector<edm::Ptr<reco::Candidate> > >;
0022 DEFINE_FWK_MODULE(EgammaHLTFilteredEcalCandPtrProducer);