90 fpRichPointsContainer =
new RichTrajectoryPointsContainer;
97 fpInitialVolume = right.fpInitialVolume;
98 fpInitialNextVolume = right.fpInitialNextVolume;
99 fpCreatorProcess = right.fpCreatorProcess;
100 fCreatorModelID = right.fCreatorModelID;
101 fpFinalVolume = right.fpFinalVolume;
102 fpFinalNextVolume = right.fpFinalNextVolume;
103 fpEndingProcess = right.fpEndingProcess;
104 fFinalKineticEnergy = right.fFinalKineticEnergy;
105 fpRichPointsContainer =
new RichTrajectoryPointsContainer;
106 for(std::size_t i=0; i<right.fpRichPointsContainer->size(); ++i)
116 if (fpRichPointsContainer)
118 for(std::size_t i=0; i<fpRichPointsContainer->size(); ++i)
120 delete (*fpRichPointsContainer)[i];
122 fpRichPointsContainer->clear();
123 delete fpRichPointsContainer;
148 if(secondTrajectory ==
nullptr)
return;
152 for(
G4int i=1; i<ent; ++i)
156 fpRichPointsContainer->push_back((*(seco->fpRichPointsContainer))[i]);
158 delete (*seco->fpRichPointsContainer)[0];
159 seco->fpRichPointsContainer->clear();
183 std::map<G4String,G4AttDef>* store
194 (*store)[ID] =
G4AttDef(ID,
"Initial Volume Path",
195 "Physics",
"",
"G4String");
198 (*store)[ID] =
G4AttDef(ID,
"Initial Next Volume Path",
199 "Physics",
"",
"G4String");
202 (*store)[ID] =
G4AttDef(ID,
"Creator Process Name",
203 "Physics",
"",
"G4String");
206 (*store)[ID] =
G4AttDef(ID,
"Creator Process Type Name",
207 "Physics",
"",
"G4String");
210 (*store)[ID] =
G4AttDef(ID,
"Creator Model ID",
211 "Physics",
"",
"G4int");
214 (*store)[ID] =
G4AttDef(ID,
"Creator Model Name",
215 "Physics",
"",
"G4String");
218 (*store)[ID] =
G4AttDef(ID,
"Final Volume Path",
219 "Physics",
"",
"G4String");
222 (*store)[ID] =
G4AttDef(ID,
"Final Next Volume Path",
223 "Physics",
"",
"G4String");
226 (*store)[ID] =
G4AttDef(ID,
"Ending Process Name",
227 "Physics",
"",
"G4String");
230 (*store)[ID] =
G4AttDef(ID,
"Ending Process Type Name",
231 "Physics",
"",
"G4String");
234 (*store)[ID] =
G4AttDef(ID,
"Final kinetic energy",
235 "Physics",
"G4BestUnit",
"G4double");
243 std::ostringstream oss;
245 for (
G4int i = depth; i >= 0; --i)
249 if (i != 0) oss <<
'/';
259 if (fpInitialVolume && fpInitialVolume->
GetVolume())
261 values->push_back(
G4AttValue(
"IVPath",Path(fpInitialVolume),
""));
265 values->push_back(
G4AttValue(
"IVPath",
"None",
""));
268 if (fpInitialNextVolume && fpInitialNextVolume->
GetVolume())
270 values->push_back(
G4AttValue(
"INVPath",Path(fpInitialNextVolume),
""));
274 values->push_back(
G4AttValue(
"INVPath",
"None",
""));
277 if (fpCreatorProcess !=
nullptr)
288 values->push_back(
G4AttValue(
"CMN",creatorModelName,
""));
292 values->push_back(
G4AttValue(
"CPN",
"None",
""));
293 values->push_back(
G4AttValue(
"CPTN",
"None",
""));
294 values->push_back(
G4AttValue(
"CMID",
"None",
""));
295 values->push_back(
G4AttValue(
"CMN",
"None",
""));
298 if (fpFinalVolume && fpFinalVolume->
GetVolume())
300 values->push_back(
G4AttValue(
"FVPath",Path(fpFinalVolume),
""));
304 values->push_back(
G4AttValue(
"FVPath",
"None",
""));
307 if (fpFinalNextVolume && fpFinalNextVolume->
GetVolume())
309 values->push_back(
G4AttValue(
"FNVPath",Path(fpFinalNextVolume),
""));
313 values->push_back(
G4AttValue(
"FNVPath",
"None",
""));
316 if (fpEndingProcess !=
nullptr)
324 values->push_back(
G4AttValue(
"EPN",
"None",
""));
325 values->push_back(
G4AttValue(
"EPTN",
"None",
""));
G4Allocator< G4RichTrajectory > *& aRichTrajectoryAllocator()
G4GLOB_DLL std::ostream G4cout
static const G4String & GetModelName(G4int)
virtual ~G4RichTrajectory()
void ShowTrajectory(std::ostream &os=G4cout) const
void AppendStep(const G4Step *aStep)
virtual std::vector< G4AttValue > * CreateAttValues() const
void DrawTrajectory() const
void MergeTrajectory(G4VTrajectory *secondTrajectory)
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
G4int GetPointEntries() const
const G4VProcess * GetProcessDefinedStep() const
G4double GetKineticEnergy() const
G4Track * GetTrack() const
G4StepPoint * GetPreStepPoint() const
G4double GetTotalEnergyDeposit() const
G4StepPoint * GetPostStepPoint() const
const G4TouchableHandle & GetNextTouchableHandle() const
const G4VProcess * GetCreatorProcess() const
G4int GetCreatorModelID() const
G4int GetCurrentStepNumber() const
const G4TouchableHandle & GetTouchableHandle() const
G4double GetKineticEnergy() const
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual std::vector< G4AttValue > * CreateAttValues() const
static G4String ConvertToString(G4bool boolVal)
const G4String & GetName() const
static const G4String & GetProcessTypeName(G4ProcessType)
G4ProcessType GetProcessType() const
const G4String & GetProcessName() const
G4int GetCopyNumber(G4int depth=0) const
virtual G4VPhysicalVolume * GetVolume(G4int depth=0) const
virtual G4int GetHistoryDepth() const
virtual void ShowTrajectory(std::ostream &os=G4cout) const
virtual void DrawTrajectory() const
std::map< G4String, G4AttDef > * GetInstance(const G4String &storeKey, G4bool &isNew)
#define G4ThreadLocalStatic