Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4MolecularDissociationChannel Class Reference

#include <G4MolecularDissociationChannel.hh>

Public Member Functions

 G4MolecularDissociationChannel ()
 
 G4MolecularDissociationChannel (G4String)
 
 ~G4MolecularDissociationChannel ()
 
 G4MolecularDissociationChannel (const G4MolecularDissociationChannel &)
 
G4MolecularDissociationChanneloperator= (const G4MolecularDissociationChannel &right)
 
void AddProduct (const G4Molecule *, G4double=0)
 
void AddProduct (G4MolecularConfiguration *, G4double=0)
 
void AddProduct (const G4String &molecule, 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
 
G4MolecularConfigurationGetProduct (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 (const G4Molecule *)
 

Detailed Description

Definition at line 73 of file G4MolecularDissociationChannel.hh.

Constructor & Destructor Documentation

G4MolecularDissociationChannel::G4MolecularDissociationChannel ( )

Definition at line 71 of file G4MolecularDissociationChannel.cc.

72 {
73  // pointer
74  fProductsVector = 0;
75  // double
76  fReleasedEnergy = 0;
77  fDecayTime = 0;
78  fProbability = 0;
79  fRMSMotherMoleculeDisplacement = 0;
80  fDisplacementType = 0; // meaning no displacement cf G4VMolecularDisplacer
81 }
G4MolecularDissociationChannel::G4MolecularDissociationChannel ( G4String  aName)

Definition at line 56 of file G4MolecularDissociationChannel.cc.

56  :
57  fName(aName)
58 {
59  //pointer
60  fProductsVector = 0;
61  //double
62  fDecayTime = 0;
63  fProbability = 0;
64  fReleasedEnergy = 0;
65  fRMSMotherMoleculeDisplacement = 0;
66  fDisplacementType = 0; // meaning no displacement cf G4VMolecularDisplacer
67 }
G4MolecularDissociationChannel::~G4MolecularDissociationChannel ( )

Definition at line 85 of file G4MolecularDissociationChannel.cc.

86 {
87  if(fProductsVector)
88  {
89  fProductsVector->clear();
90  delete fProductsVector;
91  }
92 }
G4MolecularDissociationChannel::G4MolecularDissociationChannel ( const G4MolecularDissociationChannel right)

Definition at line 97 of file G4MolecularDissociationChannel.cc.

98 {
99  *this = right;
100 }

Member Function Documentation

void G4MolecularDissociationChannel::AddProduct ( const G4Molecule molecule,
G4double  displacement = 0 
)

Definition at line 133 of file G4MolecularDissociationChannel.cc.

135 {
136  if(!fProductsVector) fProductsVector = new vector<G4MolecularConfiguration*>;
137 
138  fProductsVector->push_back(molecule->GetMolecularConfiguration());
139  fRMSProductsDisplacementVector.push_back(displacement);
140 }
G4MolecularConfiguration * GetMolecularConfiguration() const
Definition: G4Molecule.cc:576

Here is the call graph for this function:

Here is the caller graph for this function:

void G4MolecularDissociationChannel::AddProduct ( G4MolecularConfiguration molecule,
G4double  displacement = 0 
)

Definition at line 145 of file G4MolecularDissociationChannel.cc.

147 {
148  if(!fProductsVector) fProductsVector = new vector<G4MolecularConfiguration*>;
149 
150  fProductsVector->push_back(molecule);
151  fRMSProductsDisplacementVector.push_back(displacement);
152 }
void G4MolecularDissociationChannel::AddProduct ( const G4String molecule,
G4double  displacement = 0 
)

Definition at line 156 of file G4MolecularDissociationChannel.cc.

158 {
159 // if(!fProductsVector) fProductsVector = new vector<const G4Molecule*>;
160  if(!fProductsVector) fProductsVector = new vector<G4MolecularConfiguration*>;
161 
162  fProductsVector->push_back(
163  G4MoleculeTable::Instance()->GetConfiguration(molecule));
164  fRMSProductsDisplacementVector.push_back(displacement);
165 }
static G4MoleculeTable * Instance()

Here is the call graph for this function:

G4double G4MolecularDissociationChannel::GetDecayTime ( ) const
inline

Definition at line 199 of file G4MolecularDissociationChannel.hh.

200 {
201  return fDecayTime;
202 }
DisplacementType G4MolecularDissociationChannel::GetDisplacementType ( ) const
inline

Definition at line 223 of file G4MolecularDissociationChannel.hh.

224 {
225  return fDisplacementType;
226 }

Here is the caller graph for this function:

G4double G4MolecularDissociationChannel::GetEnergy ( ) const
inline

Definition at line 185 of file G4MolecularDissociationChannel.hh.

186 {
187  return fReleasedEnergy;
188 }

Here is the caller graph for this function:

const G4String & G4MolecularDissociationChannel::GetName ( ) const
inline

Definition at line 170 of file G4MolecularDissociationChannel.hh.

171 {
172  return fName;
173 }

Here is the caller graph for this function:

G4int G4MolecularDissociationChannel::GetNbProducts ( ) const

Definition at line 169 of file G4MolecularDissociationChannel.cc.

170 {
171  if(fProductsVector) return fProductsVector->size();
172  return 0;
173 }

Here is the caller graph for this function:

G4double G4MolecularDissociationChannel::GetProbability ( ) const
inline

Definition at line 192 of file G4MolecularDissociationChannel.hh.

193 {
194  return fProbability;
195 }

Here is the caller graph for this function:

G4MolecularConfiguration * G4MolecularDissociationChannel::GetProduct ( int  index) const

Definition at line 177 of file G4MolecularDissociationChannel.cc.

178 {
179  if(fProductsVector)
180  return ((*fProductsVector)[index]);
181 
182  return 0;
183 }

Here is the caller graph for this function:

G4double G4MolecularDissociationChannel::GetRMSMotherMoleculeDisplacement ( ) const
inline

Definition at line 207 of file G4MolecularDissociationChannel.hh.

208 {
209  return fRMSMotherMoleculeDisplacement;
210 }
const std::vector< G4double > & G4MolecularDissociationChannel::GetRMSProductsDisplacement ( ) const
inline

Definition at line 178 of file G4MolecularDissociationChannel.hh.

179 {
180  return fRMSProductsDisplacementVector;
181 }
G4double G4MolecularDissociationChannel::GetRMSRadialDisplacementOfProduct ( const G4Molecule product)

Definition at line 189 of file G4MolecularDissociationChannel.cc.

190 {
191  if(!fProductsVector) return -1.;
192 
193  G4int sz = fProductsVector->size();
195  for(G4int i = 0; i < sz; i++)
196  {
197  if(product->GetMolecularConfiguration() != ((*fProductsVector)[i]))
198  {
199  value = fRMSProductsDisplacementVector[i];
200  }
201  }
202  return value;
203 }
G4MolecularConfiguration * GetMolecularConfiguration() const
Definition: G4Molecule.cc:576
int G4int
Definition: G4Types.hh:78
const XML_Char int const XML_Char * value
Definition: expat.h:331
double G4double
Definition: G4Types.hh:76
#define DBL_MAX
Definition: templates.hh:83

Here is the call graph for this function:

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

Definition at line 105 of file G4MolecularDissociationChannel.cc.

106 {
107  if(&right == this) return *this;
108 
109  // string
110  fName = right.fName;
111  //displacement type
112  fDisplacementType = right.fDisplacementType;
113  // pointer
114  if(right.fProductsVector)
115  {
116 // fProductsVector = new vector<const G4Molecule*>(*(right.fProductsVector));
117  fProductsVector = new vector<G4MolecularConfiguration*>(*(right.fProductsVector));
118  }
119  else fProductsVector = 0;
120 
121  // double
122  fReleasedEnergy = right.fReleasedEnergy;
123  fDecayTime = right.fDecayTime;
124  fProbability = right.fProbability;
125  // vector
126  fRMSMotherMoleculeDisplacement = right.fRMSMotherMoleculeDisplacement;
127  fRMSProductsDisplacementVector = right.fRMSProductsDisplacementVector;
128  return *this;
129 }
void G4MolecularDissociationChannel::SetDecayTime ( G4double  value)
inline

Definition at line 154 of file G4MolecularDissociationChannel.hh.

155 {
156 
157  fDecayTime = value;
158 }
const XML_Char int const XML_Char * value
Definition: expat.h:331
void G4MolecularDissociationChannel::SetDisplacementType ( DisplacementType  aDisplacementType)
inline

Definition at line 215 of file G4MolecularDissociationChannel.hh.

216 {
217  fDisplacementType = aDisplacementType;
218 }

Here is the caller graph for this function:

void G4MolecularDissociationChannel::SetEnergy ( G4double  value)
inline

Definition at line 140 of file G4MolecularDissociationChannel.hh.

141 {
142  fReleasedEnergy = value;
143 }
const XML_Char int const XML_Char * value
Definition: expat.h:331

Here is the caller graph for this function:

void G4MolecularDissociationChannel::SetName ( const G4String value)
inline

Definition at line 133 of file G4MolecularDissociationChannel.hh.

134 {
135  fName = value;
136 }
const XML_Char int const XML_Char * value
Definition: expat.h:331
void G4MolecularDissociationChannel::SetProbability ( G4double  value)
inline

Definition at line 147 of file G4MolecularDissociationChannel.hh.

148 {
149  fProbability = value;
150 }
const XML_Char int const XML_Char * value
Definition: expat.h:331

Here is the caller graph for this function:

void G4MolecularDissociationChannel::SetRMSMotherMoleculeDisplacement ( G4double  value)
inline

Definition at line 163 of file G4MolecularDissociationChannel.hh.

164 {
165  fRMSMotherMoleculeDisplacement = value;
166 }
const XML_Char int const XML_Char * value
Definition: expat.h:331

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