|
HerdSoftware
0.4.0
|
Description of a Monte Carlo primary particle. More...
#include <dataobjects/MCPrimaryParticle.h>
Public Member Functions | |
| MCPrimaryParticle () | |
| Default constructor. More... | |
| MCPrimaryParticle (Point position, Momentum momentum) | |
| Construct a new MCPrimaryParticle object. More... | |
| MCPrimaryParticle (float initialTime, int pdgCode, Point position, Momentum momentum) | |
| Construct a new MCPrimaryParticle object. More... | |
| ~MCPrimaryParticle () override=default | |
| Virtual destructor More... | |
| bool | HadronicInelasticInteractionIsPresent () const |
| Return true if the first hadronic interaction is present. More... | |
| const MCInteraction & | HadronicInelasticInteraction () const |
| Return the first hadronic interaction. More... | |
| void | SetHadronicInelasticInteraction (MCInteraction interaction) |
| Set the first hadronic object. More... | |
| void | SetNoHadronicInelasticInteraction () |
| Indicate that the first hadronic interaction is not found. More... | |
| bool | PrimaryDisappearanceIsPresent () const |
| Return true if the primary disappearance is present. More... | |
| const MCInteraction & | PrimaryDisappearance () const |
| Return the primary disappearance. More... | |
| void | SetPrimaryDisappearance (MCInteraction interaction) |
| Set the first hadronic object. More... | |
| void | SetNoPrimaryDisappearance () |
| Indicate that the primary disappearance is not found. More... | |
| bool | HadronicQuasiElasticInteractionIsPresent () const |
| Return true if hadronic quasi-elastic interactions are present. More... | |
| const std::vector< MCInteraction > & | HadronicQuasiElasticInteractions () const |
| Return a list of hadronic quasi-elastic interaction. More... | |
| void | AddHadronicQuasiElasticInteraction (MCInteraction interaction) |
| Set the first hadronic object. More... | |
| void | SetNHadronicQuasiElasticInteractions (size_t nInteractions) |
| Indicate that the first hadronic interaction is not found. More... | |
Public Member Functions inherited from Herd::MCParticle | |
| MCParticle () | |
| Default constructor. More... | |
| MCParticle (Point position, Momentum momentum) | |
| Construct a new MCParticle object. More... | |
| MCParticle (float initialTime, int pdgCode, Point position, Momentum momentum) | |
| Construct a new MCParticle object. More... | |
| virtual | ~MCParticle ()=default |
| Virtual destructor More... | |
| float | InitialTime () const |
| Get the time of generation of the particle. More... | |
| int | PDGCode () const |
| Get the PDG code of the particle. More... | |
| Point | InitialPosition () const |
| Get the generation position of the particle. More... | |
| Vec3D | InitialMomentum () const |
| Get the generation momentum of the particle. More... | |
| Line | InitialTrajectory () const |
| Get the generation trajectory of the particle. More... | |
Private Attributes | |
| std::vector< MCInteraction > | m_hadronicInelasticInteraction |
| First hadronic inelastic interaction of the particle. More... | |
| std::vector< MCInteraction > | m_hadronicQuasiElasticInteractions |
| Vector with hadronic quasi-elastic interactions of the particle. More... | |
| std::vector< MCInteraction > | m_primaryDisappearence |
| Primary disappearence event. More... | |
Description of a Monte Carlo primary particle.
|
inline |
Default constructor.
Construct a new MCPrimaryParticle object.
|
inline |
Construct a new MCPrimaryParticle object.
|
overridedefault |
Virtual destructor
| void Herd::MCPrimaryParticle::AddHadronicQuasiElasticInteraction | ( | MCInteraction | interaction | ) |
Set the first hadronic object.
| interaction | the first hadronic interaction. |
| const MCInteraction & Herd::MCPrimaryParticle::HadronicInelasticInteraction | ( | ) | const |
Return the first hadronic interaction.
If the hadronic interaction information is not available a std::logic_error is thrown. Please check HadronicInelasticInteractionIsPresent before using this function.
| bool Herd::MCPrimaryParticle::HadronicInelasticInteractionIsPresent | ( | ) | const |
Return true if the first hadronic interaction is present.
| bool Herd::MCPrimaryParticle::HadronicQuasiElasticInteractionIsPresent | ( | ) | const |
Return true if hadronic quasi-elastic interactions are present.
| const std::vector< MCInteraction > & Herd::MCPrimaryParticle::HadronicQuasiElasticInteractions | ( | ) | const |
Return a list of hadronic quasi-elastic interaction.
If the hadronic interaction information is not available a std::logic_error is thrown. Please check HadronicQuasiElasticInteractionIsPresent before using this function.
| const MCInteraction & Herd::MCPrimaryParticle::PrimaryDisappearance | ( | ) | const |
Return the primary disappearance.
If the primary disappearance information is not available a std::logic_error is thrown. Please check PrimaryDisappearanceIsPresent before using this function.
| bool Herd::MCPrimaryParticle::PrimaryDisappearanceIsPresent | ( | ) | const |
Return true if the primary disappearance is present.
| void Herd::MCPrimaryParticle::SetHadronicInelasticInteraction | ( | MCInteraction | interaction | ) |
Set the first hadronic object.
| interaction | the first hadronic interaction. |
| void Herd::MCPrimaryParticle::SetNHadronicQuasiElasticInteractions | ( | size_t | nInteractions | ) |
Indicate that the first hadronic interaction is not found.
| void Herd::MCPrimaryParticle::SetNoHadronicInelasticInteraction | ( | ) |
Indicate that the first hadronic interaction is not found.
| void Herd::MCPrimaryParticle::SetNoPrimaryDisappearance | ( | ) |
Indicate that the primary disappearance is not found.
| void Herd::MCPrimaryParticle::SetPrimaryDisappearance | ( | MCInteraction | interaction | ) |
Set the first hadronic object.
| interaction | the primary disappearance. |
|
private |
First hadronic inelastic interaction of the particle.
|
private |
Vector with hadronic quasi-elastic interactions of the particle.
|
private |
Primary disappearence event.
1.8.17