Skip to content

Commit 139a777

Browse files
committed
Remove bool irisOpen
1 parent 4d065c9 commit 139a777

4 files changed

Lines changed: 13 additions & 15 deletions

File tree

‎Detectors/Upgrades/ALICE3/TRKFT3/TRK/README.md‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ Configurables for various sub-detectors are presented in the following Table:
1515
| Subsystem | Available options | Comments |
1616
| ------------------ | ------------------------------------------------------- | ---------------------------------------------------------------- |
1717
| `TRKBase.layoutVD` | `kIRIS4` (default), `kIRISFullCyl`, `kIRIS5`, `kIRIS4a` | [link to definitions](./base/include/TRKBase/TRKBaseParam.h) |
18-
| `TRKBase.irisOpen` | `false` (default), `true` | IRIS in the open (injection) position, petal layouts `kIRIS4`, `kIRIS5`, `kIRIS4a` only. As in the real IRIS, each petal slides without rotating, perpendicular to its bisector (counter-clockwise seen from +z), along the edge it shares with its neighbour, until the beam aperture reaches `irisOpenAperture` or the petals come within `irisOpenBeamPipeMargin` of the beam pipe (r = 5.6 cm). The slide and the resulting aperture are printed in the log |
19-
| `TRKBase.irisOpenAperture` | radius in cm (default `1.5`) | beam aperture (injection mode) the petals slide open to |
18+
| `TRKBase.irisOpenFraction` | `0` (default, closed) to `1` (fully open) | IRIS opening (injection position), petal layouts `kIRIS4`, `kIRIS5`, `kIRIS4a` only. As in the real IRIS, each petal slides without rotating, perpendicular to its bisector (counter-clockwise seen from +z), along the edge it shares with its neighbour. The full slide is the one that opens the beam aperture to `irisOpenAperture`, stopped earlier if the petals come within `irisOpenBeamPipeMargin` of the beam pipe (r = 5.6 cm); the petals slide this fraction of it, e.g. `0.25`, `0.5`, `0.75`, `1`. The slide and the resulting aperture are printed in the log |
19+
| `TRKBase.irisOpenAperture` | radius in cm (default `1.5`) | beam aperture the petals slide open to when fully open |
2020
| `TRKBase.irisOpenBeamPipeMargin` | clearance in cm (default `0.05`) | gap kept between the open petals and the beam pipe |
21-
| `TRKBase.irisOpenFraction` | `0` to `1` (default `1`) | partial opening: the petals slide this fraction of the full opening slide, e.g. `0.25`, `0.5`, `0.75`, `1` (fully open). Used with `irisOpen=true` |
2221
| `TRKBase.layoutMLOT` | `kCylindrical`, `kSegmented` (default), `kSimplifiedRealistic` | `kCylindrical`: simple silicon tubes. `kSegmented`: Turbo ML + solid-module OT. `kSimplifiedRealistic`: same ML as `kSegmented`, but a detailed OT barrel (see below) |
2322
| `TRKBase.layoutSRV` | `kPeacockv1` (default), `kLOISymm` | `kLOISymm` produces radially symmetric service volumes, as used in the LoI |
2423
| `TRKBase.otBarrelWallThickness` | thickness in cm (default `0.2`) | Carbon fibre separation walls of the OT quarter barrels — side panels and mid-rapidity disks (`kPeacockv1` + `kSimplifiedRealistic`); `0` disables them. Does not cover the load-bearing outer shell (4 mm) |
@@ -36,9 +35,9 @@ o2-sim-serial-run5 -n 1 -g pythia8hi -m A3IP TRK TF3 \
3635
and the IRIS4 vertex detector in the open position (injection) with
3736
```bash
3837
o2-sim-serial-run5 -n 1 -g pythia8hi -m A3IP TRK TF3 \
39-
--configKeyValues "TRKBase.layoutVD=kIRIS4;TRKBase.irisOpen=true"
38+
--configKeyValues "TRKBase.layoutVD=kIRIS4;TRKBase.irisOpenFraction=1"
4039
```
41-
and half open with `"TRKBase.layoutVD=kIRIS4;TRKBase.irisOpen=true;TRKBase.irisOpenFraction=0.5"`.
40+
and half open with `"TRKBase.layoutVD=kIRIS4;TRKBase.irisOpenFraction=0.5"`.
4241

4342
## Custom Geometry Configuration
4443

