Import Geant4 10.7.0 source tree

This commit is contained in:
Gabriele Cosmo
2020-12-04 12:30:43 +01:00
parent 67ba86d073
commit dab42d2018
3770 changed files with 226369 additions and 286486 deletions
@@ -28,22 +28,16 @@
/// \brief Implementation of the WLSUserTrackInformation class
//
//
#include "G4ios.hh"
#include "G4ThreeVector.hh"
#include "WLSUserTrackInformation.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
WLSUserTrackInformation::WLSUserTrackInformation ()
{
fStatus = undefined;
fExitPosition = G4ThreeVector(0.,0.,0.);
}
WLSUserTrackInformation::WLSUserTrackInformation() { fStatus = undefined; }
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
WLSUserTrackInformation::~WLSUserTrackInformation () { }
WLSUserTrackInformation::~WLSUserTrackInformation() {}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -52,44 +46,47 @@ G4bool WLSUserTrackInformation::AddStatusFlag(TrackStatus s)
// Cannot Add Undefine or a flag that conflicts with another flag
// Return true if the addition of flag is successful, false otherwise
{
switch (s) {
case left:
case right:
// Allow the user to set left or right
// only if the track is undefined
if (fStatus == undefined) return fStatus |= s;
return false;
case EscapedFromSide:
case EscapedFromReadOut:
// Allow the user to set escaped flag
// only if the photon hasn't exited the fiber yet
if ((fStatus == undefined) || (fStatus & OutsideOfFiber)) return false;
return fStatus |= s;
case ReflectedAtMirror:
case ReflectedAtReadOut:
case murderee:
switch(s)
{
case left:
case right:
// Allow the user to set left or right
// only if the track is undefined
if(fStatus == undefined)
return fStatus |= s;
case InsideOfFiber:
return ( fStatus =
(fStatus & ~(EscapedFromSide + EscapedFromReadOut + OutsideOfFiber)) | s);
return false;
case OutsideOfFiber:
case EscapedFromSide:
case EscapedFromReadOut:
return ( fStatus = (fStatus & ~InsideOfFiber) | s );
default:
// Allow the user to set escaped flag
// only if the photon hasn't exited the fiber yet
if((fStatus == undefined) || (fStatus & OutsideOfFiber))
return false;
}
return fStatus |= s;
case ReflectedAtMirror:
case ReflectedAtReadOut:
case murderee:
return fStatus |= s;
case InsideOfFiber:
return (fStatus = (fStatus & ~(EscapedFromSide + EscapedFromReadOut +
OutsideOfFiber)) |
s);
case OutsideOfFiber:
return (fStatus = (fStatus & ~InsideOfFiber) | s);
default:
return false;
}
}