|
| Pythia6PartonEGun (const edm::ParameterSet &) |
|
virtual | ~Pythia6PartonEGun () |
|
| Pythia6PartonGun (const edm::ParameterSet &) |
|
virtual | ~Pythia6PartonGun () |
|
void | beginJob () override |
|
void | beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override |
|
void | beginRun (edm::Run const &, edm::EventSetup const &) override |
|
void | endRun (edm::Run const &, edm::EventSetup const &) override |
|
void | produce (edm::Event &, const edm::EventSetup &) override |
|
| Pythia6Gun (const edm::ParameterSet &) |
|
virtual | ~Pythia6Gun () |
|
| EDProducer () |
|
ModuleDescription const & | moduleDescription () const |
|
| ~EDProducer () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
|
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, ModuleToResolverIndicies 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) |
|
|
void | generateEvent (CLHEP::HepRandomEngine *) |
|
void | joinPartons (double qmax) |
|
HepMC::GenParticle * | addAntiParticle (int &, int &, double &, double &, double &) |
|
void | attachPy6DecaysToGenEvent () |
|
void | loadEvent (edm::Event &) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
|
ConsumesCollector | consumesCollector () |
| Use a ConsumesCollector to gather consumes information from helper functions. More...
|
|
template<typename ProductType , BranchType B = InEvent> |
void | consumesMany () |
|
void | consumesMany (const TypeToGet &id) |
|
template<BranchType B> |
void | consumesMany (const TypeToGet &id) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
Definition at line 12 of file Pythia6PartonEGun.h.
void Pythia6PartonEGun::generateEvent |
( |
CLHEP::HepRandomEngine * |
| ) |
|
|
protectedvirtual |
Implements gen::Pythia6Gun.
Definition at line 36 of file Pythia6PartonEGun.cc.
References gen::Pythia6Gun::addAntiParticle(), DEFINE_FWK_MODULE, PVValHelper::eta, JetChargeProducer_cfi::exp, gen::Pythia6Gun::fEvt, fMaxE, fMaxEta, gen::Pythia6Gun::fMaxPhi, fMinE, fMinEta, gen::Pythia6Gun::fMinPhi, gen::Pythia6PartonGun::fPartonID, gen::Pythia6Gun::fPy6Service, GenParticle::GenParticle, gen::Pythia6PartonGun::joinPartons(), ResonanceBuilder::mass, gen::p, gen::py1ent_(), gen::pyexec_(), gen::pymass_(), and gen::pyr_().
46 HepMC::GenVertex* Vtx =
new HepMC::GenVertex( HepMC::FourVector(0.,0.,0.));
54 int py6PID = HepPID::translatePDTtoPythia(
fPartonID );
56 double ee=0, the=0,
eta=0;
62 pyjets.p[4][ip-1]=
mass;
69 py1ent_(ip, py6PID, ee, the, phi);
71 double px = pyjets.p[0][ip-1];
72 double py = pyjets.p[1][ip-1];
73 double pz = pyjets.p[2][ip-1];
75 HepMC::FourVector
p(px,py,pz,ee) ;
77 Part->suggest_barcode( ip ) ;
78 Vtx->add_particle_out(Part);
85 Vtx->add_particle_out(APart) ;
98 fEvt->add_vertex(Vtx);
HepMC::GenParticle * addAntiParticle(int &, int &, double &, double &, double &)
void joinPartons(double qmax)
void py1ent_(int &ip, int &kf, double &pe, double &the, double &phi)
Pythia6Service * fPy6Service