61 (
fMasterGen->event).
append(990, -11, 0, 0, 2, 1 + NTotParticles, 0, 0, 0., 0., 0., 15000., 15000.);
80 bool passLoop =
false;
95 for (
int i = 0;
i < 10000;
i++) {
98 lxy =
sqrt(vx * vx + vy * vy);
116 for (
int j = 0;
j < 100;
j++) {
119 if (
v0 <= 0 || lxy * lxy / (coneTheta * coneTheta) >
v0 *
v0) {
126 passLoop = (passLxy && passLz);
132 float time =
sqrt(vx * vx + vy * vy + vz * vz);
138 (
fMasterGen->event).
append(
particleID, 23, 1, 0, 0, 0, 101, 0,
px,
py, pz, ee,
mass);
140 (
fMasterGen->event).append(21, 23, 1, 0, 0, 0, 101, 102,
px,
py, pz, ee,
mass);
143 (
fMasterGen->event).
append(
particleID, 1, 1, 0, 0, 0, 0, 0,
px,
py, pz, ee,
mass);
157 (
fMasterGen->event).
append(-
particleID, 23, 1, 0, 0, 0, 0, 101, -
px, -
py, -pz, ee,
mass);
159 (
fMasterGen->event).
append(21, 23, 1, 0, 0, 0, 102, 101, -
px, -
py, -pz, ee,
mass);
162 (
fMasterGen->event).
append(-
particleID, 1, 1, 0, 0, 0, 0, 0, -
px, -
py, -pz, ee,
mass);
164 (
fMasterGen->event).
append(
particleID, 1, 1, 0, 0, 0, 0, 0, -
px, -
py, -pz, ee,
mass);
179 event() = std::make_unique<HepMC::GenEvent>();
T getParameter(std::string const &) const
edm::GeneratorFilter< gen::Py8PtAndDxyGun, gen::ExternalDecayDriver > Pythia8PtAndDxyGun
#define DEFINE_FWK_MODULE(type)
Sin< T >::type sin(const T &t)
bool generatePartonsAndHadronize() override
Py8PtAndDxyGun(edm::ParameterSet const &)
Cos< T >::type cos(const T &t)
Abs< T >::type abs(const T &t)
std::unique_ptr< HepMC::GenEvent > & event()
std::vector< int > fPartIDs
~Py8PtAndDxyGun() override
P8RndmEngine & randomEngine()
HepMC::Pythia8ToHepMC toHepMC
std::unique_ptr< Pythia8::Pythia > fMasterGen
const char * classname() const override
Geom::Theta< T > theta() const