Skip to content

Commit 3233a67

Browse files
authored
Merge pull request #18 from alibuild/alibot-cleanup-15998
Please consider the following formatting changes to #15998
2 parents d455f4f + 69aeca7 commit 3233a67

4 files changed

Lines changed: 27 additions & 28 deletions

File tree

‎Detectors/Upgrades/ALICE3/IOTOF/base/include/IOTOFBase/IOTOFBaseParam.h‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,16 @@ struct IOTOFBaseParam : public o2::conf::ConfigurableParamHelper<IOTOFBaseParam>
5656
float sensorThickness = 0.0050f; // thickness of the sensor in cm, for all layers for the moment, the default is set to 50 microns
5757

5858
// ITOF segmentation parameters
59-
float itofRadius = 21.38f; // ITOF radius (cm)
60-
float itofLength = 126.82f; // ITOF length (cm)
61-
int itofNStaves = 28; // ITOF number of staves
62-
float itofStaveTilt = 6.63; // ITOF stave tilt angle (deg)
59+
float itofRadius = 21.38f; // ITOF radius (cm)
60+
float itofLength = 126.82f; // ITOF length (cm)
61+
int itofNStaves = 28; // ITOF number of staves
62+
float itofStaveTilt = 6.63; // ITOF stave tilt angle (deg)
6363

6464
// OTOF segmentation parameters
65-
float otofRadius = 92.f; // OTOF radius (cm)
66-
float otofLength = 688.54f; // OTOF length (cm)
67-
int otofNStaves = 62; // OTOF number of staves
68-
float otofStaveTilt = 5; // OTOF stave tilt angle (deg)
65+
float otofRadius = 92.f; // OTOF radius (cm)
66+
float otofLength = 688.54f; // OTOF length (cm)
67+
int otofNStaves = 62; // OTOF number of staves
68+
float otofStaveTilt = 5; // OTOF stave tilt angle (deg)
6969

7070
O2ParamDef(IOTOFBaseParam, "IOTOFBase");
7171
};

‎Detectors/Upgrades/ALICE3/IOTOF/simulation/include/IOTOFSimulation/Layer.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ class Layer
6060
int mModulesPerStave{0}; // Number of modules along a stave
6161
double mTiltAngle{0.0}; // Tilt angle in degrees to be applied as a rotation around the local center of the stave
6262

63-
static const int sChipsPerRow; // number of chips per row in module
64-
static const int sChipsPerCol; // number of chips per col in module
65-
static const double sChipGap; // gap between chips in module
66-
static const double sModuleGap; // gap between modules in stave
63+
static const int sChipsPerRow; // number of chips per row in module
64+
static const int sChipsPerCol; // number of chips per col in module
65+
static const double sChipGap; // gap between chips in module
66+
static const double sModuleGap; // gap between modules in stave
6767
static const double sChipThickness; // full thickness of the chip
6868
};
6969

‎Detectors/Upgrades/ALICE3/IOTOF/simulation/src/Layer.cxx‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ void ITOFLayer::createLayer(TGeoVolume* motherVolume)
180180
case kBarrelSegmented: {
181181
// First we create the volume for the whole layer, which will be used as mother volume for the segments
182182
const double avgRadius = 0.5 * (mInnerRadius + mOuterRadius);
183-
const double staveSizeX = mStaves.second; // cm
184-
const double staveSizeY = mOuterRadius - mInnerRadius; // cm
185-
const double staveSizeZ = mZLength; // cm
183+
const double staveSizeX = mStaves.second; // cm
184+
const double staveSizeY = mOuterRadius - mInnerRadius; // cm
185+
const double staveSizeZ = mZLength; // cm
186186

187187
// Build the mother layer tube from the exact inscribed/outscribed radii of a tilted stave rectangle.
188188
const double alpha = mTiltAngle * TMath::DegToRad();
@@ -238,7 +238,7 @@ void ITOFLayer::createLayer(TGeoVolume* motherVolume)
238238
// Now we build a stave from modules
239239
for (int j = 0; j < mModulesPerStave; ++j) {
240240
LOGP(info, "iTOF: Creating module for stave {}/{}", j + 1, mModulesPerStave);
241-
auto* translation = new TGeoTranslation(0., staveSizeY * 0.5, (j + 0.5) * moduleSizeZ + j * 0.02 - 0.5 * staveSizeZ);
241+
auto* translation = new TGeoTranslation(0., staveSizeY * 0.5, (j + 0.5) * moduleSizeZ + j * 0.02 - 0.5 * staveSizeZ);
242242
staveVol->AddNode(moduleVol, 1 + j, translation);
243243
}
244244

@@ -371,11 +371,10 @@ void OTOFLayer::createLayer(TGeoVolume* motherVolume)
371371
// Now we build a substave from modules
372372
for (int j = 0; j < modulesPerSubStave; ++j) {
373373
LOGP(info, "oTOF: Creating module for substave {}/{}", j + 1, modulesPerSubStave);
374-
auto* translation = new TGeoTranslation(0., subStaveSizeY * 0.5, (j + 0.5) * moduleSizeZ + j * 0.02 - 0.5 * subStaveSizeZ);
374+
auto* translation = new TGeoTranslation(0., subStaveSizeY * 0.5, (j + 0.5) * moduleSizeZ + j * 0.02 - 0.5 * subStaveSizeZ);
375375
subStaveVol->AddNode(moduleVol, 1 + j, translation);
376376
}
377377

378-
379378
// Now we build a stave from two substave
380379
for (int i = 0; i < 2; ++i) {
381380
LOGP(info, "oTOF: Creating substave {}/{} for stave {}/{}", i + 1, 2, 1, 1);

‎Detectors/Upgrades/ALICE3/IOTOF/simulation/src/TF3Chip.cxx‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
#include "DetectorsBase/MaterialManager.h"
1515
#include "DetectorsBase/Detector.h"
1616

17-
#include <TGeoBBox.h> // for TGeoBBox
18-
#include <TGeoManager.h> // for gGeoManager, TGeoManager
19-
#include "TGeoVolume.h" // for TGeoVolume
20-
#include "TGeoMatrix.h" // for TGeoMatrix
17+
#include <TGeoBBox.h> // for TGeoBBox
18+
#include <TGeoManager.h> // for gGeoManager, TGeoManager
19+
#include "TGeoVolume.h" // for TGeoVolume
20+
#include "TGeoMatrix.h" // for TGeoMatrix
2121
#include <fairlogger/Logger.h> // for LOG
2222

2323
namespace o2
@@ -31,11 +31,11 @@ const double TF3Chip::sChipSizeZ = 3.0; // cm
3131

3232
//________________________________________________________________________
3333
TGeoVolume* TF3Chip::createChip(const Double_t ychip,
34-
const Double_t ysens,
35-
const char* chipName,
36-
const char* sensName,
37-
const Bool_t dummy,
38-
const TGeoManager* mgr)
34+
const Double_t ysens,
35+
const char* chipName,
36+
const char* sensName,
37+
const Bool_t dummy,
38+
const TGeoManager* mgr)
3939
{
4040

4141
Double_t xchip, zchip;
@@ -141,5 +141,5 @@ void TF3Chip::createMaterials(Int_t id, Int_t ifield, Float_t fieldm)
141141
}
142142
}
143143

144-
} // namespace iofof
144+
} // namespace iotof
145145
} // namespace o2

0 commit comments

Comments
 (0)