Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4MolecularDissociationChannel Class Reference

#include <G4MolecularDissociationChannel.hh>

Public Types

using Product = const G4MolecularConfiguration
 
using ProductList = std::vector< Product * >
 

Public Member Functions

 G4MolecularDissociationChannel ()
 
 G4MolecularDissociationChannel (const G4String &)
 
 ~G4MolecularDissociationChannel ()=default
 
 G4MolecularDissociationChannel (const G4MolecularDissociationChannel &)=default
 
G4MolecularDissociationChanneloperator= (const G4MolecularDissociationChannel &right)=default
 
void AddProduct (Product *, G4double displacement=0.)
 
void SetName (const G4String &)
 
void SetEnergy (G4double)
 
void SetProbability (G4double)
 
void SetDecayTime (G4double)
 
void SetRMSMotherMoleculeDisplacement (G4double)
 
void SetDisplacementType (DisplacementType)
 
const G4StringGetName () const
 
G4int GetNbProducts () const
 
ProductGetProduct (int) const
 
const std::vector< G4double > & GetRMSProductsDisplacement () const
 
G4double GetEnergy () const
 
G4double GetProbability () const
 
G4double GetDecayTime () const
 
G4double GetRMSMotherMoleculeDisplacement () const
 
DisplacementType GetDisplacementType () const
 
G4double GetRMSRadialDisplacementOfProduct (Product *)
 

Detailed Description

Definition at line 63 of file G4MolecularDissociationChannel.hh.

Member Typedef Documentation

◆ Product

◆ ProductList

Constructor & Destructor Documentation

◆ G4MolecularDissociationChannel() [1/3]

G4MolecularDissociationChannel::G4MolecularDissociationChannel ( )

Definition at line 49 of file G4MolecularDissociationChannel.cc.

50 : fDisplacementType(G4VMolecularDissociationDisplacer::NoDisplacement)
51 , fReleasedEnergy(0.)
52 , fProbability(0.)
53 , fDecayTime(0.)
54 , fRMSMotherMoleculeDisplacement(0.)
55{
56}

◆ G4MolecularDissociationChannel() [2/3]

G4MolecularDissociationChannel::G4MolecularDissociationChannel ( const G4String aName)
explicit

Definition at line 41 of file G4MolecularDissociationChannel.cc.

◆ ~G4MolecularDissociationChannel()

G4MolecularDissociationChannel::~G4MolecularDissociationChannel ( )
default

◆ G4MolecularDissociationChannel() [3/3]

G4MolecularDissociationChannel::G4MolecularDissociationChannel ( const G4MolecularDissociationChannel )
default

Member Function Documentation

◆ AddProduct()

void G4MolecularDissociationChannel::AddProduct ( Product pProduct,
G4double  displacement = 0. 
)

◆ GetDecayTime()

G4double G4MolecularDissociationChannel::GetDecayTime ( ) const
inline

Definition at line 181 of file G4MolecularDissociationChannel.hh.

182{
183 return fDecayTime;
184}

◆ GetDisplacementType()

DisplacementType G4MolecularDissociationChannel::GetDisplacementType ( ) const
inline

◆ GetEnergy()

G4double G4MolecularDissociationChannel::GetEnergy ( ) const
inline

Definition at line 167 of file G4MolecularDissociationChannel.hh.

168{
169 return fReleasedEnergy;
170}

Referenced by G4DNAMolecularDissociation::DecayIt().

◆ GetName()

const G4String & G4MolecularDissociationChannel::GetName ( ) const
inline

◆ GetNbProducts()

G4int G4MolecularDissociationChannel::GetNbProducts ( ) const

Definition at line 69 of file G4MolecularDissociationChannel.cc.

70{
71 return fProductsVector.size();
72}

Referenced by G4DNAMolecularDissociation::DecayIt(), and G4DNAWaterDissociationDisplacer::GetProductsDisplacement().

◆ GetProbability()

G4double G4MolecularDissociationChannel::GetProbability ( ) const
inline

Definition at line 174 of file G4MolecularDissociationChannel.hh.

175{
176 return fProbability;
177}

Referenced by G4DNAMolecularDissociation::DecayIt().

◆ GetProduct()

G4MolecularDissociationChannel::Product * G4MolecularDissociationChannel::GetProduct ( int  index) const

Definition at line 76 of file G4MolecularDissociationChannel.cc.

77{
78 return fProductsVector[index];
79}

Referenced by G4DNAMolecularDissociation::DecayIt(), and G4DNAWaterDissociationDisplacer::GetProductsDisplacement().

◆ GetRMSMotherMoleculeDisplacement()

G4double G4MolecularDissociationChannel::GetRMSMotherMoleculeDisplacement ( ) const
inline

Definition at line 188 of file G4MolecularDissociationChannel.hh.

190{
191 return fRMSMotherMoleculeDisplacement;
192}

◆ GetRMSProductsDisplacement()

const std::vector< G4double > & G4MolecularDissociationChannel::GetRMSProductsDisplacement ( ) const
inline

Definition at line 160 of file G4MolecularDissociationChannel.hh.

161{
162 return fRMSProductsDisplacementVector;
163}

◆ GetRMSRadialDisplacementOfProduct()

G4double G4MolecularDissociationChannel::GetRMSRadialDisplacementOfProduct ( Product pProduct)

Definition at line 84 of file G4MolecularDissociationChannel.cc.

85{
86 if (fProductsVector.empty())
87 {
88 return -1.;
89 }
90
91 auto it = std::find_if(fProductsVector.begin(), fProductsVector.end(),
92 [pProduct](Product* _pProduct) {
93 return _pProduct == pProduct;
94 });
95
96 if (it == fProductsVector.end())
97 {
98 return -1.;
99 }
100 auto index = std::distance(fProductsVector.begin(), it);
101 return fRMSProductsDisplacementVector[index];
102}
const G4MolecularConfiguration Product

◆ operator=()

G4MolecularDissociationChannel & G4MolecularDissociationChannel::operator= ( const G4MolecularDissociationChannel right)
default

◆ SetDecayTime()

void G4MolecularDissociationChannel::SetDecayTime ( G4double  value)
inline

Definition at line 136 of file G4MolecularDissociationChannel.hh.

137{
138
139 fDecayTime = value;
140}

◆ SetDisplacementType()

void G4MolecularDissociationChannel::SetDisplacementType ( DisplacementType  aDisplacementType)
inline

◆ SetEnergy()

◆ SetName()

void G4MolecularDissociationChannel::SetName ( const G4String value)
inline

Definition at line 115 of file G4MolecularDissociationChannel.hh.

116{
117 fName = value;
118}

◆ SetProbability()

◆ SetRMSMotherMoleculeDisplacement()

void G4MolecularDissociationChannel::SetRMSMotherMoleculeDisplacement ( G4double  value)
inline

Definition at line 144 of file G4MolecularDissociationChannel.hh.

146{
147 fRMSMotherMoleculeDisplacement = value;
148}

The documentation for this class was generated from the following files: