49 :beamKind(
"beamAlongZ"),worldLength(200.)
57 probability.push_back(0.1667);
58 probability.push_back(0.1667);
59 probability.push_back(0.1667);
60 probability.push_back(0.1667);
61 probability.push_back(0.1666);
62 probability.push_back(0.1666);
90 z0 = 0.5*(worldLength)*
cm;
106 x0 = -0.5*(worldLength)*
cm;
115 y0 = 0.5*(worldLength)*
cm;
129 while(sum<random){sum += probability[i]; i++;}
133 z0 = -0.5*(worldLength-2.)*
cm;
140 y0 = -0.5*(worldLength-2.)*
cm;
147 x0 = -0.5*(worldLength-2.)*
cm;
154 z0 = 0.5*(worldLength-2.)*
cm;
161 y0 = 0.5*(worldLength-2.)*
cm;
168 x0 = 0.5*(worldLength-2.)*
cm;
180 }
while(n > 1 || n == 0.0);
192 if((beam ==
"beamAlongZ")||(beam ==
"beamAlongX")||
193 (beam ==
"beamAlongY")||(beam ==
"isotropicFlux")) beamKind = beam;
195 else G4cout<<
"This option is not valid "<<
196 "---> beamAlongZ/beamAlongY/beamAlongX/isotropicFlux"