1 #ifndef RecoTauTag_TauTagTools_CopyProducer_h
2 #define RecoTauTag_TauTagTools_CopyProducer_h
22 namespace reco {
namespace tautools {
24 template<
typename Collection>
30 produces<Collection>();
37 auto coll = std::make_unique<Collection>();
43 coll->reserve(input->size());
45 std::copy(input->begin(), input->end(), std::back_inserter(*
coll));
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
static std::string const input
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const