From ec2eb5984d71e2dd61c9ea9cee49371e37b413fc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 27 Feb 2024 12:53:43 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- macros/REST_Detector_CheckReadout.C | 3 ++- macros/REST_Detector_ViewReadout.C | 3 ++- src/TRestDetectorGarfieldDriftProcess.cxx | 3 ++- src/TRestDetectorReadoutPlane.cxx | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/macros/REST_Detector_CheckReadout.C b/macros/REST_Detector_CheckReadout.C index ce42fa94..ba7d68fb 100644 --- a/macros/REST_Detector_CheckReadout.C +++ b/macros/REST_Detector_CheckReadout.C @@ -87,7 +87,8 @@ Int_t REST_Detector_CheckReadout(TString rootFile, TString name, Double_t region vector modGraph(nModConst); vector channelIDLabel(nPixConst); - double xmin = std::numeric_limits::max(), xmax = std::numeric_limits::min(), ymin = std::numeric_limits::max(), ymax = std::numeric_limits::min(); + double xmin = std::numeric_limits::max(), xmax = std::numeric_limits::min(), + ymin = std::numeric_limits::max(), ymax = std::numeric_limits::min(); Int_t graph = 0; Int_t modGraphID = 0; diff --git a/macros/REST_Detector_ViewReadout.C b/macros/REST_Detector_ViewReadout.C index b1483fd0..b892b9f7 100644 --- a/macros/REST_Detector_ViewReadout.C +++ b/macros/REST_Detector_ViewReadout.C @@ -67,7 +67,8 @@ int REST_Detector_ViewReadout(TString rootFile, TString name = "", Int_t plane = vector modGraph(nModConst); vector channelIDLabel(nPixConst); - double xmin = std::numeric_limits::max(), xmax = std::numeric_limits::min(), ymin = std::numeric_limits::max(), ymax = std::numeric_limits::min(); + double xmin = std::numeric_limits::max(), xmax = std::numeric_limits::min(), + ymin = std::numeric_limits::max(), ymax = std::numeric_limits::min(); Int_t graph = 0; Int_t modGraphID = 0; diff --git a/src/TRestDetectorGarfieldDriftProcess.cxx b/src/TRestDetectorGarfieldDriftProcess.cxx index 99ef2afa..8f6bb7bf 100644 --- a/src/TRestDetectorGarfieldDriftProcess.cxx +++ b/src/TRestDetectorGarfieldDriftProcess.cxx @@ -264,7 +264,8 @@ void TRestDetectorGarfieldDriftProcess::InitProcess() { fGfSensor->AddElectrode(fGeometry->GetGfComponent(0), "m"); fGfSensor->SetTimeWindow(0., 0.1, 500); - double xmin = std::numeric_limits::min(), xmax = std::numeric_limits::max(), ymin = std::numeric_limits::min(), ymax = std::numeric_limits::max(); + double xmin = std::numeric_limits::min(), xmax = std::numeric_limits::max(), + ymin = std::numeric_limits::min(), ymax = std::numeric_limits::max(); TGeoShape* readoutshape = fGeometry->GetReadoutElecNode(0)->GetVolume()->GetShape(); TGeoMatrix* readoutmatrix = fGeometry->GetReadoutElecNode(0)->GetMatrix(); double xmid = 10. * readoutmatrix->GetTranslation()[0], diff --git a/src/TRestDetectorReadoutPlane.cxx b/src/TRestDetectorReadoutPlane.cxx index 8854488c..69a7a769 100644 --- a/src/TRestDetectorReadoutPlane.cxx +++ b/src/TRestDetectorReadoutPlane.cxx @@ -419,7 +419,8 @@ void TRestDetectorReadoutPlane::GetBoundaries(double& xmin, double& xmax, double Double_t x[4]; Double_t y[4]; - xmin = std::numeric_limits::max(), xmax = std::numeric_limits::min(), ymin = std::numeric_limits::max(), ymax = std::numeric_limits::min(); + xmin = std::numeric_limits::max(), xmax = std::numeric_limits::min(), + ymin = std::numeric_limits::max(), ymax = std::numeric_limits::min(); for (size_t mdID = 0; mdID < this->GetNumberOfModules(); mdID++) { TRestDetectorReadoutModule* module = &fReadoutModules[mdID];