Geant4  10.02.p03
G4PreCompoundFragmentVector Class Reference

#include <G4PreCompoundFragmentVector.hh>

Collaboration diagram for G4PreCompoundFragmentVector:

Public Member Functions

 G4PreCompoundFragmentVector (pcfvector *avector)
 
 ~G4PreCompoundFragmentVector ()
 
void SetVector (pcfvector *avector)
 
void SetOPTxs (G4int)
 
void UseSICB (G4bool)
 
G4double CalculateProbabilities (const G4Fragment &aFragment)
 
G4VPreCompoundFragmentChooseFragment ()
 

Private Member Functions

 G4PreCompoundFragmentVector (const G4PreCompoundFragmentVector &right)
 
const G4PreCompoundFragmentVectoroperator= (const G4PreCompoundFragmentVector &right)
 
G4bool operator== (const G4PreCompoundFragmentVector &right) const
 
G4bool operator!= (const G4PreCompoundFragmentVector &right) const
 

Private Attributes

pcfvectortheChannels
 
G4DataVector probabilities
 
G4int nChannels
 

Detailed Description

Definition at line 52 of file G4PreCompoundFragmentVector.hh.

Constructor & Destructor Documentation

◆ G4PreCompoundFragmentVector() [1/2]

G4PreCompoundFragmentVector::G4PreCompoundFragmentVector ( pcfvector avector)

Definition at line 38 of file G4PreCompoundFragmentVector.cc.

Here is the call graph for this function:

◆ ~G4PreCompoundFragmentVector()

G4PreCompoundFragmentVector::~G4PreCompoundFragmentVector ( )

Definition at line 44 of file G4PreCompoundFragmentVector.cc.

45 {}

◆ G4PreCompoundFragmentVector() [2/2]

G4PreCompoundFragmentVector::G4PreCompoundFragmentVector ( const G4PreCompoundFragmentVector right)
private

Member Function Documentation

◆ CalculateProbabilities()

G4double G4PreCompoundFragmentVector::CalculateProbabilities ( const G4Fragment aFragment)
inline

Definition at line 86 of file G4PreCompoundFragmentVector.hh.

87 {
88  //G4cout << "## G4PreCompoundFragmentVector::CalculateProbabilities" << G4endl;
89  G4double probtot = 0.0;
90  G4double prob;
91  for (G4int i=0; i< nChannels; ++i) {
92  (*theChannels)[i]->Initialize(aFragment);
93  prob = 0.0;
94  if ((*theChannels)[i]->IsItPossible(aFragment)) {
95  prob = (*theChannels)[i]->CalcEmissionProbability(aFragment);
96  }
97  probtot += prob;
98  probabilities[i] = probtot;
99  //G4cout<<" prob= "<<prob<<" for "<<(*theChannels)[i]->GetName()<<G4endl;
100  }
101  return probtot;
102 }
int G4int
Definition: G4Types.hh:78
double G4double
Definition: G4Types.hh:76
Here is the caller graph for this function:

◆ ChooseFragment()

G4VPreCompoundFragment * G4PreCompoundFragmentVector::ChooseFragment ( )
inline

Definition at line 104 of file G4PreCompoundFragmentVector.hh.

105 {
107  G4int i=0;
108  for (; i<nChannels; ++i) {
109  if(x <= probabilities[i]) { break; }
110  }
111  return (*theChannels)[i];
112 }
int G4int
Definition: G4Types.hh:78
#define G4UniformRand()
Definition: Randomize.hh:97
double G4double
Definition: G4Types.hh:76
Here is the caller graph for this function:

◆ operator!=()

G4bool G4PreCompoundFragmentVector::operator!= ( const G4PreCompoundFragmentVector right) const
private

◆ operator=()

const G4PreCompoundFragmentVector& G4PreCompoundFragmentVector::operator= ( const G4PreCompoundFragmentVector right)
private

◆ operator==()

G4bool G4PreCompoundFragmentVector::operator== ( const G4PreCompoundFragmentVector right) const
private

◆ SetOPTxs()

void G4PreCompoundFragmentVector::SetOPTxs ( G4int  opt)

Definition at line 57 of file G4PreCompoundFragmentVector.cc.

58 {
59  for (G4int i=0; i< nChannels; ++i) {
60  (*theChannels)[i]->SetOPTxs(opt);
61  }
62 }
int G4int
Definition: G4Types.hh:78
Here is the caller graph for this function:

◆ SetVector()

void G4PreCompoundFragmentVector::SetVector ( pcfvector avector)

Definition at line 47 of file G4PreCompoundFragmentVector.cc.

Here is the caller graph for this function:

◆ UseSICB()

void G4PreCompoundFragmentVector::UseSICB ( G4bool  use)

Definition at line 65 of file G4PreCompoundFragmentVector.cc.

66 {
67  for (G4int i=0; i< nChannels; ++i) {
68  (*theChannels)[i]->UseSICB(use);
69  }
70 }
int G4int
Definition: G4Types.hh:78
Here is the caller graph for this function:

Member Data Documentation

◆ nChannels

G4int G4PreCompoundFragmentVector::nChannels
private

Definition at line 81 of file G4PreCompoundFragmentVector.hh.

◆ probabilities

G4DataVector G4PreCompoundFragmentVector::probabilities
private

Definition at line 79 of file G4PreCompoundFragmentVector.hh.

◆ theChannels

pcfvector* G4PreCompoundFragmentVector::theChannels
private

Definition at line 78 of file G4PreCompoundFragmentVector.hh.


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