Geant4  10.00.p03
G4TrackingInformation.hh
Go to the documentation of this file.
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 // $Id: G4TrackingInformation.hh 82326 2014-06-16 09:19:18Z gcosmo $
27 //
28 // Author: Mathieu Karamitros (kara (AT) cenbg . in2p3 . fr)
29 //
30 // WARNING : This class is released as a prototype.
31 // It might strongly evolve or even disapear in the next releases.
32 //
33 // History:
34 // -----------
35 // 10 Oct 2011 M.Karamitros created
36 //
37 // -------------------------------------------------------------------
38 
39 #ifndef G4TRACKINGINFORMATION_HH
40 #define G4TRACKINGINFORMATION_HH
41 
42 #include "globals.hh"
43 #include <vector>
44 #include "G4StepStatus.hh"
45 #include "G4ThreeVector.hh"
46 #include "G4TouchableHandle.hh"
47 #include "G4shared_ptr.hh"
48 
50 
51 typedef std::vector<G4int>
53 typedef std::vector<G4int>
55 typedef std::vector<G4int>
57 typedef std::vector<G4int>
59 
60 class G4Trajectory_Lock;
61 class G4Track;
62 struct G4ProcessState_Lock;
64 class G4SaveNavigatorState_Lock;
66 
68  friend class G4TrackingInformation;
69 protected :
70  inline virtual ~G4ITStepProcessorState_Lock(){;}
71 };
72 
73 
81 {
82 public:
85 
86  //________________________________________________
91  inline bool IsLeadingStep(){return fStepLeader;}
92  inline void SetLeadingStep(bool value ){fStepLeader = value;}
93 
94  //________________________________________________
99  G4::shared_ptr<G4ProcessState_Lock> GetProcessState(size_t index);
100 
101  inline void RecordProcessState(G4::shared_ptr<G4ProcessState_Lock>,
102  size_t index);
103 
106 
107  inline G4Trajectory_Lock* GetTrajectory_Lock()
108  {
109  return fpTrajectory_Lock ;
110  }
111 
112  inline void SetTrajectory_Lock(G4Trajectory_Lock* trajLock)
113  {
114  fpTrajectory_Lock = trajLock;
115  }
116 
118  inline const G4ThreeVector& GetPreStepPosition() const;
119  inline G4double GetPreStepLocalTime() const;
120  inline G4double GetPreStepGlobalTime() const;
121 
124 
125  //-------------
126 protected:
127  //-------------
128  friend class G4ITStepProcessor;
129  //_______________________________________________________
131  //_______________________________________________________
132  G4Trajectory_Lock* fpTrajectory_Lock;
133 
134  //_______________________________________________________
138 
139  //_______________________________________________________
141 // G4SaveNavigatorState_Lock* fNavigatorState;
142 
143  //_______________________________________________________
148  std::vector<G4::shared_ptr<G4ProcessState_Lock> > fProcessState;
149 
150  //_______________________________________________________
152 
153  //_______________________________________________________
158 
164 };
165 
167 {
168  fpStepProcessorState = state;
169 }
170 
172 {
173  return fpStepProcessorState;
174 }
175 
176 inline void G4TrackingInformation::RecordProcessState(G4::shared_ptr<G4ProcessState_Lock> state,
177  size_t index)
178 {
179  fProcessState[index] = state;
180 }
181 
182 
184 {
186 }
187 
189 {
191 }
192 
194 {
195  return fRecordedTrackPosition;
196 }
197 
198 
200 {
201  fNavigatorState = state;
202 }
203 
205 {
206  return fNavigatorState;
207 }
208 
209 
210 #endif // G4TRACKINGINFORMATION_HH
bool IsLeadingStep()
If the track is the one having the minimum step time, then it "leads" the step.
Its role is the same as G4StepManager :
G4Trajectory_Lock * fpTrajectory_Lock
G4::shared_ptr< G4ProcessState_Lock > GetProcessState(size_t index)
Every process should store the information computed at the InteractionLegth stage in the track...
G4double GetPreStepGlobalTime() const
CLHEP::Hep3Vector G4ThreeVector
void SetStepProcessorState(G4ITStepProcessorState_Lock *)
std::vector< G4int > G4SelectedAtRestDoItVector
void RecordCurrentPositionNTime(G4Track *)
G4TrackingInformation & operator=(const G4TrackingInformation &other)
Assignment operator.
The class G4TrackingInformation (hold by G4IT) emcompasses processes informations computed at the PS/...
std::vector< G4int > G4SelectedPostStepDoItVector
void SetTrajectory_Lock(G4Trajectory_Lock *trajLock)
bool G4bool
Definition: G4Types.hh:79
std::vector< G4::shared_ptr< G4ProcessState_Lock > > fProcessState
Holds the information related to processes Indexed on GetPhysIntVector (cf.
G4ITStepProcessorState_Lock * GetStepProcessorState()
G4double GetPreStepLocalTime() const
const G4ThreeVector & GetPreStepPosition() const
G4ITNavigatorState_Lock * GetNavigatorState() const
std::vector< G4int > G4SelectedAlongStepDoItVector
void SetLeadingStep(bool value)
G4ITNavigatorState_Lock * fNavigatorState
std::vector< G4int > G4SelectedPostStepAtTimeDoItVector
void SetNavigatorState(G4ITNavigatorState_Lock *)
G4ITStepProcessorState_Lock * fpStepProcessorState
G4Trajectory_Lock * GetTrajectory_Lock()
double G4double
Definition: G4Types.hh:76
void RecordProcessState(G4::shared_ptr< G4ProcessState_Lock >, size_t index)