75 pp =
sqrt( ee*ee - mass*mass );
77 double px = pp *
sin(the) *
cos(phi);
78 double py = pp *
sin(the) *
sin(phi);
79 double pz = pp *
cos(the);
81 if ( !((
fMasterGen->particleData).isParticle( particleID )) )
83 particleID = std::fabs(particleID) ;
96 totM =
sqrt( totE*totE - (totPx*totPx+totPy*totPy+totPz*totPz) );
101 ee =
sqrt( totM*totM + pp*pp );
107 the = 2.*atan(
exp(-eta));
111 double betaZ = pp/ee *
std::cos(the);
115 (
fMasterGen->event).bst( betaX, betaY, betaZ );
119 event().reset(
new HepMC::GenEvent);
T getParameter(std::string const &) const
std::auto_ptr< Pythia8::Pythia > fMasterGen
const char * classname() const override
#define DEFINE_FWK_MODULE(type)
boost::dynamic_bitset append(const boost::dynamic_bitset<> &bs1, const boost::dynamic_bitset<> &bs2)
this method takes two bitsets bs1 and bs2 and returns result of bs2 appended to the end of bs1 ...
Sin< T >::type sin(const T &t)
virtual double flat() override
std::auto_ptr< HepMC::GenEvent > & event()
def gen
run2 Cosmic #### Run 256259 @ 0T 2015C### Run 272133 @ 3.8T 2016B###
Py8JetGun(edm::ParameterSet const &)
Cos< T >::type cos(const T &t)
std::vector< int > fPartIDs
P8RndmEngine & randomEngine()
edm::GeneratorFilter< gen::Py8JetGun, gen::ExternalDecayDriver > Pythia8JetGun
Geom::Phi< T > phi() const
HepMC::Pythia8ToHepMC toHepMC
bool generatePartonsAndHadronize() override