ATLAS Offline Software
Loading...
Searching...
No Matches
MuonDetectorCondAlg Class Reference

#include <MuonDetectorCondAlg.h>

Inheritance diagram for MuonDetectorCondAlg:
Collaboration diagram for MuonDetectorCondAlg:

Public Member Functions

 MuonDetectorCondAlg (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~MuonDetectorCondAlg ()=default
virtual StatusCode initialize () override final
virtual StatusCode execute (const EventContext &ctx) const override final
virtual bool isReEntrant () const override
 Avoid scheduling algorithm multiple times.
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
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.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
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.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

StatusCode copyInertMaterial (MuonGM::MuonDetectorManager &detMgr) const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

Gaudi::Property< bool > m_applyMmPassivation {this, "applyMmPassivation", false}
Gaudi::Property< bool > m_applyNswAsBuilt
Gaudi::Property< bool > m_applysTGCAsBuilt
Gaudi::Property< bool > m_applyMmAsBuilt2
Gaudi::Property< bool > m_applyMdtAsBuilt
Gaudi::Property< bool > m_applyALines {this, "applyALines", true}
 Apply translations and rotations to align the Muon stations.
Gaudi::Property< bool > m_applyBLines {this, "applyBLines", true}
 Apply the chamber deformation model (Mdts + Nsw)
Gaudi::Property< bool > m_applyILines {this, "applyILines", true}
 Apply internal transformations on the CSCs.
ToolHandle< MuonDetectorToolm_iGeoModelTool {this, "MuonDetectorTool", "MuonDetectorTool", "The MuonDetector tool"}
ServiceHandle< Muon::IMuonIdHelperSvcm_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
SG::ReadCondHandleKey< ALineContainerm_readALineKey {this, "ReadALineKey", "ALineContainer", "Key of input muon alignment ALine condition data"}
SG::ReadCondHandleKey< BLineContainerm_readBLineKey {this, "ReadBLineKey", "BLineContainer", "Key of input muon alignment BLine condition data"}
SG::ReadCondHandleKey< ALineContainerm_readILineKey
SG::ReadCondHandleKey< MdtAsBuiltContainerm_readMdtAsBuiltKey {this, "ReadMdtAsBuiltKey", "MdtAsBuiltContainer", "Key of output muon alignment MDT/AsBuilt condition data"}
SG::ReadCondHandleKey< NswAsBuiltDbDatam_readNswAsBuiltKey {this, "ReadNswAsBuiltKey", "NswAsBuiltDbData", "Key of NswAsBuiltDbData object containing conditions data for NSW as-built params!"}
SG::ReadCondHandleKey< sTGCAsBuiltDatam_readsTGCAsBuiltKey {this, "ReadsTGCAsBuiltKey", "sTGCAsBuilt", "Key of sTGCAsBuiltData object containing conditions data for the sTGC as-built model!"}
SG::ReadCondHandleKey< sTGCAsBuiltDatam_readMmAsBuilt2Key {this, "ReadMmAsBuilt2Key", "", "Key of sTGCAsBuiltData object containing conditions data for the sTGC as-built model!"}
SG::ReadCondHandleKey< NswPassivationDbDatam_condMmPassivKey {this, "condMmPassivKey", "NswPassivationDbData", "Key of NswPassivationDbData object containing passivation data for MMs"}
SG::WriteCondHandleKey< MuonGM::MuonDetectorManagerm_writeDetectorManagerKey
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Definition at line 20 of file MuonDetectorCondAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ MuonDetectorCondAlg()

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

Definition at line 20 of file MuonDetectorCondAlg.cxx.

20 :
21 AthCondAlgorithm(name, pSvcLocator) {}

◆ ~MuonDetectorCondAlg()

virtual MuonDetectorCondAlg::~MuonDetectorCondAlg ( )
virtualdefault

Member Function Documentation

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality ( ) const
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.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64{
65 return 0;
66}

◆ copyInertMaterial()

StatusCode MuonDetectorCondAlg::copyInertMaterial ( MuonGM::MuonDetectorManager & detMgr) const
private

All operations are atomic. So it's safe to cast constness away

Definition at line 192 of file MuonDetectorCondAlg.cxx.

192 {
193 const MuonGM::MuonDetectorManager *MuonDetMgrDS{nullptr};
194 ATH_CHECK(detStore()->retrieve(MuonDetMgrDS));
195
196 // In the new geomodel, there is only one GeoModel tree and it is pre-built. In that
197 // case these pointers are the same and one should not copy to self.
198 if (MuonDetMgrDS->getTreeTop(0)==detMgr.getTreeTop(0)) return StatusCode::SUCCESS;
199 // ---------------------------------------------------------------------------------
200
201 PVLink condMgrWorld{detMgr.getTreeTop(0)};
202
203 GeoVolumeCursor detStoreCursor{MuonDetMgrDS->getTreeTop(0)};
204 while (!detStoreCursor.atEnd()) {
205 PVConstLink worldNode(detStoreCursor.getVolume());
206 const Amg::Transform3D transform{detStoreCursor.getTransform()};
207 const GeoLogVol* logVol = worldNode->getLogVol();
208 const std::string_view vname = logVol->getName();
209 detStoreCursor.next();
210 if (vname.find("Station") != std::string::npos) continue;
212 const GeoVPhysVol& pvConstLink = *worldNode;
213 ATH_MSG_DEBUG("Volume in the static world "<<vname<<" "<<typeid(pvConstLink).name()
214 <<"children: "<<worldNode->getNChildNodes()<<" cursor: "<<Amg::toString(transform));
215 condMgrWorld->add(make_intrusive<GeoTransform>(transform));
216 condMgrWorld->add(const_pointer_cast(worldNode));
217 }
218 return StatusCode::SUCCESS;
219}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x)
const ServiceHandle< StoreGateSvc > & detStore() const
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Eigen::Affine3d Transform3D
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
retrieve(aClass, aKey=None)
Definition PyKernel.py:110

