39 Spectrum(
double Emin,
double Emax,
int NumberOfbins,
bool log=
false);
50 Spectrum(vector<double> LowerEnergy,
bool check=
true);
62 Spectrum(
double* LowerEnergy,
int NumberOfBins,
bool check=
true);
76 Spectrum(
string BinningFileName,
bool check=
true);
90 Spectrum(
int NumberOfBins,
double a,
double b,
double c,
bool check=
true);
99 void SetBin(
int i,
double intensity) {fHistogram[i]=intensity;}
105 double GetBin(
int i) {
return fHistogram[i];}
110 double GetEnergyBinWidth(
int i);
111 double GetMiddleEnergy(
int i);
112 int GetBinNumber(
double Energy);
119 int GetParticleType();
120 bool GotTheSameBinning(
Spectrum *aSpectrum);
122 bool IsTheSameSpectrum(
Spectrum* SameOrNot);
125 void AddEnergy(
double Energy,
double Intensity);
126 void Contract(
int ContractionFactor);
127 double TotalActivity();
135 void Fill(
Material* material,
double volume);
136 void FillFromFile(
string filename);
137 void Dump(
string filename=
"Spectrum.dat",
bool WithEnergies=
false);
138 void Normalize(
double Multiplicateur);
139 void AddSpectrum(
Spectrum* aSpectrum);
140 void RemoveSpectrum(
Spectrum* aSpectrum);
157 void ElementSymbol(
int Zd,
char& Z1,
char& Z2);
158 void CreateBins(
double EnergyMin,
double EnergyMax,
int NumberOfbins);
159 void CreateBins(vector<double> LowerEnergy);
160 void CreateBins(
double* LowerEnergy );
161 bool IsDouble(
const std::string& s);
162 void ReadENDSFFile(
int Adaughter,vector <string> &Buffer,
int &NumOfLine);
163 bool FindFirstLinesOfDecayModeCard(vector<string>
const& Buffer,
char Z1,
char Z2,vector<int> &BeginRecordLine,
string DecayMode,
string DecayModeBis=
"");
bool IsAlpha()
True if the spectrum is an AlphaSpectrum.
Definition: Spectrum.hxx:115
bool IsBeta()
True if the spectrum is a BetaSpectrum.
Definition: Spectrum.hxx:118
bool IsGamma()
True if the spectrum is a GammaSpectrum.
Definition: Spectrum.hxx:117
void SetNumberOfbins(int nbins)
Set the number of bins.
Definition: Spectrum.hxx:98
int fZ
Z of the mother nucleus.
Definition: Spectrum.hxx:150
double * fHistogram
The histogram.
Definition: Spectrum.hxx:148
int GetA()
Return the A of the mother of the nuclei which emit Neutron.
Definition: Spectrum.hxx:103
int GetZ()
Return the Z of the mother of the nuclei which emit Neutron.
Definition: Spectrum.hxx:102
bool IsLog()
True if the binning is logaritmic.
Definition: Spectrum.hxx:114
bool fIsNeutron
true for neutron Spectrum
Definition: Spectrum.hxx:156
bool fIsBeta
true for Beta Spectrum
Definition: Spectrum.hxx:154
bool IsNeutron()
True if the spectrum is a NeutronSpectrum.
Definition: Spectrum.hxx:116
string GetName()
Return the NeutronSpectrum's isotope name.
Definition: Spectrum.hxx:104
string fName
isotope Name of the neutron spectrum
Definition: Spectrum.hxx:152
void SetName(string Name)
Set the NeutronSpectrum name.
Definition: Spectrum.hxx:97
bool fIsLog
true for Log bining
Definition: Spectrum.hxx:146
Base class to define spectra.
Definition: Spectrum.hxx:25
double * GetLowerEnergy()
Get the Energy vector.
Definition: Spectrum.hxx:107
double GetLowerEnergy(int i)
Return the lower energy bound of the bin i.
Definition: Spectrum.hxx:108
double * GetBin()
Get the Intensity vector.
Definition: Spectrum.hxx:106
double * fLowerEnergy
array of lower bounds of each bin (except the last value)
Definition: Spectrum.hxx:149
void SetZ(int Z)
Set Z of the mother nucleus.
Definition: Spectrum.hxx:95
A Material constituing a Cell.
Definition: Material.hxx:53
int GetNumberOfbins()
Return the number of bins.
Definition: Spectrum.hxx:113
double GetBin(int i)
Return the Intensity at bin i.
Definition: Spectrum.hxx:105
bool fIsGamma
true for Gamma Spectrum
Definition: Spectrum.hxx:155
bool fIsAlpha
true for Alpha Spectrum
Definition: Spectrum.hxx:153
int fNumberOfbins
Total number of bins.
Definition: Spectrum.hxx:147
int fA
A of the mother nucleus.
Definition: Spectrum.hxx:151
void SetBin(int i, double intensity)
Set the intensity value of bin i.
Definition: Spectrum.hxx:99
void SetA(int A)
Set A of the mother nucleus.
Definition: Spectrum.hxx:96