#include <G4ReactionProduct.hh>
Definition at line 53 of file G4ReactionProduct.hh.
G4ReactionProduct::G4ReactionProduct |
( |
| ) |
|
Definition at line 36 of file G4ReactionProduct.cc.
37 theParticleDefinition(NULL),
39 hasInitialStateParton(
false),
void SetPositionInNucleus(G4double x, G4double y, G4double z)
void SetMomentum(const G4double x, const G4double y, const G4double z)
Definition at line 53 of file G4ReactionProduct.cc.
59 hasInitialStateParton =
false;
60 theParticleDefinition = aParticleDefinition;
64 (aParticleDefinition->
GetPDGEncoding()<0) ? timeOfFlight=-1.0 : timeOfFlight=1.0;
void SetPositionInNucleus(G4double x, G4double y, G4double z)
void SetMomentum(const G4double x, const G4double y, const G4double z)
G4int GetPDGEncoding() const
G4double GetPDGMass() const
G4ReactionProduct::~G4ReactionProduct |
( |
| ) |
|
|
inline |
Definition at line 71 of file G4ReactionProduct.cc.
74 theParticleDefinition = right.theParticleDefinition;
75 positionInNucleus = right.positionInNucleus;
76 formationTime = right.formationTime;
77 hasInitialStateParton = right.hasInitialStateParton;
78 momentum = right.momentum;
80 totalEnergy = right.totalEnergy;
81 kineticEnergy = right.kineticEnergy;
82 timeOfFlight = right.timeOfFlight;
84 theCreatorModel = right.theCreatorModel;
85 NewlyAdded = right.NewlyAdded;
86 MayBeKilled = right.MayBeKilled;
Definition at line 225 of file G4ReactionProduct.cc.
232 G4double a = std::sqrt( ( px*px + py*py + pz*pz ) * ( tx*tx + ty*ty + tz*tz ) );
236 a = ( tx*px + ty*py + tz*pz ) / a;
237 if( std::fabs(a) > 1.0 ) { a<0.0 ? a=-1.0 : a=1.0; }
238 return std::acos( a );
G4int G4ReactionProduct::GetCreatorModel |
( |
| ) |
const |
|
inline |
G4double G4ReactionProduct::GetFormationTime |
( |
| ) |
const |
|
inline |
G4double G4ReactionProduct::GetKineticEnergy |
( |
| ) |
const |
|
inline |
G4double G4ReactionProduct::GetMass |
( |
| ) |
const |
|
inline |
G4bool G4ReactionProduct::GetMayBeKilled |
( |
| ) |
const |
|
inline |
G4bool G4ReactionProduct::GetNewlyAdded |
( |
| ) |
const |
|
inline |
G4int G4ReactionProduct::GetSide |
( |
| ) |
const |
|
inline |
G4double G4ReactionProduct::GetTOF |
( |
| ) |
const |
|
inline |
G4double G4ReactionProduct::GetTotalMomentum |
( |
| ) |
const |
|
inline |
Definition at line 126 of file G4ReactionProduct.hh.
127 {
return std::sqrt(std::abs(kineticEnergy*(totalEnergy+mass))); }
G4double G4ReactionProduct::GetXPositionInNucleus |
( |
| ) |
const |
|
inline |
G4double G4ReactionProduct::GetYPositionInNucleus |
( |
| ) |
const |
|
inline |
G4double G4ReactionProduct::GetZPositionInNucleus |
( |
| ) |
const |
|
inline |
void G4ReactionProduct::HasInitialStateParton |
( |
G4bool |
aFlag | ) |
|
|
inline |
G4bool G4ReactionProduct::HasInitialStateParton |
( |
| ) |
const |
|
inline |
Definition at line 206 of file G4ReactionProduct.cc.
213 G4double a = ( (p1x*p2x+p1y*p2y+p1z*p2z)/(p2.totalEnergy+p2.mass) -
214 p1.totalEnergy ) / p2.mass;
void SetMomentum(const G4double x, const G4double y, const G4double z)
void SetMass(const G4double mas)
void SetTotalEnergy(const G4double en)
void G4ReactionProduct::operator delete |
( |
void * |
aReactionProduct | ) |
|
|
inline |
Definition at line 91 of file G4ReactionProduct.hh.
G4DLLIMPORT G4ThreadLocal G4Allocator< G4ReactionProduct > * aRPAllocator
void* G4ReactionProduct::operator new |
( |
size_t |
| ) |
|
|
inline |
Definition at line 82 of file G4ReactionProduct.hh.
G4DLLIMPORT G4ThreadLocal G4Allocator< G4ReactionProduct > * aRPAllocator
Definition at line 89 of file G4ReactionProduct.cc.
92 if(
this != &right ) {
93 theParticleDefinition = right.theParticleDefinition;
94 positionInNucleus = right.positionInNucleus;
95 formationTime = right.formationTime;
96 hasInitialStateParton = right.hasInitialStateParton;
97 momentum = right.momentum;
99 totalEnergy = right.totalEnergy;
100 kineticEnergy = right.kineticEnergy;
101 timeOfFlight = right.timeOfFlight;
103 theCreatorModel = right.theCreatorModel;
104 NewlyAdded = right.NewlyAdded;
105 MayBeKilled = right.MayBeKilled;
Definition at line 110 of file G4ReactionProduct.cc.
116 hasInitialStateParton =
false;
123 theCreatorModel = -1;
void SetPositionInNucleus(G4double x, G4double y, G4double z)
G4double GetKineticEnergy() const
G4double GetTotalEnergy() const
G4int GetPDGEncoding() const
G4ParticleDefinition * GetDefinition() const
G4double GetPDGMass() const
G4ThreeVector GetMomentum() const
Definition at line 129 of file G4ReactionProduct.cc.
135 hasInitialStateParton =
false;
142 theCreatorModel = -1;
void SetPositionInNucleus(G4double x, G4double y, G4double z)
G4int GetPDGEncoding() const
const G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
const G4LorentzVector & Get4Momentum() const
G4double GetPDGMass() const
void G4ReactionProduct::SetCreatorModel |
( |
const G4int |
mod | ) |
|
|
inline |
Definition at line 160 of file G4ReactionProduct.cc.
163 theParticleDefinition = aParticleDefinition;
168 timeOfFlight=-1.0 : timeOfFlight=1.0;
G4int GetPDGEncoding() const
G4double GetPDGMass() const
Definition at line 148 of file G4ReactionProduct.cc.
156 SetMomentum( aMomentum * (std::sqrt(aKineticEnergy*aKineticEnergy +
157 2*aKineticEnergy*
GetMass())/pp) );
void SetKineticEnergy(const G4double en)
void SetMomentum(const G4double x, const G4double y, const G4double z)
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
G4double GetKineticEnergy() const
G4ThreeVector GetMomentum() const
void G4ReactionProduct::SetKineticEnergy |
( |
const G4double |
en | ) |
|
|
inline |
void G4ReactionProduct::SetMayBeKilled |
( |
const G4bool |
f | ) |
|
|
inline |
void G4ReactionProduct::SetNewlyAdded |
( |
const G4bool |
f | ) |
|
|
inline |
void G4ReactionProduct::SetSide |
( |
const G4int |
sid | ) |
|
|
inline |
void G4ReactionProduct::SetZero |
( |
| ) |
|
Definition at line 191 of file G4ReactionProduct.cc.
199 theCreatorModel = -1;
203 hasInitialStateParton =
false;
void SetPositionInNucleus(G4double x, G4double y, G4double z)
void SetMomentum(const G4double x, const G4double y, const G4double z)
Definition at line 61 of file G4ReactionProduct.hh.
G4double G4ParticleHPJENDLHEData::G4double result
void SetMomentum(const G4double x, const G4double y, const G4double z)
void SetMass(const G4double mas)
void SetTotalEnergy(const G4double en)
G4ThreeVector GetMomentum() const
Definition at line 242 of file G4ReactionProduct.cc.
245 G4double totEnergy = p1.totalEnergy + p2.totalEnergy;
246 G4double x = p1.momentum.
x() + p2.momentum.
x();
247 G4double y = p1.momentum.
y() + p2.momentum.
y();
248 G4double z = p1.momentum.
z() + p2.momentum.
z();
249 G4double newMass = totEnergy*totEnergy - ( x*x + y*y + z*z );
251 newMass = -1. * std::sqrt( -newMass );
253 newMass = std::sqrt( newMass );
G4double G4ParticleHPJENDLHEData::G4double result
void SetPositionInNucleus(G4double x, G4double y, G4double z)
void HasInitialStateParton(G4bool aFlag)
void SetMomentum(const G4double x, const G4double y, const G4double z)
void SetMass(const G4double mas)
void SetTotalEnergy(const G4double en)
void SetFormationTime(G4double aTime)
Definition at line 264 of file G4ReactionProduct.cc.
267 G4double totEnergy = p1.totalEnergy - p2.totalEnergy;
268 G4double x = p1.momentum.
x() - p2.momentum.
x();
269 G4double y = p1.momentum.
y() - p2.momentum.
y();
270 G4double z = p1.momentum.
z() - p2.momentum.
z();
271 G4double newMass = totEnergy*totEnergy - ( x*x + y*y + z*z );
273 newMass = -1. * std::sqrt( -newMass );
275 newMass = std::sqrt( newMass );
G4double G4ParticleHPJENDLHEData::G4double result
void SetPositionInNucleus(G4double x, G4double y, G4double z)
void HasInitialStateParton(G4bool aFlag)
void SetMomentum(const G4double x, const G4double y, const G4double z)
void SetMass(const G4double mas)
void SetTotalEnergy(const G4double en)
void SetFormationTime(G4double aTime)
The documentation for this class was generated from the following files: