|
12 | 12 | /// \file AlignParam.cxx |
13 | 13 | /// \brief Implementation of the base alignment parameters class |
14 | 14 |
|
15 | | -#include <fairlogger/Logger.h> |
16 | 15 | #include <TGeoManager.h> |
17 | 16 | #include <TGeoMatrix.h> |
18 | 17 | #include <TGeoOverlap.h> |
19 | 18 | #include <TGeoPhysicalNode.h> |
20 | 19 |
|
| 20 | +#include "Framework/Logger.h" |
21 | 21 | #include "DetectorsCommonDataFormats/AlignParam.h" |
22 | 22 |
|
23 | 23 | using namespace o2::detectors; |
@@ -261,7 +261,7 @@ bool AlignParam::createLocalMatrix(TGeoHMatrix& m) const |
261 | 261 | } |
262 | 262 |
|
263 | 263 | //_____________________________________________________________________________ |
264 | | -bool AlignParam::applyToGeometry() const |
| 264 | +bool AlignParam::applyToGeometry(int printLevel) const |
265 | 265 | { |
266 | 266 | /// Apply the current alignment object to the TGeo geometry |
267 | 267 | /// This method returns FALSE if the symname of the object was not |
@@ -311,10 +311,20 @@ bool AlignParam::applyToGeometry() const |
311 | 311 | TGeoHMatrix* g = node->GetMatrix(node->GetLevel() - 1); |
312 | 312 | align->MultiplyLeft(node->GetMatrix(node->GetLevel() - 1)->Inverse()); |
313 | 313 | } |
314 | | - LOG(debug) << "Aligning volume " << symname; |
315 | 314 |
|
316 | 315 | node->Align(align); |
317 | 316 |
|
| 317 | + if (getLevel() <= printLevel) { |
| 318 | + LOGP(info, "{:*^100}", symname); |
| 319 | + LOGP(info, " - Alignment parameter:"); |
| 320 | + print(); |
| 321 | + LOGP(info, " - Alignment matrix:"); |
| 322 | + align->Print(); |
| 323 | + LOGP(info, " - Node:"); |
| 324 | + node->Print(); |
| 325 | + LOGP(info, "{:~^100}", symname); |
| 326 | + } |
| 327 | + |
318 | 328 | return true; |
319 | 329 | } |
320 | 330 |
|
|
0 commit comments