◆ declareGaudiProperty()

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

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

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

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

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ 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.

◆ evtStore()

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.

◆ execute()

StatusCode MuonDetectorCondAlg::execute ( const EventContext & ctx) const
finaloverridevirtual

Create a new world with the same dimensions as ATLAS. Decouple the ATLAS and the aligned muon world Otherwise the created GeoModelTree is never deleted if the alignment constants go out of scope

Definition at line 44 of file MuonDetectorCondAlg.cxx.

44 {
45 ATH_MSG_DEBUG("execute " << name());
46
47 // =======================
48 // Conditions handle
49 // =======================
50 SG::WriteCondHandle<MuonGM::MuonDetectorManager> writeHandle{m_writeDetectorManagerKey, ctx};
51 if (writeHandle.isValid()) {
52 ATH_MSG_DEBUG("CondHandle " << writeHandle.fullKey() << " is already valid."
53 << ". In theory this should not be called, but may happen"
54 << " if multiple concurrent events are being processed out of order.");
55 return StatusCode::SUCCESS;
56 }
58
59 GeoModelExperiment *theExpt = nullptr;
60 ATH_CHECK(detStore()->retrieve(theExpt, "ATLAS"));
63 PVConstLink ATLASWorld = theExpt->getPhysVol();
64 GeoIntrusivePtr<GeoPhysVol> world{make_intrusive<GeoPhysVol>(ATLASWorld->getLogVol())};
65
66
67 MuonGM::MuonDetectorManager *mgr{nullptr};
68 ATH_CHECK (m_iGeoModelTool->createFactory(mgr, world));
69 std::unique_ptr<MuonGM::MuonDetectorManager> MuonMgrData(mgr);
70
71 // =======================
72 // Add NSW to the MuonDetectorManager by calling BuildReadoutGeometry from MuonAGDDToolHelper
73 // =======================
74
75 if (MuonMgrData->mmIdHelper() && MuonMgrData->stgcIdHelper()) {
76 BuildNSWReadoutGeometry theBuilder{};
77 if(!theBuilder.BuildReadoutGeometry(MuonMgrData.get())){
78 ATH_MSG_FATAL("unable to add NSW ReadoutGeometry in the MuonDetectorManager in conditions store");
79 return StatusCode::FAILURE;
80 }
82 SG::ReadCondHandle<NswPassivationDbData> readMmPass{m_condMmPassivKey, ctx};
83 if(!readMmPass.isValid()){
84 ATH_MSG_ERROR("Cannot find conditions data container for MM passivation!");
85 return StatusCode::FAILURE;
86 }
87 writeHandle.addDependency(readMmPass);
88 MuonMgrData->setMMPassivation(readMmPass.cptr());
89 }
90 }
91
92 // =======================
93 // Update CSC Internal Alignment if requested
94 // =======================
95
96 if (!m_readILineKey.empty()) {
97 SG::ReadCondHandle<ALineContainer> readILinesHandle{m_readILineKey, ctx};
98 if (!readILinesHandle.isValid()){
99 ATH_MSG_FATAL("Failed to retrieve the CSC I-line container "<<readILinesHandle.fullKey());
100 return StatusCode::FAILURE;
101 }
102 writeHandle.addDependency(readILinesHandle);
103 ATH_CHECK(MuonMgrData->updateCSCInternalAlignmentMap(**readILinesHandle));
104 }
105
106 // =======================
107 // Update MdtAsBuiltMapContainer if requested BEFORE updating ALINES and BLINES
108 // =======================
109 if (!m_readMdtAsBuiltKey.empty()) {
110 SG::ReadCondHandle<MdtAsBuiltContainer> readMdtAsBuiltHandle{m_readMdtAsBuiltKey, ctx};
111 if (!readMdtAsBuiltHandle.isValid()) {
112 ATH_MSG_FATAL("Failed to load Mdt as-built container "<<m_readMdtAsBuiltKey.fullKey());
113 return StatusCode::FAILURE;
114 }
115 writeHandle.addDependency(readMdtAsBuiltHandle);
116 ATH_CHECK(MuonMgrData->updateMdtAsBuiltParams(**readMdtAsBuiltHandle));
117 }
118
119 // =======================
120 // Set NSW as-built geometry if requested
121 // =======================
122 if (!m_readNswAsBuiltKey.empty()) {
123 SG::ReadCondHandle<NswAsBuiltDbData> readNswAsBuilt{m_readNswAsBuiltKey, ctx};
124 if(!readNswAsBuilt.isValid()) {
125 ATH_MSG_ERROR("Cannot find conditions data container for NSW as-built!");
126 return StatusCode::FAILURE;
127 }
128 writeHandle.addDependency(readNswAsBuilt);
129 MuonMgrData->setNswAsBuilt(*readNswAsBuilt);
130 }
131
132 if(!m_readsTGCAsBuiltKey.empty()){
133 SG::ReadCondHandle<sTGCAsBuiltData> readsTGCAsBuilt{m_readsTGCAsBuiltKey, ctx};
134 if(!readsTGCAsBuilt.isValid()){
135 ATH_MSG_ERROR("Cannot find conditions data container for sTGC as-built");
136 return StatusCode::FAILURE;
137 }
138 writeHandle.addDependency(readsTGCAsBuilt);
139 MuonMgrData->setsTGCAsBuilt(*readsTGCAsBuilt);
140 }
141
142 if(!m_readMmAsBuilt2Key.empty()){
143 SG::ReadCondHandle<sTGCAsBuiltData> readMmAsBuilt2{m_readMmAsBuilt2Key, ctx};
144 if(!readMmAsBuilt2.isValid()){
145 ATH_MSG_ERROR("Cannot find conditions data container for MM as-built 2");
146 return StatusCode::FAILURE;
147 }
148 writeHandle.addDependency(readMmAsBuilt2);
149 MuonMgrData->setMmAsBuilt2(*readMmAsBuilt2);
150 }
151
152
153 // =======================
154 // Update Alignment, ALINES
155 // =======================
156 if (m_applyALines) {
157 SG::ReadCondHandle<ALineContainer> readALinesHandle{m_readALineKey, ctx};
158 if (!readALinesHandle.isValid()) {
159 ATH_MSG_FATAL("Failed to load ALine container "<<m_readALineKey.fullKey());
160 return StatusCode::FAILURE;
161 }
162 writeHandle.addDependency(readALinesHandle);
163 ATH_CHECK(MuonMgrData->updateAlignment(**readALinesHandle));
164 } else ATH_MSG_INFO("Do not apply the A Lines of the alignment");
165
166 // =======================
167 // Update Deformations, BLINES
168 // =======================
169 if (m_applyBLines) {
170 SG::ReadCondHandle<BLineContainer> readBLinesHandle{m_readBLineKey, ctx};
171 if (!readBLinesHandle.isValid()) {
172 ATH_MSG_FATAL("Failed to load B line container "<<m_readBLineKey.fullKey());
173 return StatusCode::FAILURE;
174 }
175 writeHandle.addDependency(readBLinesHandle);
176 ATH_CHECK (MuonMgrData->updateDeformations(**readBLinesHandle));
177 } else ATH_MSG_INFO("Do not apply the B Lines of the alignment");
178
179 // !!!!!!!! UPDATE ANYTHING ELSE ???????
180 ATH_CHECK(copyInertMaterial(*MuonMgrData));
181 MuonMgrData->addTreeTop(world);
182 /* Short check that the reference count of the new universe is indeed 2 (1 from the experiment & 1 from the world Ptr) */
183 if (world->refCount() != 2) {
184 ATH_MSG_FATAL("The leaking reference counter to the GeoModel world detected "<<world->refCount());
185 return StatusCode::FAILURE;
186 }
187 ATH_CHECK(writeHandle.record(std::move(MuonMgrData)));
188 ATH_MSG_INFO("recorded new " << writeHandle.key() << " with range " << writeHandle.getRange() << " into Conditions Store");
189
190 return StatusCode::SUCCESS;
191}
#define ATH_MSG_ERROR(x)
#define ATH_MSG_FATAL(x)
#define ATH_MSG_INFO(x)
static bool BuildReadoutGeometry(MuonGM::MuonDetectorManager *mgr)
GeoPhysVol * getPhysVol()
Destructor.
static EventIDRange infiniteRunLB()
Produces an EventIDRange that is infinite in RunLumi and invalid in Time.
SG::ReadCondHandleKey< ALineContainer > m_readILineKey
Gaudi::Property< bool > m_applyBLines
Apply the chamber deformation model (Mdts + Nsw)
StatusCode copyInertMaterial(MuonGM::MuonDetectorManager &detMgr) const
SG::ReadCondHandleKey< BLineContainer > m_readBLineKey
SG::ReadCondHandleKey< sTGCAsBuiltData > m_readsTGCAsBuiltKey
ToolHandle< MuonDetectorTool > m_iGeoModelTool
SG::ReadCondHandleKey< NswAsBuiltDbData > m_readNswAsBuiltKey
Gaudi::Property< bool > m_applyALines
Apply translations and rotations to align the Muon stations.
SG::WriteCondHandleKey< MuonGM::MuonDetectorManager > m_writeDetectorManagerKey
SG::ReadCondHandleKey< ALineContainer > m_readALineKey
SG::ReadCondHandleKey< NswPassivationDbData > m_condMmPassivKey
SG::ReadCondHandleKey< MdtAsBuiltContainer > m_readMdtAsBuiltKey
SG::ReadCondHandleKey< sTGCAsBuiltData > m_readMmAsBuilt2Key
Gaudi::Property< bool > m_applyMmPassivation
const DataObjID & fullKey() const
const_pointer_type cptr()
const std::string & key() const
void addDependency(const EventIDRange &range)
const EventIDRange & getRange() const
StatusCode record(const EventIDRange &range, T *t)
record handle, with explicit range DEPRECATED
const DataObjID & fullKey() const

◆ 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 ( ) const
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 }
97}
An algorithm that can be simultaneously executed in multiple threads.

◆ 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 }
virtual bool filterPassed(const EventContext &ctx) const

◆ initialize()

StatusCode MuonDetectorCondAlg::initialize ( )
finaloverridevirtual

Definition at line 23 of file MuonDetectorCondAlg.cxx.

23 {
24 ATH_MSG_DEBUG("Initializing ...");
25 // Read Handles
26 ATH_CHECK(m_iGeoModelTool.retrieve());
27
36 ATH_CHECK(m_idHelperSvc.retrieve());
38 ATH_MSG_INFO("Initialize successful -- "<<m_applyALines<<", "<<m_applyBLines<<","
41 return StatusCode::SUCCESS;
42}
Gaudi::Property< bool > m_applyNswAsBuilt
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Gaudi::Property< bool > m_applysTGCAsBuilt
Gaudi::Property< bool > m_applyMdtAsBuilt
Gaudi::Property< bool > m_applyMmAsBuilt2
Gaudi::Property< bool > m_applyILines
Apply internal transformations on the CSCs.

◆ 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()

◆ isReEntrant()

virtual bool AthCondAlgorithm::isReEntrant ( ) const
inlineoverridevirtualinherited

Avoid scheduling algorithm multiple times.

With multiple concurrent events, conditions objects often expire simultaneously for all slots. To avoid that the scheduler runs the CondAlg in each slot, we declare it as "non-reentrant". This ensures that the conditions objects are only created once.

In case a particular CondAlg should behave differently, it can override this method again and return true.

See also
ATEAM-836

Definition at line 39 of file AthCondAlgorithm.h.

39{ return false; }

◆ msg()

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ 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();
384 }
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)

◆ 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 {
366 }

◆ setFilterPassed()

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

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100 {
102 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const

◆ 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 HypoBase, and InputMakerBase.

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()) {
124 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125 << " with CondSvc");
126 }
127 }
128 }
129 return sc;
130}
#define ATH_MSG_WARNING(x)
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ 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) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

Member Data Documentation

◆ m_applyALines

Gaudi::Property<bool> MuonDetectorCondAlg::m_applyALines {this, "applyALines", true}
private

Apply translations and rotations to align the Muon stations.

Definition at line 46 of file MuonDetectorCondAlg.h.

46{this, "applyALines", true};

◆ m_applyBLines

Gaudi::Property<bool> MuonDetectorCondAlg::m_applyBLines {this, "applyBLines", true}
private

Apply the chamber deformation model (Mdts + Nsw)

Definition at line 48 of file MuonDetectorCondAlg.h.

48{this, "applyBLines", true};

◆ m_applyILines

Gaudi::Property<bool> MuonDetectorCondAlg::m_applyILines {this, "applyILines", true}
private

Apply internal transformations on the CSCs.

Definition at line 50 of file MuonDetectorCondAlg.h.

50{this, "applyILines", true};

◆ m_applyMdtAsBuilt

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

Definition at line 43 of file MuonDetectorCondAlg.h.

