1 #ifndef RecoTauTag_TauTagTools_CastedRefProducer_h 2 #define RecoTauTag_TauTagTools_CastedRefProducer_h 24 template<
typename DerivedCollection,
typename BaseType>
34 produces<OutputCollection>();
41 auto coll = std::make_unique<OutputCollection>();
46 for(
size_t i = 0;
i < input->size(); ++
i) {
48 base_ref
base = input->refAt(
i);
49 derived_ref derived = base.template castTo<derived_ref>();
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void push_back(key_type i, value_type const &j, label_type const &flav="")
static std::string const input
def template(fileName, svg, replaceme="REPLACEME")
base
Make Sure CMSSW is Setup ##.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const