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

#include <TRTActiveCondAlg.h>

Inheritance diagram for TRTActiveCondAlg:
Collaboration diagram for TRTActiveCondAlg:

Public Types

typedef TRTCond::StrawStatusMultChanContainer StrawStatusContainer

Public Member Functions

 TRTActiveCondAlg (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~TRTActiveCondAlg () override
virtual StatusCode initialize () override
virtual StatusCode execute (const EventContext &ctx) const override
virtual bool isReEntrant () const override final
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
virtual bool filterPassed (const EventContext &ctx) const
virtual void setFilterPassed (bool state, const EventContext &ctx) const
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

SG::ReadCondHandleKey< StrawStatusContainerm_strawReadKey {this,"StrawReadKey","/TRT/Cond/Status","Straw Status in-key"}
SG::ReadCondHandleKey< InDetDD::TRT_DetElementContainerm_trtDetEleContKey {this, "TRTDetEleContKey", "TRT_DetElementContainer", "Key of TRT_DetElementContainer for TRT"}
SG::WriteCondHandleKey< TRTCond::ActiveFractionm_strawWriteKey {this,"ActiveWriteKey","ActiveFraction","ActiveFraction out-key"}
ToolHandle< ITRT_StrawStatusSummaryToolm_strawStatus {this, "TRTStrawStatusSummaryTool", "TRT_StrawStatusSummaryTool"}
const TRT_IDm_trtId {}
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 20 of file TRTActiveCondAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

◆ StrawStatusContainer

Constructor & Destructor Documentation

◆ TRTActiveCondAlg()

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

Definition at line 13 of file TRTActiveCondAlg.cxx.

15 : ::AthReentrantAlgorithm(name,pSvcLocator)
16{ }

◆ ~TRTActiveCondAlg()

TRTActiveCondAlg::~TRTActiveCondAlg ( )
overridevirtualdefault

Member Function Documentation

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64{
65 return 0;
66}

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

StatusCode TRTActiveCondAlg::execute ( const EventContext & ctx) const
overridevirtual

Definition at line 39 of file TRTActiveCondAlg.cxx.

40{
41 ATH_MSG_DEBUG("execute " << name());
42
43 // ____________ Construct Write Cond Handle and check its validity ____________
44
45 SG::WriteCondHandle<TRTCond::ActiveFraction> writeHandle{m_strawWriteKey, ctx};
46
47 // Do we have a valid Write Cond Handle for current time?
48 if(writeHandle.isValid()) {
49 ATH_MSG_DEBUG("CondHandle " << writeHandle.fullKey() << " is already valid."
50 << ". In theory this should not be called, but may happen"
51 << " if multiple concurrent events are being processed out of order.");
52
53 return StatusCode::SUCCESS;
54 }
55
56
57
58 // ____________ Construct new Write Cond Object ____________
59 std::unique_ptr<TRTCond::ActiveFraction> writeCdo{std::make_unique<TRTCond::ActiveFraction>()};
60
61
62 // ____________ Compute number of alive straws for Write Cond object ____________
63
64
65
66 ATH_MSG_INFO(" Initialize TRTCond::ActiveFraction table with number of phi, eta bins: "
67 << writeCdo->getPhiBins().size() << ", " << writeCdo->getEtaBins().size() );
68
69 for (unsigned int i=0; i<writeCdo->getEtaBins().size(); i++) {
70 float etaMin = writeCdo->getEtaBins()[i].first;
71 float etaMax = writeCdo->getEtaBins()[i].second;
72 int bin = writeCdo->findEtaBin( (etaMin+etaMax)/2. );
73 ATH_MSG_DEBUG("TRTCond::ActiveFraction: findEtaBin( " << etaMin << ", " << etaMax << " ] = " << bin );
74
75 for (unsigned int j=0; j<writeCdo->getPhiBins().size(); j++) {
76 float phiMin = writeCdo->getPhiBins()[j].first;
77 float phiMax = writeCdo->getPhiBins()[j].second;
78 int bin = writeCdo->findPhiBin( (phiMin+phiMax)/2. );
79 ATH_MSG_DEBUG("TRTCond::ActiveFraction: findPhiBin( " << phiMin << ", " << phiMax << " ] = " << bin );
80 }
81 }
82
83 std::vector<int> dummyPhiVec( writeCdo->getPhiBins().size(), 0 );
84 std::vector<std::vector<int> > dummyTableCountAll( writeCdo->getEtaBins().size(), dummyPhiVec );
85 std::vector<std::vector<int> > dummyTableCountDead( writeCdo->getEtaBins().size(), dummyPhiVec );
86
87 SG::ReadCondHandle<InDetDD::TRT_DetElementContainer> trtDetEleHandle(m_trtDetEleContKey, ctx);
88 const InDetDD::TRT_DetElementCollection* elements(trtDetEleHandle->getElements());
89 if (not trtDetEleHandle.isValid() or elements==nullptr) {
90 ATH_MSG_FATAL(m_trtDetEleContKey.fullKey() << " is not available.");
91 return StatusCode::FAILURE;
92 }
93
94 float rMinEndcap = 617.;
95 float rMaxEndcap = 1106.;
96 int countAll(0), countDead(0), countPhiSkipped(0), countEtaSkipped(0), countInvalidEtaValues(0);
97 for (std::vector<Identifier>::const_iterator it = m_trtId->straw_layer_begin(); it != m_trtId->straw_layer_end(); ++it ) {
98 int nStrawsInLayer = m_trtId->straw_max(*it);
99 for (int i=0; i<=nStrawsInLayer; i++) {
100
101 Identifier id = m_trtId->straw_id(*it, i);
102 // Make sure it is a straw_layer id
103 Identifier strawLayerId = m_trtId->layer_id(id);
104 //Get hash Id
105 IdentifierHash hashId = m_trtId->straw_layer_hash(strawLayerId);
106
107 bool status = m_strawStatus->get_status(id, ctx);
108 countAll++; if (status) countDead++;
109
110 const Amg::Vector3D &strawPosition = elements->getDetectorElement(hashId)->center(id);
111 double phi = std::atan2( strawPosition.y(), strawPosition.x() );
112 int phiBin = writeCdo->findPhiBin( phi );
113 if (phiBin<0) {
114 ATH_MSG_DEBUG("TRTCond::ActiveFraction phiBin<0: " << phi << " " << phiBin);
115 countPhiSkipped++;
116 continue;
117 }
118
119 // calculate etaMin, etaMax
120 int side = m_trtId->barrel_ec(id);
121 float z = std::abs( strawPosition.z() );
122 float thetaMin(0.), thetaMax(0.);
123 if (abs(side)==1) { // barrel
124 float zRange = 360.; // straw length / 2
125 if ( m_trtId->layer_or_wheel(id) == 0 && m_trtId->straw_layer(id) < 9 ) zRange = 160.; // short straws
126 float r = std::sqrt( std::pow(strawPosition.x(), 2) + std::pow(strawPosition.y(), 2) );
127 thetaMin = std::atan( r / (z+zRange) );
128 thetaMax = ((z-zRange)>0.) ? std::atan( r / (z-zRange) ) : 1.57; // M_PI_2 - epsilon
129 } else { // endcap
130 thetaMin = std::atan( rMinEndcap / z );
131 thetaMax = std::atan( rMaxEndcap / z );
132 }
133 if (side<0) { // theta -> M_PI - theta
134 float thetaDummy = thetaMin;
135 thetaMin = M_PI - thetaMax;
136 thetaMax = M_PI - thetaDummy;
137 }
138
139 float thetaCheck[] = {thetaMax, thetaMin};
140 float etaCheck[] = {0., 0.};
141 for (int ti=0; ti<2; ti++) {
142 if (thetaCheck[ti]<=0.||thetaCheck[ti]>=M_PI) ATH_MSG_DEBUG("TRTCond::ActiveFraction: theta " << ti << " " << thetaCheck[ti]);
143 float tanTheta = std::tan(thetaCheck[ti]/2.);
144 if (tanTheta<=0.) {
145 ATH_MSG_DEBUG("TRTCond::ActiveFraction: theta tan " << ti << " " << tanTheta );
146 countInvalidEtaValues++;
147 continue;
148 }
149 etaCheck[ti] = -std::log( tanTheta );
150 }
151 float etaMin = etaCheck[0];
152 float etaMax = etaCheck[1];
153 int etaMinBin = writeCdo->findEtaBin( etaMin );
154 int etaMaxBin = writeCdo->findEtaBin( etaMax );
155 if (etaMin>=etaMax) ATH_MSG_WARNING("TRTCond::ActiveFraction: etaMaxBin<etaMinBin " << etaMin << " " << etaMax << " " << thetaMin << " " << thetaMax);
156 if (etaMinBin<0 && etaMaxBin<0) {
157 ATH_MSG_WARNING("TRTCond::ActiveFraction: etaMaxBin<etaMinBin " << thetaMin << " " << thetaMax
158 << " " << etaMin << " " << etaMax << " " << etaMinBin << " " << etaMaxBin << ", side: " << side);
159 countEtaSkipped++;
160 continue;
161 }
162 if (etaMinBin<0) etaMinBin = 0;
163 if (etaMaxBin<0) etaMaxBin = writeCdo->getEtaBins().size() - 1;
164 if (etaMaxBin<etaMinBin) ATH_MSG_WARNING( "TRTCond::ActiveFraction: etaMaxBin<etaMinBin " << etaMinBin << " " << etaMaxBin << ", side: " << side);
165
166 for (int iEta = etaMinBin; iEta <= etaMaxBin; iEta++) {
167 dummyTableCountAll[iEta][phiBin]++;
168 if (status) dummyTableCountDead[iEta][phiBin]++;
169 }
170
171 }
172 } // end straw Identifier loop
173
174 for (unsigned int i = 0; i < writeCdo->getEtaBins().size(); ++i) { // fill the table
175 for (unsigned int j = 0; j < writeCdo->getPhiBins().size(); ++j) {
176 float deadFraction = 1. * dummyTableCountDead[i][j];
177 if (dummyTableCountAll[i][j]>0) deadFraction /= (1. * dummyTableCountAll[i][j]);
178 writeCdo->setActiveFraction(i, j, 1. - deadFraction);
179 ATH_MSG_DEBUG( "dummyTableCountDead: " << i << ", " << j << ", count " << dummyTableCountAll[i][j] << " dead " << deadFraction);
180 }
181 }
182
183 float deadStrawFraction = (1.*countDead) / (1.*countAll);
184 ATH_MSG_INFO( " Initialize TRTCond::ActiveFraction table finished, count all TRT straws: " << countAll
185 << ", count dead straws: " << countDead << " (" << deadStrawFraction
186 << "%), straws skipped due to invalid phi, eta range: " << countPhiSkipped << " " << countEtaSkipped );
187
188 if (countInvalidEtaValues) ATH_MSG_WARNING("TRT_ActiveFraction: found invalid eta range, check: " << countInvalidEtaValues);
189
190
191
192 //__________ Assign range of writeCdo to that of the ReadHandle___________
193 EventIDRange rangeW;
194
195 SG::ReadCondHandle<StrawStatusContainer> strawReadHandle{m_strawReadKey, ctx};
196 const StrawStatusContainer* strawContainer{*strawReadHandle};
197 if(strawContainer==nullptr) {
198 ATH_MSG_ERROR("Null pointer to the straw status container");
199 return StatusCode::FAILURE;
200 }
201
202 // Get range
203 if(!strawReadHandle.range(rangeW)) {
204 ATH_MSG_ERROR("Failed to retrieve validity range for " << strawReadHandle.key());
205 return StatusCode::FAILURE;
206 }
207
208
209 // Record CDO
210 if(writeHandle.record(rangeW,std::move(writeCdo)).isFailure()) {
211 ATH_MSG_ERROR("Could not record ActiveFraction " << writeHandle.key()
212 << " with EventRange " << rangeW
213 << " into Conditions Store");
214 return StatusCode::FAILURE;
215 }
216
217
218 return StatusCode::SUCCESS;
219}
#define M_PI
Scalar phi() const
phi method
#define ATH_MSG_ERROR(x)
#define ATH_MSG_FATAL(x)
#define ATH_MSG_INFO(x)
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
#define z
bool range(EventIDRange &r)
const std::string & key() const
const std::string & key() const
StatusCode record(const EventIDRange &range, T *t)
record handle, with explicit range DEPRECATED
const DataObjID & fullKey() const
const TRT_ID * m_trtId
TRTCond::StrawStatusMultChanContainer StrawStatusContainer
ToolHandle< ITRT_StrawStatusSummaryTool > m_strawStatus
SG::ReadCondHandleKey< InDetDD::TRT_DetElementContainer > m_trtDetEleContKey
SG::WriteCondHandleKey< TRTCond::ActiveFraction > m_strawWriteKey
SG::ReadCondHandleKey< StrawStatusContainer > m_strawReadKey
int r
Definition globals.cxx:22
Eigen::Matrix< double, 3, 1 > Vector3D
status
Definition merge.py:16
setScale setgFexType iEta
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setPhiMap phiBin

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

Definition at line 19 of file TRTActiveCondAlg.cxx.

20{
21 // Straw status
22 ATH_CHECK ( m_strawStatus.retrieve() );
23
24 // Read key
25 ATH_CHECK( m_strawReadKey.initialize() );
26
27 // Register write handle
28 ATH_CHECK( m_strawWriteKey.initialize() );
29
30 // Initialize readCondHandle key
31 ATH_CHECK(m_trtDetEleContKey.initialize());
32
33 // TRT ID helper
34 ATH_CHECK(detStore()->retrieve(m_trtId,"TRT_ID"));
35
36 return StatusCode::SUCCESS;
37}
#define ATH_CHECK
Evaluate an expression and check for errors.
const ServiceHandle< StoreGateSvc > & detStore() const
retrieve(aClass, aKey=None)
Definition PyKernel.py:110

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ isClonable()

◆ isReEntrant()

virtual bool TRTActiveCondAlg::isReEntrant ( ) const
inlinefinaloverridevirtual

Definition at line 29 of file TRTActiveCondAlg.h.

29{ 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_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_strawReadKey

SG::ReadCondHandleKey<StrawStatusContainer> TRTActiveCondAlg::m_strawReadKey {this,"StrawReadKey","/TRT/Cond/Status","Straw Status in-key"}
private

Definition at line 33 of file TRTActiveCondAlg.h.

33{this,"StrawReadKey","/TRT/Cond/Status","Straw Status in-key"};

◆ m_strawStatus

ToolHandle<ITRT_StrawStatusSummaryTool> TRTActiveCondAlg::m_strawStatus {this, "TRTStrawStatusSummaryTool", "TRT_StrawStatusSummaryTool"}
private

Definition at line 38 of file TRTActiveCondAlg.h.

38{this, "TRTStrawStatusSummaryTool", "TRT_StrawStatusSummaryTool"};

◆ m_strawWriteKey

SG::WriteCondHandleKey<TRTCond::ActiveFraction> TRTActiveCondAlg::m_strawWriteKey {this,"ActiveWriteKey","ActiveFraction","ActiveFraction out-key"}
private

Definition at line 36 of file TRTActiveCondAlg.h.

36{this,"ActiveWriteKey","ActiveFraction","ActiveFraction out-key"};

◆ m_trtDetEleContKey

SG::ReadCondHandleKey<InDetDD::TRT_DetElementContainer> TRTActiveCondAlg::m_trtDetEleContKey {this, "TRTDetEleContKey", "TRT_DetElementContainer", "Key of TRT_DetElementContainer for TRT"}
private

Definition at line 34 of file TRTActiveCondAlg.h.

34{this, "TRTDetEleContKey", "TRT_DetElementContainer", "Key of TRT_DetElementContainer for TRT"};

◆ m_trtId

const TRT_ID* TRTActiveCondAlg::m_trtId {}
private

Definition at line 39 of file TRTActiveCondAlg.h.

39{};

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