Skip to content

Commit c70aff2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 50a33b4 commit c70aff2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/TRestGeant4PrimaryGeneratorInfo.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,10 @@ EnergyDistributionFormulas TRestGeant4PrimaryGeneratorTypes::StringToEnergyDistr
204204
EnergyDistributionFormulasToString(EnergyDistributionFormulas::ENVIRONMENTAL_GAMMAS),
205205
TString::ECaseCompare::kIgnoreCase)) {
206206
return EnergyDistributionFormulas::ENVIRONMENTAL_GAMMAS;
207-
} else if (TString(type).EqualTo(
208-
EnergyDistributionFormulasToString(EnergyDistributionFormulas::ENVIRONMENTAL_NEUTRONS),
209-
TString::ECaseCompare::kIgnoreCase)) {
210-
return EnergyDistributionFormulas::ENVIRONMENTAL_NEUTRONS;
207+
} else if (TString(type).EqualTo(
208+
EnergyDistributionFormulasToString(EnergyDistributionFormulas::ENVIRONMENTAL_NEUTRONS),
209+
TString::ECaseCompare::kIgnoreCase)) {
210+
return EnergyDistributionFormulas::ENVIRONMENTAL_NEUTRONS;
211211
} else {
212212
cout << "TRestGeant4PrimaryGeneratorTypes::StringToEnergyDistributionFormulas - Error - Unknown "
213213
"energyDistributionFormulas: "
@@ -259,7 +259,7 @@ TF1 TRestGeant4PrimaryGeneratorTypes::EnergyDistributionFormulasToRootFormula(
259259
case EnergyDistributionFormulas::ENVIRONMENTAL_NEUTRONS: {
260260
// Environmental neutron radiation approximation
261261
const char* title = "Environmental Neutrons";
262-
auto distribution = TF1(title, "TMath::Exp(-x * 0.0005)", 0, 10000); // keV
262+
auto distribution = TF1(title, "TMath::Exp(-x * 0.0005)", 0, 10000); // keV
263263
distribution.SetNormalized(true);
264264
distribution.SetTitle(title);
265265
distribution.GetXaxis()->SetTitle("Energy (keV)");

0 commit comments

Comments
 (0)