Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 10, 2024
1 parent a42d910 commit 88526a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion inc/TRestDetectorElectronDiffusionProcess.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class TRestDetectorElectronDiffusionProcess : public TRestEventProcess {
UInt_t fMaxHits;
UInt_t fSeed = 0;
Bool_t fCheckIsInside = true;
Bool_t fUseFanoFactor = false;
Bool_t fUseFanoFactor = false;

public:
RESTValue GetInputEvent() const override { return fInputHitsEvent; }
Expand Down
4 changes: 2 additions & 2 deletions src/TRestDetectorElectronDiffusionProcess.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ TRestEvent* TRestDetectorElectronDiffusionProcess::ProcessEvent(TRestEvent* inpu
unsigned int numberOfElectrons;
Double_t fanofactor = fFano;
if (fPoissonElectronExcitation) {
if(fUseFanoFactor){
if (fUseFanoFactor) {
std::cout << "using fano factor " << fanofactor << std::endl;
numberOfElectrons = fRandom->Poisson(energy * fanofactor * REST_Units::eV / fWValue);
if (wValue != fWValue) {
Expand Down Expand Up @@ -328,5 +328,5 @@ void TRestDetectorElectronDiffusionProcess::InitFromConfigFile() {
fPoissonElectronExcitation = StringToBool(GetParameter("poissonElectronExcitation", "false"));
fUnitElectronEnergy = StringToBool(GetParameter("unitElectronEnergy", "false"));
fCheckIsInside = StringToBool(GetParameter("checkIsInside", "true"));
fUseFanoFactor = StringToBool(GetParameter("useFano","false"));
fUseFanoFactor = StringToBool(GetParameter("useFano", "false"));
}

0 comments on commit 88526a3

Please sign in to comment.