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 Apr 30, 2024
1 parent 07838cc commit 2c652de
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/TRestDetectorGas.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand All @@ -526,7 +526,6 @@ Double_t TRestDetectorGas::GetGasFanoFactor(){
std::cout << "Please define the Fano factor in each process!" << std::endl;
return 0;
#endif

}

/////////////////////////////////////////////
Expand Down

0 comments on commit 2c652de

Please sign in to comment.