122 G4double angleFactor = (localdir.
x()*localpos.
x()+localdir.
y()*localpos.
y())
123 /std::sqrt(localdir.
x()*localdir.
x()
124 +localdir.
y()*localdir.
y()+localdir.
z()*localdir.
z())
125 /std::sqrt(localpos.
x()*localpos.
x()+localpos.
y()*localpos.
y());
127 if ( angleFactor < 0 ) angleFactor *= -1.;
135 flux = flux/angleFactor;
160 if ( std::fabs(localpos1.
z()) > tubsSolid->
GetZHalfLength() )
return -1;
164 G4double localR2 = localpos1.
x()*localpos1.
x()+localpos1.
y()*localpos1.
y();
166 if (localR2 > (InsideRadius-kCarTolerance)*(InsideRadius-kCarTolerance)
167 &&localR2 < (InsideRadius+kCarTolerance)*(InsideRadius+kCarTolerance)){
177 if ( std::fabs(localpos2.
z()) > tubsSolid->
GetZHalfLength() )
return -1;
181 G4double localR2 = localpos2.
x()*localpos2.
x()+localpos2.
y()*localpos2.
y();
183 if (localR2 > (InsideRadius-kCarTolerance)*(InsideRadius-kCarTolerance)
184 &&localR2 < (InsideRadius+kCarTolerance)*(InsideRadius+kCarTolerance)){
215 std::map<G4int,G4double*>::iterator itr =
EvtMap->
GetMap()->begin();
217 G4cout <<
" copy no.: " << itr->first