63 Spectrum(
double Emin,
double Emax,
int NumberOfbins,
bool log =
false);
74 Spectrum(vector<double> LowerEnergy,
bool check =
true);
86 Spectrum(
double *LowerEnergy,
int NumberOfBins,
bool check =
true);
99 Spectrum(
string BinningFileName,
bool check =
true);
113 Spectrum(
int NumberOfBins,
double a,
double b,
double c,
bool check =
true);
202 void AddEnergy(
double Energy,
double Intensity);
222 void Dump(
string filename =
"Spectrum.dat",
bool WithEnergies =
false);
246 void CreateBins(
double EnergyMin,
double EnergyMax,
int NumberOfbins);
249 bool IsDouble(
const std::string &s);
250 void ReadENSDFFile(
int Adaughter, vector <string> &Buffer,
int &NumOfLine);
251 bool FindFirstLinesOfDecayModeCard(vector<string>
const &Buffer,
char Z1,
char Z2, vector<int> &BeginRecordLine,
string DecayMode,
string DecayModeBis =
"");
Header file for Material class.
A Material constituing a Cell.
Definition Material.hxx:83
Base class to define spectra.
Definition Spectrum.hxx:50
double GetMiddleEnergy(int i)
Return the centered energy of the bin i.
Definition Spectrum.cxx:291
int GetBinNumber(double Energy)
Return the Bin number corresponding on the Energy.
Definition Spectrum.cxx:310
Spectrum * NewSpectrumNormalized(Spectrum *UnNormalized, double Norm)
multiply a UnNormalized spectrum by Norm and put it in a new NeutronSpectrum
Definition Spectrum.cxx:511
double GetTotalBecquerel()
Definition Spectrum.hxx:209
double GetBin(int i)
Definition Spectrum.hxx:152
bool IsTheSameSpectrum(Spectrum *SameOrNot)
True if two spectra are completly identical.
Definition Spectrum.cxx:701
Spectrum * ConvertRayToGaussian(Spectrum *Spect_Raie, double FWHM)
Convert a spectrum of discret rays in to several gaussian of the same Full width at half maximum (FWH...
Definition Spectrum.cxx:750
void AddSpectrum(Spectrum *aSpectrum)
Add aSpectrum to the current one.
Definition Spectrum.cxx:445
void SetBin(int i, double intensity)
Definition Spectrum.hxx:134
bool IsGamma()
Definition Spectrum.hxx:188
void SetName(string Name)
Definition Spectrum.hxx:126
void Contract(int ContractionFactor)
Contract the Spectrum 's binning by a factor Contractionfactor.
bool IsNeutron()
Definition Spectrum.hxx:184
string fName
isotope Name of the neutron spectrum
Definition Spectrum.hxx:240
int GetA()
Definition Spectrum.hxx:144
bool fIsGamma
true for Gamma Spectrum
Definition Spectrum.hxx:243
double fTotalParticlesEmitted
Definition Spectrum.hxx:235
void RemoveSpectrum(Spectrum *aSpectrum)
Remove aSpectrum to the current one.
Definition Spectrum.cxx:463
bool fIsBeta
true for Beta Spectrum
Definition Spectrum.hxx:242
int GetZ()
Definition Spectrum.hxx:140
bool IsDouble(const std::string &s)
true is a string can be converted in a double
Definition Spectrum.cxx:611
string GetName()
Definition Spectrum.hxx:148
void SetNumberOfbins(int nbins)
Definition Spectrum.hxx:130
void Dump(string filename="Spectrum.dat", bool WithEnergies=false)
Dump the Neutron Spectrum histogram.
Definition Spectrum.cxx:552
int fNumberOfbins
Total number of bins.
Definition Spectrum.hxx:232
double GetLowerEnergy(int i)
Definition Spectrum.hxx:164
bool IsEmpty()
True if all intensities are 0.
Definition Spectrum.cxx:414
void Initialize()
Set all Intensities to 0.
Definition Spectrum.cxx:222
bool IsLog()
Definition Spectrum.hxx:176
int GetParticleType()
get the particle type of this spectrum 1=n 2=g 3=e-
Definition Spectrum.cxx:529
bool fIsAlpha
true for Alpha Spectrum
Definition Spectrum.hxx:241
void FillFromFile(string filename)
Definition Spectrum.cxx:728
void Fill(Material *material, double volume)
Fill a Spectrum for a material.
Definition Spectrum.cxx:356
double * GetLowerEnergy()
Definition Spectrum.hxx:160
bool FindFirstLinesOfDecayModeCard(vector< string > const &Buffer, char Z1, char Z2, vector< int > &BeginRecordLine, string DecayMode, string DecayModeBis="")
Definition Spectrum.cxx:663
int fZ
Z of the mother nucleus.
Definition Spectrum.hxx:238
double GetEnergyBinWidth(int i)
Return the energy width of the bin i ie fLowerEnergy[i+1]-fLowerEnergy[i].
Definition Spectrum.cxx:346
void ReadENSDFFile(int Adaughter, vector< string > &Buffer, int &NumOfLine)
Read each line of the file and store them in buffer.
Definition Spectrum.cxx:618
double fTotalNumberOfParticlesPerDecay
Definition Spectrum.hxx:236
void CheckBin()
Check if Energy definition is correct (monotically increasing)
Definition Spectrum.cxx:271
int GetNumberOfbins()
Definition Spectrum.hxx:172
bool fIsLog
true for Log bining
Definition Spectrum.hxx:231
void ElementSymbol(int Zd, char &Z1, char &Z2)
Convert the Z of a nucleus in its symbol.
Definition Spectrum.cxx:593
void SetA(int A)
Definition Spectrum.hxx:122
double * fLowerEnergy
array of lower bounds of each bin (except the last value)
Definition Spectrum.hxx:234
bool fIsNeutron
true for neutron Spectrum
Definition Spectrum.hxx:244
void CreateBins(double EnergyMin, double EnergyMax, int NumberOfbins)
generates the bins
Definition Spectrum.cxx:246
bool IsAlpha()
Definition Spectrum.hxx:180
double * fHistogram
The histogram.
Definition Spectrum.hxx:233
void AddEnergy(double Energy, double Intensity)
Add Intensity at the bin corresponding to Energy.
Definition Spectrum.cxx:280
bool GotTheSameBinning(Spectrum *aSpectrum)
True if this and aSpectrum have the same energy binning.
Definition Spectrum.cxx:426
bool IsBeta()
Definition Spectrum.hxx:192
double TotalActivity()
Sum of particules emmited at all energies.
Definition Spectrum.cxx:796
~Spectrum()
destructor
Definition Spectrum.cxx:216
double * GetBin()
Definition Spectrum.hxx:156
void Normalize(double Multiplicateur)
multiply Intensity by Multiplicateur
Definition Spectrum.cxx:481
Spectrum * NewSpectrumNormalized2(Spectrum *UnNormalized, double Norm)
presque pareil mais pas tout a fait (BBBBBUUUUUG)
Definition Spectrum.cxx:494
int fA
A of the mother nucleus.
Definition Spectrum.hxx:239
double fTotalBecquerel
Definition Spectrum.hxx:237
double GetTotalNumberOfParticlesPerDecay()
Definition Spectrum.hxx:205
void SetZ(int Z)
Definition Spectrum.hxx:118
the namespace of the Standard C++