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
@@ -31,10 +31,17 @@
#include "globals.hh"
#ifndef LXeUserTrackInformation_h
#define LXeUserTrackInformation_h 1
# define LXeUserTrackInformation_h 1
enum LXeTrackStatus { active=1, hitPMT=2, absorbed=4, boundaryAbsorbed=8,
hitSphere=16, inactive=14};
enum LXeTrackStatus
{
active = 1,
hitPMT = 2,
absorbed = 4,
boundaryAbsorbed = 8,
hitSphere = 16,
inactive = 14
};
/*LXeTrackStatus:
active: still being tracked
@@ -44,37 +51,35 @@ enum LXeTrackStatus { active=1, hitPMT=2, absorbed=4, boundaryAbsorbed=8,
hitSphere: track hit the sphere at some point
inactive: track is stopped for some reason
-This is the sum of all stopped flags so can be used to remove stopped flags
*/
class LXeUserTrackInformation : public G4VUserTrackInformation
{
public:
public:
LXeUserTrackInformation();
~LXeUserTrackInformation();
LXeUserTrackInformation();
virtual ~LXeUserTrackInformation();
// Sets the track status to s (does not check validity of flags)
void SetTrackStatusFlags(int s) { fStatus = s; }
// Does a smart add of track status flags (disabling old flags that conflict)
// If s conflicts with itself it will not be detected
void AddTrackStatusFlag(int s);
//Sets the track status to s (does not check validity of flags)
void SetTrackStatusFlags(int s){fStatus=s;}
//Does a smart add of track status flags (disabling old flags that conflict)
//If s conflicts with itself it will not be detected
void AddTrackStatusFlag(int s);
int GetTrackStatus()const {return fStatus;}
void IncReflections(){fReflections++;}
G4int GetReflectionCount()const {return fReflections;}
int GetTrackStatus() const { return fStatus; }
void SetForceDrawTrajectory(G4bool b){fForcedraw=b;}
G4bool GetForceDrawTrajectory(){return fForcedraw;}
void IncReflections() { ++fReflections; }
G4int GetReflectionCount() const { return fReflections; }
inline virtual void Print() const{};
void SetForceDrawTrajectory(G4bool b) { fForcedraw = b; }
G4bool GetForceDrawTrajectory() { return fForcedraw; }
private:
inline virtual void Print() const {};
int fStatus;
G4int fReflections;
G4bool fForcedraw;
private:
int fStatus;
G4int fReflections;
G4bool fForcedraw;
};
#endif