Skip to content

Commit 9c76609

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

File tree

4 files changed

+12
-20
lines changed

4 files changed

+12
-20
lines changed

Diff for: macros/REST_Axion_XMMAngleEffCSV.C

+1-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ Int_t REST_Axion_XMMAngleEffCSV(
4747

4848
Int_t obsID = run->GetAnalysisTree()->GetObservableID("optics_efficiency");
4949
if (obsID == -1) {
50-
RESTError << "No observable \""
51-
<< "optics_efficiency"
52-
<< "\" in file " << files[n] << RESTendl;
50+
RESTError << "No observable \"" << "optics_efficiency" << "\" in file " << files[n] << RESTendl;
5351
continue;
5452
}
5553
Double_t eff = 0;

Diff for: pipeline/metadata/magneticField/boundary/Boundaries_test_interactive.C

+4-8
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,15 @@ void PrintVolumeBoundaries(Int_t volume_ID, TVector3 position, TVector3 directio
6060

6161
if (volume_ID == 0) {
6262
myfile << "Initial position : (" << position.X() << ", " << position.Y() << ", " << position.Z()
63-
<< ")"
64-
<< "\n";
63+
<< ")" << "\n";
6564
myfile << "Direction : (" << direction.X() << ", " << direction.Y() << ", " << direction.Z() << ")"
6665
<< "\n\n";
6766
}
6867
myfile << "Volume #" << volume_ID << "\n";
6968
myfile << "Number of volume boundary points found : " << boundaries.size() << "\n";
7069
for (int i = 0; i < boundaries.size(); i++)
7170
myfile << "boundaries[" << i << "] = (" << boundaries[i].X() << ", " << boundaries[i].Y() << ", "
72-
<< boundaries[i].Z() << ")"
73-
<< "\n";
71+
<< boundaries[i].Z() << ")" << "\n";
7472
myfile << "\n\n";
7573
}
7674

@@ -84,8 +82,6 @@ void PrintFieldBoundaries(std::vector<TVector3> fieldboundaries) {
8482
myfile << "Number of field boundary points found : " << fieldboundaries.size() << "\n";
8583
for (int i = 0; i < fieldboundaries.size(); i++)
8684
myfile << "fieldboundaries[" << i << "] = (" << fieldboundaries[i].X() << ", "
87-
<< fieldboundaries[i].Y() << ", " << fieldboundaries[i].Z() << ")"
88-
<< "\n";
89-
myfile << "---------------------------------"
90-
<< "\n";
85+
<< fieldboundaries[i].Y() << ", " << fieldboundaries[i].Z() << ")" << "\n";
86+
myfile << "---------------------------------" << "\n";
9187
}

Diff for: src/TRestAxionMagneticField.cxx

+5-7
Original file line numberDiff line numberDiff line change
@@ -735,13 +735,11 @@ void TRestAxionMagneticField::LoadMagneticFieldData(MagneticFieldVolume& mVol,
735735
RESTWarning << "nX: " << nX << " nY: " << nY << " nZ: " << nZ << RESTendl;
736736
RESTWarning << "WARNING: field[nX][nY][nZ] element not equal to initial value (0, 0, 0) !!"
737737
<< RESTendl;
738-
RESTWarning << "It has value: "
739-
<< "mVol.field[" << nX << "][" << nY << "][" << nZ << "] = ("
738+
RESTWarning << "It has value: " << "mVol.field[" << nX << "][" << nY << "][" << nZ << "] = ("
740739
<< mVol.field[nX][nY][nZ].X() << " , " << mVol.field[nX][nY][nZ].Y() << " , "
741740
<< mVol.field[nX][nY][nZ].Z() << ")" << RESTendl;
742-
RESTWarning << "Values to write: "
743-
<< "Bx: " << data[n][3] << " By: " << data[n][4] << " Bz: " << data[n][5] << RESTendl
744-
<< RESTendl;
741+
RESTWarning << "Values to write: " << "Bx: " << data[n][3] << " By: " << data[n][4]
742+
<< " Bz: " << data[n][5] << RESTendl << RESTendl;
745743

746744
this->SetError("There was a problem assigning the field matrix!");
747745
if (GetVerboseLevel() >= TRestStringOutput::REST_Verbose_Level::REST_Extreme) GetChar();
@@ -1516,8 +1514,8 @@ void TRestAxionMagneticField::PrintMetadata() {
15161514
RESTMetadata << "* Volume " << p << " centered at (" << centerX << "," << centerY << "," << centerZ
15171515
<< ") mm" << RESTendl;
15181516
RESTMetadata << " - Grid mesh element size. X: " << fMeshSize[p].X() << "mm "
1519-
<< " Y: " << fMeshSize[p].Y() << "mm "
1520-
<< " Z: " << fMeshSize[p].Z() << "mm " << RESTendl;
1517+
<< " Y: " << fMeshSize[p].Y() << "mm " << " Z: " << fMeshSize[p].Z() << "mm "
1518+
<< RESTendl;
15211519
RESTMetadata << " - Offset field [T] : (" << fConstantField[p].X() << ", " << fConstantField[p].Y()
15221520
<< ", " << fConstantField[p].Z() << ")" << RESTendl;
15231521
RESTMetadata << " - File loaded : " << fFileNames[p] << RESTendl;

Diff for: src/TRestAxionOpticsMirror.cxx

+2-2
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ Double_t TRestAxionOpticsMirror::GetReflectivity(const Double_t angle, const Dou
397397
}
398398

399399
Int_t lowAngBin = (Int_t)((ang) / 0.01);
400-
Double_t deltaAng = (ang - (Double_t)(lowAngBin)*0.01) / 0.01; // between 0 and 1
400+
Double_t deltaAng = (ang - (Double_t)(lowAngBin) * 0.01) / 0.01; // between 0 and 1
401401

402402
Double_t REnLowAngLow = fReflectivityTable[lowEnBin][lowAngBin];
403403
Double_t REnLowAngHi = fReflectivityTable[lowEnBin][lowAngBin + 1];
@@ -449,7 +449,7 @@ Double_t TRestAxionOpticsMirror::GetTransmission(const Double_t angle, const Dou
449449
}
450450

451451
Int_t lowAngBin = (Int_t)((ang) / 0.01);
452-
Double_t deltaAng = (ang - (Double_t)(lowAngBin)*0.01) / 0.01; // between 0 and 1
452+
Double_t deltaAng = (ang - (Double_t)(lowAngBin) * 0.01) / 0.01; // between 0 and 1
453453

454454
Double_t REnLowAngLow = fTransmissionTable[lowEnBin][lowAngBin];
455455
Double_t REnLowAngHi = fTransmissionTable[lowEnBin][lowAngBin + 1];

0 commit comments

Comments
 (0)