Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
ActsMuonAlignCondAlg Class Reference

#include <ActsMuonAlignCondAlg.h>

Inheritance diagram for ActsMuonAlignCondAlg:
Collaboration diagram for ActsMuonAlignCondAlg:

Public Member Functions

 ActsMuonAlignCondAlg (const std::string &name, ISvcLocator *pSvcLocator)
 
virtual ~ActsMuonAlignCondAlg ()=default
 
virtual StatusCode initialize () override
 
virtual StatusCode execute (const EventContext &ctx) const override
 
virtual bool isReEntrant () const override
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual bool isClonable () const override
 Specify if the algorithm is clonable. More...
 
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
 
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
virtual bool filterPassed (const EventContext &ctx) const
 
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Private Types

using deltaMap = std::unordered_map< const GeoAlignableTransform *, std::shared_ptr< const Amg::Transform3D > >
 Association map of the GeoAlignableTransforms with the rigid alignment transformations. More...
 
using alignTechMap = std::map< ActsTrk::DetectorType, std::set< const GeoAlignableTransform * > >
 Association map of the GeoAlignable transforms with the detector technologies. More...
 
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

Identifier alignmentId (const MuonGMR4::MuonReadoutElement *reElement) const
 Returns the Identifier serving as key to find the alignment parameters connected with the readout element
More...
 
StatusCode loadDeltas (const EventContext &ctx, deltaMap &alignDeltas, alignTechMap &techTransforms) const
 Loads the ALineContainer from the conditions store and fills the deltaMap with the A-Line delta transformations and the technology map to connect mutually moving detectors. More...
 
StatusCode loadMdtDeformPars (const EventContext &ctx, ActsTrk::DetectorAlignStore &store) const
 Loads the BLine container and the Mdt-as built parameters from the Conditions store and stores them into the tracking alignment object of the RawGeomAlignmentStore. More...
 
StatusCode loadMmDeformPars (const EventContext &ctx, ActsTrk::DetectorAlignStore &store) const
 
StatusCode loadStgcDeformPars (const EventContext &ctx, ActsTrk::DetectorAlignStore &store) const
 
StatusCode declareDependencies (const EventContext &ctx, ActsTrk::DetectorType detType, SG::WriteCondHandle< ActsTrk::DetectorAlignStore > &writeHandle) const
 Loads the corresponding ReadCondHandles from the Conditions store and adds their IOVs to the dependency of the writeHandle. More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

std::vector< ActsTrk::DetectorTypem_techs {}
 
SG::ReadCondHandleKey< ALineContainerm_readKeyALines
 
SG::ReadCondHandleKey< BLineContainerm_readKeyBLines
 
SG::ReadCondHandleKey< MdtAsBuiltContainerm_readMdtAsBuiltKey
 
SG::ReadCondHandleKey< NswAsBuiltDbDatam_readNswAsBuiltKey
 
SG::ReadCondHandleKey< sTGCAsBuiltDatam_readsTgcAsBuiltKey
 
SG::ReadCondHandleKey< NswPassivationDbDatam_readNswPassivKey
 
SG::WriteCondHandleKeyArray< ActsTrk::DetectorAlignStorem_writeKeys
 
Gaudi::Property< std::string > m_keyToken
 
ServiceHandle< Muon::IMuonIdHelperSvcm_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
 
const MuonGMR4::MuonDetectorManagerm_detMgr {nullptr}
 
Gaudi::Property< bool > m_applyMmPassivation {this, "applyMmPassivation", false}
 
Gaudi::Property< bool > m_applyNswAsBuilt
 
Gaudi::Property< bool > m_applyMdtAsBuilt
 
Gaudi::Property< bool > m_applyALines {this, "applyALines", false}
 Apply translations and rotations to align the Muon stations. More...
 
Gaudi::Property< bool > m_applyBLines {this, "applyBLines", false}
 Apply the chamber deformation model (Mdts + Nsw) More...
 
Gaudi::Property< bool > m_fillAlignStoreCache {this, "FillAlignCache", false}
 Flag toggling whether the alignment store shall be filled with the transforms or not. More...
 
Gaudi::Property< bool > m_fillGeoAlignStore {this, "FillGeoAlignStore", true}
 Flag toggling whether the GeoAlignmentStore shall be filled. More...
 
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 29 of file ActsMuonAlignCondAlg.h.

Member Typedef Documentation

◆ alignTechMap

using ActsMuonAlignCondAlg::alignTechMap = std::map<ActsTrk::DetectorType, std::set<const GeoAlignableTransform*> >
private

Association map of the GeoAlignable transforms with the detector technologies.

Definition at line 45 of file ActsMuonAlignCondAlg.h.

◆ deltaMap

using ActsMuonAlignCondAlg::deltaMap = std::unordered_map<const GeoAlignableTransform*, std::shared_ptr<const Amg::Transform3D> >
private

Association map of the GeoAlignableTransforms with the rigid alignment transformations.

Definition at line 43 of file ActsMuonAlignCondAlg.h.

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ ActsMuonAlignCondAlg()

