Skip to content

Commit 03c3408

Browse files
Merge pull request #5 from alibuild/alibot-cleanup-15620
2 parents a94d661 + ee6ee7d commit 03c3408

5 files changed

Lines changed: 20 additions & 23 deletions

File tree

Detectors/Upgrades/ALICE3/TRK/base/include/TRKBase/GeometryTGeo.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class GeometryTGeo : public o2::detectors::DetMatrixCache
9090
int getNumberOfHalfStaves(int lay) const { return mNumberOfHalfStaves[lay]; }
9191

9292
int getNumberOfDisksMLOT() const { return mNumberOfDisksMLOT; }
93-
int getNumberOfStavesInDisk(int lay) const { return mFirstStaveIndexDisc[lay+1] - mFirstStaveIndexDisc[lay]; }
93+
int getNumberOfStavesInDisk(int lay) const { return mFirstStaveIndexDisc[lay + 1] - mFirstStaveIndexDisc[lay]; }
9494
bool isOwner() const { return mOwner; }
9595
void setOwner(bool v) { mOwner = v; }
9696

@@ -257,12 +257,12 @@ class GeometryTGeo : public o2::detectors::DetMatrixCache
257257
// std::vector<int> mNumberOfChipsPerStave; ///< number of chips per stave in ML/OT
258258
// std::vector<int> mNumberOfChipsPerHalfStave; ///< number of chips per half stave in ML/OT
259259
// std::vector<int> mNumberOfChipsPerModule; ///< number of chips per module in ML/OT
260-
std::vector<unsigned short> mLastChipIndex; ///< max ID of the detector in the petal(VD) or layer(MLOT)
261-
std::vector<unsigned short> mLastChipIndexVD; ///< max ID of the detector in the layer for the VD
260+
std::vector<unsigned short> mLastChipIndex; ///< max ID of the detector in the petal(VD) or layer(MLOT)
261+
std::vector<unsigned short> mLastChipIndexVD; ///< max ID of the detector in the layer for the VD
262262
// std::vector<unsigned short> mLastChipIndexMLOT; ///< max ID of the detector in the layer for the MLOT
263263
std::vector<unsigned short> mFirstChipIndexMLOTDisc; ///< ID of the first sensor chip in the layer for the MLOT; array size is one larger than the number of disks; last element equals nChips+1
264-
std::vector<unsigned short> mFirstStaveIndexDisc; ///< Index of first stave (abs ID) in each MLOT Disc
265-
std::vector<unsigned short> mFirstChipIndexStave; ///< Index of first chip on stave (Discs)
264+
std::vector<unsigned short> mFirstStaveIndexDisc; ///< Index of first stave (abs ID) in each MLOT Disc
265+
std::vector<unsigned short> mFirstChipIndexStave; ///< Index of first chip on stave (Discs)
266266
std::array<char, MAXLAYERS> mLayerToWrapper; ///< Layer to wrapper correspondence, not implemented yet
267267

268268
bool mOwner = true; //! is it owned by the singleton?

Detectors/Upgrades/ALICE3/TRK/base/include/TRKBase/Specs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ constexpr double thickness{20 * mu};
145145

146146
namespace MLOTDisks
147147
{
148-
constexpr int nLayers{12}; // number of disks in the ML and OT
148+
constexpr int nLayers{12}; // number of disks in the ML and OT
149149
}
150150

151151
} // namespace o2::trk::constants

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

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -303,15 +303,14 @@ int GeometryTGeo::getLayerTRK(int index) const
303303
}
304304
int subDetID = getSubDetID(index);
305305
int firstDetLayer = 0;
306-
307-
// NOTE: taking these from o2::trk::constants, instead
306+
307+
// NOTE: taking these from o2::trk::constants, instead
308308
// of the geometry that is constructed in the 'Build' function
309309
// risks inconsistencies...
310310

311311
if (subDetID == 1) {
312312
firstDetLayer = o2::trk::constants::VD::petal::nLayers;
313-
}
314-
else if (subDetID == 2) {
313+
} else if (subDetID == 2) {
315314
firstDetLayer = o2::trk::constants::VD::petal::nLayers + o2::trk::constants::ML::nLayers + o2::trk::constants::OT::nLayers;
316315
}
317316
return firstDetLayer + getLayer(index);
@@ -437,8 +436,7 @@ int GeometryTGeo::getChip(int index) const
437436
int chipsPerModule = Nchip;
438437
return index % chipsPerModule;
439438
}
440-
}
441-
else if (subDetID == 2) { // Forward disks (FT3)
439+
} else if (subDetID == 2) { // Forward disks (FT3)
442440
int lay = getLayer(index);
443441
int stave = getStave(index);
444442
return index - mFirstChipIndexStave[mFirstStaveIndexDisc[lay] + stave];
@@ -564,12 +562,11 @@ TString GeometryTGeo::getMatrixPath(int index) const
564562
path += Form("%s%d_%d/", getTRKChipPattern(), layer, chip); // TRKChipx_y
565563
path += Form("%s%d_1/", getTRKSensorPattern(), layer); // TRKSensorx_1
566564
}
567-
}
568-
else if (subDetID == 2) {
565+
} else if (subDetID == 2) {
569566
int direction = 0;
570-
if (layer >= mNumberOfDisksMLOT/2) {
567+
if (layer >= mNumberOfDisksMLOT / 2) {
571568
direction = 1;
572-
layer -= mNumberOfDisksMLOT/2;
569+
layer -= mNumberOfDisksMLOT / 2;
573570
}
574571
path += Form("%s%d_%d_1/", getFT3LayerPattern(), direction, layer);
575572
path += Form("FT3Sensor_Active_%d_%d_%d_%d_%d", direction, layer, stave, chip, chip);
@@ -755,7 +752,7 @@ int GeometryTGeo::extractNumberOfDisksMLOT(int dir) const
755752
int numDiscs = 0;
756753
while (gGeoManager->GetVolume(composeSymNameLayerFT3(dir, numDiscs))) {
757754
numDiscs++;
758-
} // Check maybe subvolume?
755+
} // Check maybe subvolume?
759756
return numDiscs; // Assume same # layers on both sides
760757
}
761758

Detectors/Upgrades/ALICE3/TRK/simulation/include/TRKSimulation/Digitizer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class Digitizer
127127
{
128128
if (subDetID == 0) { // VD
129129
return constants::VD::petal::layer::nRows[layer];
130-
} else if (subDetID == 1 || subDetID == 2) { // ML/OT
130+
} else if (subDetID == 1 || subDetID == 2) { // ML/OT
131131
return constants::moduleMLOT::chip::nRows;
132132
}
133133
return 0;

Detectors/Upgrades/ALICE3/TRK/simulation/src/Digitizer.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ void Digitizer::process(const std::vector<Hit>* hits, int evID, int srcID, int l
123123
<< " at time " << mEventTime.getTimeNS() << " ROFrame = " << mNewROFrame
124124
<< " Min/Max ROFrames " << mROFrameMin << "/" << mROFrameMax << " layer " << layer;
125125

126-
//std::cout << "Printing segmentation info: " << std::endl;
127-
//SegmentationChip::Print();
126+
// std::cout << "Printing segmentation info: " << std::endl;
127+
// SegmentationChip::Print();
128128

129129
// is there something to flush ?
130130
if (mNewROFrame > mROFrameMin) {
@@ -310,7 +310,7 @@ void Digitizer::processHit(const o2::trk::Hit& hit, uint32_t& maxFr, int evID, i
310310

311311
const auto& matrix = mGeometry->getMatrixL2G(hit.GetDetectorID());
312312
// matrix.print();
313-
313+
314314
/// transorm from the global detector coordinates to the local detector coordinates
315315
math_utils::Vector3D<float> xyzLocS(matrix ^ (hit.GetPosStart())); // start position in sensor frame
316316
math_utils::Vector3D<float> xyzLocE(matrix ^ (hit.GetPos())); // end position in sensor frame
@@ -403,8 +403,8 @@ void Digitizer::processHit(const o2::trk::Hit& hit, uint32_t& maxFr, int evID, i
403403
float cRowPix = 0.f, cColPix = 0.f; // local coordinate of the current pixel center
404404

405405
const o2::trk::ChipSimResponse* resp = getChipResponse(chipID);
406-
//std::cout << "Printing chip response:" << std::endl;
407-
//resp->print();
406+
// std::cout << "Printing chip response:" << std::endl;
407+
// resp->print();
408408

409409
// take into account that the ChipSimResponse depth defintion has different min/max boundaries
410410
// although the max should coincide with the surface of the epitaxial layer, which in the chip

0 commit comments

Comments
 (0)