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 Mar 18, 2024
1 parent 54c2b53 commit 27e1bac
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 23 deletions.
2 changes: 1 addition & 1 deletion inc/TRestDetectorHitsReadoutAnalysisProcess.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class TRestDetectorHitsReadoutAnalysisProcess : public TRestEventProcess {

void InitFromConfigFile() override;
void Initialize() override;
void LoadDefaultConfig(){};
void LoadDefaultConfig() {};

/// \brief This process will only work on hits corresponding to this channel type (using readout)
std::string fChannelType;
Expand Down
4 changes: 2 additions & 2 deletions src/TRestDetectorHitsReadoutAnalysisProcess.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ void TRestDetectorHitsReadoutAnalysisProcess::InitProcess() {
}

if (fChannelType == "") {
cerr << "TRestDetectorHitsReadoutAnalysisProcess::InitProcess() : "
<< "Channel type not defined" << endl;
cerr << "TRestDetectorHitsReadoutAnalysisProcess::InitProcess() : " << "Channel type not defined"
<< endl;
exit(1);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/TRestDetectorReadoutModule.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -628,8 +628,8 @@ void TRestDetectorReadoutModule::Print(Int_t DetailLevel) {
RESTMetadata << "Decoding was defined : " << (fDecoding ? "Yes" : "No") << RESTendl;
RESTMetadata << "-- First DAQ Channel: " << fFirstDaqChannel << RESTendl;
RESTMetadata << "-- Number of mapping nodes: " << fMappingNodes << RESTendl;
RESTMetadata << "-- Origin position : X = " << fOrigin.X() << " mm "
<< " Y : " << fOrigin.Y() << " mm" << RESTendl;
RESTMetadata << "-- Origin position : X = " << fOrigin.X() << " mm " << " Y : " << fOrigin.Y()
<< " mm" << RESTendl;
RESTMetadata << "-- Size : X = " << fSize.X() << " Y : " << fSize.Y() << RESTendl;
RESTMetadata << "-- Rotation : " << fRotation * units("degrees") << " degrees" << RESTendl;
RESTMetadata << "-- Total channels : " << GetNumberOfChannels() << RESTendl;
Expand Down
3 changes: 1 addition & 2 deletions src/TRestDetectorReadoutPixel.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ TVector2 TRestDetectorReadoutPixel::TransformToPixelCoordinates(const TVector2&
void TRestDetectorReadoutPixel::Print() const {
std::cout << " ## Pixel position : (" << GetOriginX() << "," << GetOriginY() << ") mm size : ("
<< GetSizeX() << "," << GetSizeY() << ") mm" << std::endl;
std::cout << " rotation : " << fRotation << " degrees"
<< " type : ";
std::cout << " rotation : " << fRotation << " degrees" << " type : ";
if (fTriangle)
std::cout << "triangle" << std::endl;
else
Expand Down
12 changes: 6 additions & 6 deletions src/TRestDetectorReadoutPlane.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -345,12 +345,12 @@ void TRestDetectorReadoutPlane::Print(Int_t DetailLevel) {
if (DetailLevel >= 0) {
RESTMetadata << "-- Readout plane : " << GetID() << RESTendl;
RESTMetadata << "----------------------------------------------------------------" << RESTendl;
RESTMetadata << "-- Position : X = " << fPosition.X() << " mm, "
<< " Y : " << fPosition.Y() << " mm, Z : " << fPosition.Z() << " mm" << RESTendl;
RESTMetadata << "-- Normal vector : X = " << fNormal.X() << " mm, "
<< " Y : " << fNormal.Y() << " mm, Z : " << fNormal.Z() << " mm" << RESTendl;
RESTMetadata << "-- X-axis vector : X = " << fAxisX.X() << " mm, "
<< " Y : " << fAxisX.Y() << " mm, Z : " << fAxisX.Z() << " mm" << RESTendl;
RESTMetadata << "-- Position : X = " << fPosition.X() << " mm, " << " Y : " << fPosition.Y()
<< " mm, Z : " << fPosition.Z() << " mm" << RESTendl;
RESTMetadata << "-- Normal vector : X = " << fNormal.X() << " mm, " << " Y : " << fNormal.Y()
<< " mm, Z : " << fNormal.Z() << " mm" << RESTendl;
RESTMetadata << "-- X-axis vector : X = " << fAxisX.X() << " mm, " << " Y : " << fAxisX.Y()
<< " mm, Z : " << fAxisX.Z() << " mm" << RESTendl;
RESTMetadata << "-- Y-axis vector : Y = " << fAxisY.X() << " mm, Y : " << fAxisY.Y()
<< " mm, Z : " << fAxisY.Z() << " mm" << RESTendl;
RESTMetadata << "-- Cathode Position : X = " << GetCathodePosition().X() << " mm, "
Expand Down
9 changes: 3 additions & 6 deletions src/TRestDetectorSignal.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,7 @@ TRestDetectorSignal::GetMaxGauss() // returns a 2vector with the time of the pe
time = -1;
cout << endl
<< "WARNING: bad fit to signal with ID " << GetID() << " with maximum at time = " << maxRawTime
<< " ns "
<< "\n"
<< " ns " << "\n"
<< "Failed fit parameters = " << gaus->GetParameter(0) << " || " << gaus->GetParameter(1)
<< " || " << gaus->GetParameter(2) << "\n"
<< "Assigned fit parameters : energy = " << energy << ", time = " << time << endl;
Expand Down Expand Up @@ -377,8 +376,7 @@ TRestDetectorSignal::GetMaxLandau() // returns a 2vector with the time of the p
time = -1;
cout << endl
<< "WARNING: bad fit to signal with ID " << GetID() << " with maximum at time = " << maxRawTime
<< " ns "
<< "\n"
<< " ns " << "\n"
<< "Failed fit parameters = " << landau->GetParameter(0) << " || " << landau->GetParameter(1)
<< " || " << landau->GetParameter(2) << "\n"
<< "Assigned fit parameters : energy = " << energy << ", time = " << time << endl;
Expand Down Expand Up @@ -447,8 +445,7 @@ TRestDetectorSignal::GetMaxAget() // returns a 2vector with the time of the pea
time = -1;
cout << endl
<< "WARNING: bad fit to signal with ID " << GetID() << " with maximum at time = " << maxRawTime
<< " ns "
<< "\n"
<< " ns " << "\n"
<< "Failed fit parameters = " << aget->GetParameter(0) << " || " << aget->GetParameter(1)
<< " || " << aget->GetParameter(2) << "\n"
<< "Assigned fit parameters : energy = " << energy << ", time = " << time << endl;
Expand Down
6 changes: 2 additions & 4 deletions src/TRestDetectorSignalViewerProcess.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ TRestEvent* TRestDetectorSignalViewerProcess::ProcessEvent(TRestEvent* inputEven
} else if (a == 27) // esc
{
fDrawRefresh = 1e99;
while (getchar() != '\n')
;
while (getchar() != '\n');
break;
} else if (a == 110 || a == 78) // n
{
Expand All @@ -135,8 +134,7 @@ TRestEvent* TRestDetectorSignalViewerProcess::ProcessEvent(TRestEvent* inputEven
RESTWarning << "cannot plot signal with id " << sgnCounter << RESTendl;
}
}
while (getchar() != '\n')
;
while (getchar() != '\n');
}
}

Expand Down

0 comments on commit 27e1bac

Please sign in to comment.