|
| Pythia6PartonPtGun (const edm::ParameterSet &) |
|
virtual | ~Pythia6PartonPtGun () |
|
| 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 |
|
virtual | ~EDProducer () |
|
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) |
|
|
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 Pythia6PartonPtGun.h.
void Pythia6PartonPtGun::generateEvent |
( |
CLHEP::HepRandomEngine * |
| ) |
|
|
protectedvirtual |
Implements gen::Pythia6Gun.
Definition at line 36 of file Pythia6PartonPtGun.cc.
References gen::Pythia6Gun::addAntiParticle(), DEFINE_FWK_MODULE, PVValHelper::eta, JetChargeProducer_cfi::exp, gen::Pythia6Gun::fEvt, fMaxEta, gen::Pythia6Gun::fMaxPhi, fMaxPt, fMinEta, gen::Pythia6Gun::fMinPhi, fMinPt, gen::Pythia6PartonGun::fPartonID, gen::Pythia6Gun::fPy6Service, GenParticle::GenParticle, gen::Pythia6PartonGun::joinPartons(), ResonanceBuilder::mass, gen::p, EnergyCorrector::pt, gen::py1ent_(), gen::pyexec_(), gen::pymass_(), gen::pyr_(), funct::sin(), and mathSSE::sqrt().
46 HepMC::GenVertex* Vtx =
new HepMC::GenVertex( HepMC::FourVector(0.,0.,0.));
50 fEvt =
new HepMC::GenEvent() ;
54 int py6PID = HepPID::translatePDTtoPythia(
fPartonID );
56 double pt=0, mom=0, ee=0, the=0,
eta=0;
62 pyjets.p[4][ip-1]=
mass;
73 ee =
sqrt(mom*mom+mass*mass);
75 py1ent_(ip, py6PID, ee, the, phi);
77 double px = pyjets.p[0][ip-1];
78 double py = pyjets.p[1][ip-1];
79 double pz = pyjets.p[2][ip-1];
81 HepMC::FourVector
p(px,py,pz,ee) ;
83 Part->suggest_barcode( ip ) ;
84 Vtx->add_particle_out(Part);
91 Vtx->add_particle_out(APart) ;
104 fEvt->add_vertex(Vtx);
Sin< T >::type sin(const T &t)
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