36 #include "DetectorConstruction.hh"
80 std::vector<G4DynamicParticle*>* fvect,
100 G4double epsilon, epsilonsq, onecost, sint2, greject ;
110 epsilonsq = epsilon*epsilon;
114 epsilon = sqrt(epsilonsq);
117 onecost = (1.- epsilon)/(epsilon*E0_m);
118 sint2 = onecost*(2.-onecost);
119 greject = 1. - epsilon*sint2/(1.+ epsilonsq);
130 G4double dirx = sinTeta*cos(Phi), diry = sinTeta*sin(Phi), dirz = cosTeta;
138 gamDirection1.
rotateUz(gamDirection0);
139 G4double gamEnergy1 = epsilon*gamEnergy0;
147 G4double eKinEnergy = gamEnergy0 - gamEnergy1;
151 = gamEnergy0*gamDirection0 - gamEnergy1*gamDirection1;
152 eDirection = eDirection.
unit();
157 fvect->push_back(dp);