63 fpRichPointsContainer(0),
66 fFinalKineticEnergy(0.)
97 fpInitialVolume = right.fpInitialVolume;
98 fpInitialNextVolume = right.fpInitialNextVolume;
99 fpCreatorProcess = right.fpCreatorProcess;
100 fpFinalVolume = right.fpFinalVolume;
101 fpFinalNextVolume = right.fpFinalNextVolume;
102 fpEndingProcess = right.fpEndingProcess;
103 fFinalKineticEnergy = right.fFinalKineticEnergy;
105 for(
size_t i=0;i<right.fpRichPointsContainer->size();i++)
115 if (fpRichPointsContainer) {
118 for(i=0;i<fpRichPointsContainer->size();i++){
119 delete (*fpRichPointsContainer)[i];
121 fpRichPointsContainer->clear();
122 delete fpRichPointsContainer;
137 fFinalKineticEnergy =
145 if(!secondTrajectory)
return;
149 for(
G4int i=1;i<ent;i++) {
151 fpRichPointsContainer->push_back((*(seco->fpRichPointsContainer))[i]);
154 delete (*seco->fpRichPointsContainer)[0];
155 seco->fpRichPointsContainer->clear();
175 std::map<G4String,G4AttDef>* store
185 (*store)[ID] =
G4AttDef(ID,
"Initial Volume Path",
186 "Physics",
"",
"G4String");
189 (*store)[ID] =
G4AttDef(ID,
"Initial Next Volume Path",
190 "Physics",
"",
"G4String");
193 (*store)[ID] =
G4AttDef(ID,
"Creator Process Name",
194 "Physics",
"",
"G4String");
197 (*store)[ID] =
G4AttDef(ID,
"Creator Process Type Name",
198 "Physics",
"",
"G4String");
201 (*store)[ID] =
G4AttDef(ID,
"Final Volume Path",
202 "Physics",
"",
"G4String");
205 (*store)[ID] =
G4AttDef(ID,
"Final Next Volume Path",
206 "Physics",
"",
"G4String");
209 (*store)[ID] =
G4AttDef(ID,
"Ending Process Name",
210 "Physics",
"",
"G4String");
213 (*store)[ID] =
G4AttDef(ID,
"Ending Process Type Name",
214 "Physics",
"",
"G4String");
217 (*store)[ID] =
G4AttDef(ID,
"Final kinetic energy",
218 "Physics",
"G4BestUnit",
"G4double");
227 std::ostringstream oss;
229 for (
G4int i = depth; i >= 0; --i) {
232 if (i != 0) oss <<
'/';
242 if (fpInitialVolume && fpInitialVolume->
GetVolume()) {
243 values->push_back(
G4AttValue(
"IVPath",Path(fpInitialVolume),
""));
245 values->push_back(
G4AttValue(
"IVPath",
"None",
""));
248 if (fpInitialNextVolume && fpInitialNextVolume->
GetVolume()) {
249 values->push_back(
G4AttValue(
"INVPath",Path(fpInitialNextVolume),
""));
251 values->push_back(
G4AttValue(
"INVPath",
"None",
""));
254 if (fpCreatorProcess) {
259 values->push_back(
G4AttValue(
"CPN",
"None",
""));
260 values->push_back(
G4AttValue(
"CPTN",
"None",
""));
263 if (fpFinalVolume && fpFinalVolume->
GetVolume()) {
264 values->push_back(
G4AttValue(
"FVPath",Path(fpFinalVolume),
""));
266 values->push_back(
G4AttValue(
"FVPath",
"None",
""));
269 if (fpFinalNextVolume && fpFinalNextVolume->
GetVolume()) {
270 values->push_back(
G4AttValue(
"FNVPath",Path(fpFinalNextVolume),
""));
272 values->push_back(
G4AttValue(
"FNVPath",
"None",
""));
275 if (fpEndingProcess) {
280 values->push_back(
G4AttValue(
"EPN",
"None",
""));
281 values->push_back(
G4AttValue(
"EPTN",
"None",
""));
static const G4String & GetProcessTypeName(G4ProcessType)
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual std::vector< G4AttValue > * CreateAttValues() const
void AppendStep(const G4Step *aStep)
void ShowTrajectory(std::ostream &os=G4cout) const
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
int GetPointEntries() const
G4ProcessType GetProcessType() const
G4int GetCopyNumber(G4int depth=0) const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual void DrawTrajectory() const
G4StepPoint * GetPreStepPoint() const
const G4VProcess * GetCreatorProcess() const
G4double GetKineticEnergy() const
std::vector< G4VTrajectoryPoint * > RichTrajectoryPointsContainer
G4GLOB_DLL std::ostream G4cout
G4int GetCurrentStepNumber() const
const G4String & GetName() const
virtual std::vector< G4AttValue > * CreateAttValues() const
const G4TouchableHandle & GetNextTouchableHandle() const
virtual G4int GetHistoryDepth() const
const G4String & GetProcessName() const
const G4TouchableHandle & GetTouchableHandle() const
G4double GetTotalEnergyDeposit() const
const G4VProcess * GetProcessDefinedStep() const
virtual G4VPhysicalVolume * GetVolume(G4int depth=0) const
void MergeTrajectory(G4VTrajectory *secondTrajectory)
G4StepPoint * GetPostStepPoint() const
void DrawTrajectory() const
virtual ~G4RichTrajectory()
G4TRACKING_DLL G4ThreadLocal G4Allocator< G4RichTrajectory > * aRichTrajectoryAllocator
G4double GetKineticEnergy() const
G4Track * GetTrack() const
virtual void ShowTrajectory(std::ostream &os=G4cout) const
std::map< G4String, G4AttDef > * GetInstance(G4String storeKey, G4bool &isNew)