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

#include <RPC_RegSelCondAlg.h>

Inheritance diagram for RPC_RegSelCondAlg:
Collaboration diagram for RPC_RegSelCondAlg:

Public Member Functions

 RPC_RegSelCondAlg (const std::string &name, ISvcLocator *pSvcLocator)
std::unique_ptr< RegSelSiLUTcreateTable (const EventContext &ctx, EventIDRange &id_range) const 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.

Protected Attributes

SG::ReadCondHandleKey< MuonGM::MuonDetectorManagerm_detMgrKey
 MuonDetectorManager from the conditions store.

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< RpcCablingCondDatam_rpcReadKey { this, "RpcCablingKey", "RpcCablingCondData", "Key of RpcCablingCondData" }
Gaudi::Property< bool > m_printTable {this, "PrintTable", false}
Gaudi::Property< std::string > m_mangerName {this, "ManagerName", "", "Property no where used"}
SG::WriteCondHandleKey< IRegSelLUTCondDatam_tableKey { this, "RegSelLUT", "RegSelLUTCondData", "Region Selector lookup table" }
 Output conditions object.
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 25 of file RPC_RegSelCondAlg.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

◆ RPC_RegSelCondAlg()

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

Definition at line 28 of file RPC_RegSelCondAlg.cxx.

28 :
29 MuonRegSelCondAlg( name, pSvcLocator )
30{
31 ATH_MSG_DEBUG( "RPC_RegSelCondAlg::RPC_RegSelCondAlg() " << name );
32}
#define ATH_MSG_DEBUG(x)
MuonRegSelCondAlg(const std::string &name, ISvcLocator *pSvcLocator)

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}

◆ createTable()

std::unique_ptr< RegSelSiLUT > RPC_RegSelCondAlg::createTable ( const EventContext & ctx,
EventIDRange & id_range ) const
overridevirtual

Implements MuonRegSelCondAlg.

Definition at line 40 of file RPC_RegSelCondAlg.cxx.

40 {
41
42 SG::ReadCondHandle<RpcCablingCondData> cablingCondData( m_rpcReadKey, ctx );
43
44 if( !cablingCondData.range( id_range ) ) {
45 ATH_MSG_ERROR("Failed to retrieve validity range for " << cablingCondData.key());
46 return {nullptr};
47 }
48
49
50 const RpcCablingCondData* cabling{*cablingCondData};
51
52 SG::ReadCondHandle<MuonGM::MuonDetectorManager> managerHandle( m_detMgrKey, ctx );
53
54 if( !managerHandle.range( id_range ) ) {
55 ATH_MSG_ERROR("Failed to retrieve validity range for " << m_detMgrKey.key());
56 return {nullptr};
57 }
58 const MuonGM::MuonDetectorManager* manager = managerHandle.cptr();
59
60 const RpcIdHelper* helper = manager->rpcIdHelper();
61
62 std::vector<Identifier>::const_iterator idfirst = helper->module_begin();
63 std::vector<Identifier>::const_iterator idlast = helper->module_end();
64
65 IdContext ModuleContext = helper->module_context();
66
67 ATH_MSG_DEBUG("createTable()");
68
69 std::unique_ptr<RegSelSiLUT> lut = std::make_unique<RegSelSiLUT>(RegSelSiLUT::RPC);
70
71
72 //loop over modules (PrepRawData collections)
73 for ( std::vector<Identifier>::const_iterator itr=idfirst ; itr!=idlast ; ++itr ) {
74
75 Identifier prdId = *itr;
76 IdentifierHash prdHashId;
77 int gethash_code = helper->get_hash(prdId, prdHashId, &ModuleContext);
78 if (gethash_code != 0 ) {
79 ATH_MSG_DEBUG("Failed retrieving IdentifierHash for PRD Identifier = " << prdId.getString() << ". Skipping to the next PRD.");
80 continue;
81 }
82
83 std::vector<uint32_t> robIds;
84 if ( (cabling->giveROB_fromPRD(prdHashId, robIds)).isFailure() ) {
85 ATH_MSG_ERROR( "RegSelCondAlg_RPC could not get ROBid" );
86 return {nullptr};
87 }
88
89
90 if (robIds.empty()) {
91 ATH_MSG_DEBUG("There is no ROB associated with the PRD HashId = " << (unsigned int)prdHashId << ". Skipping to the next PRD.");
92 continue;
93 }
94 if (robIds.size()!=1 && robIds.size()!=2 && robIds.size()!=4) {
95 ATH_MSG_WARNING("Unhandled number of ROBs per one PRD. Expected 1, 2 or 4, got " << robIds.size() << ". Omitting the PRD HashId = " << (unsigned int)prdHashId);
96 continue;
97 }
98
99 ExpandedIdentifier exp_id;
100 if ( helper->get_expanded_id( prdId, exp_id, &ModuleContext) ) {
101 ATH_MSG_DEBUG("Failed retrieving ExpandedIdentifier for PRD Identifier = " << prdId.getString() << ". Skipping to the next PRD.");
102 continue;
103 }
104
105 int detid = ( exp_id[2]<0 ? -1 : 1 );
106 int layerid = exp_id[1];
107 if ( layerid==0 ) layerid = 11; // this line should never be executed
108
109 int ndbz = helper->doubletZMax(prdId);
110
111 double zmin = 99999999;
112 double zmax = -99999999;
113 double rmin = 99999999;
114 double rmax = -99999999;
115 double phimin = 999999;
116 double phimax = -999999;
117 Amg::Vector3D Pzmin;
118 Amg::Vector3D Pzmax;
119
120 for (int dbz=1; dbz<=ndbz; dbz++) {
121
122 const MuonGM::RpcReadoutElement* rpcold = nullptr;
123 int ndbp = helper->doubletPhiMax(prdId);
124
125 for (int dbp=1; dbp<=ndbp; dbp++) {
126 Identifier chid = helper->channelID(prdId, dbz, dbp, 1, 0, 1);
127
128 const MuonGM::RpcReadoutElement* rpc = manager->getRpcReadoutElement(chid);
129
130 if ( rpc != rpcold ) {
131
132 // here a new module
133 rpcold = rpc;
134
135 Amg::Vector3D rpcPos = rpc->center();
136 double zminMod = rpcPos.z()-0.5*rpc->getZsize();
137 double zmaxMod = rpcPos.z()+0.5*rpc->getZsize();
138
139 double rcen = std::sqrt(rpcPos.mag()*rpcPos.mag()-rpcPos.z()*rpcPos.z());
140
141 double rminMod = rcen-0.5*rpc->getRsize();
142 double rmaxMod = rcen+0.5*rpc->getRsize();
143
144 double dphi = std::atan2(rpc->getSsize()/2,rpcPos.perp());
145 double pminMod = rpcPos.phi() - dphi;
146 double pmaxMod = rpcPos.phi() + dphi;
147
148 if (zminMod < zmin) {
149 zmin = zminMod;
150 Pzmin = rpcPos;
151 Pzmin[2] = zmin;
152 }
153 if (zmaxMod > zmax) {
154 zmax = zmaxMod;
155 Pzmax = rpcPos;
156 Pzmax[2] = zmax;
157 }
158 if (rminMod < rmin) {
159 rmin = rminMod;
160 }
161 if (rmaxMod > rmax) {
162 rmax = rmaxMod;
163 }
164 if (pminMod < phimin) phimin = pminMod;
165 if (pmaxMod > phimax) phimax = pmaxMod;
166
167 }
168 }
169 }
170
171 double phiMinFirst = phimin;
172 double phiMaxFirst = 0.5*(phimin+phimax);
173 double phiMinSecond = phiMaxFirst;
174 double phiMaxSecond = phimax;
175
176 if (phiMinFirst < 0) phiMinFirst += 2*M_PI;
177 if (phiMaxFirst < 0) phiMaxFirst += 2*M_PI;
178 if (phiMinSecond < 0) phiMinSecond += 2*M_PI;
179 if (phiMaxSecond < 0) phiMaxSecond += 2*M_PI;
180
181
182 if (robIds.size()==1) {
183 IdentifierHash lowerHashId( (1<<16) | (unsigned int)prdHashId );
184
185 RegSelModule m1( zmin, zmax, rmin, rmax, phiMinFirst, phiMaxSecond, layerid, detid, robIds[0], lowerHashId );
186 lut->addModule( m1 );
187 }
188 //the code below exploits the fact that ROB Ids are sorted!!! They go in order: SIDE A, ROBs 0..15, then SIDE C ROBs 0..15
189 //it is also assumed that if there are 4 ROBs, then zmin<0 and zmax>0
190 else if (robIds.size()==2) {
191 uint32_t lowerRobId=0;
192 uint32_t higherRobId=0;
193 if ( ((robIds[0] & 0xff) == 0) && ((robIds[1] & 0xff) == 15) ) { //the two ROBs around phi=0
194 lowerRobId = robIds[1];
195 higherRobId = robIds[0];
196 }
197 else {
198 lowerRobId = robIds[0];
199 higherRobId = robIds[1];
200 }
201 IdentifierHash lowerHashId( (1<<16) | (unsigned int)prdHashId );
202 IdentifierHash higherHashId( (2<<16) | (unsigned int)prdHashId );
203
204 RegSelModule m1( zmin, zmax, rmin, rmax, phiMinFirst, phiMaxFirst, layerid, detid, lowerRobId, lowerHashId );
205 RegSelModule m2( zmin, zmax, rmin, rmax, phiMinSecond, phiMaxSecond, layerid, detid, higherRobId, higherHashId );
206 lut->addModule( m1 );
207 lut->addModule( m2 );
208 }
209 else if (robIds.size()==4) { //this is the case only for two BOG chambers at z=0 read by ROBs 10-11 and 12-13, each on both sides A and C
210 uint32_t sideA_lowerRobId = robIds[0];
211 uint32_t sideA_higherRobId = robIds[1];
212 uint32_t sideC_lowerRobId = robIds[2];
213 uint32_t sideC_higherRobId = robIds[3];
214 IdentifierHash sideA_lowerHashId( (1<<16) | (unsigned int)prdHashId );
215 IdentifierHash sideA_higherHashId( (2<<16) | (unsigned int)prdHashId );
216 IdentifierHash sideC_lowerHashId( (3<<16) | (unsigned int)prdHashId );
217 IdentifierHash sideC_higherHashId( (4<<16) | (unsigned int)prdHashId );
218
219 RegSelModule m1( 0, zmax, rmin, rmax, phiMinFirst, phiMaxFirst, layerid, detid, sideA_lowerRobId, sideA_lowerHashId );
220 RegSelModule m2( 0, zmax, rmin, rmax, phiMinSecond, phiMaxSecond, layerid, detid, sideA_higherRobId, sideA_higherHashId );
221 RegSelModule m3( zmin, 0, rmin, rmax, phiMinFirst, phiMaxFirst, layerid, detid, sideC_lowerRobId, sideC_lowerHashId );
222 RegSelModule m4( zmin, 0, rmin, rmax, phiMinSecond, phiMaxSecond, layerid, detid, sideC_higherRobId, sideC_higherHashId );
223 lut->addModule( m1 );
224 lut->addModule( m2 );
225 lut->addModule( m3 );
226 lut->addModule( m4 );
227 }
228 } //end of loop over modules (PrepRawData collections)
229
230 lut->initialise();
231
232 return lut;
233
234}
#define M_PI
#define ATH_MSG_ERROR(x)
#define ATH_MSG_WARNING(x)
std::string getString() const
Provide a string form of the identifier - hexadecimal.
virtual const Amg::Vector3D & center() const override
Return the center of the element.
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_detMgrKey
MuonDetectorManager from the conditions store.
SG::ReadCondHandleKey< RpcCablingCondData > m_rpcReadKey
Eigen::Matrix< double, 3, 1 > Vector3D
constexpr auto lut(Generator &&f)
setEventNumber uint32_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 }
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 MuonRegSelCondAlg::execute ( const EventContext & ctx) const
overridevirtualinherited

do stuff here ...

inpractice, this should never be called, although in serial athena,
because the implementation of the conditions behaviour is flawed in
the framework, this routine will be called every event (!) regardless
of whether it should be called or not so we need this check to
prevent unecessary code execution on out our side

create the new lookup table

create the conditions data for storage

leave this commented here since this is where it should really be, but we had to move it up in the code to handle the flawed conditions handling in the serial athena use case SG::WriteCondHandle<IRegSelLUTCondData> lutCondData( m_tableKey, ctx );

Definition at line 46 of file MuonRegSelCondAlg.cxx.

46 {
47 ATH_MSG_DEBUG("MuonRegSelCondAlg::execute() -- enter -- ");
48
50 ATH_MSG_DEBUG( "Creating region selector table " << m_tableKey );
51
52
53 SG::WriteCondHandle<IRegSelLUTCondData> lutCondData( m_tableKey, ctx );
54 if (lutCondData.isValid()) {
60 ATH_MSG_DEBUG("CondHandle " << lutCondData.fullKey() << " is already valid." );
61 return StatusCode::SUCCESS;
62 }
63
65
66 EventIDRange id_range;
67
68 std::unique_ptr<IRegSelLUT> rd = createTable( ctx, id_range );
69
70 if ( !rd ) return StatusCode::FAILURE;
71
72 ATH_MSG_DEBUG( "Initialising new map " );;
73
74 // write out new new LUT to a file if need be
75
76 if ( m_printTable ) {
77 if (const auto *lut = dynamic_cast<const RegSelSiLUT*>(rd.get())) {
78 lut->write( name()+".map" );
79 }
80 }
81
83
84 IRegSelLUTCondData* rcd = new IRegSelLUTCondData( std::move(rd) );
85
86 try {
91 if( lutCondData.record( id_range, rcd ).isFailure() ) {
92 ATH_MSG_ERROR( "Could not record " << m_tableKey
93 << " " << lutCondData.key()
94 << " with range " << id_range );
95 return StatusCode::FAILURE;
96 }
97 ATH_MSG_INFO( "RegSelCondAlg LUT recorded: " << m_tableKey);
98 }
99 catch (...) {
100 ATH_MSG_ERROR("MuonRegSelCondAlg::execute() failed to record table: " << m_tableKey);
101 return StatusCode::FAILURE;
102 }
103
104
105 ATH_MSG_DEBUG("MuonRegSelCondAlg::execute() -- exit -- ");
106
107 return StatusCode::SUCCESS;
108}
#define ATH_MSG_INFO(x)
RegSelCondData< IRegSelLUT > IRegSelLUTCondData
Gaudi::Property< bool > m_printTable
virtual std::unique_ptr< RegSelSiLUT > createTable(const EventContext &ctx, EventIDRange &id_range) const =0
SG::WriteCondHandleKey< IRegSelLUTCondData > m_tableKey
Output conditions object.

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

Reimplemented from MuonRegSelCondAlg.

Definition at line 34 of file RPC_RegSelCondAlg.cxx.

34 {
36 ATH_CHECK(m_rpcReadKey.initialize());
37 return StatusCode::SUCCESS;
38}
#define ATH_CHECK
Evaluate an expression and check for errors.
virtual StatusCode initialize() override

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

SG::ReadCondHandleKey<MuonGM::MuonDetectorManager> MuonRegSelCondAlg::m_detMgrKey
protectedinherited
Initial value:
{
this, "DetectorManagerKey", "MuonDetectorManager",
"Key of input MuonDetectorManager condition data"}

MuonDetectorManager from the conditions store.

Definition at line 45 of file MuonRegSelCondAlg.h.

45 {
46 this, "DetectorManagerKey", "MuonDetectorManager",
47 "Key of input MuonDetectorManager condition data"};

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

Gaudi::Property<std::string> MuonRegSelCondAlg::m_mangerName {this, "ManagerName", "", "Property no where used"}
privateinherited

Definition at line 51 of file MuonRegSelCondAlg.h.

51{this, "ManagerName", "", "Property no where used"};

◆ m_printTable

Gaudi::Property<bool> MuonRegSelCondAlg::m_printTable {this, "PrintTable", false}
privateinherited

Definition at line 50 of file MuonRegSelCondAlg.h.

50{this, "PrintTable", false};

◆ m_rpcReadKey

SG::ReadCondHandleKey<RpcCablingCondData> RPC_RegSelCondAlg::m_rpcReadKey { this, "RpcCablingKey", "RpcCablingCondData", "Key of RpcCablingCondData" }
private

Definition at line 37 of file RPC_RegSelCondAlg.h.

38{ this, "RpcCablingKey", "RpcCablingCondData", "Key of RpcCablingCondData" };

◆ m_tableKey

SG::WriteCondHandleKey<IRegSelLUTCondData> MuonRegSelCondAlg::m_tableKey { this, "RegSelLUT", "RegSelLUTCondData", "Region Selector lookup table" }
privateinherited

Output conditions object.

Definition at line 54 of file MuonRegSelCondAlg.h.

55{ this, "RegSelLUT", "RegSelLUTCondData", "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: