#include <RE01Trajectory.hh>
Definition at line 54 of file RE01Trajectory.hh.
RE01Trajectory::RE01Trajectory |
( |
const G4Track * |
aTrack | ) |
|
Definition at line 53 of file RE01Trajectory.cc.
55 fPositionRecord(0),fParticleDefinition(0)
61 if(fParticleName==
"unknown")
70 fParticleName +=
" : ";
81 else if(fTrackStatus == 2)
G4ParticleDefinition * GetDefinition() const
G4int GetParentID() const
const G4DynamicParticle * GetDynamicParticle() const
const G4ThreeVector & GetPosition() const
G4int GetPDGEncoding() const
const G4String & GetParticleName() const
G4ParticleDefinition * GetG4code() const
G4VUserTrackInformation * GetUserInformation() const
G4double GetGlobalTime() const
G4PrimaryParticle * GetPrimaryParticle() const
G4ThreeVector GetMomentum() const
std::vector< G4VTrajectoryPoint * > RE01TrajectoryPointContainer
G4double GetCharge() const
G4double GetPDGCharge() const
RE01Trajectory::~RE01Trajectory |
( |
| ) |
|
|
virtual |
Definition at line 93 of file RE01Trajectory.cc.
96 for(i=0;i<fPositionRecord->size();i++){
97 delete (*fPositionRecord)[i];
99 fPositionRecord->clear();
101 delete fPositionRecord;
void RE01Trajectory::AppendStep |
( |
const G4Step * |
aStep | ) |
|
|
virtual |
Implements G4VTrajectory.
Definition at line 254 of file RE01Trajectory.cc.
256 fPositionRecord->push_back(
const G4ThreeVector & GetPosition() const
G4StepPoint * GetPostStepPoint() const
std::vector< G4AttValue > * RE01Trajectory::CreateAttValues |
( |
| ) |
const |
|
virtual |
Reimplemented from G4VTrajectory.
Definition at line 217 of file RE01Trajectory.cc.
219 std::vector<G4AttValue>* values =
new std::vector<G4AttValue>;
230 values->push_back(
G4AttValue(
"PN",fParticleName,
""));
static G4String ConvertToString(G4bool boolVal)
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
virtual int GetPointEntries() const
void RE01Trajectory::DrawTrajectory |
( |
| ) |
const |
|
virtual |
Reimplemented from G4VTrajectory.
Definition at line 127 of file RE01Trajectory.cc.
134 for (
size_t i = 0; i < fPositionRecord->size() ; i++) {
138 pPolyline.push_back( pos );
167 if(pVVisManager) pVVisManager->
Draw(pPolyline);
virtual void Draw(const G4Circle &, const G4Transform3D &objectTransformation=G4Transform3D())=0
static G4Electron * ElectronDefinition()
static G4MuonPlus * MuonPlusDefinition()
static G4VVisManager * GetConcreteInstance()
const G4ThreeVector GetPosition() const
const G4String & GetParticleType() const
void SetVisAttributes(const G4VisAttributes *)
static G4Positron * PositronDefinition()
static G4MuonMinus * MuonMinusDefinition()
static const G4double pos
static G4Gamma * GammaDefinition()
Reimplemented from G4VTrajectory.
Definition at line 171 of file RE01Trajectory.cc.
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");
std::map< G4String, G4AttDef > * GetInstance(const G4String &storeKey, G4bool &isNew)
virtual G4double RE01Trajectory::GetCharge |
( |
| ) |
const |
|
inlinevirtual |
virtual G4ThreeVector RE01Trajectory::GetInitialMomentum |
( |
| ) |
const |
|
inlinevirtual |
virtual G4int RE01Trajectory::GetParentID |
( |
| ) |
const |
|
inlinevirtual |
virtual G4String RE01Trajectory::GetParticleName |
( |
| ) |
const |
|
inlinevirtual |
virtual G4int RE01Trajectory::GetPDGEncoding |
( |
| ) |
const |
|
inlinevirtual |
virtual int RE01Trajectory::GetPointEntries |
( |
| ) |
const |
|
inlinevirtual |
virtual G4int RE01Trajectory::GetTrackID |
( |
| ) |
const |
|
inlinevirtual |
Implements G4VTrajectory.
Definition at line 261 of file RE01Trajectory.cc.
263 if(!secondTrajectory)
return;
269 for(
int i=1;i<ent;i++)
271 fPositionRecord->push_back((*(seco->fPositionRecord))[i]);
273 delete (*seco->fPositionRecord)[0];
274 seco->fPositionRecord->clear();
virtual int GetPointEntries() const
void RE01Trajectory::operator delete |
( |
void * |
aTrajectory | ) |
|
|
inline |
Definition at line 106 of file RE01Trajectory.hh.
G4ThreadLocal G4Allocator< RE01Trajectory > * myTrajectoryAllocator
void * RE01Trajectory::operator new |
( |
size_t |
| ) |
|
|
inline |
Definition at line 99 of file RE01Trajectory.hh.
G4ThreadLocal G4Allocator< RE01Trajectory > * myTrajectoryAllocator
void RE01Trajectory::ShowTrajectory |
( |
std::ostream & |
os = G4cout | ) |
const |
|
virtual |
Reimplemented from G4VTrajectory.
Definition at line 105 of file RE01Trajectory.cc.
107 os <<
G4endl <<
"TrackID =" << fTrackID
108 <<
" : ParentID=" << fParentID <<
" : TrackStatus=" << fTrackStatus <<
G4endl;
109 os <<
"Particle name : " << fParticleName <<
" PDG code : " << fPDGEncoding
110 <<
" Charge : " << fPDGCharge <<
G4endl;
111 os <<
"Original momentum : " <<
113 os <<
"Vertex : " <<
G4BestUnit(fVertexPosition,
"Length")
115 os <<
" Current trajectory has " << fPositionRecord->size()
118 for(
size_t i=0 ; i < fPositionRecord->size() ; i++){
121 os <<
"Point[" << i <<
"]"
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
const G4ThreeVector GetPosition() const
The documentation for this class was generated from the following files: