60 weighted(true),divideByArea(true)
71 weighted(true),divideByArea(true)
107 if ( weighted ) current = preStep->
GetWeight();
112 current = current/square;
116 EvtMap->
add(index,current);
135 if ( std::fabs(localpos1.
z()) > tubsSolid->
GetZHalfLength() )
return -1;
136 G4double localR2 = localpos1.
x()*localpos1.
x()+localpos1.
y()*localpos1.
y();
138 if (localR2 > (InsideRadius-kCarTolerance)*(InsideRadius-kCarTolerance)
139 &&localR2 < (InsideRadius+kCarTolerance)*(InsideRadius+kCarTolerance)){
149 if ( std::fabs(localpos2.
z()) > tubsSolid->
GetZHalfLength() )
return -1;
150 G4double localR2 = localpos2.
x()*localpos2.
x()+localpos2.
y()*localpos2.
y();
152 if (localR2 > (InsideRadius-kCarTolerance)*(InsideRadius-kCarTolerance)
153 &&localR2 < (InsideRadius+kCarTolerance)*(InsideRadius+kCarTolerance)){
183 std::map<G4int,G4double*>::iterator itr = EvtMap->
GetMap()->begin();
184 for(; itr != EvtMap->
GetMap()->end(); itr++) {
185 G4cout <<
" copy no.: " << itr->first
187 if ( divideByArea ) {
191 G4cout << *(itr->second) <<
" [tracks]";
199 if ( divideByArea ) {
207 G4Exception(
"G4PSCylinderSurfaceCurrent::SetUnit",
"DetPS0002",