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

#include <TRTAlignCondAlg.h>

Inheritance diagram for TRTAlignCondAlg:
Collaboration diagram for TRTAlignCondAlg:

Public Member Functions

 TRTAlignCondAlg (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~TRTAlignCondAlg () override
virtual StatusCode initialize () override
virtual StatusCode execute (const EventContext &ctx) const override
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

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

Private Attributes

SG::ReadCondHandleKey< CondAttrListCollectionm_readKeyDynamicGlobal {this, "ReadKeyDynamicGlobal","/TRT/AlignL1/TRT","Read handle for global alignment conditions"}
SG::ReadCondHandleKey< AlignableTransformContainerm_readKeyDynamicRegular {this, "ReadKeyDynamicRegular","/TRT/AlignL2","Read handle for Dynamic Alignable transform containers"}
SG::ReadCondHandleKey< AlignableTransformContainerm_readKeyRegular {this, "ReadKeyRegular","/TRT/Align","Read handle for Static Alignable transform containers"}
SG::ReadCondHandleKey< TRTCond::StrawDxContainerm_readKeySpecial {this, "ReadKeySpecial", "/TRT/Calib/DX", "Read handle for fine TRT alignment"}
SG::WriteCondHandleKey< GeoAlignmentStorem_writeKeyAlignStore {this,"WriteKeyAlignStore","TRT_AlignmentStore","Write handle key to store TRT GeoAlignmentStore constants"}
SG::WriteCondHandleKey< InDetDD::TRT_DetElementContainerm_writeKeyDetElCont {this, "WriteKeyDetElCont", "TRT_DetElementContainer", "Key of output to store detector element structures for TRT"}
const InDetDD::TRT_DetectorManagerm_detManager {nullptr}
Gaudi::Property< bool > m_useDynamicFolders { this, "UseDynamicFolders", false, "Turn on-off use of Dynamic folders" }
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 23 of file TRTAlignCondAlg.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

◆ TRTAlignCondAlg()

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

Definition at line 10 of file TRTAlignCondAlg.cxx.

12 : ::AthCondAlgorithm(name,pSvcLocator)
13{
14}

◆ ~TRTAlignCondAlg()

TRTAlignCondAlg::~TRTAlignCondAlg ( )
overridevirtualdefault

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}

◆ 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 TRTAlignCondAlg::execute ( const EventContext & ctx) const
overridevirtual

Definition at line 38 of file TRTAlignCondAlg.cxx.

39{
40 ATH_MSG_DEBUG("execute " << name());
41
42 // ____________ Construct Write Cond Handles and check their validity ____________
43 SG::WriteCondHandle<InDetDD::TRT_DetElementContainer> writeHandleDetElCont{m_writeKeyDetElCont, ctx};
44 if (writeHandleDetElCont.isValid()) {
45 ATH_MSG_DEBUG("CondHandle " << writeHandleDetElCont.fullKey() << " is already valid."
46 << ". In theory this should not be called, but may happen"
47 << " if multiple concurrent events are being processed out of order.");
48 return StatusCode::SUCCESS;
49 }
50
51 std::unique_ptr<SG::WriteCondHandle<GeoAlignmentStore>> writeHandleAlignStore{};
52 if (!m_writeKeyAlignStore.empty()) {
53 writeHandleAlignStore = std::make_unique<SG::WriteCondHandle<GeoAlignmentStore>>(m_writeKeyAlignStore, ctx);
54 if (writeHandleAlignStore->isValid()) {
55 ATH_MSG_DEBUG("CondHandle " << writeHandleAlignStore->fullKey() << " is already valid."
56 << ". In theory this should not be called, but may happen"
57 << " if multiple concurrent events are being processed out of order.");
58 return StatusCode::SUCCESS;
59 }
60 }
61
62 // ____________ Construct new Write Cond Object and its range ____________
63 std::unique_ptr<GeoAlignmentStore> writeCdoAlignStore{std::make_unique<GeoAlignmentStore>()};
64
65 // ____________ Get Read Cond Objects ____________
66 // Container for passing read CDO-s over to the Detector Manager
67 InDetDD::RawAlignmentObjects readCdoContainer;
68
69 const InDetDD::TRT_DetElementCollection* unAlignedColl{m_detManager->getDetectorElementCollection()};
70 if (unAlignedColl==nullptr) {
71 ATH_MSG_FATAL("Null pointer is returned by getDetectorElementCollection()");
72 return StatusCode::FAILURE;
73 }
74
76 // 1. Dynamic folders
77
78 // ** Global
79 SG::ReadCondHandle<CondAttrListCollection> readHandleDynamicGlobal{m_readKeyDynamicGlobal,ctx};
80 // Get CDO and store it into container
81 const CondAttrListCollection* readCdoDynamicGlobal{*readHandleDynamicGlobal};
82 if(readCdoDynamicGlobal==nullptr) {
83 ATH_MSG_ERROR("Null pointer to the read conditions object: Dynamic Global");
84 return StatusCode::FAILURE;
85 }
86 readCdoContainer.emplace(m_readKeyDynamicGlobal.key(),readCdoDynamicGlobal);
87 // Add depdency for IOV-intersection
88 if (writeHandleAlignStore) writeHandleAlignStore->addDependency(readHandleDynamicGlobal);
89 writeHandleDetElCont.addDependency(readHandleDynamicGlobal);
90
91 // ** Regular
92 SG::ReadCondHandle<AlignableTransformContainer> readHandleDynamicRegular{m_readKeyDynamicRegular,ctx};
93 // Get CDO and store it into container
94 const AlignableTransformContainer* readCdoDynamicRegular{*readHandleDynamicRegular};
95 if(readCdoDynamicRegular==nullptr) {
96 ATH_MSG_ERROR("Null pointer to the read conditions object: Dynamic Regular");
97 return StatusCode::FAILURE;
98 }
99 readCdoContainer.emplace(m_readKeyDynamicRegular.key(),readCdoDynamicRegular);
100 // Add depdency for IOV-intersection
101 if (writeHandleAlignStore) writeHandleAlignStore->addDependency(readHandleDynamicRegular);
102 writeHandleDetElCont.addDependency(readHandleDynamicRegular);
103 }
104 else {
105 // 2. Regular folder
106 SG::ReadCondHandle<AlignableTransformContainer> readHandleRegular{m_readKeyRegular,ctx};
107 // Get CDO and store it into container
108 const AlignableTransformContainer* readCdoRegular{*readHandleRegular};
109 if(readCdoRegular==nullptr) {
110 ATH_MSG_ERROR("Null pointer to the read conditions object: Regular");
111 return StatusCode::FAILURE;
112 }
113 readCdoContainer.emplace(m_readKeyRegular.key(),readCdoRegular);
114 //Add dependency for IOV-intersection
115 if (writeHandleAlignStore) writeHandleAlignStore->addDependency(readHandleRegular);
116 writeHandleDetElCont.addDependency(readHandleRegular);
117 }
118
119 {
120 // Special folder
121 SG::ReadCondHandle<TRTCond::StrawDxContainer> readHandleSpecial{m_readKeySpecial,ctx};
122 // Get CDO and store it into container
123 const TRTCond::StrawDxContainer* readCdoSpecial{*readHandleSpecial};
124 if(!readCdoSpecial) {
125 ATH_MSG_ERROR("Null pointer to the read conditions object: Special");
126 return StatusCode::FAILURE;
127 }
128 readCdoContainer.emplace(m_readKeySpecial.key(),readCdoSpecial);
129 //Add dependency for IOV-intersection
130 if (writeHandleAlignStore) writeHandleAlignStore->addDependency(readHandleSpecial);
131 writeHandleDetElCont.addDependency(readHandleSpecial);
132 }
133
134 // ____________ Apply alignments to TRT GeoModel ____________
135 if(m_detManager->align(readCdoContainer, writeCdoAlignStore.get()).isFailure()) {
136 ATH_MSG_ERROR("Failed to apply alignments to TRT");
137 return StatusCode::FAILURE;
138 }
139
140 const InDetDD::TRT_DetElementCollection* alignedColl{m_detManager->getDetectorElementCollection()};
141 if (alignedColl==nullptr) {
142 ATH_MSG_FATAL("Null pointer is returned by getDetectorElementCollection()");
143 return StatusCode::FAILURE;
144 }
145
146 // ____________ Construct new Write Cond Object ____________
147 std::unique_ptr<InDetDD::TRT_DetElementContainer> writeCdoDetElCont{std::make_unique<InDetDD::TRT_DetElementContainer>()};
148
149 // ____________ Update writeCdo using readCdo ____________
150 std::map<const InDetDD::TRT_EndcapElement*, InDetDD::TRT_EndcapElement*> oldToNewECMap;
151 std::map<const InDetDD::TRT_BarrelElement*, InDetDD::TRT_BarrelElement*> oldToNewBAMap;
152
153 oldToNewECMap[nullptr] = nullptr;
154 oldToNewBAMap[nullptr] = nullptr;
155
156 //Create new aligned detector elements
157 for (const InDetDD::TRT_BaseElement* oldEl : *alignedColl) {
158 InDetDD::TRT_BaseElement::Type type = oldEl->type();
159
161 const InDetDD::TRT_EndcapElement* oldEl_Endcap = static_cast<const InDetDD::TRT_EndcapElement*>(oldEl);
162 //New encap element with new alignment created based on old element
163 InDetDD::TRT_EndcapElement* newEl = new InDetDD::TRT_EndcapElement(*oldEl_Endcap);
164 oldToNewECMap[oldEl_Endcap] = newEl;
165 writeCdoDetElCont->addEndcapElement(newEl);
166 } else if (type == InDetDD::TRT_BaseElement::BARREL) {
167 const InDetDD::TRT_BarrelElement* oldEl_Barrel = static_cast<const InDetDD::TRT_BarrelElement*>(oldEl);
168 //New barrel element with new alignment created based on old element
169 InDetDD::TRT_BarrelElement* newEl = new InDetDD::TRT_BarrelElement(*oldEl_Barrel);
170 oldToNewBAMap[oldEl_Barrel] = newEl;
171 writeCdoDetElCont->addBarrelElement(newEl);
172 } else {
173 ATH_MSG_FATAL("Unknown TRT detector element found");
174 return StatusCode::FAILURE;
175 }
176 }
177
178 //Set detector elements links
179 for (auto pairOfEl : oldToNewECMap) {
180 if (!pairOfEl.first) continue; // skip nullptr
181 pairOfEl.second->setNextInZ(oldToNewECMap[pairOfEl.first->nextInZ()]);
182 pairOfEl.second->setPreviousInZ(oldToNewECMap[pairOfEl.first->previousInZ()]);
183 }
184 for (auto pairOfEl : oldToNewBAMap) {
185 if (!pairOfEl.first) continue; // skip nullptr
186 pairOfEl.second->setNextInR(oldToNewBAMap[pairOfEl.first->nextInR()]);
187 pairOfEl.second->setPreviousInR(oldToNewBAMap[pairOfEl.first->previousInR()]);
188 pairOfEl.second->setNextInPhi(oldToNewBAMap[pairOfEl.first->nextInPhi()]);
189 pairOfEl.second->setPreviousInPhi(oldToNewBAMap[pairOfEl.first->previousInPhi()]);
190 }
191
192 // Update all detector elements caches
193 for (InDetDD::TRT_BaseElement* newEl : *(writeCdoDetElCont->getElements())) {
194 newEl->updateAllCaches(writeCdoAlignStore.get());
195 }
196
197 // Record WriteCondHandle
198 const std::size_t writeHandleDetElContSize{writeCdoDetElCont->getElements()->size()};
199
200 writeCdoDetElCont->setNumerology(m_detManager->getNumerology());
201
202 // Record the resulting CDO
203 if (writeHandleAlignStore != nullptr) {
204 if(writeHandleAlignStore->record(std::move(writeCdoAlignStore)).isFailure()) {
205 ATH_MSG_ERROR("Could not record GeoAlignmentStore " << writeHandleAlignStore->key()
206 << " with EventRange " << writeHandleAlignStore->getRange()
207 << " into Conditions Store");
208 return StatusCode::FAILURE;
209 }
210 ATH_MSG_INFO("recorded new CDO " << writeHandleAlignStore->key() << " with range "
211 << writeHandleAlignStore->getRange() << " into Conditions Store");
212 }
213
214 if (writeHandleDetElCont.record(std::move(writeCdoDetElCont)).isFailure()) {
215 ATH_MSG_FATAL("Could not record " << writeHandleDetElCont.key()
216 << " with EventRange " << writeHandleDetElCont.getRange()
217 << " into Conditions Store");
218 return StatusCode::FAILURE;
219 }
220 ATH_MSG_INFO("recorded new CDO " << writeHandleDetElCont.key() << " with range "
221 << writeHandleDetElCont.getRange() << " with size of " << writeHandleDetElContSize << " into Conditions Store");
222
223 return StatusCode::SUCCESS;
224}
CondMultChanCollection< AlignableTransform > AlignableTransformContainer
#define ATH_MSG_ERROR(x)
#define ATH_MSG_FATAL(x)
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
void updateAllCaches(GeoAlignmentStore *alignStore=nullptr) const
Update all caches.
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
SG::ReadCondHandleKey< AlignableTransformContainer > m_readKeyDynamicRegular
SG::ReadCondHandleKey< TRTCond::StrawDxContainer > m_readKeySpecial
SG::ReadCondHandleKey< AlignableTransformContainer > m_readKeyRegular
SG::WriteCondHandleKey< InDetDD::TRT_DetElementContainer > m_writeKeyDetElCont
SG::WriteCondHandleKey< GeoAlignmentStore > m_writeKeyAlignStore
const InDetDD::TRT_DetectorManager * m_detManager
Gaudi::Property< bool > m_useDynamicFolders
SG::ReadCondHandleKey< CondAttrListCollection > m_readKeyDynamicGlobal
std::map< std::string, const void * > RawAlignmentObjects

◆ 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 TRTAlignCondAlg::initialize ( )
overridevirtual

Definition at line 19 of file TRTAlignCondAlg.cxx.

20{
21 ATH_MSG_DEBUG("initialize " << name());
22
23 // Read Condition Handles initialize
24 ATH_CHECK( m_readKeyRegular.initialize(!m_useDynamicFolders.value()) );
27 ATH_CHECK( m_readKeySpecial.initialize() );
28
29 // Write condition handles initialize
31 ATH_CHECK( m_writeKeyDetElCont.initialize() );
32
34
35 return StatusCode::SUCCESS;
36}
#define ATH_CHECK
Evaluate an expression and check for errors.
const ServiceHandle< StoreGateSvc > & detStore() const
retrieve(aClass, aKey=None)
Definition PyKernel.py:110

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

const InDetDD::TRT_DetectorManager* TRTAlignCondAlg::m_detManager {nullptr}
private

Definition at line 40 of file TRTAlignCondAlg.h.

40{nullptr};

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

SG::ReadCondHandleKey<CondAttrListCollection> TRTAlignCondAlg::m_readKeyDynamicGlobal {this, "ReadKeyDynamicGlobal","/TRT/AlignL1/TRT","Read handle for global alignment conditions"}
private

Definition at line 33 of file TRTAlignCondAlg.h.

33{this, "ReadKeyDynamicGlobal","/TRT/AlignL1/TRT","Read handle for global alignment conditions"};

◆ m_readKeyDynamicRegular

SG::ReadCondHandleKey<AlignableTransformContainer> TRTAlignCondAlg::m_readKeyDynamicRegular {this, "ReadKeyDynamicRegular","/TRT/AlignL2","Read handle for Dynamic Alignable transform containers"}
private

Definition at line 34 of file TRTAlignCondAlg.h.

34{this, "ReadKeyDynamicRegular","/TRT/AlignL2","Read handle for Dynamic Alignable transform containers"};

◆ m_readKeyRegular

SG::ReadCondHandleKey<AlignableTransformContainer> TRTAlignCondAlg::m_readKeyRegular {this, "ReadKeyRegular","/TRT/Align","Read handle for Static Alignable transform containers"}
private

Definition at line 35 of file TRTAlignCondAlg.h.

35{this, "ReadKeyRegular","/TRT/Align","Read handle for Static Alignable transform containers"};

◆ m_readKeySpecial

SG::ReadCondHandleKey<TRTCond::StrawDxContainer> TRTAlignCondAlg::m_readKeySpecial {this, "ReadKeySpecial", "/TRT/Calib/DX", "Read handle for fine TRT alignment"}
private

Definition at line 36 of file TRTAlignCondAlg.h.

36{this, "ReadKeySpecial", "/TRT/Calib/DX", "Read handle for fine TRT alignment"};

◆ m_useDynamicFolders

Gaudi::Property<bool> TRTAlignCondAlg::m_useDynamicFolders { this, "UseDynamicFolders", false, "Turn on-off use of Dynamic folders" }
private

Definition at line 42 of file TRTAlignCondAlg.h.

42{ this, "UseDynamicFolders", false, "Turn on-off use of Dynamic folders" };

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

SG::WriteCondHandleKey<GeoAlignmentStore> TRTAlignCondAlg::m_writeKeyAlignStore {this,"WriteKeyAlignStore","TRT_AlignmentStore","Write handle key to store TRT GeoAlignmentStore constants"}
private

Definition at line 37 of file TRTAlignCondAlg.h.

37{this,"WriteKeyAlignStore","TRT_AlignmentStore","Write handle key to store TRT GeoAlignmentStore constants"};

◆ m_writeKeyDetElCont

SG::WriteCondHandleKey<InDetDD::TRT_DetElementContainer> TRTAlignCondAlg::m_writeKeyDetElCont {this, "WriteKeyDetElCont", "TRT_DetElementContainer", "Key of output to store detector element structures for TRT"}
private

Definition at line 38 of file TRTAlignCondAlg.h.

38{this, "WriteKeyDetElCont", "TRT_DetElementContainer", "Key of output to store detector element structures for TRT"};

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