23 #include "pythiaInterface.h"
31 ,_doDoubleEvent(
false)
32 ,_minGammaEnergy(inputParametersInstance.minGammaEnergy())
33 ,_maxGammaEnergy(inputParametersInstance.maxGammaEnergy())
34 ,_fullEventRecord(
false)
64 std::stringstream ss(pythiaParams);
89 }
while(isnan(gammaE));
90 event.addGamma(gammaE);
97 int zdirection = (
_bbs.beam1().Z()==1 ? 1 : -1);
100 vector3 boostVector(0, 0, tanh(boost));
102 for(
int idx = 0; idx <
pyjets_.n; idx++)
105 int pdgCode =
pyjets_.k[1][idx];
107 if( pdgCode == 12 || pdgCode == 14 || pdgCode == 16 || pdgCode == 22 || pdgCode == 111 || pdgCode == 130 || pdgCode == 321 || pdgCode == 2112)
113 charge = (pdgCode > 0) - (pdgCode < 0);
123 particle.
Boost(boostVector);
124 event.addParticle(particle);