37 throw G4HadronicException(__FILE__, __LINE__,
"G4StatMFMicroManager::copy_constructor meant to not be accessible");
45 throw G4HadronicException(__FILE__, __LINE__,
"G4StatMFMicroManager::operator= meant to not be accessible");
68 Initialize(theFragment,multiplicity,FreeIntE,SCompNuc);
74 if (!_Partition.empty())
76 std::for_each(_Partition.begin(),_Partition.end(),
81void G4StatMFMicroManager::Initialize(
const G4Fragment & theFragment,
G4int im,
95 _MeanMultiplicity = 0.0;
98 _MeanTemperature = 0.0;
106 G4int FragmentAtomicNumbers[4];
112 FragmentAtomicNumbers[im-1] =
A;
113 for (i = 0; i < (im - 1); i++) FragmentAtomicNumbers[i] = 0;
120 while (MakePartition(im,FragmentAtomicNumbers)) {
124 G4double PartitionProbability = 0.0;
128 _Partition.push_back(aPartition);
130 _WW += PartitionProbability;
131 _MeanMultiplicity += im*PartitionProbability;
132 _MeanTemperature += aPartition->
GetTemperature() * PartitionProbability;
133 if (PartitionProbability > 0.0)
134 _MeanEntropy += PartitionProbability * aPartition->
GetEntropy();
146 G4int tmp = ANumbers[l-1] + ANumbers[k-1];
149 if (ANumbers[l-1] > ANumbers[l] || ANumbers[k-2] > ANumbers[k-1]) {
151 ANumbers[k-1] = tmp - 1;
160 _Normalization = Norm;
162 _MeanMultiplicity /= Norm;
163 _MeanTemperature /= Norm;
164 _MeanEntropy /= Norm;
175 for (std::vector<G4StatMFMicroPartition*>::iterator i = _Partition.begin();
176 i != _Partition.end(); ++i)
178 AccumWeight += (*i)->GetProbability();
179 if (RandNumber < AccumWeight)
180 return (*i)->ChooseZ(A0,Z0,MeanT);
184 "G4StatMFMicroCanonical::ChooseChannel: Couldn't find a channel.");
G4double GetExcitationEnergy() const
G4StatMFMicroManager(const G4Fragment &theFragment, G4int multiplicity, G4double FreeIntE, G4double SCompNuc)
G4bool operator!=(const G4StatMFMicroManager &right) const
void Normalize(G4double Norm)
G4StatMFChannel * ChooseChannel(G4int A0, G4int Z0, G4double MeanT)
G4bool operator==(const G4StatMFMicroManager &right) const
G4double CalcPartitionProbability(G4double U, G4double FreeInternalE0, G4double SCompound)
void SetPartitionFragment(G4int anA)
G4double GetEntropy(void)
G4double GetTemperature(void)