|
| Pythia6PtGun (const edm::ParameterSet &) |
|
virtual | ~Pythia6PtGun () |
|
Public Member Functions inherited from gen::Pythia6ParticleGun |
| Pythia6ParticleGun (const edm::ParameterSet &) |
|
virtual | ~Pythia6ParticleGun () |
|
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 *) |
|
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 Pythia6PtGun.h.
void Pythia6PtGun::generateEvent |
( |
CLHEP::HepRandomEngine * |
| ) |
|
|
protectedvirtual |
Implements gen::Pythia6Gun.
Definition at line 37 of file Pythia6PtGun.cc.
References gen::Pythia6Gun::addAntiParticle(), DEFINE_FWK_MODULE, PVValHelper::eta, JetChargeProducer_cfi::exp, fAddAntiParticle, gen::Pythia6Gun::fEvt, fMaxEta, gen::Pythia6Gun::fMaxPhi, fMaxPt, fMinEta, gen::Pythia6Gun::fMinPhi, fMinPt, gen::Pythia6ParticleGun::fPartIDs, gen::Pythia6Gun::fPy6Service, GenParticle::GenParticle, mps_fire::i, ResonanceBuilder::mass, gen::p, EgammaObjectsElectrons_cfi::particleID, EnergyCorrector::pt, gen::py1ent_(), gen::pyexec_(), gen::pymass_(), gen::pyr_(), funct::sin(), and mathSSE::sqrt().
47 HepMC::GenVertex* Vtx =
new HepMC::GenVertex( HepMC::FourVector(0.,0.,0.));
51 fEvt =
new HepMC::GenEvent() ;
57 int py6PID = HepPID::translatePDTtoPythia( particleID );
59 double pt=0, mom=0, ee=0, the=0,
eta=0;
65 pyjets.p[4][ip-1]=
mass;
76 ee =
sqrt(mom*mom+mass*mass);
78 py1ent_(ip, py6PID, ee, the, phi);
80 double px = pyjets.p[0][ip-1];
81 double py = pyjets.p[1][ip-1];
82 double pz = pyjets.p[2][ip-1];
84 HepMC::FourVector
p(px,py,pz,ee) ;
87 Part->suggest_barcode( ip ) ;
88 Vtx->add_particle_out(Part);
94 if ( APart ) Vtx->add_particle_out(APart) ;
99 fEvt->add_vertex(Vtx);
Sin< T >::type sin(const T &t)
HepMC::GenParticle * addAntiParticle(int &, int &, double &, double &, double &)
std::vector< int > fPartIDs
void py1ent_(int &ip, int &kf, double &pe, double &the, double &phi)
Pythia6Service * fPy6Service