#include <RE04Trajectory.hh>
User trajectory class
- new, delete and "==" operators are overwritten
 
- get functions G4int GetTrackID() const, G4int GetParentID() const, G4String GetParticleName() const, G4double GetCharge() const, G4int GetPDGEncoding() const, G4double GetInitialKineticEnergy() const and G4ThreeVector GetInitialMomentum() const
 
- void ShowTrajectory(std::ostream& os=G4cout) const invokes the default implementation
 
- void DrawTrajectory() const invokes the default implementation
 
- void AppendStep(const G4Step* aStep) adds a user trajectory point object, RE04TrajectoryPoint
 
- int GetPointEntries() const returns the number of point entries
 
- G4VTrajectoryPoint* GetPoint(G4int i) const  gets the i-th trajectory point
 
- void MergeTrajectory(G4VTrajectory* secondTrajectory) adds a trajectory to a TrajectoryPointContainer, fPositionRecord
 
- G4ParticleDefinition* GetParticleDefinition() get a particle definition from G4ParticleTable
 
- const std::map<G4String,G4AttDef>* GetAttDefs() const defines the track ID, the parent ID, the particle name, the charge, the PDG encoding, the initial kinetic energy, the initial momentum, the initial momentum magnitude and the number of points as attiributes
 
- std::vector<G4AttValue>* CreateAttValues() const sets and returns the attributes 
 
Definition at line 90 of file RE04Trajectory.hh.
 
◆ RE04Trajectory() [1/3]
      
        
          | RE04Trajectory::RE04Trajectory  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 48 of file RE04Trajectory.cc.
TrajectoryPointContainer * fPositionRecord
 
CLHEP::Hep3Vector G4ThreeVector
 
G4double fInitialKineticEnergy
 
G4ThreeVector fInitialMomentum
 
 
 
 
◆ RE04Trajectory() [2/3]
      
        
          | RE04Trajectory::RE04Trajectory  | 
          ( | 
          const G4Track *  | 
          aTrack | ) | 
           | 
        
      
 
Definition at line 56 of file RE04Trajectory.cc.
   69       aTrack->GetPosition(),aTrack->GetMaterial()));
 TrajectoryPointContainer * fPositionRecord
 
std::vector< G4VTrajectoryPoint * > TrajectoryPointContainer
 
G4double fInitialKineticEnergy
 
const G4String & GetParticleName() const
 
G4int GetPDGEncoding() const
 
G4double GetPDGCharge() const
 
G4ThreeVector fInitialMomentum
 
 
 
 
◆ RE04Trajectory() [3/3]
Definition at line 73 of file RE04Trajectory.cc.
TrajectoryPointContainer * fPositionRecord
 
std::vector< G4VTrajectoryPoint * > TrajectoryPointContainer
 
G4double fInitialKineticEnergy
 
G4ThreeVector fInitialMomentum
 
 
 
 
◆ ~RE04Trajectory()
  
  
      
        
          | RE04Trajectory::~RE04Trajectory  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
Definition at line 93 of file RE04Trajectory.cc.
   99       delete  (*fPositionRecord)[i];
 TrajectoryPointContainer * fPositionRecord
 
 
 
 
◆ AppendStep()
  
  
      
        
          | void RE04Trajectory::AppendStep  | 
          ( | 
          const G4Step *  | 
          aStep | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
Implements G4VTrajectory.
Definition at line 205 of file RE04Trajectory.cc.
  208         aStep->GetPostStepPoint()->GetPosition(),
   209         aStep->GetPreStepPoint()->GetMaterial() ));
 TrajectoryPointContainer * fPositionRecord
 
 
 
 
◆ CreateAttValues()
  
  
      
        
          | std::vector< G4AttValue > * RE04Trajectory::CreateAttValues  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
Reimplemented from G4VTrajectory.
Definition at line 167 of file RE04Trajectory.cc.
  169   std::vector<G4AttValue>* values = 
new std::vector<G4AttValue>;
 static G4String ConvertToString(G4bool boolVal)
 
G4double fInitialKineticEnergy
 
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1 
 
virtual int GetPointEntries() const
 
virtual const std::map< G4String, G4AttDef > * GetAttDefs() const
 
G4GLOB_DLL std::ostream G4cout
 
G4ThreeVector fInitialMomentum
 
 
 
 
◆ DrawTrajectory()
  
  
      
        
          | void RE04Trajectory::DrawTrajectory  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
 
