ATLAS Offline Software
Loading...
Searching...
No Matches
MuonR4::RegionSelectorCondAlg Class Reference

Conditions algorithm to create the region selector trigger tables from the R4 readout geoemetry. More...

#include <RegionSelectorCondAlg.h>

Inheritance diagram for MuonR4::RegionSelectorCondAlg:
Collaboration diagram for MuonR4::RegionSelectorCondAlg:

Public Member Functions

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

template<typename Key_t, typename... OtherKey_t>
StatusCode addDependency (const EventContext &ctx, SG::WriteCondHandle< IRegSelLUTCondData > &writeHandle, const SG::ReadCondHandleKey< Key_t > &key, OtherKey_t... others) const
 Declare the dependency of the region selector table on the other keys set.
const MuonIdHelpergetIdHelper (const ActsTrk::DetectorType type) const
 Retrieve the idHelper for the given detector technology.
std::set< std::uint32_t > getRobIDs (const EventContext &ctx, const Identifier &moduleID) const
 Returns the list of ROB ids associated with the module.
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

const MuonGMR4::MuonDetectorManagerm_detMgr {nullptr}
 Detector manager.
Gaudi::Property< bool > m_printTable {this, "PrintTable", false}
ServiceHandle< Muon::IMuonIdHelperSvcm_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
SG::WriteCondHandleKey< IRegSelLUTCondDatam_tableKey { this, "RegSelLUT", "", "Region Selector lookup table" }
 Region selector table written by the algorithm.
SG::ReadCondHandleKey< ActsTrk::DetectorAlignStorem_alignKey {this, "AlignKey", ""}
 Dependency on the alignment constants.
SG::ReadCondHandleKey< MuonMDT_CablingMapm_cablingMdtKey {this, "MdtCablingKey", "MuonMDT_CablingMap"}
 Dependency on the Mdt cabling map.
SG::ReadCondHandleKey< Muon::RpcCablingMapm_cablingRpcKey {this, "RpcCablingKey", "MuonNRPC_CablingMap"}
 Dependency on the phase II Rpc cabling map.
Gaudi::Property< bool > m_splitTrfCache {this, "splitTrfCache", false, ""}
 Instantiate a new transform cache to ensure lazy transform population in the event processing.
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

Conditions algorithm to create the region selector trigger tables from the R4 readout geoemetry.

Definition at line 30 of file RegionSelectorCondAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Member Function Documentation

◆ addDependency()

template<typename Key_t, typename... OtherKey_t>
StatusCode MuonR4::RegionSelectorCondAlg::addDependency ( const EventContext & ctx,
SG::WriteCondHandle< IRegSelLUTCondData > & writeHandle,
const SG::ReadCondHandleKey< Key_t > & key,
OtherKey_t... others ) const
private

Declare the dependency of the region selector table on the other keys set.

Parameters
ctxEventContext to load the conditions object
writeHandleReference to the new writeHandle to be written to Storegate
keyPrimary key on which the dependency is declared
othersOther keys for recursive dependency declaration

Definition at line 28 of file RegionSelectorCondAlg.cxx.

31 {
32 if (!key.empty()) {
33 SG::ReadCondHandle readHandle{key, ctx};
34 if (!readHandle.isValid()){
35 ATH_MSG_FATAL("Failed to retrieve "<<key.fullKey()<<".");
36 return StatusCode::FAILURE;
37 }
38 writeHandle.addDependency(readHandle);
39 }
40 if constexpr(sizeof...(others) > 0) {
41 ATH_CHECK(addDependency(ctx, writeHandle, others...));
42 }
43 return StatusCode::SUCCESS;
44 }
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_FATAL(x)
StatusCode addDependency(const EventContext &ctx, SG::WriteCondHandle< IRegSelLUTCondData > &writeHandle, const SG::ReadCondHandleKey< Key_t > &key, OtherKey_t... others) const
Declare the dependency of the region selector table on the other keys set.
void addDependency(const EventIDRange &range)

◆ 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 MuonR4::RegionSelectorCondAlg::execute ( const EventContext & ctx) const
finaloverridevirtual

Temporary auxiliary struct to cache the readout element's dimension in z, r & phi

Fill the geometric part of the reg sel table

Now we need to combine it with the ROB id

Definition at line 103 of file RegionSelectorCondAlg.cxx.

103 {
104 SG::WriteCondHandle writeHandle{m_tableKey, ctx};
105 if (writeHandle.isValid()) {
106 ATH_MSG_DEBUG("Region selector "<<m_tableKey<<" is still valid");
107 return StatusCode::SUCCESS;
108 }
111
112 auto writeCdo = std::make_unique<RegSelSiLUT>();
113 const ActsTrk::DetectorAlignStore* alignDeltas{nullptr};
114 ATH_CHECK(SG::get(alignDeltas, m_alignKey, ctx));
115
116 ActsTrk::GeometryContext gctx{};
117 if (m_splitTrfCache) {
118 gctx.setStore(MuonGMR4::copyDeltas(*alignDeltas));
119 } else {
120 gctx.setStore(std::make_unique<ActsTrk::DetectorAlignStore>(*alignDeltas));
121 }
122 const MuonIdHelper& idHelper{getIdHelper(alignDeltas->detType)};
123
126 struct TempSelTable {
127 std::optional<double> centralPhi{};
128 double zMin{std::numeric_limits<double>::max()};
129 double zMax{-std::numeric_limits<double>::max()};
130 double rMin{std::numeric_limits<double>::max()};
131 double rMax{-std::numeric_limits<double>::max()};
132 double dPhiMin{std::numeric_limits<double>::max()};
133 double dPhiMax{-std::numeric_limits<double>::max()};
134
135 void update(const Amg::Vector3D& v) {
136 const double dPhi = xAOD::P4Helpers::deltaPhi(v.phi(), centralPhi.value_or(0.));
137 rMin = std::min(rMin, v.perp()); rMax = std::max(rMax, v.perp());
138 zMin = std::min(zMin, v.z()); zMax = std::max(zMax, v.z());
139 dPhiMin = std::min(dPhiMin, dPhi); dPhiMax = std::max(dPhiMax, dPhi);
140 }
141
142 };
143 std::vector<TempSelTable> luts(idHelper.module_hash_max());
144 IdentifierHash modHash{};
146 for (const MuonGMR4::MuonReadoutElement* reEle: m_detMgr->getAllReadoutElements(alignDeltas->detType)) {
147
148 const Acts::Surface& surface{reEle->surface()};
149
150 const double halfTck = 0.5*reEle->thickness();
151
152 std::vector<Amg::Vector3D> localVertices{};
153 localVertices.reserve(8);
154 ATH_MSG_VERBOSE(__LINE__<<" - Fetch edge points from surface: "<<m_idHelperSvc->toStringDetEl(reEle->identify()));
155 std::ranges::for_each(static_cast<const Acts::PlanarBounds&>(surface.bounds()).vertices(),
156 [&](const Amg::Vector2D& v){
157 ATH_MSG_VERBOSE(__LINE__<<" - Local vertex: "<<Amg::toString(v)<<", half thickness: "<<halfTck);
158 localVertices.emplace_back(v.x(), v.y(), halfTck);
159 localVertices.emplace_back(v.x(), v.y(), -halfTck);
160 });
161 ATH_MSG_VERBOSE(__LINE__<<" - Fetched "<<localVertices.size()<<" vertices.");
162 const Amg::Transform3D& loc2Glob{surface.transform(gctx.context())};
163 idHelper.get_module_hash(reEle->identify(), modHash);
164 auto& lut = luts.at(modHash);
165 if (!lut.centralPhi) {
166 lut.centralPhi = loc2Glob.translation().phi();
167 }
168 for (const Amg::Vector3D& locVtx : localVertices) {
169 const Amg::Vector3D globVtx = loc2Glob * locVtx;
170 ATH_MSG_VERBOSE(__LINE__<<" - Expand LUT with vertex "
171 <<std::format("{:.2f}/{:.2f}/{:.2f}", globVtx.perp(), globVtx.z(), globVtx.phi()));
172 lut.update(globVtx);
173 }
174 }
175 const auto modCtx = idHelper.module_context();
177 for (auto module_itr = idHelper.module_begin();
178 module_itr != idHelper.module_end(); ++module_itr) {
179 idHelper.get_module_hash(*module_itr, modHash);
180 const auto& lut = luts.at(modHash);
181
182 if(!lut.centralPhi) {
183 continue;
184 }
185
186 ExpandedIdentifier exp_id{};
187 if (idHelper.get_expanded_id(*module_itr, exp_id, &modCtx)) {
188 ATH_MSG_DEBUG(__LINE__<<" - Failed retrieving ExpandedIdentifier for PRD Identifier = "
189 << m_idHelperSvc->toString(*module_itr) << ". Skipping to the next PRD.");
190 continue;
191 }
192 const int detid = ( exp_id[2]<0 ? -1 : 1 );
193 const int layerid = exp_id[1]+1;
194
195 const double phiMin = lut.centralPhi.value_or(0) + lut.dPhiMin;
196 const double phiMax = lut.centralPhi.value_or(0) + lut.dPhiMax;
197
198
199 for (const std::uint32_t robID : getRobIDs(ctx, *module_itr)) {
200 RegSelModule m{lut.zMin, lut.zMax, lut.rMin, lut.rMax,
201 phiMin, phiMax, layerid, detid, robID, modHash};
202 ATH_MSG_VERBOSE(__LINE__<<" - Insert new entry "<<m_idHelperSvc->chamberNameString(*module_itr)
203 <<", "<<m);
204 writeCdo->addModule(m);
205 }
206 }
207
208 if (m_printTable) {
209 if (const auto *lut = dynamic_cast<const RegSelSiLUT*>(writeCdo.get())) {
210 lut->write(std::format("{:}.map", name()));
211 }
212 }
213
214 ATH_CHECK(writeHandle.record(std::make_unique<IRegSelLUTCondData>(std::move(writeCdo))));
215 return StatusCode::SUCCESS;
216 }
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_DEBUG(x)
DetectorType detType
The aligned detector element type.
Acts::GeometryContext context() const
void setStore(AlignmentStorePtr store)
Adds the store to the Geometry context.
static EventIDRange infiniteRunLB()
Produces an EventIDRange that is infinite in RunLumi and invalid in Time.
const_id_iterator module_end() const
int get_expanded_id(const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const
Create expanded id from compact id (return == 0 for OK)
const_id_iterator module_begin() const
Iterators over full set of ids.
virtual int get_module_hash(const Identifier &id, IdentifierHash &hash_id) const
size_type module_hash_max() const
the maximum hash value
IdContext module_context() const
id for module
Gaudi::Property< bool > m_printTable
const MuonGMR4::MuonDetectorManager * m_detMgr
Detector manager.
SG::ReadCondHandleKey< Muon::RpcCablingMap > m_cablingRpcKey
Dependency on the phase II Rpc cabling map.
Gaudi::Property< bool > m_splitTrfCache
Instantiate a new transform cache to ensure lazy transform population in the event processing.
const MuonIdHelper & getIdHelper(const ActsTrk::DetectorType type) const
Retrieve the idHelper for the given detector technology.
SG::ReadCondHandleKey< ActsTrk::DetectorAlignStore > m_alignKey
Dependency on the alignment constants.
SG::WriteCondHandleKey< IRegSelLUTCondData > m_tableKey
Region selector table written by the algorithm.
std::set< std::uint32_t > getRobIDs(const EventContext &ctx, const Identifier &moduleID) const
Returns the list of ROB ids associated with the module.
SG::ReadCondHandleKey< MuonMDT_CablingMap > m_cablingMdtKey
Dependency on the Mdt cabling map.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
StatusCode record(const EventIDRange &range, T *t)
record handle, with explicit range DEPRECATED
Eigen::Affine3d Transform3D
Eigen::Matrix< double, 2, 1 > Vector2D
Eigen::Matrix< double, 3, 1 > Vector3D
constexpr auto lut(Generator &&f)
std::unique_ptr< ActsTrk::DetectorAlignStore > copyDeltas(const ActsTrk::DetectorAlignStore &inStore)
Copy the alignment deltas from the inStore to a new alignment store.
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
bool dPhi(const xAOD::TauJet &tau, const xAOD::CaloVertexedTopoCluster &cluster, float &out)
double deltaPhi(double phiA, double phiB)
delta Phi in range [-pi,pi[

◆ 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

◆ getIdHelper()

const MuonIdHelper & MuonR4::RegionSelectorCondAlg::getIdHelper ( const ActsTrk::DetectorType type) const
private

Retrieve the idHelper for the given detector technology.

Parameters
typeMuon detector technology type

Definition at line 46 of file RegionSelectorCondAlg.cxx.

46 {
47 switch (type) {
48 using enum ActsTrk::DetectorType;
49 case Mdt:
50 return m_idHelperSvc->mdtIdHelper();
51 case Rpc:
52 return m_idHelperSvc->rpcIdHelper();
53 case Tgc:
54 return m_idHelperSvc->tgcIdHelper();
55 case Mm:
56 return m_idHelperSvc->mmIdHelper();
57 case sTgc:
58 return m_idHelperSvc->stgcIdHelper();
59 default:
60 THROW_EXCEPTION("Unknown detector type "<<ActsTrk::to_string(type));
61 }
62 }
std::string to_string(const DetectorType &type)
DetectorType
Simple enum to Identify the Type of the ACTS sub detector.
@ Mm
Maybe not needed in the migration.
@ Tgc
Resitive Plate Chambers.
@ sTgc
Micromegas (NSW)
@ Rpc
Monitored Drift Tubes.
@ Mdt
MuonSpectrometer.
#define THROW_EXCEPTION(MESSAGE)
Definition throwExcept.h:10

◆ getRobIDs()

std::set< std::uint32_t > MuonR4::RegionSelectorCondAlg::getRobIDs ( const EventContext & ctx,
const Identifier & moduleID ) const
private

Returns the list of ROB ids associated with the module.

Parameters
ctxEventContext to access the conditions store
moduleIDChamber module identifier

Definition at line 64 of file RegionSelectorCondAlg.cxx.

65 {
66
67 switch(m_idHelperSvc->technologyIndex(moduleID)) {
69 case MDT: {
70 const MuonMDT_CablingMap* cabling{};
71 if (!SG::get(cabling, m_cablingMdtKey, ctx).isSuccess()) {
72 THROW_EXCEPTION("Failed to load Mdt cabling "<<m_cablingMdtKey.fullKey());
73 }
74 return {cabling->getROBId(m_idHelperSvc->moduleHash(moduleID), msgStream())};
75 } case RPC: {
76 const Muon::RpcCablingMap* cabling{};
77 if (!SG::get(cabling, m_cablingRpcKey, ctx).isSuccess()) {
78 THROW_EXCEPTION("Failed to load Rpc cabling "<<m_cablingRpcKey.fullKey());
79 }
80 return {cabling->getROBId(m_idHelperSvc->moduleHash(moduleID), msgStream())};
81 } case TGC: {
82 SmartIF<MuonTGC_CablingSvc> cabling{Gaudi::svcLocator()->service("MuonTGC_CablingSvc")};
83 if (!cabling.isValid()) {
84 THROW_EXCEPTION("Failed to load Tgc cabling");
85 }
86 int subDetectorId{}, rodId{};
87 cabling->getReadoutIDfromElementID(moduleID, subDetectorId, rodId);
88 return {static_cast<std::uint32_t>(((0x0ff) & subDetectorId)<<16 | rodId)};
89 } case MM:
90 case STGC:{
91 Muon::nsw::helper::NSWOfflineRobId robIdHelper{
92 m_idHelperSvc->stationNameString(moduleID),
93 static_cast<int8_t>(m_idHelperSvc->stationEta(moduleID)),
94 static_cast<uint8_t>(m_idHelperSvc->stationPhi(moduleID))};
95 return std::set<std::uint32_t>(robIdHelper.get_ids().begin(), robIdHelper.get_ids().end());
96 } default: {
97 THROW_EXCEPTION("Invalid identifier "<<m_idHelperSvc->toStringChamber(moduleID));
98 }
99 }
100 return {};
101 }
const std::vector< uint32_t > & get_ids() const
TechnologyIndex
enum to classify the different layers in the muon spectrometer

◆ initialize()

StatusCode MuonR4::RegionSelectorCondAlg::initialize ( )
finaloverridevirtual

Definition at line 18 of file RegionSelectorCondAlg.cxx.

18 {
20 ATH_CHECK(m_tableKey.initialize());
21 ATH_CHECK(m_alignKey.initialize());
24 return StatusCode::SUCCESS;
25 }
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_ERROR(x)
#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_alignKey

SG::ReadCondHandleKey<ActsTrk::DetectorAlignStore> MuonR4::RegionSelectorCondAlg::m_alignKey {this, "AlignKey", ""}
private

Dependency on the alignment constants.

Definition at line 68 of file RegionSelectorCondAlg.h.

68{this, "AlignKey", ""};

◆ m_cablingMdtKey

SG::ReadCondHandleKey<MuonMDT_CablingMap> MuonR4::RegionSelectorCondAlg::m_cablingMdtKey {this, "MdtCablingKey", "MuonMDT_CablingMap"}
private

Dependency on the Mdt cabling map.

Definition at line 70 of file RegionSelectorCondAlg.h.

70{this, "MdtCablingKey", "MuonMDT_CablingMap"};

◆ m_cablingRpcKey

SG::ReadCondHandleKey<Muon::RpcCablingMap> MuonR4::RegionSelectorCondAlg::m_cablingRpcKey {this, "RpcCablingKey", "MuonNRPC_CablingMap"}
private

Dependency on the phase II Rpc cabling map.

Definition at line 72 of file RegionSelectorCondAlg.h.

72{this, "RpcCablingKey", "MuonNRPC_CablingMap"};

◆ m_detMgr

const MuonGMR4::MuonDetectorManager* MuonR4::RegionSelectorCondAlg::m_detMgr {nullptr}
private

Detector manager.

Definition at line 61 of file RegionSelectorCondAlg.h.

61{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_idHelperSvc

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

Definition at line 64 of file RegionSelectorCondAlg.h.

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

◆ m_printTable

Gaudi::Property<bool> MuonR4::RegionSelectorCondAlg::m_printTable {this, "PrintTable", false}
private

Definition at line 63 of file RegionSelectorCondAlg.h.

63{this, "PrintTable", false};

◆ m_splitTrfCache

Gaudi::Property<bool> MuonR4::RegionSelectorCondAlg::m_splitTrfCache {this, "splitTrfCache", false, ""}
private

Instantiate a new transform cache to ensure lazy transform population in the event processing.

Definition at line 74 of file RegionSelectorCondAlg.h.

74{this, "splitTrfCache", false, ""};

◆ m_tableKey

SG::WriteCondHandleKey<IRegSelLUTCondData> MuonR4::RegionSelectorCondAlg::m_tableKey { this, "RegSelLUT", "", "Region Selector lookup table" }
private

Region selector table written by the algorithm.

Definition at line 66 of file RegionSelectorCondAlg.h.

66{ this, "RegSelLUT", "", "Region Selector lookup table" };

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