Skip to content

Commit afb8f0f

Browse files
authored
GRPGeomHelper optionally provides aligned geom + alignments (#15953)
1 parent 2453886 commit afb8f0f

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎Detectors/Base/include/DetectorsBase/GRPGeomHelper.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ struct GRPGeomRequest {
9191
enum GeomRequest { None,
9292
Aligned,
9393
Ideal,
94-
Alignments };
94+
Alignments,
95+
AlignmentsAndAligned };
9596

9697
bool askAggregateRunInfo = false;
9798
bool askGRPECS = false;

‎Detectors/Base/src/GRPGeomHelper.cxx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ namespace o2d = o2::dataformats;
3939
GRPGeomRequest::GRPGeomRequest(bool orbitResetTime, bool GRPECS, bool GRPLHCIF, bool GRPMagField, bool askMatLUT, GeomRequest geom, std::vector<o2::framework::InputSpec>& inputs, bool askOnce, bool needPropD, std::string detMaskString)
4040
: askGRPECS(GRPECS), askGRPLHCIF(GRPLHCIF), askGRPMagField(GRPMagField), askMatLUT(askMatLUT), askTime(orbitResetTime), askOnceAllButField(askOnce), needPropagatorD(needPropD)
4141
{
42-
if (geom == Aligned) {
42+
if (geom == Aligned || geom == AlignmentsAndAligned) {
4343
askGeomAlign = true;
4444
addInput({"geomAlg", "GLO", "GEOMALIGN", 0, Lifetime::Condition, ccdbParamSpec("GLO/Config/GeometryAligned")}, inputs);
4545
} else if (geom == Ideal || geom == Alignments) {
4646
askGeomIdeal = true;
4747
addInput({"geomIdeal", "GLO", "GEOMIDEAL", 0, Lifetime::Condition, ccdbParamSpec("GLO/Config/Geometry")}, inputs);
4848
}
49-
if (geom == Alignments) {
49+
if (geom == Alignments || geom == AlignmentsAndAligned) {
5050
askAlignments = true;
5151
o2::detectors::DetID::mask_t algDetMask = DetID::getMask(detMaskString);
5252
for (auto id = DetID::First; id <= DetID::Last; id++) {

0 commit comments

Comments
 (0)