ActsMuonAlignCondAlg::ActsMuonAlignCondAlg ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 23 of file ActsMuonAlignCondAlg.cxx.

23  :
24  AthReentrantAlgorithm{name, pSvcLocator}{}

◆ ~ActsMuonAlignCondAlg()

virtual ActsMuonAlignCondAlg::~ActsMuonAlignCondAlg ( )
virtualdefault

Member Function Documentation

◆ alignmentId()

Identifier ActsMuonAlignCondAlg::alignmentId ( const MuonGMR4::MuonReadoutElement reElement) const
private

Returns the Identifier serving as key to find the alignment parameters connected with the readout element

The BML eta 7 stations have their own alignment.

The rest shares the same alignmnet constants with the Mdts

For the NSW, the alignment parameters are stored under the same key as the RE

Definition at line 65 of file ActsMuonAlignCondAlg.cxx.

65  {
66  if (re->detectorType() == ActsTrk::DetectorType::Mdt ||
67  re->detectorType() == ActsTrk::DetectorType::Tgc) {
68  return m_idHelperSvc->chamberId(re->identify());
69  } else if (re->detectorType() == ActsTrk::DetectorType::Rpc) {
71  if (!m_idHelperSvc->hasMDT() ||
72  (std::abs(re->stationEta()) == 7 && m_idHelperSvc->stationNameString(re->identify()) == "BML")) {
73  return m_idHelperSvc->rpcIdHelper().elementID(re->stationName(), re->stationEta(), re->stationPhi(), 1);
75  } else {
76  return m_idHelperSvc->mdtIdHelper().elementID(re->stationName(), re->stationEta(), re->stationPhi());
77  }
78  }
80  return re->identify();
81 }

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64 {
65  return 0;
66 }

◆ declareDependencies()

StatusCode ActsMuonAlignCondAlg::declareDependencies ( const EventContext &  ctx,
ActsTrk::DetectorType  detType,
SG::WriteCondHandle< ActsTrk::DetectorAlignStore > &  writeHandle 
) const
private

Loads the corresponding ReadCondHandles from the Conditions store and adds their IOVs to the dependency of the writeHandle.

Definition at line 211 of file ActsMuonAlignCondAlg.cxx.

213  {
215  if (m_applyALines) {
217  writeHandle.addDependency(readHandle);
218  }
219  const bool issTGC = detType == ActsTrk::DetectorType::sTgc;
220  const bool isMm = detType == ActsTrk::DetectorType::Mm;
221  const bool isMdt = detType == ActsTrk::DetectorType::Mdt;
222 
223  if (m_applyBLines&& (issTGC || isMm || isMdt)) {
225  writeHandle.addDependency(readHandle);
226  }
227  if (m_applyMdtAsBuilt && isMdt) {
229  writeHandle.addDependency(readHandle);
230  }
233  writeHandle.addDependency(readHandle);
234  }
235  if (m_applyNswAsBuilt && isMm) {
237  writeHandle.addDependency(readHandle);
238  }
239  if(m_applyNswAsBuilt && issTGC && !m_readsTgcAsBuiltKey.empty()){
241  writeHandle.addDependency(readHandle);
242  }
243  return StatusCode::SUCCESS;
244 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ execute()

StatusCode ActsMuonAlignCondAlg::execute ( const EventContext &  ctx) const
overridevirtual

Create the condition handles

Append the alignable transformations to the conditions object

Propagate the cache throughout the geometry

Ensure that the rigid transformations of the detector elements are applied

There's no need to cache the delta parameters longer

The geoModel constants are no longer needed.

Whipe the GeoModelCache

Definition at line 246 of file ActsMuonAlignCondAlg.cxx.

246  {
247  deltaMap alignDeltas{};
248  alignTechMap techTransforms{};
249  unsigned int memBeforeAlign = GeoPerfUtils::getMem();
250  ATH_CHECK(loadDeltas(ctx, alignDeltas, techTransforms));
251 
252  std::vector<const MuonReadoutElement*> readoutEles = m_detMgr->getAllReadoutElements();
254  unsigned int numAligned{0};
255  for (size_t det =0 ; det < m_techs.size(); ++det) {
257  const ActsTrk::DetectorType subDet = m_techs[det];
258 
260  if (writeHandle.isValid()) {
261  ATH_MSG_VERBOSE("The alignment constants for "<<ActsTrk::to_string(subDet)
262  <<" are still valid.");
263  continue;
264  }
265  std::unique_ptr<ActsTrk::DetectorAlignStore> writeCdo = std::make_unique<ActsTrk::DetectorAlignStore>(subDet);
266 
267  const std::set<const GeoAlignableTransform*>& toStore = techTransforms[subDet];
269  for (const GeoAlignableTransform* alignable : toStore) {
270  const std::shared_ptr<const Amg::Transform3D>& cached = alignDeltas[alignable];
271  if (!cached) continue;
272  writeCdo->geoModelAlignment->setDelta(alignable, alignDeltas[alignable]);
273  }
274  writeCdo->geoModelAlignment->lockDelta();
275  if (subDet == ActsTrk::DetectorType::Mdt) {
276  ATH_CHECK(loadMdtDeformPars(ctx,*writeCdo));
277  } else if (subDet == ActsTrk::DetectorType::Mm) {
278  ATH_CHECK(loadMmDeformPars(ctx, *writeCdo));
279  } else if (subDet == ActsTrk::DetectorType::sTgc) {
280  ATH_CHECK(loadStgcDeformPars(ctx, *writeCdo));
281  }
283  ATH_CHECK(declareDependencies(ctx, subDet, writeHandle));
284  if (m_fillGeoAlignStore) {
286  for (const MuonReadoutElement* re : readoutEles) {
287  if (re->detectorType() == subDet) {
288  const Amg::Transform3D& detTrf{re->getMaterialGeom()->getAbsoluteTransform(writeCdo->geoModelAlignment.get())};
289  ATH_MSG_VERBOSE("Detector element "<<m_idHelperSvc->toStringDetEl(re->identify())<<" is located at "
290  <<Amg::toString(detTrf));
291  }
292  }
294  writeCdo->geoModelAlignment->getDeltas()->clear();
295  writeCdo->geoModelAlignment->lockPosCache();
296  } else if (m_fillAlignStoreCache) {
297  for (const MuonReadoutElement* re : readoutEles){
298  numAligned+= re->storeAlignedTransforms(*writeCdo);
299  }
301  writeCdo->geoModelAlignment.reset();
302  }
303  ATH_CHECK(writeHandle.record(std::move(writeCdo)));
304  }
305 
306  ATH_MSG_VERBOSE("Only "<<numAligned<<" out of "<<readoutEles.size()<<" were picked up by the alignment cutalg");
307  alignDeltas.clear();
308  techTransforms.clear();
310  GeoClearAbsPosAction whipeTreeTop{};
311  for (unsigned int treeTop = 0 ; treeTop < m_detMgr->getNumTreeTops(); ++treeTop) {
312  m_detMgr->getTreeTop(treeTop)->exec(&whipeTreeTop);
313  }
314 
315  unsigned int memAfterAlign = GeoPerfUtils::getMem();
316  ATH_MSG_INFO("Caching of the alignment parameters required "<<(memAfterAlign - memBeforeAlign) / 1024<<" MB of memory");
317  return StatusCode::SUCCESS;
318 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ extraOutputDeps()

const DataObjIDColl & AthCommonReentrantAlgorithm< Gaudi::Algorithm >::extraOutputDeps
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.

90 {
91  // If we didn't find any symlinks to add, just return the collection
92  // from the base class. Otherwise, return the extended collection.
93  if (!m_extendedExtraObjects.empty()) {
95  }
96  return BaseAlg::extraOutputDeps();
97 }

◆ filterPassed()

virtual bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96  {
97  return execState( ctx ).filterPassed();
98  }

◆ initialize()

StatusCode ActsMuonAlignCondAlg::initialize ( )
overridevirtual

Definition at line 26 of file ActsMuonAlignCondAlg.cxx.

26  {
27 
33  ATH_CHECK(m_idHelperSvc.retrieve());
36  if (m_techs.empty()) {
37  ATH_MSG_FATAL("The detector manager does not contain any elements");
38  return StatusCode::FAILURE;
39  }
40  auto hasDetector = [this](const ActsTrk::DetectorType d) -> bool {
41  return std::find(m_techs.begin(),m_techs.end(), d) != m_techs.end();
42  };
43 
45  hasDetector(ActsTrk::DetectorType::Mm) ||
46  hasDetector(ActsTrk::DetectorType::sTgc));
49  hasDetector(ActsTrk::DetectorType::sTgc));
51 
52 
53 
54  for (const ActsTrk::DetectorType det : m_techs) {
56  ATH_MSG_INFO("Register new alignment container "<<m_writeKeys.back().fullKey());
57  }
58  ATH_MSG_INFO("Switched options "<<m_fillAlignStoreCache<<", "<<", "<<m_applyALines<<", "
59  <<m_applyBLines<<", "<<m_applyMdtAsBuilt<<", "
61  ATH_CHECK(m_writeKeys.initialize());
62  return StatusCode::SUCCESS;
63 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ isClonable()

bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::isClonable
overridevirtualinherited

Specify if the algorithm is clonable.

Reentrant algorithms are clonable.

Definition at line 68 of file AthCommonReentrantAlgorithm.cxx.

52 {
53  // Reentrant algorithms are clonable.
54  return true;
55 }

◆ isReEntrant()

virtual bool ActsMuonAlignCondAlg::isReEntrant ( ) const
inlineoverridevirtual

Definition at line 35 of file ActsMuonAlignCondAlg.h.

35 { return false; }

◆ loadDeltas()

StatusCode ActsMuonAlignCondAlg::loadDeltas ( const EventContext &  ctx,
deltaMap alignDeltas,
alignTechMap techTransforms 
) const
private

Loads the ALineContainer from the conditions store and fills the deltaMap with the A-Line delta transformations and the technology map to connect mutually moving detectors.

Construct the identifier to search for the proper Aline transformation

Store the alignable transformation

Definition at line 82 of file ActsMuonAlignCondAlg.cxx.

84  {
85  if (m_readKeyALines.empty()) {
86  ATH_MSG_DEBUG("Loading of the A line parameters deactivated");
87  return StatusCode::SUCCESS;
88  }
89 
91  const ALineContainer* aLineContainer{*readHandle};
92  std::vector<const MuonReadoutElement*> readoutEles = m_detMgr->getAllReadoutElements();
93  ATH_MSG_INFO("Load the alignment of "<<readoutEles.size()<<" detector elements");
94  for (const MuonReadoutElement* re : readoutEles) {
95  const GeoAlignableTransform* alignTrans = re->alignableTransform();
96  if (!alignTrans) {
97  ATH_MSG_WARNING("The readout element "<<m_idHelperSvc->toStringDetEl(re->identify())
98  <<" has no alignable transform.");
99  continue;
100  }
101  std::shared_ptr<const Amg::Transform3D>& cached = alignDeltas[alignTrans];
102  if (cached) {
103  ATH_MSG_DEBUG("The alignable transformation for "<<m_idHelperSvc->toStringChamber(re->identify())
104  <<" has been cached before. ");
105  techTransforms[re->detectorType()].insert(alignTrans);
106  continue;
107  }
109  const Identifier stationId = alignmentId(re);
110  ALineContainer::const_iterator aLineItr = aLineContainer->find(stationId);
111  if (aLineItr == aLineContainer->end()) {
112  ATH_MSG_VERBOSE("No Alines were stored for "<<m_idHelperSvc->toString(re->identify())
113  <<". Used "<<m_idHelperSvc->toString(stationId)<<" as station Identifier");
114  continue;
115  }
117  cached = std::make_shared<Amg::Transform3D>(aLineItr->delta());
118  techTransforms[re->detectorType()].insert(alignTrans);
119  }
120  return StatusCode::SUCCESS;
121 }

◆ loadMdtDeformPars()

StatusCode ActsMuonAlignCondAlg::loadMdtDeformPars ( const EventContext &  ctx,
ActsTrk::DetectorAlignStore store 
) const
private

Loads the BLine container and the Mdt-as built parameters from the Conditions store and stores them into the tracking alignment object of the RawGeomAlignmentStore.

Definition at line 122 of file ActsMuonAlignCondAlg.cxx.

123  {
124 
125  if (!m_applyMdtAsBuilt && !m_applyBLines) {
126  return StatusCode::SUCCESS;
127  }
128  std::unique_ptr<MdtAlignmentStore> internAlign = std::make_unique<MdtAlignmentStore>(m_idHelperSvc.get());
129  const MdtAsBuiltContainer* asBuiltCont{nullptr};
130  const BLineContainer* bLines{nullptr};
131  if (m_applyMdtAsBuilt) {
133  asBuiltCont = readHandle.cptr();
134  }
135  if (m_applyBLines) {
137  bLines = readHandle.cptr();
138  }
139  const MdtIdHelper& idHelper{m_idHelperSvc->mdtIdHelper()};
140  for (auto itr = idHelper.module_begin(); itr != idHelper.module_end(); ++itr) {
141  const Identifier& stationId{*itr};
142  const BLinePar* bline{nullptr};
143  if (bLines) {
144  BLineContainer::const_iterator itr = bLines->find(stationId);
145  if (itr != bLines->end()) bline = &(*itr);
146  }
147  const MdtAsBuiltPar* asBuilt{nullptr};
148  if (asBuiltCont) {
149  MdtAsBuiltContainer::const_iterator itr = asBuiltCont->find(stationId);
150  if (itr != asBuiltCont->end()) asBuilt = &(*itr);
151  }
152  if (asBuilt || bline) internAlign->storeDistortion(stationId, bline, asBuilt);
153  }
154  // Down cast the alignment pointer
155  store.internalAlignment = std::move(internAlign);
156  return StatusCode::SUCCESS;
157 }

◆ loadMmDeformPars()

StatusCode ActsMuonAlignCondAlg::loadMmDeformPars ( const EventContext &  ctx,
ActsTrk::DetectorAlignStore store 
) const
private

Replace it by the vector of MmReadout elements once these are implemented

Definition at line 158 of file ActsMuonAlignCondAlg.cxx.

159  {
161  return StatusCode::SUCCESS;
162  }
163  std::unique_ptr<MmAlignmentStore> internAlign = std::make_unique<MmAlignmentStore>();
164  if (m_applyMmPassivation) {
166  internAlign->passivation = readHandle.cptr();
167  }
168  if (m_applyNswAsBuilt) {
170  internAlign->asBuiltPars = readHandle->microMegaData;
171  }
172  if (m_applyBLines) {
175  std::vector<const MuonReadoutElement*> reEles = m_detMgr->getAllReadoutElements();
176  for (const MuonReadoutElement* re : reEles){
177  if (re->detectorType() != ActsTrk::DetectorType::Mm) continue;
178  const Identifier stationId = alignmentId(re);
179  BLineContainer::const_iterator itr = readHandle->find(stationId);
180  if (itr != readHandle->end()) internAlign->cacheBLine(re->identify(), *itr);
181  }
182  }
183  store.internalAlignment = std::move(internAlign);
184  return StatusCode::SUCCESS;
185 }

