21 evt(0), firstEvent_ (pset.getUntrackedParameter<unsigned int>(
"firstEvent",0)),
25 cout <<
"H2RootNtplSource: Reading HepMC file: " <<
fileNames()[0] << endl;
28 if ( ! fileName.find(
"file:")){
32 cout <<
"H2RootNtplSource: Number of events to be processed = " <<
maxEvents() << endl;
36 cout <<
"H2RootNtplSource: Number of first event = " <<
firstEvent_ << endl;
40 produces<HepMCProduct>();
60 cout <<
"H2RootNtplSource: Start Reading " << endl;
63 bare_product->addHepMCData(
evt );
HepMC::GenEvent * fillCurrentEventData()
T getUntrackedParameter(std::string const &, T const &) const
static PFTauRenderPlugin instance
virtual bool produce(Event &e)
virtual ~H2RootNtplSource()
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
H2RootNtplSource(const ParameterSet &, const InputSourceDescription &)
virtual bool setEvent(unsigned int event)
Ntuple2HepMCFiller * reader_
virtual void initialize(const std::string &filename, int id)