#include <G4CollisionInitialState.hh>
Definition at line 44 of file G4CollisionInitialState.hh.
◆ G4CollisionInitialState() [1/4]
G4CollisionInitialState::G4CollisionInitialState |
( |
| ) |
|
◆ G4CollisionInitialState() [2/4]
Definition at line 44 of file G4CollisionInitialState.cc.
46{
47 theCollisionTime = time;
48 thePrimary = aPrimary;
49 theTarget = aTarget;
50 theTs.clear();
51 theFSGenerator = 0;
52}
◆ G4CollisionInitialState() [3/4]
Definition at line 55 of file G4CollisionInitialState.cc.
58{
59 theCollisionTime = time;
60 thePrimary = aPrimary;
61 theTarget = 0;
62 for (size_t i=0; i<aTarget.size(); i++) theTs.push_back(aTarget[i]);
63 theFSGenerator = aFSGenerator;
64}
◆ ~G4CollisionInitialState()
G4CollisionInitialState::~G4CollisionInitialState |
( |
| ) |
|
|
inline |
◆ G4CollisionInitialState() [4/4]
Definition at line 68 of file G4CollisionInitialState.cc.
69{
70 theCollisionTime = right.theCollisionTime;
71 thePrimary = right.thePrimary;
72 theTarget = right.theTarget;
73 for (size_t i=0; i<right.theTs.size(); i++) theTs.push_back(right.theTs[i]);
74 theFSGenerator = right.theFSGenerator;
75}
◆ AddTarget()
◆ GetCollisionTime()
G4double G4CollisionInitialState::GetCollisionTime |
( |
void | | ) |
|
|
inline |
◆ GetFinalState()
Definition at line 94 of file G4CollisionInitialState.cc.
96 {
97
98
99
101 }
virtual G4KineticTrackVector * GetFinalState(G4KineticTrack *aProjectile, std::vector< G4KineticTrack * > &theTargets)=0
◆ GetGenerator()
const G4BCAction * G4CollisionInitialState::GetGenerator |
( |
| ) |
|
|
inline |
◆ GetPrimary()
◆ GetTarget()
◆ GetTargetBaryonNumber()
G4int G4CollisionInitialState::GetTargetBaryonNumber |
( |
| ) |
|
|
inline |
Definition at line 82 of file G4CollisionInitialState.hh.
83 {
85 for(size_t i=0; i<theTs.size(); i++)
86 {
87 result += theTs[i]->GetDefinition()->GetBaryonNumber();
88 }
90 }
◆ GetTargetCharge()
G4int G4CollisionInitialState::GetTargetCharge |
( |
| ) |
|
|
inline |
Definition at line 91 of file G4CollisionInitialState.hh.
92 {
94 for(size_t i=0; i<theTs.size(); i++)
95 {
96 result += theTs[i]->GetDefinition()->GetPDGCharge();
97 }
99 }
◆ GetTargetCollection()
◆ operator<()
◆ operator=()
Definition at line 77 of file G4CollisionInitialState.cc.
78{
79 if (this != &right)
80 {
81 theCollisionTime = right.theCollisionTime;
82 thePrimary = right.thePrimary;
83 theTarget = right.theTarget;
84 for (size_t i=0; i<right.theTs.size(); i++)
85 theTs.push_back(right.theTs[i]);
86 theFSGenerator = right.theFSGenerator;
87 }
88
89 return *this;
90}
◆ operator==()
◆ Print()
void G4CollisionInitialState::Print |
( |
| ) |
const |
Definition at line 105 of file G4CollisionInitialState.cc.
106{
107 G4int tgtPdg=theTarget ?
109 G4cout <<
" collision " <<
this <<
" time: "
110 << theCollisionTime/second << " proj: "
112 << " tgt: " << theTarget << "/pdg=" << tgtPdg
113 << " Collision type: "<< typeid(*theFSGenerator).name();
114
115}
G4GLOB_DLL std::ostream G4cout
const G4ParticleDefinition * GetDefinition() const
G4int GetPDGEncoding() const
◆ SetCollisionTime()
void G4CollisionInitialState::SetCollisionTime |
( |
G4double | value | ) |
|
|
inline |
◆ SetPrimary()
◆ SetTarget()
The documentation for this class was generated from the following files: