From 69aeca748617ceca527100e8de8a0d4500bf563d Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Fri, 23 Oct 2026 14:05:13 +0000 Subject: [PATCH] Please consider the following formatting changes --- .../base/include/IOTOFBase/IOTOFBaseParam.h | 16 +++++++-------- .../include/IOTOFSimulation/Layer.h | 8 ++++---- .../ALICE3/IOTOF/simulation/src/Layer.cxx | 11 +++++----- .../ALICE3/IOTOF/simulation/src/TF3Chip.cxx | 20 +++++++++---------- 4 files changed, 27 insertions(+), 28 deletions(-) diff --git a/Detectors/Upgrades/ALICE3/IOTOF/base/include/IOTOFBase/IOTOFBaseParam.h b/Detectors/Upgrades/ALICE3/IOTOF/base/include/IOTOFBase/IOTOFBaseParam.h index 097fe9406456d..5f5cce6073a8e 100644 --- a/Detectors/Upgrades/ALICE3/IOTOF/base/include/IOTOFBase/IOTOFBaseParam.h +++ b/Detectors/Upgrades/ALICE3/IOTOF/base/include/IOTOFBase/IOTOFBaseParam.h @@ -56,16 +56,16 @@ struct IOTOFBaseParam : public o2::conf::ConfigurableParamHelper float sensorThickness = 0.0050f; // thickness of the sensor in cm, for all layers for the moment, the default is set to 50 microns // ITOF segmentation parameters - float itofRadius = 21.38f; // ITOF radius (cm) - float itofLength = 126.82f; // ITOF length (cm) - int itofNStaves = 28; // ITOF number of staves - float itofStaveTilt = 6.63; // ITOF stave tilt angle (deg) + float itofRadius = 21.38f; // ITOF radius (cm) + float itofLength = 126.82f; // ITOF length (cm) + int itofNStaves = 28; // ITOF number of staves + float itofStaveTilt = 6.63; // ITOF stave tilt angle (deg) // OTOF segmentation parameters - float otofRadius = 92.f; // OTOF radius (cm) - float otofLength = 688.54f; // OTOF length (cm) - int otofNStaves = 62; // OTOF number of staves - float otofStaveTilt = 5; // OTOF stave tilt angle (deg) + float otofRadius = 92.f; // OTOF radius (cm) + float otofLength = 688.54f; // OTOF length (cm) + int otofNStaves = 62; // OTOF number of staves + float otofStaveTilt = 5; // OTOF stave tilt angle (deg) O2ParamDef(IOTOFBaseParam, "IOTOFBase"); }; diff --git a/Detectors/Upgrades/ALICE3/IOTOF/simulation/include/IOTOFSimulation/Layer.h b/Detectors/Upgrades/ALICE3/IOTOF/simulation/include/IOTOFSimulation/Layer.h index b4c0652f86a3e..b950f49fdcd84 100644 --- a/Detectors/Upgrades/ALICE3/IOTOF/simulation/include/IOTOFSimulation/Layer.h +++ b/Detectors/Upgrades/ALICE3/IOTOF/simulation/include/IOTOFSimulation/Layer.h @@ -60,10 +60,10 @@ class Layer int mModulesPerStave{0}; // Number of modules along a stave double mTiltAngle{0.0}; // Tilt angle in degrees to be applied as a rotation around the local center of the stave - static const int sChipsPerRow; // number of chips per row in module - static const int sChipsPerCol; // number of chips per col in module - static const double sChipGap; // gap between chips in module - static const double sModuleGap; // gap between modules in stave + static const int sChipsPerRow; // number of chips per row in module + static const int sChipsPerCol; // number of chips per col in module + static const double sChipGap; // gap between chips in module + static const double sModuleGap; // gap between modules in stave static const double sChipThickness; // full thickness of the chip }; diff --git a/Detectors/Upgrades/ALICE3/IOTOF/simulation/src/Layer.cxx b/Detectors/Upgrades/ALICE3/IOTOF/simulation/src/Layer.cxx index e119e783c3cbf..f5a645fe018a7 100644 --- a/Detectors/Upgrades/ALICE3/IOTOF/simulation/src/Layer.cxx +++ b/Detectors/Upgrades/ALICE3/IOTOF/simulation/src/Layer.cxx @@ -180,9 +180,9 @@ void ITOFLayer::createLayer(TGeoVolume* motherVolume) case kBarrelSegmented: { // First we create the volume for the whole layer, which will be used as mother volume for the segments const double avgRadius = 0.5 * (mInnerRadius + mOuterRadius); - const double staveSizeX = mStaves.second; // cm - const double staveSizeY = mOuterRadius - mInnerRadius; // cm - const double staveSizeZ = mZLength; // cm + const double staveSizeX = mStaves.second; // cm + const double staveSizeY = mOuterRadius - mInnerRadius; // cm + const double staveSizeZ = mZLength; // cm // Build the mother layer tube from the exact inscribed/outscribed radii of a tilted stave rectangle. const double alpha = mTiltAngle * TMath::DegToRad(); @@ -238,7 +238,7 @@ void ITOFLayer::createLayer(TGeoVolume* motherVolume) // Now we build a stave from modules for (int j = 0; j < mModulesPerStave; ++j) { LOGP(info, "iTOF: Creating module for stave {}/{}", j + 1, mModulesPerStave); - auto* translation = new TGeoTranslation(0., staveSizeY * 0.5, (j + 0.5) * moduleSizeZ + j * 0.02 - 0.5 * staveSizeZ); + auto* translation = new TGeoTranslation(0., staveSizeY * 0.5, (j + 0.5) * moduleSizeZ + j * 0.02 - 0.5 * staveSizeZ); staveVol->AddNode(moduleVol, 1 + j, translation); } @@ -371,11 +371,10 @@ void OTOFLayer::createLayer(TGeoVolume* motherVolume) // Now we build a substave from modules for (int j = 0; j < modulesPerSubStave; ++j) { LOGP(info, "oTOF: Creating module for substave {}/{}", j + 1, modulesPerSubStave); - auto* translation = new TGeoTranslation(0., subStaveSizeY * 0.5, (j + 0.5) * moduleSizeZ + j * 0.02 - 0.5 * subStaveSizeZ); + auto* translation = new TGeoTranslation(0., subStaveSizeY * 0.5, (j + 0.5) * moduleSizeZ + j * 0.02 - 0.5 * subStaveSizeZ); subStaveVol->AddNode(moduleVol, 1 + j, translation); } - // Now we build a stave from two substave for (int i = 0; i < 2; ++i) { LOGP(info, "oTOF: Creating substave {}/{} for stave {}/{}", i + 1, 2, 1, 1); diff --git a/Detectors/Upgrades/ALICE3/IOTOF/simulation/src/TF3Chip.cxx b/Detectors/Upgrades/ALICE3/IOTOF/simulation/src/TF3Chip.cxx index 2d44582a83f7b..91db1d0ac9bba 100644 --- a/Detectors/Upgrades/ALICE3/IOTOF/simulation/src/TF3Chip.cxx +++ b/Detectors/Upgrades/ALICE3/IOTOF/simulation/src/TF3Chip.cxx @@ -14,10 +14,10 @@ #include "DetectorsBase/MaterialManager.h" #include "DetectorsBase/Detector.h" -#include // for TGeoBBox -#include // for gGeoManager, TGeoManager -#include "TGeoVolume.h" // for TGeoVolume -#include "TGeoMatrix.h" // for TGeoMatrix +#include // for TGeoBBox +#include // for gGeoManager, TGeoManager +#include "TGeoVolume.h" // for TGeoVolume +#include "TGeoMatrix.h" // for TGeoMatrix #include // for LOG namespace o2 @@ -31,11 +31,11 @@ const double TF3Chip::sChipSizeZ = 3.0; // cm //________________________________________________________________________ TGeoVolume* TF3Chip::createChip(const Double_t ychip, - const Double_t ysens, - const char* chipName, - const char* sensName, - const Bool_t dummy, - const TGeoManager* mgr) + const Double_t ysens, + const char* chipName, + const char* sensName, + const Bool_t dummy, + const TGeoManager* mgr) { Double_t xchip, zchip; @@ -141,5 +141,5 @@ void TF3Chip::createMaterials(Int_t id, Int_t ifield, Float_t fieldm) } } -} // namespace iofof +} // namespace iotof } // namespace o2