From 2c652de88b20414af93e6f05d2eea42c65dc56d2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 30 Apr 2024 11:13:47 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/TRestDetectorGas.cxx | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/TRestDetectorGas.cxx b/src/TRestDetectorGas.cxx index c989fe86..8cbd281d 100644 --- a/src/TRestDetectorGas.cxx +++ b/src/TRestDetectorGas.cxx @@ -494,13 +494,13 @@ void TRestDetectorGas::GetGasWorkFunction() { #endif } -//Get the fano factor from Garfield::MediumMagboltz -//User need to have installed the last version of -//Garfield to this to work +// Get the fano factor from Garfield::MediumMagboltz +// User need to have installed the last version of +// Garfield to this to work -Double_t TRestDetectorGas::GetGasFanoFactor(){ +Double_t TRestDetectorGas::GetGasFanoFactor() { #if defined USE_Garfield - if(fStatus != RESTGAS_GASFILE_LOADED){ + if (fStatus != RESTGAS_GASFILE_LOADED) { RESTDebug << "-- Error : " << __PRETTY_FUNCTION__ << RESTendl; RESTDebug << "-- Error : Gas file was not loaded!" << RESTendl; return 0; @@ -510,13 +510,13 @@ Double_t TRestDetectorGas::GetGasFanoFactor(){ Double_t F; F = fGasMedium->GetFanoFactor(); - if (F == 0.){ + if (F == 0.) { std::cout << "Fano Factor is 0! This REST is not compiled with the last " - "version of Garfield" + "version of Garfield" << std::endl; std::cout << "To use Garfield Fano factors, please compile REST " - " with the latest Garfield version!" - << std::endl; + " with the latest Garfield version!" + << std::endl; } return F; #else @@ -526,7 +526,6 @@ Double_t TRestDetectorGas::GetGasFanoFactor(){ std::cout << "Please define the Fano factor in each process!" << std::endl; return 0; #endif - } /////////////////////////////////////////////