Warning, file /include/Geant4/G4DecayProducts.hh was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034 #ifndef G4DecayProducts_hh
0035 #define G4DecayProducts_hh 1
0036
0037 #include "G4DynamicParticle.hh"
0038 #include "G4ios.hh"
0039 #include "globals.hh"
0040
0041 #include <vector>
0042
0043 class G4DecayProducts
0044 {
0045 public:
0046
0047 G4DecayProducts();
0048 G4DecayProducts(const G4DynamicParticle& aParticle);
0049
0050
0051
0052 G4DecayProducts(const G4DecayProducts& right);
0053 G4DecayProducts& operator=(const G4DecayProducts& right);
0054
0055
0056 ~G4DecayProducts();
0057
0058
0059 inline G4bool operator==(const G4DecayProducts& right) const;
0060 inline G4bool operator!=(const G4DecayProducts& right) const;
0061
0062
0063
0064
0065 inline const G4DynamicParticle* GetParentParticle() const;
0066 void SetParentParticle(const G4DynamicParticle& aParticle);
0067
0068
0069 void Boost(G4double totalEnergy, const G4ThreeVector& momentumDirection);
0070 void Boost(G4double betax, G4double betay, G4double betaz);
0071
0072
0073 G4DynamicParticle* PopProducts();
0074 G4int PushProducts(G4DynamicParticle* aParticle);
0075
0076 G4DynamicParticle* operator[](G4int anIndex) const;
0077
0078 inline G4int entries() const { return numberOfProducts; }
0079
0080
0081 G4bool IsChecked() const;
0082
0083 void DumpInfo() const;
0084
0085 using G4DecayProductVector = std::vector<G4DynamicParticle*>;
0086
0087 private:
0088 G4int numberOfProducts = 0;
0089 G4DynamicParticle* theParentParticle = nullptr;
0090 G4DecayProductVector* theProductVector = nullptr;
0091 };
0092
0093
0094
0095
0096
0097 inline G4bool G4DecayProducts::operator==(const G4DecayProducts& right) const
0098 {
0099 return (this == (G4DecayProducts*)&right);
0100 }
0101
0102 inline G4bool G4DecayProducts::operator!=(const G4DecayProducts& right) const
0103 {
0104 return (this != (G4DecayProducts*)&right);
0105 }
0106
0107 inline const G4DynamicParticle* G4DecayProducts::GetParentParticle() const
0108 {
0109 return theParentParticle;
0110 }
0111
0112 #endif