Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4RichTrajectory.hh
이 파일의 문서화 페이지로 가기
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 //
27 // $Id: G4RichTrajectory.hh 110262 2018-05-17 14:25:55Z gcosmo $
28 //
29 //---------------------------------------------------------------
30 //
31 // G4RichTrajectory.hh
32 //
33 // class description:
34 // This class extends G4Trajectory, which includes the following:
35 // 1) List of trajectory points which compose the trajectory,
36 // 2) static information of particle which generated the
37 // trajectory,
38 // 3) trackID and parent particle ID of the trajectory.
39 // The extended information, only publicly accessible through AttValues,
40 // includes:
41 // 4) physical volume and next physical volume;
42 // 5) creator process;
43 // ...and much more.
44 //
45 // Contact:
46 // Questions and comments on G4Trajectory should be sent to
47 // Katsuya Amako (e-mail: Katsuya.Amako@kek.jp)
48 // Makoto Asai (e-mail: asai@kekvax.kek.jp)
49 // Takashi Sasaki (e-mail: Takashi.Sasaki@kek.jp)
50 // and on the extended code to:
51 // John Allison (e-mail: John.Allison@manchester.ac.uk)
52 // Joseph Perl (e-mail: perl@slac.stanford.edu)
53 //
54 // ---------------------------------------------------------------
55 
56 #ifndef G4RICHTRAJECTORY_HH
57 #define G4RICHTRAJECTORY_HH
58 
59 #include "trkgdefs.hh"
60 #include "G4Trajectory.hh"
61 #include "G4TouchableHandle.hh"
62 
63 typedef std::vector<G4VTrajectoryPoint*> RichTrajectoryPointsContainer;
64 
66 
67 public: // with description
68 
69  // Constructors/destructors
71  G4RichTrajectory(const G4Track* aTrack);
73  virtual ~G4RichTrajectory();
74 
75 private:
77 
78  // Operators
79 public:
80  inline void* operator new(size_t);
81  inline void operator delete(void*);
82  inline int operator == (const G4RichTrajectory& right) const
83  {return (this==&right);}
84 
85  // Other (virtual) member functions
86  void ShowTrajectory(std::ostream& os=G4cout) const;
87  void DrawTrajectory() const;
88  void AppendStep(const G4Step* aStep);
89  void MergeTrajectory(G4VTrajectory* secondTrajectory);
90  int GetPointEntries() const { return fpRichPointsContainer->size(); }
92  { return (*fpRichPointsContainer)[i]; }
93 
94  // Get methods for HepRep style attributes
95  virtual const std::map<G4String,G4AttDef>* GetAttDefs() const;
96  virtual std::vector<G4AttValue>* CreateAttValues() const;
97 
98 private:
99 
100  // Extended information (only publicly accessible through AttValues)...
110 
111 };
112 
114 
115 inline void* G4RichTrajectory::operator new(size_t)
116 {
119  return (void*)aRichTrajectoryAllocator()->MallocSingle();
120 }
121 
122 inline void G4RichTrajectory::operator delete(void* aRichTrajectory)
123 {
124  aRichTrajectoryAllocator()->FreeSingle((G4RichTrajectory*)aRichTrajectory);
125 }
126 
127 #endif
const G4VProcess * fpEndingProcess
void AppendStep(const G4Step *aStep)
int GetPointEntries() const
G4double fFinalKineticEnergy
G4RichTrajectory & operator=(const G4RichTrajectory &)
G4TouchableHandle fpFinalNextVolume
int operator==(const G4RichTrajectory &right) const
const G4VProcess * fpCreatorProcess
void DrawTrajectory() const
void MergeTrajectory(G4VTrajectory *secondTrajectory)
std::vector< G4VTrajectoryPoint * > RichTrajectoryPointsContainer
double G4double
Definition: G4Types.hh:76
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
G4VTrajectoryPoint * GetPoint(G4int i) const
G4TRACKING_DLL G4Allocator< G4RichTrajectory > *& aRichTrajectoryAllocator()
#define G4TRACKING_DLL
Definition: trkgdefs.hh:48
Definition: G4Step.hh:76
void ShowTrajectory(std::ostream &os=G4cout) const
G4TouchableHandle fpInitialNextVolume
int G4int
Definition: G4Types.hh:78
RichTrajectoryPointsContainer * fpRichPointsContainer
virtual ~G4RichTrajectory()
G4GLOB_DLL std::ostream G4cout
virtual std::vector< G4AttValue > * CreateAttValues() const
G4TouchableHandle fpFinalVolume
G4TouchableHandle fpInitialVolume