◆ GetAttDefs()
Reimplemented from G4VTrajectory.
Definition at line 123 of file RE04Trajectory.cc.
  126   std::map<G4String,G4AttDef>* store
   131     (*store)[id] = 
G4AttDef(
id,
"Track ID",
"Physics",
"",
"G4int");
   134     (*store)[pid] = 
G4AttDef(pid,
"Parent ID",
"Physics",
"",
"G4int");
   137     (*store)[
pn] = 
G4AttDef(
pn,
"Particle Name",
"Physics",
"",
"G4String");
   140     (*store)[ch] = 
G4AttDef(ch,
"Charge",
"Physics",
"e+",
"G4double");
   143     (*store)[pdg] = 
G4AttDef(pdg,
"PDG Encoding",
"Physics",
"",
"G4int");
   147       G4AttDef(ike, 
"Initial kinetic energy",
   148                "Physics",
"G4BestUnit",
"G4double");
   151     (*store)[iMom] = 
G4AttDef(iMom, 
"Initial momentum",
   152                               "Physics",
"G4BestUnit",
"G4ThreeVector");
   156       G4AttDef(iMag, 
"Initial momentum magnitude",
   157                "Physics",
"G4BestUnit",
"G4double");
   160     (*store)[ntp] = 
G4AttDef(ntp,
"No. of points",
"Physics",
"",
"G4int");
 
std::map< G4String, G4AttDef > * GetInstance(const G4String &storeKey, G4bool &isNew)
 
 
 
 
◆ GetCharge()
  
  
      
        
          | virtual G4double RE04Trajectory::GetCharge  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
◆ GetInitialKineticEnergy()
  
  
      
        
          | virtual G4double RE04Trajectory::GetInitialKineticEnergy  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
◆ GetInitialMomentum()
  
  
      
        
          | virtual G4ThreeVector RE04Trajectory::GetInitialMomentum  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
◆ GetParentID()
  
  
      
        
          | virtual G4int RE04Trajectory::GetParentID  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
◆ GetParticleDefinition()
◆ GetParticleName()
  
  
      
        
          | virtual G4String RE04Trajectory::GetParticleName  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
◆ GetPDGEncoding()
  
  
      
        
          | virtual G4int RE04Trajectory::GetPDGEncoding  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
◆ GetPoint()
◆ GetPointEntries()
  
  
      
        
          | virtual int RE04Trajectory::GetPointEntries  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
◆ GetTrackID()
  
  
      
        
          | virtual G4int RE04Trajectory::GetTrackID  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
◆ MergeTrajectory()
  
  
      
        
          | void RE04Trajectory::MergeTrajectory  | 
          ( | 
          G4VTrajectory *  | 
          secondTrajectory | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
Implements G4VTrajectory.
Definition at line 219 of file RE04Trajectory.cc.
  221   if(!secondTrajectory) 
return;
   225   for(
G4int i=1;i<ent;i++) 
 TrajectoryPointContainer * fPositionRecord
 
virtual int GetPointEntries() const
 
 
 
 
◆ operator delete()
  
  
      
        
          | void RE04Trajectory::operator delete  | 
          ( | 
          void *  | 
          aTrajectory | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Definition at line 166 of file RE04Trajectory.hh.
G4ThreadLocal G4Allocator< RE04Trajectory > * faTrajAllocator
 
 
 
 
◆ operator new()
  
  
      
        
          | void * RE04Trajectory::operator new  | 
          ( | 
          size_t  | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Definition at line 160 of file RE04Trajectory.hh.
G4ThreadLocal G4Allocator< RE04Trajectory > * faTrajAllocator
 
 
 
 
◆ operator==()
◆ ShowTrajectory()
  
  
      
        
          | void RE04Trajectory::ShowTrajectory  | 
          ( | 
          std::ostream &  | 
          os = G4cout | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
 
◆ fInitialKineticEnergy
  
  
      
        
          | G4double RE04Trajectory::fInitialKineticEnergy | 
         
       
   | 
  
private   | 
  
 
 
◆ fInitialMomentum
◆ fParentID
  
  
      
        
          | G4int RE04Trajectory::fParentID | 
         
       
   | 
  
private   | 
  
 
 
◆ fParticleName
◆ fPDGCharge
◆ fPDGEncoding
  
  
      
        
          | G4int RE04Trajectory::fPDGEncoding | 
         
       
   | 
  
private   | 
  
 
 
◆ fPositionRecord
◆ fTrackID
  
  
      
        
          | G4int RE04Trajectory::fTrackID | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following files: