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

#include <LArHVPathologyDbCondAlg.h>

Inheritance diagram for LArHVPathologyDbCondAlg:

Public Member Functions

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

void fillElectMap (const CaloDetDescrManager *calodetdescrmgr, LArHVPathology *hvpath, SG::WriteCondHandle< LArHVPathology > &writeHandle) const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

SG::ReadCondHandleKey< AthenaAttributeListm_pathologyFolderKey {this, "PathologyFolder", "/LAR/HVPathologiesOfl/Pathologies", "Cool folder for HV pathologies" }
SG::ReadCondHandleKey< LArHVIdMappingm_hvMappingKey {this, "HVMappingKey", "LArHVIdMap", "Key for mapping object" }
SG::ReadCondHandleKey< CaloDetDescrManagerm_caloMgrKey {this,"CaloDetDescrManager", "CaloDetDescrManager"}
SG::WriteCondHandleKey< LArHVPathologym_hvPathologyKey {this, "HVPAthologyKey", "LArHVPathology", "Key for HV pathologies in Cond. store"}
ToolHandle< ILArHVMapToolm_hvmapTool
const LArEM_IDm_larem_id =nullptr
const LArHEC_IDm_larhec_id =nullptr
const LArFCAL_IDm_larfcal_id =nullptr
const LArOnlineIDm_laronline_id =nullptr
const LArHVLineIDm_hvlineHelper =nullptr
std::mutex m_mut
TClass * m_klass =nullptr
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 29 of file LArHVPathologyDbCondAlg.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

◆ LArHVPathologyDbCondAlg()

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

Definition at line 30 of file LArHVPathologyDbCondAlg.cxx.

31 : AthCondAlgorithm(name,pSvcLocator), m_hvmapTool("LArHVMapTool",this)
32{ }
ToolHandle< ILArHVMapTool > m_hvmapTool

◆ ~LArHVPathologyDbCondAlg()

LArHVPathologyDbCondAlg::~LArHVPathologyDbCondAlg ( )
virtual

Definition at line 34 of file LArHVPathologyDbCondAlg.cxx.

35{ }

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

Definition at line 74 of file LArHVPathologyDbCondAlg.cxx.

74 {
75
76 SG::WriteCondHandle<LArHVPathology > writeHandle{m_hvPathologyKey, ctx};
77
78 if (writeHandle.isValid()) {
79 ATH_MSG_DEBUG("Found valid write handle");
80 return StatusCode::SUCCESS;
81 }
82
83 //Get Conditions input
84 SG::ReadCondHandle<AthenaAttributeList> fldrHdl(m_pathologyFolderKey, ctx);
85 const AthenaAttributeList *attrList = *fldrHdl;
86 if (!attrList) {
87 ATH_MSG_ERROR("Do not have AthenaAttributeList for pathology");
88 return StatusCode::FAILURE;
89 }
90 writeHandle.addDependency(fldrHdl);
91
92 SG::ReadCondHandle<CaloDetDescrManager> caloMgrHandle{m_caloMgrKey,ctx};
93 const CaloDetDescrManager* calodetdescrmgr = *caloMgrHandle;
94 writeHandle.addDependency(caloMgrHandle);
95
96 try {
97 const unsigned blobVersion=(*attrList)["blobVersion"].data<unsigned int>();
98 const coral::Blob& blob = (*attrList)["Constants"].data<coral::Blob>();
99
100 if (blobVersion!=0) {
101 ATH_MSG_ERROR ( "Can't interpret BLOB version " << blobVersion );
102 return StatusCode::FAILURE;
103 }
104
105
106 void* blob_data ATLAS_THREAD_SAFE = const_cast<void*> (blob.startingAddress());
107 TBufferFile buf(TBuffer::kRead, blob.size(), blob_data, false);
108 std::unique_ptr<LArHVPathologiesDb> hvpathdb
109 (static_cast<LArHVPathologiesDb*>(buf.ReadObjectAny(m_klass)));
110
111 auto hvpath = std::make_unique<LArHVPathology>(hvpathdb.get());
112
113 fillElectMap(calodetdescrmgr, hvpath.get(), writeHandle);
114
115
116 if(writeHandle.record(std::move(hvpath)).isFailure()) {
117 ATH_MSG_ERROR("Could not record LArHVPathology object with "
118 << writeHandle.key()
119 << " with EventRange " << writeHandle.getRange()
120 << " into Conditions Store");
121 return StatusCode::FAILURE;
122 }
123
124 return StatusCode::SUCCESS;
125
126 }catch (coral::AttributeListException &e) {
127 ATH_MSG_ERROR ( e.what() );
128 return StatusCode::FAILURE;
129 }
130 // should not come here, but syntactically
131 return StatusCode::SUCCESS;
132}
#define ATH_MSG_ERROR(x)
#define ATH_MSG_DEBUG(x)
#define ATLAS_THREAD_SAFE
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
SG::WriteCondHandleKey< LArHVPathology > m_hvPathologyKey
void fillElectMap(const CaloDetDescrManager *calodetdescrmgr, LArHVPathology *hvpath, SG::WriteCondHandle< LArHVPathology > &writeHandle) const
SG::ReadCondHandleKey< AthenaAttributeList > m_pathologyFolderKey
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

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

◆ fillElectMap()

void LArHVPathologyDbCondAlg::fillElectMap ( const CaloDetDescrManager * calodetdescrmgr,
LArHVPathology * hvpath,
SG::WriteCondHandle< LArHVPathology > & writeHandle ) const
private

Definition at line 135 of file LArHVPathologyDbCondAlg.cxx.

138{
139 SG::ReadCondHandle<LArHVIdMapping> cHdl{m_hvMappingKey};
140 const LArHVIdMapping* hvCabling = *cHdl;
141 if(!hvCabling) {
142 ATH_MSG_WARNING("Do not have HV mapping, will not fill LArHVPathology electIndMap !!!");
143 return;
144 }
145 writeHandle.addDependency (cHdl);
146
147 std::lock_guard<std::mutex> lock(m_mut);
148
149 std::map<std::pair<Identifier, unsigned int>, std::vector<unsigned short> > &elecMap = hvpath->getElecMap(); //shorthand
150
151 std::vector<unsigned short> list;
152 std::vector<HWIdentifier> hwlineId;
153 unsigned int HVline = 0;
154 // loop over all EM Identifiers
155 for (auto id: m_larem_id->channel_ids()) {
156 hwlineId.clear();
157 m_hvmapTool->GetHVLines(id,calodetdescrmgr, hwlineId);
158 // LAr EMB
159 if (abs(m_larem_id->barrel_ec(id))==1 && m_larem_id->sampling(id) > 0) {
160 if (const EMBDetectorElement* embElement = dynamic_cast<const EMBDetectorElement*>(calodetdescrmgr->get_element(id))) {
161 const EMBCellConstLink cell = embElement->getEMBCell();
162 unsigned int nelec = cell->getNumElectrodes();
163 for(auto hwid:hwlineId) {
164 list.clear();
165 HVline = m_hvlineHelper->hv_line(hwid);
166 for (unsigned int i=0;i<nelec;i++) {
167 const EMBHVElectrode& electrode = cell->getElectrode(i);
168 for (unsigned int igap=0;igap<2;igap++) {
169 if ((unsigned)electrode.hvLineNo(igap,hvCabling)==HVline) {
170 list.push_back(2*i+igap);
171 }
172 }
173 }
174 }
175 elecMap.insert(std::make_pair(std::make_pair(id,HVline) ,list));
176 continue;
177 }
178 }
179 // LAr EMEC
180 if (abs(m_larem_id->barrel_ec(id))>1 && m_larem_id->sampling(id) > 0) {
181 if (const EMECDetectorElement* emecElement = dynamic_cast<const EMECDetectorElement*>(calodetdescrmgr->get_element(id))) {
182 const EMECCellConstLink cell = emecElement->getEMECCell();
183 unsigned int nelec = cell->getNumElectrodes();
184 for(auto hwid:hwlineId) {
185 list.clear();
186 HVline = m_hvlineHelper->hv_line(hwid);
187 for (unsigned int i=0;i<nelec;i++) {
188 const EMECHVElectrode& electrode = cell->getElectrode(i);
189 for (unsigned int igap=0;igap<2;igap++) {
190 if ((unsigned)electrode.hvLineNo(igap,hvCabling)==HVline) {
191 list.push_back(2*i+igap);
192 }
193 }
194 }
195 }
196 elecMap.insert(std::make_pair(std::make_pair(id,HVline),list));
197 continue;
198 }
199 }
200 // EMBPS
201 if (abs(m_larem_id->barrel_ec(id))==1 && m_larem_id->sampling(id)==0) {
202 if (const EMBDetectorElement* embElement = dynamic_cast<const EMBDetectorElement*>(calodetdescrmgr->get_element(id))) {
203 const EMBCellConstLink cell = embElement->getEMBCell();
204 const EMBPresamplerHVModule& hvmodule = cell->getPresamplerHVModule ();
205 for(auto hwid:hwlineId) {
206 list.clear();
207 HVline = m_hvlineHelper->hv_line(hwid);
208 for (unsigned int igap=0;igap<2;igap++) {
209 if ((unsigned)hvmodule.hvLineNo(igap,hvCabling)==HVline) {
210 list.push_back(igap);
211 }
212 }
213 elecMap.insert(std::make_pair(std::make_pair(id,HVline),list));
214 continue;
215 }
216 }
217 }
218 // EMECPS
219 if (abs(m_larem_id->barrel_ec(id))>1 && m_larem_id->sampling(id)==0) {
220 if (const EMECDetectorElement* emecElement = dynamic_cast<const EMECDetectorElement*>(calodetdescrmgr->get_element(id))) {
221 const EMECCellConstLink cell = emecElement->getEMECCell();
222 const EMECPresamplerHVModule& hvmodule = cell->getPresamplerHVModule ();
223 for(auto hwid:hwlineId) {
224 list.clear();
225 HVline = m_hvlineHelper->hv_line(hwid);
226 for (unsigned int igap=0;igap<2;igap++) {
227 if ((unsigned)hvmodule.hvLineNo(igap,hvCabling)==HVline) {
228 list.push_back(igap);
229 }
230 }
231 elecMap.insert(std::make_pair(std::make_pair(id,HVline),list));
232 continue;
233 }
234 }
235 }
236 }
237 // loop over all HEC Identifiers
238 for (auto const& id: m_larhec_id->channel_ids()) {
239 hwlineId.clear();
240 m_hvmapTool->GetHVLines(id,calodetdescrmgr,hwlineId);
241 if (const HECDetectorElement* hecElement = dynamic_cast<const HECDetectorElement*>(calodetdescrmgr->get_element(id))) {
242 const HECCellConstLink cell = hecElement->getHECCell();
243 unsigned int nsubgaps = cell->getNumSubgaps();
244 for(auto hwid:hwlineId) {
245 list.clear();
246 HVline = m_hvlineHelper->hv_line(hwid);
247 for (unsigned int i=0;i<nsubgaps;i++) {
248 const HECHVSubgap& subgap = cell->getSubgap(i);
249 if ((unsigned)subgap.hvLineNo(hvCabling)==HVline) {
250 list.push_back(i);
251 }
252 }
253 elecMap.insert(std::make_pair(std::make_pair(id,HVline),list));
254 continue;
255 }
256 }
257 }
258 // loop over all FCAL Identifiers
259 for (auto const& id: m_larfcal_id->channel_ids()) {
260 hwlineId.clear();
261 m_hvmapTool->GetHVLines(id,calodetdescrmgr, hwlineId);
262 if (const FCALDetectorElement* fcalElement = dynamic_cast<const FCALDetectorElement*>(calodetdescrmgr->get_element(id))) {
263 const FCALTile* tile = fcalElement->getFCALTile();
264 unsigned int nlines = tile->getNumHVLines();
265 for(auto hwid:hwlineId) {
266 list.clear();
267 HVline = m_hvlineHelper->hv_line(hwid);
268 for (unsigned int i=0;i<nlines;i++) {
269 const FCALHVLine* line2 = tile->getHVLine(i);
270 if (line2) {
271 if ((unsigned)line2->hvLineNo(hvCabling)==HVline) {
272 list.push_back(i);
273 }
274 }
275 }
276 elecMap.insert(std::make_pair(std::make_pair(id,HVline),list));
277 continue;
278 }
279 }
280 }
281
282 return;
283
284}
#define ATH_MSG_WARNING(x)
const CaloDetDescrElement * get_element(const Identifier &cellId) const
get element by its identifier
int hvLineNo(int iGap, const LArHVIdMapping *hvIdMapping) const
int hvLineNo(int iGap, const LArHVIdMapping *hvIdMapping) const
int hvLineNo(int iGap, const LArHVIdMapping *hvIdMapping) const
int hvLineNo(int iGap, const LArHVIdMapping *hvIdMapping) const
int hvLineNo(const LArHVIdMapping *hvIdMapping) const
const LArHVLineID * m_hvlineHelper
SG::ReadCondHandleKey< LArHVIdMapping > m_hvMappingKey
std::map< std::pair< Identifier, unsigned int >, std::vector< unsigned short > > & getElecMap()
list(name, path='/')
Definition histSizes.py:38

◆ 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

◆ finalize()

StatusCode LArHVPathologyDbCondAlg::finalize ( )
overridevirtual

Definition at line 68 of file LArHVPathologyDbCondAlg.cxx.

69{
70 return StatusCode::SUCCESS;
71}

◆ initialize()

StatusCode LArHVPathologyDbCondAlg::initialize ( )
overridevirtual

Definition at line 37 of file LArHVPathologyDbCondAlg.cxx.

38{
39 ATH_CHECK(m_pathologyFolderKey.initialize());
40 ATH_CHECK(m_hvMappingKey.initialize());
41 ATH_CHECK(m_hvPathologyKey.initialize());
42 ATH_CHECK(m_caloMgrKey.initialize());
43
44 const CaloCell_ID* idHelper = nullptr;
45 ATH_CHECK( detStore()->retrieve (idHelper, "CaloCell_ID") );
46
47 m_larem_id = idHelper->em_idHelper();
48 m_larhec_id = idHelper->hec_idHelper();
49 m_larfcal_id = idHelper->fcal_idHelper();
50
51 ATH_CHECK( detStore()->retrieve(m_laronline_id,"LArOnlineID") );
52 ATH_CHECK(detStore()->retrieve(m_hvlineHelper,"LArHVLineID"));
53
54
55 m_klass = TClass::GetClass("LArHVPathologiesDb");
56 if(m_klass==nullptr){
57 ATH_MSG_ERROR ( "Can't find TClass LArHVPathologiesDb" );
58 return StatusCode::FAILURE;
59 }
60 else
61 ATH_MSG_DEBUG ( "Got TClass LArHVPathologiesDb" );
62
63 m_klass->GetStreamerInfo();
64
65 return StatusCode::SUCCESS;
66}
#define ATH_CHECK
Evaluate an expression and check for errors.
const ServiceHandle< StoreGateSvc > & detStore() const
const LArFCAL_ID * fcal_idHelper() const
access to FCAL idHelper
Definition CaloCell_ID.h:75
const LArEM_ID * em_idHelper() const
access to EM idHelper
Definition CaloCell_ID.h:63
const LArHEC_ID * hec_idHelper() const
access to HEC idHelper
Definition CaloCell_ID.h:69
const LArOnlineID * m_laronline_id
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}
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_caloMgrKey

SG::ReadCondHandleKey<CaloDetDescrManager> LArHVPathologyDbCondAlg::m_caloMgrKey {this,"CaloDetDescrManager", "CaloDetDescrManager"}
private

Definition at line 48 of file LArHVPathologyDbCondAlg.h.

48{this,"CaloDetDescrManager", "CaloDetDescrManager"};

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

const LArHVLineID* LArHVPathologyDbCondAlg::m_hvlineHelper =nullptr
private

Definition at line 58 of file LArHVPathologyDbCondAlg.h.

◆ m_hvMappingKey

SG::ReadCondHandleKey<LArHVIdMapping> LArHVPathologyDbCondAlg::m_hvMappingKey {this, "HVMappingKey", "LArHVIdMap", "Key for mapping object" }
private

Definition at line 47 of file LArHVPathologyDbCondAlg.h.

47{this, "HVMappingKey", "LArHVIdMap", "Key for mapping object" };

◆ m_hvmapTool

ToolHandle<ILArHVMapTool> LArHVPathologyDbCondAlg::m_hvmapTool
private

Definition at line 52 of file LArHVPathologyDbCondAlg.h.

◆ m_hvPathologyKey

SG::WriteCondHandleKey<LArHVPathology> LArHVPathologyDbCondAlg::m_hvPathologyKey {this, "HVPAthologyKey", "LArHVPathology", "Key for HV pathologies in Cond. store"}
private

Definition at line 50 of file LArHVPathologyDbCondAlg.h.

50{this, "HVPAthologyKey", "LArHVPathology", "Key for HV pathologies in Cond. store"};

◆ m_klass

TClass* LArHVPathologyDbCondAlg::m_klass =nullptr
private

Definition at line 62 of file LArHVPathologyDbCondAlg.h.

◆ m_larem_id

const LArEM_ID* LArHVPathologyDbCondAlg::m_larem_id =nullptr
private

Definition at line 54 of file LArHVPathologyDbCondAlg.h.

◆ m_larfcal_id

const LArFCAL_ID* LArHVPathologyDbCondAlg::m_larfcal_id =nullptr
private

Definition at line 56 of file LArHVPathologyDbCondAlg.h.

◆ m_larhec_id

const LArHEC_ID* LArHVPathologyDbCondAlg::m_larhec_id =nullptr
private

Definition at line 55 of file LArHVPathologyDbCondAlg.h.

◆ m_laronline_id

const LArOnlineID* LArHVPathologyDbCondAlg::m_laronline_id =nullptr
private

Definition at line 57 of file LArHVPathologyDbCondAlg.h.

◆ m_mut

std::mutex LArHVPathologyDbCondAlg::m_mut
mutableprivate

Definition at line 60 of file LArHVPathologyDbCondAlg.h.

◆ m_pathologyFolderKey

SG::ReadCondHandleKey<AthenaAttributeList> LArHVPathologyDbCondAlg::m_pathologyFolderKey {this, "PathologyFolder", "/LAR/HVPathologiesOfl/Pathologies", "Cool folder for HV pathologies" }
private

Definition at line 46 of file LArHVPathologyDbCondAlg.h.

46{this, "PathologyFolder", "/LAR/HVPathologiesOfl/Pathologies", "Cool folder for HV pathologies" };

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