Changeset 288 for snovis/trunk/source/G4Lab/Trajectory.h
- Timestamp:
- Sep 25, 2007, 12:24:08 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
snovis/trunk/source/G4Lab/Trajectory.h
r233 r288 2 2 #define G4Lab_Trajectory_h 3 3 4 // Inheritance : 4 5 #include <G4Trajectory.hh> 6 #include <G4Lab/Interfaces/IGeant4Trajectory.h> 5 7 6 8 #include <vector> … … 8 10 #include <Lib/Debug.h> 9 11 12 //class G4VProcess; 13 10 14 namespace G4Lab { 11 15 12 16 class TrajectoryPoint; 13 17 14 class Trajectory : public G4Trajectory { 18 class Trajectory 19 :public G4Trajectory 20 ,public virtual IGeant4Trajectory 21 { 22 public: // G4VTrajectory: 23 virtual const std::map<G4String,G4AttDef>* GetAttDefs() const; 24 virtual std::vector<G4AttValue>* CreateAttValues() const; 15 25 public: // G4Trajectory: 16 26 virtual void ShowTrajectory(std::ostream& = G4cout) const; … … 20 30 virtual G4VTrajectoryPoint* GetPoint(G4int) const; 21 31 virtual void MergeTrajectory(G4VTrajectory*); 32 public: // IGeant4Trajectory: 33 virtual double kineticEnergy() const; 34 virtual double totalEnergy() const; 35 virtual double globalTime() const; 36 virtual unsigned int pointEntries() const; 37 virtual double pointGlobalTime(unsigned int) const; 38 virtual std::string creatorProcessName() const; 39 virtual std::string creatorProcessType() const; 40 virtual void setSave(bool); 41 virtual bool save() const; 42 virtual std::vector<double> stoppingPoint() const; 43 virtual G4VPhysicalVolume* stoppingPhysicalVolume() const; 22 44 public: 23 45 Trajectory(const G4Track*); 24 46 Trajectory(Trajectory&); 25 47 virtual ~Trajectory(); 26 /*inline*/ void* operator new(size_t); 27 /*inline*/ void operator delete(void*); 28 /*inline*/ int operator == (const Trajectory&) const; 29 G4double GetKineticEnergy() const; 30 G4double GetTotalEnergy() const; 31 G4double GetGlobalTime() const; 32 G4double GetPointGlobalTime(G4int) const; 48 void* operator new(size_t); 49 void operator delete(void*); 50 int operator == (const Trajectory&) const; 33 51 private: 34 52 std::vector<TrajectoryPoint*> fPoints; … … 36 54 G4double fTotalEnergy; 37 55 G4double fGlobalTime; 56 const G4VProcess* fProcess; 57 bool fSave; 58 G4ThreeVector fStoppingPoint; 59 G4VPhysicalVolume* fStoppingVolume; 38 60 Lib::Debug fDebug; 39 61 };
Note: See TracChangeset
for help on using the changeset viewer.