Skip to content

Commit 107b5e8

Browse files
committed
GRPGeomHelper optionally provides aligned geom + alignments
1 parent 419788c commit 107b5e8

3 files changed

Lines changed: 10 additions & 4 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++) {

‎Detectors/ITSMFT/ITS/base/src/GeometryTGeo.cxx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,14 +415,19 @@ TGeoHMatrix* GeometryTGeo::extractMatrixSensor(int index) const
415415
// in the ITS3 case this accounted by specialized functions
416416
double delta = Segmentation::SensorLayerThickness - Segmentation::SensorLayerThicknessEff;
417417
static TGeoTranslation tra(0., 0.5 * delta, 0.);
418+
419+
auto savM = matTmp;
418420
#ifdef ENABLE_UPGRADES // only apply for non ITS3 OB layers
419421
if (!mIsLayerITS3[getLayer(index)]) {
420422
matTmp *= tra;
421423
}
422424
#else
423425
matTmp *= tra;
424426
#endif
425-
427+
LOGP(info, "TGeo Matrices of sensor {} | orig / shift / final", index);
428+
savM.Print();
429+
tra.Print();
430+
matTmp.Print();
426431
return &matTmp;
427432
}
428433

0 commit comments

Comments
 (0)