55 fPositionRecord(0),fParticleDefinition(0)
97 delete (*fPositionRecord)[i];
111 os <<
"Original momentum : " <<
121 os <<
"Point[" << i <<
"]"
138 pPolyline.push_back( pos );
167 if(pVVisManager) pVVisManager->
Draw(pPolyline);
174 std::map<G4String,G4AttDef>* store
179 (*store)[id] =
G4AttDef(
id,
"Track ID",
"Bookkeeping",
"",
"G4int");
182 (*store)[pid] =
G4AttDef(pid,
"Parent ID",
"Bookkeeping",
"",
"G4int");
185 (*store)[status] =
G4AttDef(status,
"Track Status",
"Bookkeeping",
"",
"G4int");
188 (*store)[
pn] =
G4AttDef(pn,
"Particle Name",
"Bookkeeping",
"",
"G4String");
191 (*store)[ch] =
G4AttDef(ch,
"Charge",
"Physics",
"e+",
"G4double");
194 (*store)[pdg] =
G4AttDef(pdg,
"PDG Encoding",
"Bookkeeping",
"",
"G4int");
197 (*store)[imom] =
G4AttDef(imom,
"Momentum of track at start of trajectory",
198 "Physics",
"G4BestUnit",
"G4ThreeVector");
202 G4AttDef(imag,
"Magnitude of momentum of track at start of trajectory",
203 "Physics",
"G4BestUnit",
"G4double");
206 (*store)[vtxPos] =
G4AttDef(vtxPos,
"Vertex position",
207 "Physics",
"G4BestUnit",
"G4ThreeVector");
210 (*store)[ntp] =
G4AttDef(ntp,
"No. of points",
"Bookkeeping",
"",
"G4int");
219 std::vector<G4AttValue>* values =
new std::vector<G4AttValue>;
263 if(!secondTrajectory)
return;
269 for(
int i=1;i<ent;i++)
Definition of the RE01Trajectory class.
virtual void Draw(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())=0
static const G4double pos
G4ThreeVector fVertexPosition
virtual void AppendStep(const G4Step *aStep)
G4ThreadLocal G4Allocator< RE01Trajectory > * myTrajectoryAllocator
G4ParticleDefinition * fParticleDefinition
std::vector< G4VTrajectoryPoint * > RE01TrajectoryPointContainer
virtual void MergeTrajectory(G4VTrajectory *secondTrajectory)
const G4String & GetParticleName() const
virtual void DrawTrajectory() const
const G4String & GetParticleType() const
G4double GetPDGCharge() const
const G4ThreeVector GetPosition() const
virtual ~RE01Trajectory()
G4ParticleDefinition * GetDefinition() const
static G4MuonMinus * MuonMinusDefinition()
static G4VVisManager * GetConcreteInstance()
virtual void ShowTrajectory(std::ostream &os=G4cout) const
G4ThreeVector GetMomentum() const
G4ParticleDefinition * GetG4code() const
virtual std::vector< G4AttValue > * CreateAttValues() const
const G4ThreeVector & GetPosition() const
G4double GetGlobalTime() const
const G4ThreeVector & GetPosition() const
G4StepPoint * GetPostStepPoint() const
G4PrimaryParticle * GetPrimaryParticle() const
static G4Electron * ElectronDefinition()
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
static G4String ConvertToString(G4bool boolVal)
static G4Gamma * GammaDefinition()
std::map< G4String, G4AttDef > * GetInstance(const G4String &storeKey, G4bool &isNew)
RE01Trajectory(const G4Track *aTrack)
G4int GetPDGEncoding() const
G4double GetCharge() const
static G4Positron * PositronDefinition()
G4VUserTrackInformation * GetUserInformation() const
static G4MuonPlus * MuonPlusDefinition()
RE01TrajectoryPointContainer * fPositionRecord
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
const G4DynamicParticle * GetDynamicParticle() const
void SetVisAttributes(const G4VisAttributes *)
G4int GetParentID() const
virtual int GetPointEntries() const