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 const TRTCond::StrawDxContainer* readCdoSpecial = nullptr;
120 {
121 // Special folder
122 SG::ReadCondHandle<TRTCond::StrawDxContainer> readHandleSpecial{m_readKeySpecial,ctx};
123 // Get CDO and store it into container
124 readCdoSpecial = *readHandleSpecial;
125 if(!readCdoSpecial) {
126 ATH_MSG_ERROR("Null pointer to the read conditions object: Special");
127 return StatusCode::FAILURE;
128 }
129 readCdoContainer.emplace(m_readKeySpecial.key(),readCdoSpecial);
130 //Add dependency for IOV-intersection
131 if (writeHandleAlignStore) writeHandleAlignStore->addDependency(readHandleSpecial);
132 writeHandleDetElCont.addDependency(readHandleSpecial);
133 }
134
135 // ____________ Apply alignments to TRT GeoModel ____________
136 if(m_detManager->align(readCdoContainer, writeCdoAlignStore.get()).isFailure()) {
137 ATH_MSG_ERROR("Failed to apply alignments to TRT");
138 return StatusCode::FAILURE;
139 }
140
141 const InDetDD::TRT_DetElementCollection* alignedColl{m_detManager->getDetectorElementCollection()};
142 if (alignedColl==nullptr) {
143 ATH_MSG_FATAL("Null pointer is returned by getDetectorElementCollection()");
144 return StatusCode::FAILURE;
145 }
146
147 // ____________ Construct new Write Cond Object ____________
148 std::unique_ptr<InDetDD::TRT_DetElementContainer> writeCdoDetElCont{std::make_unique<InDetDD::TRT_DetElementContainer>()};
149
150 // ____________ Update writeCdo using readCdo ____________
151 std::map<const InDetDD::TRT_EndcapElement*, InDetDD::TRT_EndcapElement*> oldToNewECMap;
152 std::map<const InDetDD::TRT_BarrelElement*, InDetDD::TRT_BarrelElement*> oldToNewBAMap;
153
154 oldToNewECMap[nullptr] = nullptr;
155 oldToNewBAMap[nullptr] = nullptr;
156
157 //Create new aligned detector elements
158 for (const InDetDD::TRT_BaseElement* oldEl : *alignedColl) {
159 InDetDD::TRT_BaseElement::Type type = oldEl->type();
160
162 const InDetDD::TRT_EndcapElement* oldEl_Endcap = static_cast<const InDetDD::TRT_EndcapElement*>(oldEl);
163 //New encap element with new alignment created based on old element
164 InDetDD::TRT_EndcapElement* newEl = new InDetDD::TRT_EndcapElement(*oldEl_Endcap);
165 oldToNewECMap[oldEl_Endcap] = newEl;
166 writeCdoDetElCont->addEndcapElement(newEl);
167 } else if (type == InDetDD::TRT_BaseElement::BARREL) {
168 const InDetDD::TRT_BarrelElement* oldEl_Barrel = static_cast<const InDetDD::TRT_BarrelElement*>(oldEl);
169 //New barrel element with new alignment created based on old element
170 InDetDD::TRT_BarrelElement* newEl = new InDetDD::TRT_BarrelElement(*oldEl_Barrel);
171 oldToNewBAMap[oldEl_Barrel] = newEl;
172 writeCdoDetElCont->addBarrelElement(newEl);
173 } else {
174 ATH_MSG_FATAL("Unknown TRT detector element found");
175 return StatusCode::FAILURE;
176 }
177 }
178
179 //Set detector elements links
180 for (auto pairOfEl : oldToNewECMap) {
181 if (!pairOfEl.first) continue; // skip nullptr
182 pairOfEl.second->setNextInZ(oldToNewECMap[pairOfEl.first->nextInZ()]);
183 pairOfEl.second->setPreviousInZ(oldToNewECMap[pairOfEl.first->previousInZ()]);
184 }
185 for (auto pairOfEl : oldToNewBAMap) {
186 if (!pairOfEl.first) continue; // skip nullptr
187 pairOfEl.second->setNextInR(oldToNewBAMap[pairOfEl.first->nextInR()]);
188 pairOfEl.second->setPreviousInR(oldToNewBAMap[pairOfEl.first->previousInR()]);
189 pairOfEl.second->setNextInPhi(oldToNewBAMap[pairOfEl.first->nextInPhi()]);
190 pairOfEl.second->setPreviousInPhi(oldToNewBAMap[pairOfEl.first->previousInPhi()]);
191 }
192
193 // Update all detector elements caches
194 for (InDetDD::TRT_BaseElement* newEl : *(writeCdoDetElCont->getElements())) {
195 newEl->setDxContainer(readCdoSpecial);
196 newEl->updateAllCaches(writeCdoAlignStore.get());
197 }
198
199 // Record WriteCondHandle
200 const std::size_t writeHandleDetElContSize{writeCdoDetElCont->getElements()->size()};
201
202 writeCdoDetElCont->setNumerology(m_detManager->getNumerology());
203
204 // Record the resulting CDO
205 if (writeHandleAlignStore != nullptr) {
206 if(writeHandleAlignStore->record(std::move(writeCdoAlignStore)).isFailure()) {
207 ATH_MSG_ERROR("Could not record GeoAlignmentStore " << writeHandleAlignStore->key()
208 << " with EventRange " << writeHandleAlignStore->getRange()
209 << " into Conditions Store");
210 return StatusCode::FAILURE;
211 }
212 ATH_MSG_INFO("recorded new CDO " << writeHandleAlignStore->key() << " with range "
213 << writeHandleAlignStore->getRange() << " into Conditions Store");
214 }
215
216 if (writeHandleDetElCont.record(std::move(writeCdoDetElCont)).isFailure()) {
217 ATH_MSG_FATAL("Could not record " << writeHandleDetElCont.key()
218 << " with EventRange " << writeHandleDetElCont.getRange()
219 << " into Conditions Store");
220 return StatusCode::FAILURE;
221 }
222 ATH_MSG_INFO("recorded new CDO " << writeHandleDetElCont.key() << " with range "
223 << writeHandleDetElCont.getRange() << " with size of " << writeHandleDetElContSize << " into Conditions Store");
224
225 return StatusCode::SUCCESS;
226}
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.
void setDxContainer(const TRTCond::StrawDxContainer *dxContainer)
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: