Skip to content

Commit 1a12e00

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 55d1de2 commit 1a12e00

7 files changed

+17
-23
lines changed

Diff for: inc/TRestDetectorHitsReadoutAnalysisProcess.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class TRestDetectorHitsReadoutAnalysisProcess : public TRestEventProcess {
2121

2222
void InitFromConfigFile() override;
2323
void Initialize() override;
24-
void LoadDefaultConfig(){};
24+
void LoadDefaultConfig() {};
2525

2626
/// \brief This process will only work on hits corresponding to this channel type (using readout)
2727
std::string fChannelType;

Diff for: src/TRestDetectorHitsReadoutAnalysisProcess.cxx

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ void TRestDetectorHitsReadoutAnalysisProcess::InitProcess() {
101101
}
102102

103103
if (fChannelType == "") {
104-
cerr << "TRestDetectorHitsReadoutAnalysisProcess::InitProcess() : "
105-
<< "Channel type not defined" << endl;
104+
cerr << "TRestDetectorHitsReadoutAnalysisProcess::InitProcess() : " << "Channel type not defined"
105+
<< endl;
106106
exit(1);
107107
}
108108
}

Diff for: src/TRestDetectorReadoutModule.cxx

+2-2
Original file line numberDiff line numberDiff line change
@@ -628,8 +628,8 @@ void TRestDetectorReadoutModule::Print(Int_t DetailLevel) {
628628
RESTMetadata << "Decoding was defined : " << (fDecoding ? "Yes" : "No") << RESTendl;
629629
RESTMetadata << "-- First DAQ Channel: " << fFirstDaqChannel << RESTendl;
630630
RESTMetadata << "-- Number of mapping nodes: " << fMappingNodes << RESTendl;
631-
RESTMetadata << "-- Origin position : X = " << fOrigin.X() << " mm "
632-
<< " Y : " << fOrigin.Y() << " mm" << RESTendl;
631+
RESTMetadata << "-- Origin position : X = " << fOrigin.X() << " mm " << " Y : " << fOrigin.Y()
632+
<< " mm" << RESTendl;
633633
RESTMetadata << "-- Size : X = " << fSize.X() << " Y : " << fSize.Y() << RESTendl;
634634
RESTMetadata << "-- Rotation : " << fRotation * units("degrees") << " degrees" << RESTendl;
635635
RESTMetadata << "-- Total channels : " << GetNumberOfChannels() << RESTendl;

Diff for: src/TRestDetectorReadoutPixel.cxx

+1-2
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ TVector2 TRestDetectorReadoutPixel::TransformToPixelCoordinates(const TVector2&
147147
void TRestDetectorReadoutPixel::Print() const {
148148
std::cout << " ## Pixel position : (" << GetOriginX() << "," << GetOriginY() << ") mm size : ("
149149
<< GetSizeX() << "," << GetSizeY() << ") mm" << std::endl;
150-
std::cout << " rotation : " << fRotation << " degrees"
151-
<< " type : ";
150+
std::cout << " rotation : " << fRotation << " degrees" << " type : ";
152151
if (fTriangle)
153152
std::cout << "triangle" << std::endl;
154153
else

Diff for: src/TRestDetectorReadoutPlane.cxx

+6-6
Original file line numberDiff line numberDiff line change
@@ -345,12 +345,12 @@ void TRestDetectorReadoutPlane::Print(Int_t DetailLevel) {
345345
if (DetailLevel >= 0) {
346346
RESTMetadata << "-- Readout plane : " << GetID() << RESTendl;
347347
RESTMetadata << "----------------------------------------------------------------" << RESTendl;
348-
RESTMetadata << "-- Position : X = " << fPosition.X() << " mm, "
349-
<< " Y : " << fPosition.Y() << " mm, Z : " << fPosition.Z() << " mm" << RESTendl;
350-
RESTMetadata << "-- Normal vector : X = " << fNormal.X() << " mm, "
351-
<< " Y : " << fNormal.Y() << " mm, Z : " << fNormal.Z() << " mm" << RESTendl;
352-
RESTMetadata << "-- X-axis vector : X = " << fAxisX.X() << " mm, "
353-
<< " Y : " << fAxisX.Y() << " mm, Z : " << fAxisX.Z() << " mm" << RESTendl;
348+
RESTMetadata << "-- Position : X = " << fPosition.X() << " mm, " << " Y : " << fPosition.Y()
349+
<< " mm, Z : " << fPosition.Z() << " mm" << RESTendl;
350+
RESTMetadata << "-- Normal vector : X = " << fNormal.X() << " mm, " << " Y : " << fNormal.Y()
351+
<< " mm, Z : " << fNormal.Z() << " mm" << RESTendl;
352+
RESTMetadata << "-- X-axis vector : X = " << fAxisX.X() << " mm, " << " Y : " << fAxisX.Y()
353+
<< " mm, Z : " << fAxisX.Z() << " mm" << RESTendl;
354354
RESTMetadata << "-- Y-axis vector : Y = " << fAxisY.X() << " mm, Y : " << fAxisY.Y()
355355
<< " mm, Z : " << fAxisY.Z() << " mm" << RESTendl;
356356
RESTMetadata << "-- Cathode Position : X = " << GetCathodePosition().X() << " mm, "

Diff for: src/TRestDetectorSignal.cxx

+3-6
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,7 @@ TRestDetectorSignal::GetMaxGauss() // returns a 2vector with the time of the pe
322322
time = -1;
323323
cout << endl
324324
<< "WARNING: bad fit to signal with ID " << GetID() << " with maximum at time = " << maxRawTime
325-
<< " ns "
326-
<< "\n"
325+
<< " ns " << "\n"
327326
<< "Failed fit parameters = " << gaus->GetParameter(0) << " || " << gaus->GetParameter(1)
328327
<< " || " << gaus->GetParameter(2) << "\n"
329328
<< "Assigned fit parameters : energy = " << energy << ", time = " << time << endl;
@@ -377,8 +376,7 @@ TRestDetectorSignal::GetMaxLandau() // returns a 2vector with the time of the p
377376
time = -1;
378377
cout << endl
379378
<< "WARNING: bad fit to signal with ID " << GetID() << " with maximum at time = " << maxRawTime
380-
<< " ns "
381-
<< "\n"
379+
<< " ns " << "\n"
382380
<< "Failed fit parameters = " << landau->GetParameter(0) << " || " << landau->GetParameter(1)
383381
<< " || " << landau->GetParameter(2) << "\n"
384382
<< "Assigned fit parameters : energy = " << energy << ", time = " << time << endl;
@@ -447,8 +445,7 @@ TRestDetectorSignal::GetMaxAget() // returns a 2vector with the time of the pea
447445
time = -1;
448446
cout << endl
449447
<< "WARNING: bad fit to signal with ID " << GetID() << " with maximum at time = " << maxRawTime
450-
<< " ns "
451-
<< "\n"
448+
<< " ns " << "\n"
452449
<< "Failed fit parameters = " << aget->GetParameter(0) << " || " << aget->GetParameter(1)
453450
<< " || " << aget->GetParameter(2) << "\n"
454451
<< "Assigned fit parameters : energy = " << energy << ", time = " << time << endl;

Diff for: src/TRestDetectorSignalViewerProcess.cxx

+2-4
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ TRestEvent* TRestDetectorSignalViewerProcess::ProcessEvent(TRestEvent* inputEven
109109
} else if (a == 27) // esc
110110
{
111111
fDrawRefresh = 1e99;
112-
while (getchar() != '\n')
113-
;
112+
while (getchar() != '\n');
114113
break;
115114
} else if (a == 110 || a == 78) // n
116115
{
@@ -135,8 +134,7 @@ TRestEvent* TRestDetectorSignalViewerProcess::ProcessEvent(TRestEvent* inputEven
135134
RESTWarning << "cannot plot signal with id " << sgnCounter << RESTendl;
136135
}
137136
}
138-
while (getchar() != '\n')
139-
;
137+
while (getchar() != '\n');
140138
}
141139
}
142140

0 commit comments

Comments
 (0)