#include <WLSTrajectory.hh>
Definition at line 53 of file WLSTrajectory.hh.
WLSTrajectory::WLSTrajectory |
( |
| ) |
|
Definition at line 59 of file WLSTrajectory.cc.
60 : fpPointsContainer(0), fTrackID(0), fParentID(0),
61 fPDGCharge(0.0), fPDGEncoding(0), fParticleName(
""),
64 fParticleDefinition = NULL;
CLHEP::Hep3Vector G4ThreeVector
WLSTrajectory::WLSTrajectory |
( |
const G4Track * |
aTrack | ) |
|
Definition at line 69 of file WLSTrajectory.cc.
G4ParticleDefinition * GetDefinition() const
G4int GetParentID() const
G4int GetPDGEncoding() const
const G4String & GetParticleName() const
G4ThreeVector GetMomentum() const
std::vector< G4VTrajectoryPoint * > WLSTrajectoryPointContainer
G4double GetPDGCharge() const
Definition at line 85 of file WLSTrajectory.cc.
87 fParticleDefinition=right.fParticleDefinition;
88 fParticleName = right.fParticleName;
89 fPDGCharge = right.fPDGCharge;
90 fPDGEncoding = right.fPDGEncoding;
91 fTrackID = right.fTrackID;
92 fParentID = right.fParentID;
93 fInitialMomentum = right.fInitialMomentum;
96 for(
size_t i=0;i<right.fpPointsContainer->size();++i) {
std::vector< G4VTrajectoryPoint * > WLSTrajectoryPointContainer
WLSTrajectory::~WLSTrajectory |
( |
| ) |
|
|
virtual |
Definition at line 105 of file WLSTrajectory.cc.
107 for(
size_t i=0;i<fpPointsContainer->size();++i){
108 delete (*fpPointsContainer)[i];
110 fpPointsContainer->clear();
112 delete fpPointsContainer;
void WLSTrajectory::AppendStep |
( |
const G4Step * |
aStep | ) |
|
|
virtual |
std::vector< G4AttValue > * WLSTrajectory::CreateAttValues |
( |
| ) |
const |
|
virtual |
Reimplemented from G4VTrajectory.
Definition at line 198 of file WLSTrajectory.cc.
200 std::vector<G4AttValue>* values =
new std::vector<G4AttValue>;
208 values->push_back(
G4AttValue(
"PN",fParticleName,
""));
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
static G4String ConvertToString(G4bool boolVal)
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
virtual int GetPointEntries() const
G4GLOB_DLL std::ostream G4cout
Reimplemented from G4VTrajectory.
Definition at line 156 of file WLSTrajectory.cc.
159 std::map<G4String,G4AttDef>* store
165 (*store)[ID] =
G4AttDef(ID,
"Track ID",
"Bookkeeping",
"",
"G4int");
168 (*store)[PID] =
G4AttDef(PID,
"Parent ID",
"Bookkeeping",
"",
"G4int");
171 (*store)[PN] =
G4AttDef(PN,
"Particle Name",
"Physics",
"",
"G4String");
174 (*store)[Ch] =
G4AttDef(Ch,
"Charge",
"Physics",
"e+",
"G4double");
177 (*store)[PDG] =
G4AttDef(PDG,
"PDG Encoding",
"Physics",
"",
"G4int");
181 "Momentum of track at start of trajectory",
182 "Physics",
"G4BestUnit",
"G4ThreeVector");
186 "Magnitude of momentum of track at start of trajectory",
187 "Physics",
"G4BestUnit",
"G4double");
190 (*store)[NTP] =
G4AttDef(NTP,
"No. of points",
"Bookkeeping",
"",
"G4int");
std::map< G4String, G4AttDef > * GetInstance(const G4String &storeKey, G4bool &isNew)
virtual G4double WLSTrajectory::GetCharge |
( |
| ) |
const |
|
inlinevirtual |
virtual G4ThreeVector WLSTrajectory::GetInitialMomentum |
( |
| ) |
const |
|
inlinevirtual |
virtual G4int WLSTrajectory::GetParentID |
( |
| ) |
const |
|
inlinevirtual |
virtual G4String WLSTrajectory::GetParticleName |
( |
| ) |
const |
|
inlinevirtual |
virtual G4int WLSTrajectory::GetPDGEncoding |
( |
| ) |
const |
|
inlinevirtual |
virtual int WLSTrajectory::GetPointEntries |
( |
| ) |
const |
|
inlinevirtual |
virtual G4int WLSTrajectory::GetTrackID |
( |
| ) |
const |
|
inlinevirtual |
Implements G4VTrajectory.
Definition at line 140 of file WLSTrajectory.cc.
142 if(!secondTrajectory)
return;
147 for(
G4int i=1; i<ent; ++i) {
148 fpPointsContainer->push_back((*(second->fpPointsContainer))[i]);
150 delete (*second->fpPointsContainer)[0];
151 second->fpPointsContainer->clear();
static constexpr double second
virtual int GetPointEntries() const
void WLSTrajectory::operator delete |
( |
void * |
aTrajectory | ) |
|
|
inline |
Definition at line 127 of file WLSTrajectory.hh.
G4ThreadLocal G4Allocator< WLSTrajectory > * WLSTrajectoryAllocator
void * WLSTrajectory::operator new |
( |
size_t |
| ) |
|
|
inline |
Definition at line 121 of file WLSTrajectory.hh.
G4ThreadLocal G4Allocator< WLSTrajectory > * WLSTrajectoryAllocator
void WLSTrajectory::ShowTrajectory |
( |
std::ostream & |
os = G4cout | ) |
const |
|
virtual |
The documentation for this class was generated from the following files: