Skip to content

Commit 6e229d8

Browse files
Merge pull request #2 from alibuild/alibot-cleanup-15570
Please consider the following formatting changes to #15570
2 parents 32156f6 + 9a97e84 commit 6e229d8

6 files changed

Lines changed: 18 additions & 22 deletions

File tree

Detectors/Upgrades/ALICE3/IOTOF/base/src/GeometryTGeo.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ void GeometryTGeo::Build(int loadTrans)
284284
mLastChipIndex[j] = numberOfChips - 1;
285285
}
286286

287-
LOG(info) << "TF3 geometry: numberOfChipsITOF = " << mNumberOfChipsIOTOF[0] << ", numberOfChipsOTOF = "
288-
<< mNumberOfChipsIOTOF[1] << ", numberOfChips = " << numberOfChips << ", mNumberOfChipesPerStaveITOF"
287+
LOG(info) << "TF3 geometry: numberOfChipsITOF = " << mNumberOfChipsIOTOF[0] << ", numberOfChipsOTOF = "
288+
<< mNumberOfChipsIOTOF[1] << ", numberOfChips = " << numberOfChips << ", mNumberOfChipesPerStaveITOF"
289289
<< mNumberOfChipsPerStaveIOTOF[0];
290290

291291
setSize(numberOfChips);

Detectors/Upgrades/ALICE3/IOTOF/macros/CheckClustersIOTOF.C

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ void CheckClustersIOTOF(std::string digiFilePath = "tf3digits.root", std::string
4444
using namespace o2::base;
4545
using namespace o2::iotof;
4646

47-
using o2::iotof::Digit;
4847
using o2::iotof::Cluster;
48+
using o2::iotof::Digit;
4949

5050
o2::conf::ConfigurableParam::updateFromString("IOTOFBase.segmentedInnerTOF=true;IOTOFBase.segmentedOuterTOF=true;IOTOFBase.enableForwardTOF=false;IOTOFBase.enableBackwardTOF=false");
5151

@@ -81,7 +81,7 @@ void CheckClustersIOTOF(std::string digiFilePath = "tf3digits.root", std::string
8181
o2::dataformats::MCTruthContainer<o2::MCCompLabel>* clsLabels{nullptr};
8282
clsTree->SetBranchAddress("TF3ClusterMCTruth", &clsLabels);
8383
clsTree->GetEntry(0);
84-
84+
8585
// Summary of entries in all branches
8686
std::cout << std::endl;
8787
std::cout << "---> Number of digits: " << digitsArray->size() << std::endl;
@@ -151,7 +151,6 @@ void CheckClustersIOTOF(std::string digiFilePath = "tf3digits.root", std::string
151151
histZCoordDigit->Fill(globalDigitCoord.Z());
152152
} // end loop on digits array
153153

154-
155154
// LOOP on : clusters array
156155
std::cout << "\n\n ----> Starting loop on clusters for ROF " << iROF << " with index " << rofIndex << " and nEntries " << rofNEntries << std::endl;
157156
for (unsigned int iCls = rofIndex; iCls < rofIndex + rofNEntries; iCls++) {
@@ -170,7 +169,7 @@ void CheckClustersIOTOF(std::string digiFilePath = "tf3digits.root", std::string
170169
segGeom->detectorToLocal(iRow, iCol, x, z, subDetID);
171170
}
172171

173-
o2::math_utils::Point3D<float> localClsCoords(x, y, z); // local Digit
172+
o2::math_utils::Point3D<float> localClsCoords(x, y, z); // local Digit
174173
const auto globalClsCoords = tofGeo->getMatrixL2G(chipID)(localClsCoords); // convert to global
175174
clsTuple->Fill((*clsArray)[iCls].chipID,
176175
globalClsCoords.x(),
@@ -204,7 +203,7 @@ void CheckClustersIOTOF(std::string digiFilePath = "tf3digits.root", std::string
204203
segGeom->detectorToLocal(iRowFromDigit, iColFromDigit, xFromDigit, zFromDigit, iSubDetIDFromDigit);
205204
}
206205

207-
o2::math_utils::Point3D<float> localDigitCoordFromDigit(xFromDigit, yFromDigit, zFromDigit); // local Digit
206+
o2::math_utils::Point3D<float> localDigitCoordFromDigit(xFromDigit, yFromDigit, zFromDigit); // local Digit
208207
const auto globalDigitCoordFromDigit = tofGeo->getMatrixL2G(iChipIDFromDigit)(localDigitCoordFromDigit); // convert to global
209208
histXCoordRes->Fill(globalClsCoords.x() - globalDigitCoordFromDigit.X());
210209
histYCoordRes->Fill(globalClsCoords.y() - globalDigitCoordFromDigit.Y());
@@ -245,5 +244,4 @@ void CheckClustersIOTOF(std::string digiFilePath = "tf3digits.root", std::string
245244
histTimeRes->Write();
246245
outFile->Write();
247246
outFile->Close();
248-
249247
}

Detectors/Upgrades/ALICE3/IOTOF/reconstruction/include/IOTOFReconstruction/Clusterer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Clusterer
5252

5353
// Further struct members in TRK, for now not needed in TF3
5454

55-
std::array<Label, MaxLabels> labelsBuff; ///< MC label buffer for one cluster
55+
std::array<Label, MaxLabels> labelsBuff; ///< MC label buffer for one cluster
5656

5757
// per-thread output (accumulated, then merged back by caller)
5858
std::vector<Cluster> clusters;

Detectors/Upgrades/ALICE3/IOTOF/reconstruction/src/Clusterer.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void Clusterer::process(gsl::span<const Digit> digits,
5252
continue;
5353
}
5454

55-
// Sort digit indices within this ROF by (chipID, col, row)
55+
// Sort digit indices within this ROF by (chipID, col, row)
5656
// chip by chip, column by column (taken from TRK).
5757
mSortIdx.resize(nEntries);
5858
std::iota(mSortIdx.begin(), mSortIdx.end(), first);
@@ -111,7 +111,7 @@ void Clusterer::ClustererThread::processChip(gsl::span<const Digit> digits,
111111
const auto& sortIdx = parent->mSortIdx;
112112

113113
// TRK has per-ROF readout, so multiple hits belonging to the same chip, i.e. chipN > 1,
114-
// are handled with a preclusterer. TF3 still does not have per-ROF readout, so we
114+
// are handled with a preclusterer. TF3 still does not have per-ROF readout, so we
115115
// use finishChipSingleHitFast on all hits for now.
116116
for (auto i = 0; i < chipN; ++i) {
117117
finishChipSingleHitFast(digits, sortIdx[chipFirst + i], labelsDigPtr, labelsClusPtr);
@@ -152,9 +152,9 @@ void Clusterer::ClustererThread::finishChipSingleHitFast(gsl::span<const Digit>
152152
{
153153
const auto& digit = digits[digitIdx];
154154
const uint16_t chipID = digit.getChipIndex();
155-
const uint16_t row = digit.getRow();
156-
const uint16_t col = digit.getColumn();
157-
const double time = digit.getTime();
155+
const uint16_t row = digit.getRow();
156+
const uint16_t col = digit.getColumn();
157+
const double time = digit.getTime();
158158

159159
if (labelsClusPtr) {
160160
int nlab = 0;

Detectors/Upgrades/ALICE3/IOTOF/workflow/src/ClusterWriterSpec.cxx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ namespace o2::iotof
3636

3737
template <typename T>
3838
using BranchDefinition = MakeRootTreeWriterSpec::BranchDefinition<T>;
39-
using ClustersType = std::vector<o2::iotof::Cluster>;
40-
using PatternsType = std::vector<unsigned char>;
41-
using ROFrameType = std::vector<o2::itsmft::ROFRecord>;
42-
using LabelsType = o2::dataformats::MCTruthContainer<o2::MCCompLabel>;
39+
using ClustersType = std::vector<o2::iotof::Cluster>;
40+
using PatternsType = std::vector<unsigned char>;
41+
using ROFrameType = std::vector<o2::itsmft::ROFRecord>;
42+
using LabelsType = o2::dataformats::MCTruthContainer<o2::MCCompLabel>;
4343

4444
DataProcessorSpec getClusterWriterSpec(bool mctruth, bool dec, o2::header::DataOrigin detOrig, o2::detectors::DetID detId)
4545
{
@@ -63,7 +63,6 @@ DataProcessorSpec getClusterWriterSpec(bool mctruth, bool dec, o2::header::DataO
6363
(detStr + "ClusterROF").c_str(), "cluster-rof-branch"},
6464
BranchDefinition<LabelsType>{InputSpec{"tf3_labels", detOrig, "CLUSTERSMCTR", 0},
6565
(detStr + "ClusterMCTruth").c_str()})();
66-
6766
}
6867

6968
DataProcessorSpec getIOTOFClusterWriterSpec(bool mctruth, bool dec)

Detectors/Upgrades/ALICE3/IOTOF/workflow/src/ClustererSpec.cxx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void ClustererDPL::run(o2::framework::ProcessingContext& pc)
3636
o2::base::GeometryManager::loadGeometry("o2sim_geometry.root", false, true);
3737

3838
uint64_t totalClusters = 0;
39-
39+
4040
// Loop on layers to be added here, for now only one layer is processed
4141
int iLayer = 0;
4242
auto digits = pc.inputs().get<gsl::span<o2::iotof::Digit>>(std::format("digits_{}", iLayer));
@@ -104,8 +104,7 @@ o2::framework::DataProcessorSpec getClustererSpec(bool useMC)
104104
inputs,
105105
outputs,
106106
o2::framework::AlgorithmSpec{o2::framework::adaptFromTask<o2::iotof::ClustererDPL>(useMC)},
107-
o2::framework::Options{{"nthreads", o2::framework::VariantType::Int, 1, {"Number of clustering threads"}}
108-
}};
107+
o2::framework::Options{{"nthreads", o2::framework::VariantType::Int, 1, {"Number of clustering threads"}}}};
109108
}
110109

111110
DataProcessorSpec getIOTOFClustererSpec(bool mctruth)

0 commit comments

Comments
 (0)