43 {this, "applyMdtAsBuilt", true,
44 "Toggles the application of the Mdt as-built parameters"};

◆ m_applyMmAsBuilt2

Gaudi::Property<bool> MuonDetectorCondAlg::m_applyMmAsBuilt2
private
Initial value:
{this, "applyMmAsBuilt2", false,
"Toggles the application of the alternative MM as-built parameters"}

Definition at line 40 of file MuonDetectorCondAlg.h.

40 {this, "applyMmAsBuilt2", false,
41 "Toggles the application of the alternative MM as-built parameters"};

◆ m_applyMmPassivation

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

Definition at line 34 of file MuonDetectorCondAlg.h.

34{this, "applyMmPassivation", false};

◆ m_applyNswAsBuilt

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

Definition at line 36 of file MuonDetectorCondAlg.h.

36 {this, "applyNswAsBuilt", true,
37 "Toggles the application of the Nsw as-built parameters"};

◆ m_applysTGCAsBuilt

Gaudi::Property<bool> MuonDetectorCondAlg::m_applysTGCAsBuilt
private
Initial value:
{this, "applysTGCAsBuilt", false,
"Toggles the application of the sTGC as-built parameters"}

Definition at line 38 of file MuonDetectorCondAlg.h.

38 {this, "applysTGCAsBuilt", false,
39 "Toggles the application of the sTGC as-built parameters"};

◆ m_condMmPassivKey

SG::ReadCondHandleKey<NswPassivationDbData> MuonDetectorCondAlg::m_condMmPassivKey {this, "condMmPassivKey", "NswPassivationDbData", "Key of NswPassivationDbData object containing passivation data for MMs"}
private

Definition at line 64 of file MuonDetectorCondAlg.h.

64{this, "condMmPassivKey", "NswPassivationDbData", "Key of NswPassivationDbData object containing passivation data for MMs"};

◆ 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_idHelperSvc

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

Definition at line 53 of file MuonDetectorCondAlg.h.

53{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};

◆ m_iGeoModelTool

ToolHandle<MuonDetectorTool> MuonDetectorCondAlg::m_iGeoModelTool {this, "MuonDetectorTool", "MuonDetectorTool", "The MuonDetector tool"}
private

Definition at line 52 of file MuonDetectorCondAlg.h.

52{this, "MuonDetectorTool", "MuonDetectorTool", "The MuonDetector tool"};

◆ m_readALineKey

SG::ReadCondHandleKey<ALineContainer> MuonDetectorCondAlg::m_readALineKey {this, "ReadALineKey", "ALineContainer", "Key of input muon alignment ALine condition data"}
private

Definition at line 56 of file MuonDetectorCondAlg.h.

56{this, "ReadALineKey", "ALineContainer", "Key of input muon alignment ALine condition data"};

◆ m_readBLineKey

SG::ReadCondHandleKey<BLineContainer> MuonDetectorCondAlg::m_readBLineKey {this, "ReadBLineKey", "BLineContainer", "Key of input muon alignment BLine condition data"}
private

Definition at line 57 of file MuonDetectorCondAlg.h.

57{this, "ReadBLineKey", "BLineContainer", "Key of input muon alignment BLine condition data"};

◆ m_readILineKey

SG::ReadCondHandleKey<ALineContainer> MuonDetectorCondAlg::m_readILineKey
private
Initial value:
{this, "ReadILineKey", "CscInternalAlignmentContainer",
"Key of input muon alignment CSC/ILine condition data"}

Definition at line 58 of file MuonDetectorCondAlg.h.

58 {this, "ReadILineKey", "CscInternalAlignmentContainer",
59 "Key of input muon alignment CSC/ILine condition data"};

◆ m_readMdtAsBuiltKey

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

Definition at line 60 of file MuonDetectorCondAlg.h.

60{this, "ReadMdtAsBuiltKey", "MdtAsBuiltContainer", "Key of output muon alignment MDT/AsBuilt condition data"};

◆ m_readMmAsBuilt2Key

SG::ReadCondHandleKey<sTGCAsBuiltData> MuonDetectorCondAlg::m_readMmAsBuilt2Key {this, "ReadMmAsBuilt2Key", "", "Key of sTGCAsBuiltData object containing conditions data for the sTGC as-built model!"}
private

Definition at line 63 of file MuonDetectorCondAlg.h.

63{this, "ReadMmAsBuilt2Key", "", "Key of sTGCAsBuiltData object containing conditions data for the sTGC as-built model!"};

◆ m_readNswAsBuiltKey

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

Definition at line 61 of file MuonDetectorCondAlg.h.

61{this, "ReadNswAsBuiltKey", "NswAsBuiltDbData", "Key of NswAsBuiltDbData object containing conditions data for NSW as-built params!"};

◆ m_readsTGCAsBuiltKey

SG::ReadCondHandleKey<sTGCAsBuiltData> MuonDetectorCondAlg::m_readsTGCAsBuiltKey {this, "ReadsTGCAsBuiltKey", "sTGCAsBuilt", "Key of sTGCAsBuiltData object containing conditions data for the sTGC as-built model!"}
private

Definition at line 62 of file MuonDetectorCondAlg.h.

62{this, "ReadsTGCAsBuiltKey", "sTGCAsBuilt", "Key of sTGCAsBuiltData object containing conditions data for the sTGC as-built model!"};

◆ 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_writeDetectorManagerKey

SG::WriteCondHandleKey<MuonGM::MuonDetectorManager> MuonDetectorCondAlg::m_writeDetectorManagerKey
private
Initial value:
{this, "WriteDetectorManagerKey", "MuonDetectorManager",
"Key of output MuonDetectorManager condition data"}

Definition at line 67 of file MuonDetectorCondAlg.h.

67 {this, "WriteDetectorManagerKey", "MuonDetectorManager",
68 "Key of output MuonDetectorManager condition data"};

The documentation for this class was generated from the following files: