31 if (fileName.find(
"file:") == 0){
36 produces<HepMCProduct>(
"generator");
37 produces<GenEventInfoProduct>(
"generator");
48 LogInfo(
"MCFileSource") <<
"Start Reading";
50 return(
evt_ !=
nullptr);
57 std::auto_ptr<HepMCProduct> bare_product(
new HepMCProduct());
58 bare_product->addHepMCData(
evt_);
59 e.
put(bare_product,
"generator");
61 e.
put(std::move(info),
"generator" );
MCFileSource(const ParameterSet &pset, const InputSourceDescription &desc)
static PFTauRenderPlugin instance
virtual void initialize(const std::string &filename)
virtual void produce(Event &e)
std::vector< std::string > const & fileNames() const
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
HepMCFileReader * reader_
unsigned long long TimeValue_t
HepMC::GenEvent * fillCurrentEventData()
virtual bool setRunAndEventInfo(EventID &, TimeValue_t &time)
volatile std::atomic< bool > shutdown_flag false