54 fNofPrimaries(origin.fNofPrimaries),
55 fDefaultParticle(origin.fDefaultParticle),
56 fMomentum(origin.fMomentum),
57 fSigmaMomentum(origin.fSigmaMomentum),
58 fSigmaAngle(origin.fSigmaAngle),
59 fRandomizePrimary(origin.fRandomizePrimary)
106 static Int_t counter = 0;
107 Int_t i = (counter++) % 5;
138 Double_t vz = -800.0;
142 TDatabasePDG* databasePDG = TDatabasePDG::Instance();
143 TParticlePDG* particlePDG = databasePDG->GetParticle(pdg);
144 Double_t mass = particlePDG->Mass();
147 Double_t e = TMath::Sqrt(pp * pp + mass * mass);
152 px = pp * TMath::Sin(angle * TMath::DegToRad());
154 pz = pp * TMath::Cos(angle * TMath::DegToRad());
158 fStack->PushTrack(toBeDone, -1, pdg, px, py, pz, e, vx, vy, vz, tof, polx,
159 poly, polz, kPPrimary, ntr, 1., 0);