Skip to content

Commit 4064a77

Browse files
committed
Fix inaccuracies in the LArScintillationGenerator class
1 parent 7c2a28c commit 4064a77

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

source/generators/LArScintillationGenerator.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ emission_spectrum_{},
3131
sampler_(0)
3232
{
3333

34-
LoadNCheckPTPData();
34+
LoadNCheckLArData();
3535
sampler_ = new std::piecewise_constant_distribution(
3636
bin_edges_.begin(), bin_edges_.end(), emission_spectrum_.begin()
3737
);
@@ -94,7 +94,7 @@ G4double LArScintillationGenerator::RandomEnergy(){
9494
}
9595
}
9696

97-
void LArScintillationGenerator::LoadNCheckPTPData(){
97+
void LArScintillationGenerator::LoadNCheckLArData(){
9898

9999
bin_edges_ = { h_Planck*c_light/(308.842*nm), h_Planck*c_light/(305.646*nm), h_Planck*c_light/(301.7045*nm), h_Planck*c_light/(297.6565*nm), h_Planck*c_light/(293.8215*nm),
100100
h_Planck*c_light/(289.9865*nm), h_Planck*c_light/(286.6845*nm), h_Planck*c_light/(282.6365*nm), h_Planck*c_light/(277.523*nm), h_Planck*c_light/(272.5165*nm),
@@ -118,8 +118,8 @@ void LArScintillationGenerator::LoadNCheckPTPData(){
118118
0.002, 0.003, 0.005, 0.009, 0.014, 0.024, 0.036, 0.054, 0.082, 0.113, 0.176, 0.275, 0.36, 0.475, 0.624, 0.82, 1.0, 0.82, 0.624, 0.441, 0.336, 0.236};
119119

120120
if(DataIsIllFormed()){
121-
G4Exception("[PTPPhotonGenerator]", "LoadNCheckPTPData()", FatalException,
122-
"The provided data is ill-formed. Check PTPPhotonGenerator::DataIsIllFormed for more info.");
121+
G4Exception("[LArScintillationGenerator]", "LoadNCheckLArData()", FatalException,
122+
"The provided data is ill-formed. Check LArScintillationGenerator::DataIsIllFormed for more info.");
123123
}
124124

125125
return;

source/generators/LArScintillationGenerator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ namespace nexus {
4444
std::vector<G4double> emission_spectrum_; ///< PTP emission spectrum
4545
std::piecewise_constant_distribution<G4double>* sampler_; ///< LAr scintillation emission spectrum histogram sampler
4646

47-
void LoadNCheckPTPData(); ///< Loads LAr emission spectrum data into bin_edges_ and emission_spectrum_
47+
void LoadNCheckLArData(); ///< Loads LAr emission spectrum data into bin_edges_ and emission_spectrum_
4848
G4bool DataIsIllFormed(); ///< Checks whether the loaded data is ill-formed
4949
G4double RandomEnergy(); ///< Generate a random kinetic energy according to LAr emission spectrum.
5050
};

0 commit comments

Comments
 (0)