1 #ifndef RecoTauTag_TauTagTools_CastedRefProducer_h
2 #define RecoTauTag_TauTagTools_CastedRefProducer_h
22 namespace reco {
namespace tautools {
24 template<
typename DerivedCollection,
typename BaseType>
33 :
src_(pset.
template getParameter<edm::InputTag>(
"src")) {
34 produces<OutputCollection>();
47 for(
size_t i = 0;
i < baseRefs.
size(); ++
i) {
50 derived_ref derived = base.template castTo<derived_ref>();
51 coll->push_back(derived);
value_type at(size_type idx) const
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const