|
| Pythia6JetGun (const edm::ParameterSet &) |
|
virtual | ~Pythia6JetGun () |
|
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 |
|
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 *) |
|
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 Pythia6JetGun.h.
void Pythia6JetGun::generateEvent |
( |
CLHEP::HepRandomEngine * |
| ) |
|
|
protectedvirtual |
Implements gen::Pythia6Gun.
Definition at line 40 of file Pythia6JetGun.cc.
References funct::cos(), DEFINE_FWK_MODULE, PVValHelper::eta, JetChargeProducer_cfi::exp, gen::Pythia6Gun::fEvt, plotBeamSpotDB::first, fMaxE, fMaxEta, fMaxP, gen::Pythia6Gun::fMaxPhi, fMinE, fMinEta, fMinP, gen::Pythia6Gun::fMinPhi, gen::Pythia6ParticleGun::fPartIDs, gen::Pythia6Gun::fPy6Service, GenParticle::GenParticle, mps_fire::i, plotBeamSpotDB::last, M_PI, ResonanceBuilder::mass, gen::p, EgammaObjectsElectrons_cfi::particleID, createTree::pp, gen::py1ent_(), gen::pyexec_(), gen::pymass_(), gen::pyr_(), gen::pyrobo_(), funct::sin(), and mathSSE::sqrt().
49 HepMC::GenVertex* Vtx =
new HepMC::GenVertex( HepMC::FourVector(0.,0.,0.));
53 fEvt =
new HepMC::GenEvent() ;
66 int py6PID = HepPID::translatePDTtoPythia( particleID );
71 the = std::acos( -1. + 2.*
pyr_(&dum) );
81 pyjets.p[4][ip-1]=
mass;
85 py1ent_(ip, py6PID, ee, the, phi);
89 totPx += pyjets.p[0][ip-1];
90 totPy += pyjets.p[1][ip-1];
91 totPz += pyjets.p[2][ip-1];
92 totE += pyjets.p[3][ip-1];
101 totM =
std::sqrt( totE*totE - (totPx*totPx+totPy*totPy+totPz*totPz) );
112 the = 2.*atan(
exp(-eta));
116 double betaZ = pp/ee *
std::cos(the);
123 double rothe=0, rophi=0.;
125 pyrobo_( first,
last, rothe, rophi, betaX, betaY, betaZ );
130 for (
int i=0;
i<pyjets.n;
i++ )
132 HepMC::FourVector
p(pyjets.p[0][
i],pyjets.p[1][
i],pyjets.p[2][
i],pyjets.p[3][
i]) ;
135 HepPID::translatePythiatoPDT( pyjets.k[1][
i] ),
137 Part->suggest_barcode(
i+1 ) ;
138 Vtx->add_particle_out(Part);
140 fEvt->add_vertex(Vtx);
Sin< T >::type sin(const T &t)
Cos< T >::type cos(const T &t)
std::vector< int > fPartIDs
void py1ent_(int &ip, int &kf, double &pe, double &the, double &phi)
Pythia6Service * fPy6Service
void pyrobo_(int &, int &, double &, double &, double &, double &, double &)