|
Last change
on this file since 242 was 233, checked in by barrand, 19 years ago |
|
|
-
Property svn:eol-style
set to
native
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 1 | #ifndef G4Lab_Trajectory_h
|
|---|
| 2 | #define G4Lab_Trajectory_h
|
|---|
| 3 |
|
|---|
| 4 | #include <G4Trajectory.hh>
|
|---|
| 5 |
|
|---|
| 6 | #include <vector>
|
|---|
| 7 |
|
|---|
| 8 | #include <Lib/Debug.h>
|
|---|
| 9 |
|
|---|
| 10 | namespace G4Lab {
|
|---|
| 11 |
|
|---|
| 12 | class TrajectoryPoint;
|
|---|
| 13 |
|
|---|
| 14 | class Trajectory : public G4Trajectory {
|
|---|
| 15 | public: // G4Trajectory:
|
|---|
| 16 | virtual void ShowTrajectory(std::ostream& = G4cout) const;
|
|---|
| 17 | virtual void DrawTrajectory(G4int =0) const;
|
|---|
| 18 | virtual void AppendStep(const G4Step*);
|
|---|
| 19 | virtual int GetPointEntries() const;
|
|---|
| 20 | virtual G4VTrajectoryPoint* GetPoint(G4int) const;
|
|---|
| 21 | virtual void MergeTrajectory(G4VTrajectory*);
|
|---|
| 22 | public:
|
|---|
| 23 | Trajectory(const G4Track*);
|
|---|
| 24 | Trajectory(Trajectory&);
|
|---|
| 25 | 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;
|
|---|
| 33 | private:
|
|---|
| 34 | std::vector<TrajectoryPoint*> fPoints;
|
|---|
| 35 | G4double fKineticEnergy;
|
|---|
| 36 | G4double fTotalEnergy;
|
|---|
| 37 | G4double fGlobalTime;
|
|---|
| 38 | Lib::Debug fDebug;
|
|---|
| 39 | };
|
|---|
| 40 |
|
|---|
| 41 | }
|
|---|
| 42 |
|
|---|
| 43 | #endif
|
|---|
| 44 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.