Skip to content

Commit

Permalink
adding label generator (92X porting)
Browse files Browse the repository at this point in the history
  • Loading branch information
perrozzi authored and amarini committed Jul 3, 2017
1 parent a9dfc33 commit 70d0de6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions IOMC/Input/src/MCFileSource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ MCFileSource::MCFileSource(const ParameterSet & pset, InputSourceDescription con
}

reader_->initialize(fileName);
produces<HepMCProduct>();
produces<GenEventInfoProduct>();
produces<HepMCProduct>("generator");
produces<GenEventInfoProduct>("generator");
}


Expand All @@ -56,8 +56,8 @@ void MCFileSource::produce(Event &e) {

auto bare_product = std::make_unique<HepMCProduct>();
bare_product->addHepMCData(evt_);
e.put(std::move(bare_product));
e.put(std::move(bare_product),"generator");
std::unique_ptr<GenEventInfoProduct> info ( new GenEventInfoProduct( evt_ ) );
e.put(std::move(info) );
e.put(std::move(info) ,"generator");
}

0 comments on commit 70d0de6

Please sign in to comment.