51 : fpPointsContainer(0), fTrackID(0), fParentID(0),
52 fPDGCharge(0.0), fPDGEncoding(0), fParticleName(
""),
75 fParticleName = right.fParticleName;
76 fPDGCharge = right.fPDGCharge;
77 fPDGEncoding = right.fPDGEncoding;
78 fTrackID = right.fTrackID;
79 fParentID = right.fParentID;
80 fInitialMomentum = right.fInitialMomentum;
83 for(
size_t i=0;i<right.fpPointsContainer->size();++i) {
94 for(
size_t i=0;i<fpPointsContainer->size();++i){
95 delete (*fpPointsContainer)[i];
97 fpPointsContainer->clear();
99 delete fpPointsContainer;
147 if(!secondTrajectory)
return;
152 for(
G4int i=1; i<ent; ++i) {
153 fpPointsContainer->push_back((*(second->fpPointsContainer))[i]);
155 delete (*second->fpPointsContainer)[0];
156 second->fpPointsContainer->clear();
164 std::map<G4String,G4AttDef>* store
170 (*store)[ID] =
G4AttDef(ID,
"Track ID",
"Bookkeeping",
"",
"G4int");
173 (*store)[PID] =
G4AttDef(PID,
"Parent ID",
"Bookkeeping",
"",
"G4int");
176 (*store)[PN] =
G4AttDef(PN,
"Particle Name",
"Physics",
"",
"G4String");
179 (*store)[Ch] =
G4AttDef(Ch,
"Charge",
"Physics",
"e+",
"G4double");
182 (*store)[PDG] =
G4AttDef(PDG,
"PDG Encoding",
"Physics",
"",
"G4int");
186 "Momentum of track at start of trajectory",
187 "Physics",
"G4BestUnit",
"G4ThreeVector");
191 "Magnitude of momentum of track at start of trajectory",
192 "Physics",
"G4BestUnit",
"G4double");
195 (*store)[NTP] =
G4AttDef(NTP,
"No. of points",
"Bookkeeping",
"",
"G4int");
205 std::vector<G4AttValue>* values =
new std::vector<G4AttValue>;
213 values->push_back(
G4AttValue(
"PN",fParticleName,
""));