#include <G4CollisionInitialState.hh>
Definition at line 46 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()
G4BCAction * G4CollisionInitialState::GetGenerator |
( |
| ) |
|
|
inline |
◆ GetPrimary()
◆ GetTarget()
◆ GetTargetBaryonNumber()
G4int G4CollisionInitialState::GetTargetBaryonNumber |
( |
| ) |
|
|
inline |
Definition at line 84 of file G4CollisionInitialState.hh.
85 {
87 for(size_t i=0; i<theTs.size(); i++)
88 {
89 result += theTs[i]->GetDefinition()->GetBaryonNumber();
90 }
92 }
◆ GetTargetCharge()
G4int G4CollisionInitialState::GetTargetCharge |
( |
| ) |
|
|
inline |
Definition at line 93 of file G4CollisionInitialState.hh.
94 {
96 for(size_t i=0; i<theTs.size(); i++)
97 {
98 result += theTs[i]->GetDefinition()->GetPDGCharge();
99 }
101 }
◆ 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}
G4DLLIMPORT std::ostream G4cout
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: