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

#include <MuonPRDCacheCreator.h>

Inheritance diagram for MuonPRDCacheCreator:

Public Member Functions

 MuonPRDCacheCreator (const std::string &name, ISvcLocator *pSvcLocator)
 Constructor.
virtual ~MuonPRDCacheCreator ()=default
 Destructor.
virtual StatusCode initialize () override
 Initialize the algorithm.
virtual StatusCode execute (const EventContext &ctx) const override
 Execture the algorithm.
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

template<bool checkKey = true, typename T>
StatusCode createContainer (const SG::WriteHandleKey< T > &, long unsigned int, const EventContext &) const
template<bool checkKey = true, typename T, typename X>
StatusCode createValueContainer (const SG::WriteHandleKey< T > &, long unsigned int, const EventContext &, const X &defaultValue) const
bool isInsideView (const EventContext &) const
StatusCode checkInsideViewOnce (const EventContext &) const
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.

Protected Attributes

SG::WriteHandleKey< CscPrepDataCollection_Cachem_CscCacheKey
 Write handle keys for the PRD caches.
SG::WriteHandleKey< CscStripPrepDataCollection_Cachem_CscStripCacheKey
SG::WriteHandleKey< MdtPrepDataCollection_Cachem_MdtCacheKey
SG::WriteHandleKey< RpcPrepDataCollection_Cachem_RpcCacheKey
SG::WriteHandleKeyArray< TgcPrepDataCollection_Cachem_TgcCacheKeys
SG::WriteHandleKey< sTgcPrepDataCollection_Cachem_sTgcCacheKey
SG::WriteHandleKey< MMPrepDataCollection_Cachem_MmCacheKey
SG::WriteHandleKey< RpcCoinDataCollection_Cachem_RpcCoinCacheKey
SG::WriteHandleKeyArray< TgcCoinDataCollection_Cachem_TgcCoinCacheKeys
Gaudi::Property< std::string > m_tgcPrdCacheKeyStr {this, "TgcCacheStr", "", "Prefix for names of TGC PRD Cache collections"}
 Name for the TGC PRD cache containers.
Gaudi::Property< std::string > m_tgcCoinCacheKeyStr {this, "TgcCoinCacheStr", "", "Prefix for names of TGC Coin Cache collections"}
 Name for the TGC Coin cache containers.
ServiceHandle< Muon::IMuonIdHelperSvcm_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
bool m_disableWarning = false
std::atomic_flag m_disableWarningCheck ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT

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

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 14 of file MuonPRDCacheCreator.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

◆ MuonPRDCacheCreator()

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

Constructor.

Definition at line 11 of file MuonPRDCacheCreator.cxx.

11 :
12 IDCCacheCreatorBase(name, pSvcLocator),
13 m_CscCacheKey(""),
15 m_MdtCacheKey(""),
16 m_RpcCacheKey(""),
18 m_MmCacheKey(""),
20 declareProperty("CscCacheKey", m_CscCacheKey);
21 declareProperty("CscStripCacheKey", m_CscStripCacheKey);
22 declareProperty("MdtCacheKey", m_MdtCacheKey);
23 declareProperty("RpcCacheKey", m_RpcCacheKey);
24 declareProperty("sTgcCacheKey", m_sTgcCacheKey);
25 declareProperty("MmCacheKey", m_MmCacheKey);
26 declareProperty("RpcCoinCacheKey", m_RpcCoinCacheKey);
27 declareProperty("DisableViewWarning", m_disableWarning);
28}
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
IDCCacheCreatorBase(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
SG::WriteHandleKey< CscPrepDataCollection_Cache > m_CscCacheKey
Write handle keys for the PRD caches.
SG::WriteHandleKey< MMPrepDataCollection_Cache > m_MmCacheKey
SG::WriteHandleKey< CscStripPrepDataCollection_Cache > m_CscStripCacheKey
SG::WriteHandleKey< RpcCoinDataCollection_Cache > m_RpcCoinCacheKey
SG::WriteHandleKey< RpcPrepDataCollection_Cache > m_RpcCacheKey
SG::WriteHandleKey< MdtPrepDataCollection_Cache > m_MdtCacheKey
SG::WriteHandleKey< sTgcPrepDataCollection_Cache > m_sTgcCacheKey

◆ ~MuonPRDCacheCreator()

virtual MuonPRDCacheCreator::~MuonPRDCacheCreator ( )
virtualdefault

Destructor.

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}

◆ checkInsideViewOnce()

StatusCode IDCCacheCreatorBase::checkInsideViewOnce ( const EventContext & ctx) const
protectedinherited

Definition at line 21 of file IDCCacheCreatorBase.cxx.

22{
23 if(!m_disableWarningCheck.test_and_set(std::memory_order_relaxed)){ //Only check once
24 if(isInsideView(ctx)){
25 ATH_MSG_ERROR("CacheCreator is running inside a view, this is probably a misconfiguration");
26 return StatusCode::FAILURE;
27 }
28 }
29 return StatusCode::SUCCESS;
30}
#define ATH_MSG_ERROR(x)
bool isInsideView(const EventContext &) const

◆ createContainer()

template<bool checkKey, typename T>
StatusCode IDCCacheCreatorBase::createContainer ( const SG::WriteHandleKey< T > & containerKey,
long unsigned int size,
const EventContext & ctx ) const
protectedinherited

Definition at line 31 of file IDCCacheCreatorBase.h.

31 {
32 static_assert(std::is_base_of<EventContainers::IdentifiableCacheBase, T>::value, "Expects a IdentifiableCache Class" );
33 if constexpr (checkKey){
34 if(containerKey.key().empty()){
35 ATH_MSG_DEBUG( "Creation of container "<< containerKey.key() << " is disabled (no name specified)");
36 return StatusCode::SUCCESS;
37 }
38 }
39 SG::WriteHandle<T> ContainerCacheKey(containerKey, ctx);
40 ATH_CHECK( ContainerCacheKey.recordNonConst ( std::make_unique<T>(IdentifierHash(size), nullptr) ));
41 ATH_MSG_DEBUG( "Container "<< containerKey.key() << " created to hold " << size );
42 return StatusCode::SUCCESS;
43}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x)
const std::string & key() const
Return the StoreGate ID for the referenced object.

◆ createValueContainer()

template<bool checkKey, typename T, typename X>
StatusCode IDCCacheCreatorBase::createValueContainer ( const SG::WriteHandleKey< T > & containerKey,
long unsigned int size,
const EventContext & ctx,
const X & defaultValue ) const
protectedinherited

Definition at line 46 of file IDCCacheCreatorBase.h.

46 {
47 static_assert(std::is_base_of<IdentifiableValueCache<X>, T>::value, "Expects a IdentifiableValueCache Class" );
48 if constexpr (checkKey){
49 if(containerKey.key().empty()){
50 ATH_MSG_DEBUG( "Creation of container "<< containerKey.key() << " is disabled (no name specified)");
51 return StatusCode::SUCCESS;
52 }
53 }
54 SG::WriteHandle<T> ContainerCacheKey(containerKey, ctx);
55 ATH_CHECK( ContainerCacheKey.recordNonConst ( std::make_unique<T>(size, defaultValue) ));
56 ATH_MSG_DEBUG( "ValueContainer "<< containerKey.key() << " created to hold " << size );
57 return StatusCode::SUCCESS;
58}
unsigned long long T

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

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

Execture the algorithm.

Definition at line 92 of file MuonPRDCacheCreator.cxx.

92 {
94
95 // Create all the cache containers (if the tools are available)
96 // CSC
97 if (m_idHelperSvc->hasCSC()) {
98 ATH_CHECK(createContainer(m_CscCacheKey, m_idHelperSvc->cscIdHelper().module_hash_max(), ctx));
99 ATH_CHECK(createContainer(m_CscStripCacheKey, m_idHelperSvc->cscIdHelper().module_hash_max(), ctx));
100 }
101
102 // MDT
103 if (m_idHelperSvc->hasMDT()) {
104 auto maxHashMDTs = m_idHelperSvc->mdtIdHelper().stationNameIndex("BME") != -1
105 ? m_idHelperSvc->mdtIdHelper().detectorElement_hash_max()
106 : m_idHelperSvc->mdtIdHelper().module_hash_max();
107 ATH_CHECK(createContainer(m_MdtCacheKey, maxHashMDTs, ctx));
108 }
109
110 // RPC
111 if (m_idHelperSvc->hasRPC()) {
112 ATH_CHECK(createContainer(m_RpcCacheKey, m_idHelperSvc->rpcIdHelper().module_hash_max(), ctx));
113 ATH_CHECK(createContainer(m_RpcCoinCacheKey, m_idHelperSvc->rpcIdHelper().module_hash_max(), ctx));
114 }
115
116 // TGC
117 if (m_idHelperSvc->hasTGC()) {
118 for (const auto& tgcCacheKey : m_TgcCacheKeys) {
119 ATH_CHECK(createContainer(tgcCacheKey, m_idHelperSvc->tgcIdHelper().module_hash_max(), ctx));
120 }
121 for (const auto& tgcCoinCacheKey : m_TgcCoinCacheKeys) {
122 ATH_CHECK(createContainer(tgcCoinCacheKey, m_idHelperSvc->tgcIdHelper().module_hash_max(), ctx));
123 }
124 }
125
126 // NSW STGC
127 if (m_idHelperSvc->hasSTGC()) { ATH_CHECK(createContainer(m_sTgcCacheKey, m_idHelperSvc->stgcIdHelper().module_hash_max(), ctx)); }
128
129 // NSW MM
130 if (m_idHelperSvc->hasMM()) { ATH_CHECK(createContainer(m_MmCacheKey, m_idHelperSvc->mmIdHelper().module_hash_max(), ctx)); }
131
132 return StatusCode::SUCCESS;
133}
StatusCode checkInsideViewOnce(const EventContext &) const
StatusCode createContainer(const SG::WriteHandleKey< T > &, long unsigned int, const EventContext &) const
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
SG::WriteHandleKeyArray< TgcCoinDataCollection_Cache > m_TgcCoinCacheKeys
SG::WriteHandleKeyArray< TgcPrepDataCollection_Cache > m_TgcCacheKeys

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

Initialize the algorithm.

Definition at line 30 of file MuonPRDCacheCreator.cxx.

30 {
38
39 // build the TGC PRD and Coin cache keys (multiple due to reading out multiple BC)
40 const bool doTgcPrdCache = not m_tgcPrdCacheKeyStr.empty();
41 if (doTgcPrdCache) {
43 for (int ibc = 0; ibc < TgcDigit::BC_NEXT + 1; ibc++) {
44 const int bcTag = ibc + 1;
45 std::ostringstream location;
46 location << m_tgcPrdCacheKeyStr.value() << (bcTag == TgcDigit::BC_PREVIOUS ? "PriorBC" : "")
47 << (bcTag == TgcDigit::BC_NEXT ? "NextBC" : "") << (bcTag == (TgcDigit::BC_NEXT + 1) ? "AllBCs" : "");
48 m_TgcCacheKeys.at(ibc) = location.str();
49 ATH_MSG_INFO("Setting next TGC PRD Cache to " << location.str());
50 }
51 }
52 const bool doTgcCoinCache = not m_tgcCoinCacheKeyStr.empty();
53 if (doTgcCoinCache) {
55 for (int ibc = 0; ibc < TgcDigit::BC_NEXTNEXT; ibc++) {
56 const int bcTag = ibc + 1;
57 std::ostringstream location;
58 location << m_tgcCoinCacheKeyStr.value() << (bcTag == TgcDigit::BC_PREVIOUS ? "PriorBC" : "")
59 << (bcTag == TgcDigit::BC_NEXT ? "NextBC" : "") << (bcTag == TgcDigit::BC_NEXTNEXT ? "NextNextBC" : "");
60 m_TgcCoinCacheKeys.at(ibc) = location.str();
61 ATH_MSG_INFO("Setting next TGC Coin Cache to " << location.str());
62 } // BC loop
63 }
64 ATH_CHECK(m_TgcCacheKeys.initialize(doTgcPrdCache));
65 ATH_CHECK(m_TgcCoinCacheKeys.initialize(doTgcCoinCache));
66
67 ATH_CHECK(m_idHelperSvc.retrieve());
68
69 // Check we have the tools to allow us to setup cache
70 if (!m_idHelperSvc->hasCSC() && !m_CscCacheKey.key().empty()) {
71 ATH_MSG_WARNING("CSC ID Helper is not available and CSC PRD cache was requested - This will not be created");
72 }
73 if (!m_idHelperSvc->hasMDT() && !m_MdtCacheKey.key().empty()) {
74 ATH_MSG_WARNING("MDT ID Helper is not available and MDT PRD cache was requested - This will not be created");
75 }
76 if (!m_idHelperSvc->hasRPC() && !m_RpcCacheKey.key().empty()) {
77 ATH_MSG_WARNING("RPC ID Helper is not available and RPC PRD cache was requested - This will not be created");
78 }
79 if (!m_idHelperSvc->hasTGC() && (doTgcPrdCache || doTgcCoinCache)) {
80 ATH_MSG_WARNING("TGC ID Helper is not available and TGC cache was requested - This will not be created");
81 }
82 if (!m_idHelperSvc->hasSTGC() && !m_sTgcCacheKey.key().empty()) {
83 ATH_MSG_WARNING("STGC ID Helper is not available and STGC PRD cache was requested - This will not be created");
84 }
85 if (!m_idHelperSvc->hasMM() && !m_MmCacheKey.key().empty()) {
86 ATH_MSG_WARNING("MM ID Helper is not available and MM PRD cache was requested - This will not be created");
87 }
88 if (m_disableWarning) m_disableWarningCheck.test_and_set(std::memory_order_relaxed);
89 return StatusCode::SUCCESS;
90}
#define ATH_MSG_INFO(x)
#define ATH_MSG_WARNING(x)
unsigned bcTag(unsigned bcBitMap)
Gaudi::Property< std::string > m_tgcPrdCacheKeyStr
Name for the TGC PRD cache containers.
Gaudi::Property< std::string > m_tgcCoinCacheKeyStr
Name for the TGC Coin cache containers.
@ BC_NEXT
Definition TgcDigit.h:37
@ BC_PREVIOUS
Definition TgcDigit.h:37
@ BC_NEXTNEXT
Definition TgcDigit.h:37

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

◆ isInsideView()

bool IDCCacheCreatorBase::isInsideView ( const EventContext & context) const
protectedinherited

Definition at line 8 of file IDCCacheCreatorBase.cxx.

9{
10 const IProxyDict* proxy = Atlas::getExtendedEventContext(context).proxy();
11 const SG::View* view = dynamic_cast<const SG::View*>(proxy);
12 return view != nullptr;
13}
const ExtendedEventContext & getExtendedEventContext(const EventContext &ctx)
Retrieve an extended context from a context object.

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

◆ ATLAS_THREAD_SAFE

std::atomic_flag m_disableWarningCheck IDCCacheCreatorBase::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT
mutableprotectedinherited

Definition at line 24 of file IDCCacheCreatorBase.h.

◆ m_CscCacheKey

SG::WriteHandleKey<CscPrepDataCollection_Cache> MuonPRDCacheCreator::m_CscCacheKey
protected

Write handle keys for the PRD caches.

Definition at line 29 of file MuonPRDCacheCreator.h.

◆ m_CscStripCacheKey

SG::WriteHandleKey<CscStripPrepDataCollection_Cache> MuonPRDCacheCreator::m_CscStripCacheKey
protected

Definition at line 30 of file MuonPRDCacheCreator.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_disableWarning

bool MuonPRDCacheCreator::m_disableWarning = false
protected

Definition at line 46 of file MuonPRDCacheCreator.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> MuonPRDCacheCreator::m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
protected

Definition at line 44 of file MuonPRDCacheCreator.h.

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

◆ m_MdtCacheKey

SG::WriteHandleKey<MdtPrepDataCollection_Cache> MuonPRDCacheCreator::m_MdtCacheKey
protected

Definition at line 31 of file MuonPRDCacheCreator.h.

◆ m_MmCacheKey

SG::WriteHandleKey<MMPrepDataCollection_Cache> MuonPRDCacheCreator::m_MmCacheKey
protected

Definition at line 35 of file MuonPRDCacheCreator.h.

◆ m_RpcCacheKey

SG::WriteHandleKey<RpcPrepDataCollection_Cache> MuonPRDCacheCreator::m_RpcCacheKey
protected

Definition at line 32 of file MuonPRDCacheCreator.h.

◆ m_RpcCoinCacheKey

SG::WriteHandleKey<RpcCoinDataCollection_Cache> MuonPRDCacheCreator::m_RpcCoinCacheKey
protected

Definition at line 36 of file MuonPRDCacheCreator.h.

◆ m_sTgcCacheKey

SG::WriteHandleKey<sTgcPrepDataCollection_Cache> MuonPRDCacheCreator::m_sTgcCacheKey
protected

Definition at line 34 of file MuonPRDCacheCreator.h.

◆ m_TgcCacheKeys

SG::WriteHandleKeyArray<TgcPrepDataCollection_Cache> MuonPRDCacheCreator::m_TgcCacheKeys
protected

Definition at line 33 of file MuonPRDCacheCreator.h.

◆ m_TgcCoinCacheKeys

SG::WriteHandleKeyArray<TgcCoinDataCollection_Cache> MuonPRDCacheCreator::m_TgcCoinCacheKeys
protected

Definition at line 37 of file MuonPRDCacheCreator.h.

◆ m_tgcCoinCacheKeyStr

Gaudi::Property<std::string> MuonPRDCacheCreator::m_tgcCoinCacheKeyStr {this, "TgcCoinCacheStr", "", "Prefix for names of TGC Coin Cache collections"}
protected

Name for the TGC Coin cache containers.

Definition at line 42 of file MuonPRDCacheCreator.h.

42{this, "TgcCoinCacheStr", "", "Prefix for names of TGC Coin Cache collections"};

◆ m_tgcPrdCacheKeyStr

Gaudi::Property<std::string> MuonPRDCacheCreator::m_tgcPrdCacheKeyStr {this, "TgcCacheStr", "", "Prefix for names of TGC PRD Cache collections"}
protected

Name for the TGC PRD cache containers.

Definition at line 40 of file MuonPRDCacheCreator.h.

40{this, "TgcCacheStr", "", "Prefix for names of TGC PRD Cache collections"};

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


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