◆ loadStgcDeformPars()

StatusCode ActsMuonAlignCondAlg::loadStgcDeformPars ( const EventContext &  ctx,
ActsTrk::DetectorAlignStore store 
) const
private

Replace it by the vector of MmReadout elements once these are implemented

Definition at line 186 of file ActsMuonAlignCondAlg.cxx.

187  {
189  return StatusCode::SUCCESS;
190  }
191  std::unique_ptr<sTgcAlignmentStore> internalAlign = std::make_unique<sTgcAlignmentStore>();
194  internalAlign->asBuiltPars = *readHandle;
195  }
196  if (m_applyBLines) {
199  std::vector<const MuonReadoutElement*> reEles = m_detMgr->getAllReadoutElements();
200  for (const MuonReadoutElement* re : reEles){
201  if (re->detectorType() != ActsTrk::DetectorType::sTgc) continue;
202  const Identifier stationId = alignmentId(re);
203  BLineContainer::const_iterator itr = readHandle->find(stationId);
204  if (itr != readHandle->end()) internalAlign->cacheBLine(re->identify(), *itr);
205  }
206  }
207  store.internalAlignment = std::move(internalAlign);
208  return StatusCode::SUCCESS;
209 }

◆ msg() [1/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ setFilterPassed()

virtual void AthCommonReentrantAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100  {
101  execState( ctx ).setFilterPassed( state );
102  }

◆ sysExecute()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext &  ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.

77 {
78  return BaseAlg::sysExecute (ctx);
79 }

◆ sysInitialize()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in InputMakerBase, and HypoBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

107  {
109 
110  if (sc.isFailure()) {
111  return sc;
112  }
113 
114  ServiceHandle<ICondSvc> cs("CondSvc",name());
115  for (auto h : outputHandles()) {
116  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
117  // do this inside the loop so we don't create the CondSvc until needed
118  if ( cs.retrieve().isFailure() ) {
119  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
120  return StatusCode::SUCCESS;
121  }
122  if (cs->regHandle(this,*h).isFailure()) {
123  sc = StatusCode::FAILURE;
124  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125  << " with CondSvc");
126  }
127  }
128  }
129  return sc;
130 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_applyALines

