28 if (fileName.find(
"file:") == 0) {
33 produces<HepMCProduct>(
"generator");
34 produces<GenEventInfoProduct>(
"generator");
43 LogInfo(
"MCFileSource") <<
"Start Reading";
45 return (
evt_ !=
nullptr);
52 auto bare_product = std::make_unique<HepMCProduct>();
53 bare_product->addHepMCData(
evt_);
MCFileSource(const ParameterSet &pset, const InputSourceDescription &desc)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
static PFTauRenderPlugin instance
edm::propagate_const< HepMC::GenEvent * > evt_
edm::propagate_const< HepMCFileReader * > reader_
bool setRunAndEventInfo(EventID &, TimeValue_t &time, EventAuxiliary::ExperimentType &eType) override
unsigned long long TimeValue_t
Log< level::Info, false > LogInfo
void produce(Event &e) override
std::vector< std::string > fileNames(unsigned iCatalog) const