Changeset 65 for MEMPHYS/HEAD
- Timestamp:
- Jan 9, 2006, 4:59:11 PM (18 years ago)
- Location:
- MEMPHYS/HEAD
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
MEMPHYS/HEAD/MEMPHYS/MEMPHYSTrackInformation.hh
r10 r65 8 8 #include "G4VUserTrackInformation.hh" 9 9 10 // Maximilien Fechner, december 2004 11 // Information class for flagging the secondaries 12 // I'm interested in (namely gammas from pi0s and secondaries 13 // from muon decay 10 //JEC 14/12/05: use code from G4 extended optical LXe example 11 //for Track Status 12 13 enum TrackStatus { active=1, hitPMT=2, absorbed=4, boundaryAbsorbed=8, 14 inactive=14}; 15 16 /*TrackStatus: 17 active: still being tracked 18 hitPMT: stopped by being detected in a PMT 19 absorbed: stopped by being absorbed with G4OpAbsorbtion 20 boundaryAbsorbed: stopped by being aborbed with G4OpAbsorbtion 21 hitSphere: track hit the sphere at some point 22 inactive: track is stopped for some reason 23 -This is the sum of all stopped flags so can be used to remove stopped flags 24 25 */ 26 14 27 class MEMPHYSTrackInformation : public G4VUserTrackInformation { 15 private:16 G4bool saveit;17 28 18 29 public: 19 MEMPHYSTrackInformation() : saveit(true) {} 20 MEMPHYSTrackInformation(const MEMPHYSTrackInformation* aninfo) 21 { saveit = aninfo->saveit;} 30 MEMPHYSTrackInformation(): saveit(false), drawit(false), status(active) {} 31 // MEMPHYSTrackInformation(const MEMPHYSTrackInformation* aninfo) 32 // { saveit = aninfo->saveit;} 33 MEMPHYSTrackInformation(const G4Track*); 22 34 virtual ~MEMPHYSTrackInformation() {} 23 MEMPHYSTrackInformation(const G4Track* );24 35 25 36 inline void *operator new(size_t); … … 28 39 {return (this==&right);} 29 40 41 42 //Sets the track status to s (does not check validity of flags) 43 void SetTrackStatusFlags(G4int s){status=s;} 44 //Does a smart add of track status flags (disabling old flags that conflict) 45 //If s conflicts with itself it will not be detected 46 void AddTrackStatusFlag(G4int s); 47 int GetTrackStatus() {return status;} 48 49 void SetDrawOption(G4bool b) {drawit = b;} 50 G4bool GetDrawOption() {return drawit;} 51 52 void SetSaveOption(G4bool b) {saveit = b;} 53 G4bool GetSaveOption() {return saveit;} 54 55 30 56 void Print() const; 57 58 59 private: 60 G4bool saveit; 61 G4bool drawit; 62 G4int status; 31 63 32 64 }; -
MEMPHYS/HEAD/MEMPHYS/MEMPHYSWCSD.hh
r10 r65 18 18 void Initialize(G4HCofThisEvent*); 19 19 G4bool ProcessHits(G4Step*, G4TouchableHistory*); 20 G4bool ProcessHits_constStep(const G4Step*, G4TouchableHistory*); 20 21 void EndOfEvent(G4HCofThisEvent*); 21 22 -
MEMPHYS/HEAD/applications/MEMPHYS_batch.cxx
r27 r65 14 14 #include "MEMPHYS/MEMPHYSStackingAction.hh" 15 15 #include "MEMPHYS/MEMPHYSTrackingAction.hh" 16 #include "MEMPHYS/MEMPHYSSteppingAction.hh" 16 17 17 18 … … 82 83 83 84 runManager->SetUserAction(new MEMPHYSStackingAction); 84 85 runManager->SetUserAction(new MEMPHYSSteppingAction); //JEC 15/12/05 Add user SteppingAction 85 86 86 87 // Initialize G4 kernel -
MEMPHYS/HEAD/applications/MEMPHYS_session.cxx
r57 r65 32 32 #include "MEMPHYS/MEMPHYSStackingAction.hh" 33 33 #include "MEMPHYS/MEMPHYSTrackingAction.hh" 34 #include "MEMPHYS/MEMPHYSSteppingAction.hh" 34 35 #include "MEMPHYS/MEMPHYSWCDigi.hh" 35 36 … … 131 132 runManager->SetUserAction(new MEMPHYSStackingAction); 132 133 134 runManager->SetUserAction(new MEMPHYSSteppingAction); //JEC 15/12/05 Add user SteppingAction 133 135 134 136 // Initialize G4 kernel
Note: See TracChangeset
for help on using the changeset viewer.