Gaudi::Property<bool> ActsMuonAlignCondAlg::m_applyALines {this, "applyALines", false}
private

Apply translations and rotations to align the Muon stations.

Definition at line 101 of file ActsMuonAlignCondAlg.h.

◆ m_applyBLines

Gaudi::Property<bool> ActsMuonAlignCondAlg::m_applyBLines {this, "applyBLines", false}
private

Apply the chamber deformation model (Mdts + Nsw)

Definition at line 103 of file ActsMuonAlignCondAlg.h.

◆ m_applyMdtAsBuilt

Gaudi::Property<bool> ActsMuonAlignCondAlg::m_applyMdtAsBuilt
private
Initial value:
{this, "applyMdtAsBuilt", false,
"Toggles the application of the Mdt as-built parameters"}

Definition at line 98 of file ActsMuonAlignCondAlg.h.

◆ m_applyMmPassivation

Gaudi::Property<bool> ActsMuonAlignCondAlg::m_applyMmPassivation {this, "applyMmPassivation", false}
private

Definition at line 93 of file ActsMuonAlignCondAlg.h.

◆ m_applyNswAsBuilt

Gaudi::Property<bool> ActsMuonAlignCondAlg::m_applyNswAsBuilt
private
Initial value:
{this, "applyNswAsBuilt", false,
"Toggles the application of the Nsw as-built parameters"}

Definition at line 95 of file ActsMuonAlignCondAlg.h.

◆ m_detMgr

const MuonGMR4::MuonDetectorManager* ActsMuonAlignCondAlg::m_detMgr {nullptr}
private

Definition at line 91 of file ActsMuonAlignCondAlg.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.h.

◆ m_fillAlignStoreCache

Gaudi::Property<bool> ActsMuonAlignCondAlg::m_fillAlignStoreCache {this, "FillAlignCache", false}
private

Flag toggling whether the alignment store shall be filled with the transforms or not.

Definition at line 105 of file ActsMuonAlignCondAlg.h.

◆ m_fillGeoAlignStore

Gaudi::Property<bool> ActsMuonAlignCondAlg::m_fillGeoAlignStore {this, "FillGeoAlignStore", true}
private

Flag toggling whether the GeoAlignmentStore shall be filled.

Definition at line 107 of file ActsMuonAlignCondAlg.h.

◆ m_idHelperSvc

ServiceHandle<Muon::IMuonIdHelperSvc> ActsMuonAlignCondAlg::m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
private

Definition at line 89 of file ActsMuonAlignCondAlg.h.

◆ m_keyToken

