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 Feb 27, 2024
1 parent e124751 commit ec2eb59
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion macros/REST_Detector_CheckReadout.C
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ Int_t REST_Detector_CheckReadout(TString rootFile, TString name, Double_t region
vector<TGraph*> modGraph(nModConst);
vector<TLatex*> channelIDLabel(nPixConst);

double xmin = std::numeric_limits<Double_t>::max(), xmax = std::numeric_limits<Double_t>::min(), ymin = std::numeric_limits<Double_t>::max(), ymax = std::numeric_limits<Double_t>::min();
double xmin = std::numeric_limits<Double_t>::max(), xmax = std::numeric_limits<Double_t>::min(),
ymin = std::numeric_limits<Double_t>::max(), ymax = std::numeric_limits<Double_t>::min();

Int_t graph = 0;
Int_t modGraphID = 0;
Expand Down
3 changes: 2 additions & 1 deletion macros/REST_Detector_ViewReadout.C
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ int REST_Detector_ViewReadout(TString rootFile, TString name = "", Int_t plane =
vector<TGraph*> modGraph(nModConst);
vector<TLatex*> channelIDLabel(nPixConst);

double xmin = std::numeric_limits<Double_t>::max(), xmax = std::numeric_limits<Double_t>::min(), ymin = std::numeric_limits<Double_t>::max(), ymax = std::numeric_limits<Double_t>::min();
double xmin = std::numeric_limits<Double_t>::max(), xmax = std::numeric_limits<Double_t>::min(),
ymin = std::numeric_limits<Double_t>::max(), ymax = std::numeric_limits<Double_t>::min();

Int_t graph = 0;
Int_t modGraphID = 0;
Expand Down
3 changes: 2 additions & 1 deletion src/TRestDetectorGarfieldDriftProcess.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ void TRestDetectorGarfieldDriftProcess::InitProcess() {
fGfSensor->AddElectrode(fGeometry->GetGfComponent(0), "m");
fGfSensor->SetTimeWindow(0., 0.1, 500);

double xmin = std::numeric_limits<Double_t>::min(), xmax = std::numeric_limits<Double_t>::max(), ymin = std::numeric_limits<Double_t>::min(), ymax = std::numeric_limits<Double_t>::max();
double xmin = std::numeric_limits<Double_t>::min(), xmax = std::numeric_limits<Double_t>::max(),
ymin = std::numeric_limits<Double_t>::min(), ymax = std::numeric_limits<Double_t>::max();
TGeoShape* readoutshape = fGeometry->GetReadoutElecNode(0)->GetVolume()->GetShape();
TGeoMatrix* readoutmatrix = fGeometry->GetReadoutElecNode(0)->GetMatrix();
double xmid = 10. * readoutmatrix->GetTranslation()[0],
Expand Down
3 changes: 2 additions & 1 deletion src/TRestDetectorReadoutPlane.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,8 @@ void TRestDetectorReadoutPlane::GetBoundaries(double& xmin, double& xmax, double
Double_t x[4];
Double_t y[4];

xmin = std::numeric_limits<Double_t>::max(), xmax = std::numeric_limits<Double_t>::min(), ymin = std::numeric_limits<Double_t>::max(), ymax = std::numeric_limits<Double_t>::min();
xmin = std::numeric_limits<Double_t>::max(), xmax = std::numeric_limits<Double_t>::min(),
ymin = std::numeric_limits<Double_t>::max(), ymax = std::numeric_limits<Double_t>::min();

for (size_t mdID = 0; mdID < this->GetNumberOfModules(); mdID++) {
TRestDetectorReadoutModule* module = &fReadoutModules[mdID];
Expand Down

0 comments on commit ec2eb59

Please sign in to comment.