131{
132
135
136
137
140 int mydummy=0;
142
144
145
146 int i,more,nson;
147 int ndaugjs;
148 int kf[100];
151
152 double px[100],py[100],pz[100],e[100];
153
154 if ( p->
getNDaug() != 0 ) {
return;}
155 do{
157
158 double toteng=0;
159
160 for(i=0;i<ndaugjs;i++)
161 {
162
164
166
167
168
169
170
171
172 toteng += e[i];
173 if (px[i]*px[i]+py[i]*py[i]+pz[i]*pz[i]>=e[i]*e[i])
174 e[i]=sqrt(px[i]*px[i]+py[i]*py[i]+pz[i]*pz[i])+0.0000000000001;
175
176 p4[i].set(e[i],px[i],py[i],pz[i]);
177
178 }
179
180
182
183 more=((channel!=-1)&&(channel!=p->
getChannel()) );
184
185
186 }while(more);
187
189
190 for(i=0;i<ndaugjs;i++)
192
194 return ;
195}
************Class m_ypar INTEGER m_KeyWgt INTEGER m_KeyIHVP INTEGER m_KeyGPS INTEGER m_IsBeamPolarized INTEGER m_EvtGenInterface DOUBLE PRECISION m_Emin DOUBLE PRECISION m_sphot DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_q2 DOUBLE PRECISION m_PolBeam2 DOUBLE PRECISION m_xErrPb *COMMON c_KK2f $ !CMS energy average $ !Spin Polarization vector first beam $ !Spin Polarization vector second beam $ !Beam energy spread[GeV] $ !minimum hadronization energy[GeV] $ !input READ never touch them !$ !debug facility $ !maximum weight $ !inverse alfaQED $ !minimum real photon energy
static int inChannelList(EvtId parent, int ndaug, EvtId *daugs)
static EvtId evtIdFromStdHep(int stdhep)
static std::string name(EvtId i)
static EvtSpinType::spintype getSpinType(EvtId i)
void makeDaughters(int ndaug, EvtId *id)
virtual void init(EvtId part_n, const EvtVector4R &p4)=0
EvtParticle * getDaug(int i)
static void pythiaInit(int f)
static void pythiacont(double *, int *, int *, double *, double *, double *, double *)
double double double * p4