1 #ifndef RecoTauTag_TauTagTools_CopyProducer_h
2 #define RecoTauTag_TauTagTools_CopyProducer_h
22 namespace reco {
namespace tautools {
24 template<
typename Collection>
29 :
src_(pset.
template getParameter<edm::InputTag>(
"src")) {
30 produces<Collection>();
37 std::auto_ptr<Collection>
coll(
new Collection());
43 coll->reserve(input->size());
45 std::copy(input->begin(), input->end(), std::back_inserter(*coll));
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const