‎Detectors/Upgrades/ALICE3/TRKFT3/TRK/base/include/TRKBase/TRKBaseParam.h‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@ struct TRKBaseParam : public o2::conf::ConfigurableParamHelper<TRKBaseParam> {
4646
float otBarrelWallThickness = 0.2f; // cm, carbon fibre separation walls of the OT quarter barrels, 0 disables them
4747
float otEosCardCuThickness = constants::OT::eosCard::copperThickness; // cm, copper per plane in the OT end-of-stave card; drives the card x/X0
4848
float mlEosCardCuThickness = constants::ML::eosCard::copperThickness; // cm, copper per plane in the ML end-of-stave card; drives the card x/X0
49-
bool irisOpen = false; // IRIS at injection: petals in the open position (petal layouts kIRIS4, kIRIS5, kIRIS4a only)
5049
float irisOpenAperture = 1.5f; // cm, beam aperture the petals slide open to (stopped earlier by irisOpenBeamPipeMargin)
5150
float irisOpenBeamPipeMargin = 0.05f; // cm, clearance kept between the open petals and the beam pipe
52-
float irisOpenFraction = 1.f; // fraction of the full opening slide (0..1), e.g. 0.25, 0.5, 0.75, 1 (fully open)
51+
float irisOpenFraction = 0.f; // IRIS opening, fraction of the full slide: 0 closed (default), 1 fully open (injection); petal layouts kIRIS4, kIRIS5, kIRIS4a only
5352
bool includeLowServices = false;
5453

5554
// Options for forward disks (FT3)

‎Detectors/Upgrades/ALICE3/TRKFT3/TRK/simulation/src/Detector.cxx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,8 @@ void Detector::createGeometry()
417417

418418
o2::trk::clearVDSensorRegistry();
419419

420-
if (trkPars.irisOpen && (trkPars.layoutVD == kIRISFullCyl || trkPars.layoutVD == kIRISFullCyl3InclinedWalls)) {
421-
LOG(fatal) << "TRKBase.irisOpen is only available for the petal layouts (kIRIS4, kIRIS5, kIRIS4a), not for layout " << static_cast<int>(trkPars.layoutVD);
420+
if (trkPars.irisOpenFraction > 0.f && (trkPars.layoutVD == kIRISFullCyl || trkPars.layoutVD == kIRISFullCyl3InclinedWalls)) {
421+
LOG(fatal) << "TRKBase.irisOpenFraction > 0 (open IRIS) is only available for the petal layouts (kIRIS4, kIRIS5, kIRIS4a), not for layout " << static_cast<int>(trkPars.layoutVD);
422422
}
423423

424424
switch (trkPars.layoutVD) {

‎Detectors/Upgrades/ALICE3/TRKFT3/TRK/simulation/src/VDGeometryBuilder.cxx‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static inline std::string makeSensorName(const std::string& layerName, int layer
4646
return Form("%s_%s%d", layerName.c_str(), o2::trk::GeometryTGeo::getTRKSensorPattern(), layerNumber);
4747
}
4848

49-
// Placement of petal petalID in the mother volume (closed or open, see TRKBase.irisOpen).
49+
// Placement of petal petalID in the mother volume (closed or open, see TRKBase.irisOpenFraction).
5050
// A non-null name registers the matrix so it can be used in composite-shape formulas.
5151
static TGeoCombiTrans* makePetalPlacement(int nPetals, int petalID, const char* name = nullptr);
5252

@@ -1068,7 +1068,7 @@ static TGeoCombiTrans* makePetalPlacement(int nPetals, int petalID, const char*
10681068
const auto& pars = TRKBaseParam::Instance();
10691069
const double phiDeg = (360.0 / double(nPetals)) * (double(petalID) + 0.5);
10701070
const double phi = phiDeg * TMath::DegToRad();
1071-
const double slide = pars.irisOpen ? irisOpening(nPetals).slide : 0.;
1071+
const double slide = pars.irisOpenFraction > 0.f ? irisOpening(nPetals).slide : 0.;
10721072
auto* R = new TGeoRotation();
10731073
R->RotateZ(phiDeg);
10741074
auto* T = new TGeoCombiTrans(-slide * std::sin(phi), slide * std::cos(phi), 0., R);
@@ -1082,13 +1082,13 @@ static TGeoCombiTrans* makePetalPlacement(int nPetals, int petalID, const char*
10821082
static void logIrisState(int nPetals)
10831083
{
10841084
const auto& pars = TRKBaseParam::Instance();
1085-
if (!pars.irisOpen) {
1085+
if (pars.irisOpenFraction < 0.f || pars.irisOpenFraction > 1.f) {
1086+
LOGP(fatal, "IRIS: TRKBase.irisOpenFraction={} must be between 0 (closed) and 1 (fully open)", pars.irisOpenFraction);
1087+
}
1088+
if (pars.irisOpenFraction == 0.f) {
10861089
LOGP(info, "IRIS closed: {} petals", nPetals);
10871090
return;
10881091
}
1089-
if (pars.irisOpenFraction < 0.f || pars.irisOpenFraction > 1.f) {
1090-
LOGP(fatal, "IRIS open: TRKBase.irisOpenFraction={} must be between 0 and 1", pars.irisOpenFraction);
1091-
}
10921092
const auto o = irisOpening(nPetals);
10931093
if (o.envelope > kBeamPipeRIn_cm - pars.irisOpenBeamPipeMargin) {
10941094
LOGP(fatal, "IRIS open: petals (outer wall r={:.3f} cm) do not fit in the beam pipe (r={:.3f} cm) with margin {:.3f} cm",

0 commit comments

Comments
 (0)