Import Geant4 11.3.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2024-06-28 13:08:51 +02:00
parent f7b23877ed
commit e58e650b32
5232 changed files with 239416 additions and 244360 deletions
@@ -39,42 +39,39 @@
enum TrackStatus
{
undefined = 0,
left = 1, // track is going -z
right = 2, // track is going +z
defined = 3, // left or right flag is on (Can't be Set)
EscapedFromSide = 4, // photon escaped through the side of the fiber
EscapedFromReadOut = 8, // photon escaped through read-out end of the fiber
ReflectedAtMirror = 16, // photon has been reflected by mirror at far end
ReflectedAtReadOut = 32, // photon has been reflected at the read-out end
murderee = 64, // photon is artificially killed
InsideOfFiber = 128, // Flag is on if the photon is inside of fiber
OutsideOfFiber = 256 // Flag is on if the photon is outside of fiber
undefined = 0,
left = 1, // track is going -z
right = 2, // track is going +z
defined = 3, // left or right flag is on (Can't be Set)
EscapedFromSide = 4, // photon escaped through the side of the fiber
EscapedFromReadOut = 8, // photon escaped through read-out end of the fiber
ReflectedAtMirror = 16, // photon has been reflected by mirror at far end
ReflectedAtReadOut = 32, // photon has been reflected at the read-out end
murderee = 64, // photon is artificially killed
InsideOfFiber = 128, // Flag is on if the photon is inside of fiber
OutsideOfFiber = 256 // Flag is on if the photon is outside of fiber
};
class WLSUserTrackInformation : public G4VUserTrackInformation
{
public:
WLSUserTrackInformation() = default;
~WLSUserTrackInformation() override = default;
public:
WLSUserTrackInformation() = default;
~WLSUserTrackInformation() override = default;
const G4ThreeVector& GetExitPosition() const { return fExitPosition; }
void SetExitPosition(const G4ThreeVector& pos) { fExitPosition = pos; }
const G4ThreeVector& GetExitPosition() const { return fExitPosition; }
void SetExitPosition(const G4ThreeVector& pos) { fExitPosition = pos; }
// Try adding a status flag and return if it is successful or not
// Cannot Add Undefine or a flag that conflicts with another flag
// Return true if the addition of flag is successful, false otherwise
G4bool AddStatusFlag(TrackStatus s);
// Try adding a status flag and return if it is successful or not
// Cannot Add Undefine or a flag that conflicts with another flag
// Return true if the addition of flag is successful, false otherwise
G4bool AddStatusFlag(TrackStatus s);
// Check if a certain flag is on
G4bool IsStatus(TrackStatus s)
{
return s == undefined ? !(fStatus &= defined) : fStatus & s;
}
// Check if a certain flag is on
G4bool IsStatus(TrackStatus s) { return s == undefined ? !(fStatus &= defined) : fStatus & s; }
private:
G4int fStatus = undefined;
G4ThreeVector fExitPosition;
private:
G4int fStatus = undefined;
G4ThreeVector fExitPosition;
};
#endif