|
virtual void | beginRun (const edm::Run &r, const edm::EventSetup &c) override |
|
| CTPPSHectorProducer (edm::ParameterSet const &p) |
| default constructor More...
|
|
virtual void | endRun (const edm::Run &r, const edm::EventSetup &c) override |
|
virtual void | produce (edm::Event &e, const edm::EventSetup &c) override |
|
virtual | ~CTPPSHectorProducer () |
| default destructor More...
|
|
| EDProducer ()=default |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
virtual | ~EDProducerBase () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
void | resolvePutIndicies (BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel) |
|
virtual | ~ProducerBase () noexcept(false) |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
Definition at line 29 of file CTPPSHectorProducer.h.
Definition at line 62 of file CTPPSHectorProducer.cc.
References CTPPSHector::add(), CTPPSHector::addPartToHepMC(), CTPPSHector::clear(), CTPPSHector::clearApertureFlags(), DEFINE_FWK_MODULE, eventsAnalysed, Exception, CTPPSHector::filterCTPPS(), edm::Event::getByToken(), CTPPSHector::getCorrespondenceMap(), edm::RandomNumberGenerator::getEngine(), edm::HepMCProduct::GetEvent(), hector_ctpps, mps_fire::i, edm::HandleBase::isValid(), LogDebug, m_CTPPSTransport, m_InTagToken, m_verbosity, edm::Provenance::moduleLabel(), eostools::move(), edm::HandleBase::provenance(), edm::Event::put(), and edm::Event::streamID().
66 HepMC::GenEvent * evt_;
69 if ( engine->name() !=
"TRandom3" ) {
71 <<
"The TRandom3 engine type must be used with CTPPSHectorProducer, Random Number Generator Service not correctly configured!";
81 <<
"Invalid reference to HepMCProduct\n";
86 <<
"HectorTrasported HepMCProduce already exists\n";
89 evt_ =
new HepMC::GenEvent( *HepMCEvt->
GetEvent() );
103 NewProduct->addHepMCData( evt_ ) ;
109 (*NewCorrespondenceMap).swap(thisLink);
112 for (
unsigned int i = 0;
i < (*NewCorrespondenceMap).size();
i++)
113 LogDebug(
"HectorEventProcessing") <<
"Hector correspondence table: " << (*NewCorrespondenceMap)[
i];
HepMC::GenEvent * addPartToHepMC(HepMC::GenEvent *event)
edm::EDGetTokenT< edm::HepMCProduct > m_InTagToken
void clearApertureFlags()
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
CTPPSHector * hector_ctpps
void add(const HepMC::GenEvent *ev, const edm::EventSetup &es, CLHEP::HepRandomEngine *engine)
int eventsAnalysed
just to count events that have been analysed
const HepMC::GenEvent * GetEvent() const
std::string const & moduleLabel() const
std::vector< LHCTransportLink > LHCTransportLinkContainer
void filterCTPPS(TRandom3 *)
std::vector< LHCTransportLink > & getCorrespondenceMap()
Provenance const * provenance() const