Gaudi::Property<std::string> ActsMuonAlignCondAlg::m_keyToken
private
Initial value:
{this, "CondKeyToken","ActsAlignContainer",
"Common name token of all written alignment objects (e.g.) MdtActsAlignContainer"}

Definition at line 87 of file ActsMuonAlignCondAlg.h.

◆ m_readKeyALines

SG::ReadCondHandleKey<ALineContainer> ActsMuonAlignCondAlg::m_readKeyALines
private
Initial value:
{this, "ReadKeyALines", "ALineContainer",
"Key of the ALine container created from the DB"}

Definition at line 70 of file ActsMuonAlignCondAlg.h.

◆ m_readKeyBLines

SG::ReadCondHandleKey<BLineContainer> ActsMuonAlignCondAlg::m_readKeyBLines
private
Initial value:
{this, "ReadKeyBLines", "BLineContainer",
"Key of the BLine container created from the DB"}

Definition at line 73 of file ActsMuonAlignCondAlg.h.

◆ m_readMdtAsBuiltKey

SG::ReadCondHandleKey<MdtAsBuiltContainer> ActsMuonAlignCondAlg::m_readMdtAsBuiltKey
private
Initial value:
{this, "ReadMdtAsBuiltKey", "MdtAsBuiltContainer",
"Key of output muon alignment MDT/AsBuilt condition data"}

Definition at line 76 of file ActsMuonAlignCondAlg.h.

◆ m_readNswAsBuiltKey

SG::ReadCondHandleKey<NswAsBuiltDbData> ActsMuonAlignCondAlg::m_readNswAsBuiltKey
private
Initial value:
{this, "ReadNswAsBuiltKey", "NswAsBuiltDbData",
"Key of NswAsBuiltDbData object containing conditions data for NSW as-built params!"}

Definition at line 78 of file ActsMuonAlignCondAlg.h.

◆ m_readNswPassivKey

SG::ReadCondHandleKey<NswPassivationDbData> ActsMuonAlignCondAlg::m_readNswPassivKey
private
Initial value:
{this, "dMmPassivationKey", "NswPassivationDbData",
"Key of NswPassivationDbData object containing passivation data for MMs"}

Definition at line 82 of file ActsMuonAlignCondAlg.h.

◆ m_readsTgcAsBuiltKey

SG::ReadCondHandleKey<sTGCAsBuiltData> ActsMuonAlignCondAlg::m_readsTgcAsBuiltKey
private
Initial value:
{this, "ReadsTgcAsBuiltKey", "",
"Key of sTGCAsBuiltDbData object containing conditions data for sTgc as-built params!"}

Definition at line 80 of file ActsMuonAlignCondAlg.h.

◆ m_techs

std::vector<ActsTrk::DetectorType> ActsMuonAlignCondAlg::m_techs {}
private

Definition at line 68 of file ActsMuonAlignCondAlg.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.

◆ m_writeKeys

SG::WriteCondHandleKeyArray<ActsTrk::DetectorAlignStore> ActsMuonAlignCondAlg::m_writeKeys
private
Initial value:
{this, "WriteKeys", {},
"Keys of the alignment technologies"}

