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
@@ -34,15 +34,23 @@
#ifndef WLSUserTrackInformation_h
#define WLSUserTrackInformation_h 1
#include "G4ThreeVector.hh"
#include "G4VUserTrackInformation.hh"
#include "G4ThreeVector.hh"
enum TrackStatus { undefined=0,
left=1, right=2, defined = 3,
EscapedFromSide=4, EscapedFromReadOut=8,
ReflectedAtMirror=16, ReflectedAtReadOut=32,
murderee=64, InsideOfFiber=128, OutsideOfFiber=256};
enum TrackStatus
{
undefined = 0,
left = 1,
right = 2,
defined = 3,
EscapedFromSide = 4,
EscapedFromReadOut = 8,
ReflectedAtMirror = 16,
ReflectedAtReadOut = 32,
murderee = 64,
InsideOfFiber = 128,
OutsideOfFiber = 256
};
/*TrackStatus:
undefined:
@@ -60,29 +68,27 @@ enum TrackStatus { undefined=0,
class WLSUserTrackInformation : public G4VUserTrackInformation
{
public:
WLSUserTrackInformation();
~WLSUserTrackInformation();
public:
const G4ThreeVector& GetExitPosition() const { return fExitPosition; }
void SetExitPosition(const G4ThreeVector& pos) { fExitPosition = pos; }
WLSUserTrackInformation();
virtual ~WLSUserTrackInformation();
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; }
private:
G4int fStatus;
G4ThreeVector fExitPosition;
// Check if a certain flag is on
G4bool IsStatus(TrackStatus s)
{
return s == undefined ? !(fStatus &= defined) : fStatus & s;
}
private:
G4int fStatus;
G4ThreeVector fExitPosition;
};
#endif