Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions GeneratorInterface/Core/interface/GeneratorFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

//#include "GeneratorInterface/LHEInterface/interface/LHEEvent.h"
#include "SimDataFormats/GeneratorProducts/interface/HepMCProduct.h"
#include "SimDataFormats/GeneratorProducts/interface/HepMC3Product.h"
#include "SimDataFormats/GeneratorProducts/interface/GenRunInfoProduct.h"
#include "SimDataFormats/GeneratorProducts/interface/GenLumiInfoHeader.h"
#include "SimDataFormats/GeneratorProducts/interface/GenLumiInfoProduct.h"
Expand Down Expand Up @@ -125,8 +126,8 @@ namespace edm {
produces<edm::HepMCProduct>("unsmeared");
produces<GenEventInfoProduct>();
} else if (ivhepmc == 3) {
//produces<edm::HepMC3Product>("unsmeared");
//produces<GenEventInfoProduct3>();
produces<edm::HepMC3Product>("unsmeared");
produces<GenEventInfoProduct3>();
}
produces<GenLumiInfoHeader, edm::Transition::BeginLuminosityBlock>();
produces<GenLumiInfoProduct, edm::Transition::EndLuminosityBlock>();
Expand Down Expand Up @@ -249,11 +250,11 @@ namespace edm {
genEventInfo3.reset(new GenEventInfoProduct3(event3.get()));
}

//ev.put(std::move(genEventInfo3));
ev.put(std::move(genEventInfo3));

//std::unique_ptr<HepMCProduct3> bare_product(new HepMCProduct3());
//bare_product->addHepMCData(event3.release());
//ev.put(std::move(bare_product), "unsmeared");
std::unique_ptr<HepMC3Product> bare_product(new HepMC3Product());
bare_product->addHepMCData(event3.release());
ev.put(std::move(bare_product), "unsmeared");
}

nEventsInLumiBlock_++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace gen {
std::string slhafile_;

private:
P8RndmEnginePtr p8RndmEngine_;
std::shared_ptr<P8RndmEngine> p8RndmEngine_;
};
} // namespace gen
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ namespace gen {
pythiaHepMCVerbosity = ps.getUntrackedParameter<bool>("pythiaHepMCVerbosity", false);
pythiaHepMCVerbosityParticles = ps.getUntrackedParameter<bool>("pythiaHepMCVerbosityParticles", false);
maxEventsToPrint = ps.getUntrackedParameter<int>("maxEventsToPrint", 0);
p8RndmEngine_ = std::make_shared<P8RndmEngine>();

//if (pythiaHepMCVerbosityParticles)
// ascii_io = new HepMC::IO_AsciiParticles("cout", std::ios::out);
Expand Down
2 changes: 2 additions & 0 deletions GeneratorInterface/RivetInterface/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
<use name="boost"/>
<use name="gsl"/>
<use name="root"/>
<use name="hepmc3"/>
<flags RIVET_PLUGIN="1"/>
<flags CXXFLAGS="-Wno-error=missing-braces -Wno-missing-braces -Wno-non-virtual-dtor"/>

This file was deleted.

This file was deleted.

Loading