Definition at line 85 of file ActsMuonAlignCondAlg.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
SGTest::store
TestStore store
Definition: TestStore.cxx:23
ActsMuonAlignCondAlg::m_fillGeoAlignStore
Gaudi::Property< bool > m_fillGeoAlignStore
Flag toggling whether the GeoAlignmentStore shall be filled.
Definition: ActsMuonAlignCondAlg.h:107
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
MuonGMR4::MuonDetectorManager::getDetectorTypes
std::vector< ActsTrk::DetectorType > getDetectorTypes() const
Returns a list of all detector types.
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonDetectorManager.cxx:143
ActsMuonAlignCondAlg::loadDeltas
StatusCode loadDeltas(const EventContext &ctx, deltaMap &alignDeltas, alignTechMap &techTransforms) const
Loads the ALineContainer from the conditions store and fills the deltaMap with the A-Line delta trans...
Definition: ActsMuonAlignCondAlg.cxx:82
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
ActsTrk::DetectorAlignStore::geoModelAlignment
std::shared_ptr< GeoAlignmentStore > geoModelAlignment
Store containing the aligned GeoModel nodes.
Definition: DetectorAlignStore.h:31
ActsTrk::DetectorType
DetectorType
Simple enum to Identify the Type of the ACTS sub detector.
Definition: GeometryDefs.h:17
ActsMuonAlignCondAlg::m_readsTgcAsBuiltKey
SG::ReadCondHandleKey< sTGCAsBuiltData > m_readsTgcAsBuiltKey
Definition: ActsMuonAlignCondAlg.h:80
TRTCalib_Extractor.det
det
Definition: TRTCalib_Extractor.py:36
ActsMuonAlignCondAlg::declareDependencies
StatusCode declareDependencies(const EventContext &ctx, ActsTrk::DetectorType detType, SG::WriteCondHandle< ActsTrk::DetectorAlignStore > &writeHandle) const
Loads the corresponding ReadCondHandles from the Conditions store and adds their IOVs to the dependen...
Definition: ActsMuonAlignCondAlg.cxx:211
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
hist_file_dump.d
d
Definition: hist_file_dump.py:143
AthCommonDataStore::renounce
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
Definition: AthCommonDataStore.h:380
ActsTrk::DetectorType::Tgc
@ Tgc
Resitive Plate Chambers.
MuonGMR4::MuonReadoutElement
The MuonReadoutElement is an abstract class representing the geometry representing the muon detector.
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonReadoutElement.h:38
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
MuonGMR4::MuonDetectorManager::getAllReadoutElements
std::vector< const MuonReadoutElement * > getAllReadoutElements() const
Returns the list of all detector elements.
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
ActsMuonAlignCondAlg::m_applyBLines
Gaudi::Property< bool > m_applyBLines
Apply the chamber deformation model (Mdts + Nsw)
Definition: ActsMuonAlignCondAlg.h:103
ActsTrk::DetectorType::sTgc
@ sTgc
Micromegas (NSW)
SG::VarHandleKey::empty
bool empty() const
Test if the key is blank.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:150
sTgcAlignmentStore::asBuiltPars
const sTGCAsBuiltData * asBuiltPars
Pointer to the collection of passivation parameters if the project is not AthSimulation.
Definition: sTgcAlignmentStore.h:20
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
MmAlignmentStore::asBuiltPars
MmAsBuiltPtr asBuiltPars
Definition: MmAlignmentStore.h:24
ActsMuonAlignCondAlg::m_fillAlignStoreCache
Gaudi::Property< bool > m_fillAlignStoreCache
Flag toggling whether the alignment store shall be filled with the transforms or not.
Definition: ActsMuonAlignCondAlg.h:105
ActsMuonAlignCondAlg::alignmentId
Identifier alignmentId(const MuonGMR4::MuonReadoutElement *reElement) const
Returns the Identifier serving as key to find the alignment parameters connected with the readout ele...
Definition: ActsMuonAlignCondAlg.cxx:65
AthCommonReentrantAlgorithm::extraOutputDeps
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
Definition: AthCommonReentrantAlgorithm.cxx:89
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
MdtAlignmentStore::storeDistortion
void storeDistortion(const Identifier &detElId, const BLinePar *bline, const MdtAsBuiltPar *asBuilt)
Definition: MdtAlignmentStore.cxx:12
AthCommonDataStore
Definition: AthCommonDataStore.h:52
Amg::toString
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Definition: GeoPrimitivesToStringConverter.h:40
ActsMuonAlignCondAlg::m_readNswAsBuiltKey
SG::ReadCondHandleKey< NswAsBuiltDbData > m_readNswAsBuiltKey
Definition: ActsMuonAlignCondAlg.h:78
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
NswPassivationDbData
Definition: NswPassivationDbData.h:20
MmAlignmentStore::cacheBLine
void cacheBLine(const Identifier &detElId, const BLinePar &bline)
Caches the micromega BLine parameter.
Definition: MmAlignmentStore.cxx:8
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
MuonGMR4::MuonDetectorManager::getNumTreeTops
unsigned int getNumTreeTops() const override final
Access specifically the individual readout element technologies.
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonDetectorManager.cxx:130
ActsTrk::DetectorType::Mm
@ Mm
Maybe not needed in the migration.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
ActsMuonAlignCondAlg::m_readMdtAsBuiltKey
SG::ReadCondHandleKey< MdtAsBuiltContainer > m_readMdtAsBuiltKey
Definition: ActsMuonAlignCondAlg.h:76
AthCommonReentrantAlgorithm::sysExecute
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
Definition: AthCommonReentrantAlgorithm.cxx:76
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
ActsMuonAlignCondAlg::m_detMgr
const MuonGMR4::MuonDetectorManager * m_detMgr
Definition: ActsMuonAlignCondAlg.h:91
MdtIdHelper
Definition: MdtIdHelper.h:61
ActsMuonAlignCondAlg::m_writeKeys
SG::WriteCondHandleKeyArray< ActsTrk::DetectorAlignStore > m_writeKeys
Definition: ActsMuonAlignCondAlg.h:85
sTGCAsBuiltData
Class holding the sTGC as built conditions data and applying it. The model consists of four parameter...
Definition: sTGCAsBuiltData.h:27
ActsMuonAlignCondAlg::m_readNswPassivKey
SG::ReadCondHandleKey< NswPassivationDbData > m_readNswPassivKey
Definition: ActsMuonAlignCondAlg.h:82
ActsMuonAlignCondAlg::deltaMap
std::unordered_map< const GeoAlignableTransform *, std::shared_ptr< const Amg::Transform3D > > deltaMap
Association map of the GeoAlignableTransforms with the rigid alignment transformations.
Definition: ActsMuonAlignCondAlg.h:43
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
ALineContainer
std::set< ALinePar, std::less<> > ALineContainer
Definition: CorrContainer.h:16
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
ActsMuonAlignCondAlg::m_applyMmPassivation
Gaudi::Property< bool > m_applyMmPassivation
Definition: ActsMuonAlignCondAlg.h:93
ActsMuonAlignCondAlg::m_applyNswAsBuilt
Gaudi::Property< bool > m_applyNswAsBuilt
Definition: ActsMuonAlignCondAlg.h:95
ActsMuonAlignCondAlg::m_techs
std::vector< ActsTrk::DetectorType > m_techs
Definition: ActsMuonAlignCondAlg.h:68
ActsMuonAlignCondAlg::alignTechMap
std::map< ActsTrk::DetectorType, std::set< const GeoAlignableTransform * > > alignTechMap
Association map of the GeoAlignable transforms with the detector technologies.
Definition: ActsMuonAlignCondAlg.h:45
BLinePar
Definition: BLinePar.h:14
MdtAsBuiltContainer
std::set< MdtAsBuiltPar, std::less<> > MdtAsBuiltContainer
Definition: CorrContainer.h:24
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
MuonGMR4::MuonDetectorManager::getTreeTop
PVConstLink getTreeTop(unsigned int i) const override final
Returns the i-th top node of the MuonSystem trees.
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonDetectorManager.cxx:133
ActsTrk::DetectorType::Mdt
@ Mdt
MuonSpectrometer.
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
python.decorators.cached.cached
def cached(func)
Decorator to cache function return value.
Definition: cached.py:6
ActsMuonAlignCondAlg::loadStgcDeformPars
StatusCode loadStgcDeformPars(const EventContext &ctx, ActsTrk::DetectorAlignStore &store) const
Definition: ActsMuonAlignCondAlg.cxx:186
MdtAsBuiltPar
Container classifier the MDT as-built parameters See parameter description in http://atlas-muon-align...
Definition: MdtAsBuiltPar.h:18
a
TList * a
Definition: liststreamerinfos.cxx:10
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
sTgcAlignmentStore::cacheBLine
void cacheBLine(const Identifier &detElId, const BLinePar &bline)
Caches the micromega BLine parameter.
Definition: sTgcAlignmentStore.cxx:8
re
const boost::regex re(r_e)
CREATE_READHANDLE
#define CREATE_READHANDLE(CONT_TYPE, KEY)
Definition: ActsMuonAlignCondAlg.cxx:15
ActsTrk::DetectorType::Rpc
@ Rpc
Monitored Drift Tubes.
ActsMuonAlignCondAlg::loadMdtDeformPars
StatusCode loadMdtDeformPars(const EventContext &ctx, ActsTrk::DetectorAlignStore &store) const
Loads the BLine container and the Mdt-as built parameters from the Conditions store and stores them i...
Definition: ActsMuonAlignCondAlg.cxx:122
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:629
ActsMuonAlignCondAlg::m_readKeyBLines
SG::ReadCondHandleKey< BLineContainer > m_readKeyBLines
Definition: ActsMuonAlignCondAlg.h:73
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthCommonReentrantAlgorithm.cxx:107
SG::WriteCondHandleKey< ActsTrk::DetectorAlignStore >
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
MmAlignmentStore::passivation
const NswPassivationDbData * passivation
Passivation is subdivided into several PCBs Ship the complete container with the alignment store.
Definition: MmAlignmentStore.h:20
ActsMuonAlignCondAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: ActsMuonAlignCondAlg.h:89
IOVInfiniteRange::infiniteTime
static EventIDRange infiniteTime()
Produces an EventIDRange that is inifinite in Time and invalid in RunLumi.
Definition: IOVInfiniteRange.h:47
BLineContainer
std::set< BLinePar, std::less<> > BLineContainer
Definition: CorrContainer.h:20
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
ActsMuonAlignCondAlg::loadMmDeformPars
StatusCode loadMmDeformPars(const EventContext &ctx, ActsTrk::DetectorAlignStore &store) const
Definition: ActsMuonAlignCondAlg.cxx:158
ActsMuonAlignCondAlg::m_keyToken
Gaudi::Property< std::string > m_keyToken
Definition: ActsMuonAlignCondAlg.h:87
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthCommonReentrantAlgorithm.h:114
ActsMuonAlignCondAlg::m_applyALines
Gaudi::Property< bool > m_applyALines
Apply translations and rotations to align the Muon stations.
Definition: ActsMuonAlignCondAlg.h:101
SG::WriteCondHandle
Definition: WriteCondHandle.h:26
ActsMuonAlignCondAlg::m_readKeyALines
SG::ReadCondHandleKey< ALineContainer > m_readKeyALines
Definition: ActsMuonAlignCondAlg.h:70
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
fitman.k
k
Definition: fitman.py:528
NswAsBuiltDbData
Definition: NswAsBuiltDbData.h:17
ActsMuonAlignCondAlg::m_applyMdtAsBuilt
Gaudi::Property< bool > m_applyMdtAsBuilt
Definition: ActsMuonAlignCondAlg.h:98
ServiceHandle< ICondSvc >
SG::WriteCondHandle::addDependency
void addDependency(const EventIDRange &range)
Definition: WriteCondHandle.h:279
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37
Identifier
Definition: IdentifierFieldParser.cxx:14