Description: [one line class summary]
Implementation: [Notes on implementation]
Definition at line 45 of file PPSSimTrackProducer.cc.
Definition at line 126 of file PPSSimTrackProducer.cc.
References ProtonTransport::clear(), Exception, edm::Event::getByToken(), ProtonTransport::getCorrespondenceMap(), edm::RandomNumberGenerator::getEngine(), edm::HepMCProduct::GetEvent(), mps_fire::i, edm::HandleBase::isValid(), LogDebug, m_eventsAnalysed, m_InTagToken, m_verbosity, edm::Provenance::moduleLabel(), eostools::move(), ProtonTransport::process(), edm::HandleBase::provenance(), edm::Event::put(), edm::Event::streamID(), and theTransporter.
132 if (engine->name() !=
"TRandom3") {
133 throw cms::Exception(
"Configuration") <<
"The TRandom3 engine type must be used with ProtonTransport, Random " 134 "Number Generator Service not correctly configured!";
142 throw cms::Exception(
"InvalidReference") <<
"Invalid reference to HepMCProduct\n";
146 throw cms::Exception(
"LogicError") <<
"HectorTrasported HepMCProduce already exists\n";
158 newProduct->addHepMCData(evt);
164 (*NewCorrespondenceMap).swap(thisLink);
167 for (
unsigned int i = 0;
i < (*NewCorrespondenceMap).size();
i++)
168 LogDebug(
"HectorEventProcessing") <<
"Hector correspondence table: " << (*NewCorrespondenceMap)[
i];
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
ProtonTransport * theTransporter
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
int m_eventsAnalysed
just to count events that have been analysed
edm::EDGetTokenT< edm::HepMCProduct > m_InTagToken
std::vector< LHCTransportLink > & getCorrespondenceMap()
const HepMC::GenEvent * GetEvent() const
std::string const & moduleLabel() const
StreamID streamID() const
std::vector< LHCTransportLink > LHCTransportLinkContainer
virtual void process(const HepMC::GenEvent *ev, const edm::EventSetup &es, CLHEP::HepRandomEngine *engine)=0
Provenance const * provenance() const