1 #ifndef RecoTauTag_TauTagTools_CastedRefProducer_h
2 #define RecoTauTag_TauTagTools_CastedRefProducer_h
22 namespace reco {
namespace tautools {
24 template<
typename DerivedCollection,
typename BaseType>
34 produces<OutputCollection>();
46 for(
size_t i = 0;
i < input->size(); ++
i) {
49 derived_ref derived = base.template castTo<derived_ref>();
50 coll->push_back(derived);
static std::string const input
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const