|
|
Go to the documentation of this file.
15 #include "HepMC/GenEvent.h"
25 #include <CLHEP/Random/RandomEngine.h>
40 produces<edm::HepMCProduct>();
41 produces<edm::LHCTransportLinkContainer>();
47 throw cms::Exception(
"Configuration") <<
"LHCTransport (HectorProducer) requires the "
48 "RandomNumberGeneratorService\n"
49 "which is not present in the configuration file. You must add the "
51 "in the configuration file or remove the modules that require it.";
53 edm::LogInfo(
"SimTransportHectorProducer") <<
"Hector is created";
65 if (engine->name() !=
"TRandom3") {
66 throw cms::Exception(
"Configuration") <<
"The TRandom3 engine type must be used with HectorProducer, "
67 <<
"Random Number Generator Service not correctly configured!";
79 throw cms::Exception(
"InvalidReference") <<
"Invalid reference to HepMCProduct\n";
83 throw cms::Exception(
"LogicError") <<
"HectorTrasported HepMCProduce already exists\n";
107 edm::LogInfo(
"SimTransportHectorProducer") <<
"new HepMC product ";
110 NewProduct->addHepMCData(
evt_);
114 edm::LogInfo(
"SimTransportHectorProducer") <<
"new LHCTransportLinkContainer ";
117 (*NewCorrespondenceMap).swap(thisLink);
120 for (
unsigned int i = 0;
i < (*NewCorrespondenceMap).size();
i++)
121 LogDebug(
"HectorEventProcessing") <<
"Hector correspondence table: " << (*NewCorrespondenceMap)[
i];
125 edm::LogInfo(
"SimTransportHectorProducer") <<
"produce end ";
std::string const & moduleLabel() const
HepMC::GenEvent * addPartToHepMC(HepMC::GenEvent *event)
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
std::vector< LHCTransportLink > LHCTransportLinkContainer
void produce(edm::Event &e, const edm::EventSetup &c) override
int m_evtAnalysed
just to count events that have been analysed
void filterD1(TRandom3 *)
edm::EDGetTokenT< edm::HepMCProduct > m_HepMC
void add(const HepMC::GenEvent *ev, const edm::EventSetup &es)
#define DEFINE_FWK_MODULE(type)
std::vector< LHCTransportLink > & getCorrespondenceMap()
Provenance const * provenance() const
void clearApertureFlags()
~HectorProducer() override
const HepMC::GenEvent * GetEvent() const
void filterFP420(TRandom3 *)
void endRun(const edm::Run &r, const edm::EventSetup &c) override
void beginRun(const edm::Run &r, const edm::EventSetup &c) override
void filterZDC(TRandom3 *)
HectorProducer(edm::ParameterSet const &p)