#include <CondSvc.h>
Definition at line 23 of file CondSvc.h.
◆ alg_map_t
◆ CondContMap_t
◆ IAlgHashSet
◆ id_map_t
◆ mutex_t
◆ CondSvc()
CondSvc::CondSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
svc |
|
) |
| |
◆ ~CondSvc()
◆ condAlgs()
virtual const std::set<IAlgorithm*>& CondSvc::condAlgs |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ conditionIDs()
const DataObjIDColl & CondSvc::conditionIDs |
( |
| ) |
const |
|
overridevirtual |
◆ dump()
void CondSvc::dump |
( |
std::ostream & |
ost | ) |
const |
|
overridevirtual |
Definition at line 87 of file CondSvc.cxx.
89 std::lock_guard<mutex_t> lock(
m_lock);
91 ost <<
"CondSvc::dump()";
93 ost <<
"\ndumping id->alg map\n";
94 for (
const auto& ent :
m_idMap) {
95 ost << std::endl <<
" + " << ent.first <<
" : ";
96 for (
const auto&
a : ent.second) {
97 ost <<
" " <<
a->name();
101 ost <<
"\n\ndumping alg->id map\n";
103 ost << std::endl <<
" + " << ent.first->name() <<
" : ";
104 for (
const auto&
a : ent.second) {
108 ost <<
"\n\ndumping ConditionStore:\n\n";
111 if (
m_sgs->retrieve(cib,cie).isSuccess()) {
◆ finalize()
StatusCode CondSvc::finalize |
( |
| ) |
|
|
overridevirtual |
Definition at line 126 of file CondSvc.cxx.
128 return StatusCode::SUCCESS;
◆ getIDValidity()
bool CondSvc::getIDValidity |
( |
const EventContext & |
ctx, |
|
|
DataObjIDColl & |
validIDs, |
|
|
DataObjIDColl & |
invalidIDs |
|
) |
| |
|
virtual |
Definition at line 276 of file CondSvc.cxx.
278 std::lock_guard<mutex_t> lock(
m_lock);
280 EventIDBase
now(ctx.eventID());
282 std::ostringstream
ost;
283 ost <<
"getValidIDS " << ctx.eventID()
284 <<
": retrieving all ConstIterator<CondContBase>";
286 if (
m_sgs->retrieve(cib,cie).isSuccess()) {
288 ost << std::endl <<
" + " << cib.
key() <<
" v: " << cib->valid(
now)
289 <<
" id: " << cib->id();
291 if ( cib->valid(
now) ) {
292 validIDs.insert( cib->id() );
294 invalidIDs.insert( cib->id() );
305 ost << std::endl <<
" -> found " << validIDs.size() <<
" valid, "
306 << invalidIDs.size() <<
" invalid IDs";
◆ getInvalidIDs()
bool CondSvc::getInvalidIDs |
( |
const EventContext & |
ctx, |
|
|
DataObjIDColl & |
ids |
|
) |
| |
|
virtual |
Definition at line 240 of file CondSvc.cxx.
241 std::lock_guard<mutex_t> lock(
m_lock);
243 EventIDBase
now(ctx.eventID());
245 std::ostringstream
ost;
246 ost <<
"getInvalidIDS " << ctx.eventID()
247 <<
": retrieving all ConstIterator<CondContBase>";
249 if (
m_sgs->retrieve(cib,cie).isSuccess()) {
251 ost << std::endl <<
" + " << cib.
key() <<
" " << cib->valid(
now)
252 <<
" id: " << cib->id();
254 if (! (cib->valid(
now)) ) {
255 invalidIDs.insert( cib->id() );
266 ost << std::endl <<
" -> found " << invalidIDs.size() <<
" invalid IDs";
◆ getValidIDs()
bool CondSvc::getValidIDs |
( |
const EventContext & |
ctx, |
|
|
DataObjIDColl & |
ids |
|
) |
| |
|
virtual |
Definition at line 316 of file CondSvc.cxx.
317 std::lock_guard<mutex_t> lock(
m_lock);
319 EventIDBase
now(ctx.eventID());
321 std::ostringstream
ost;
322 ost <<
"getValidIDS " << ctx.eventID()
323 <<
": retrieving all ConstIterator<CondContBase>";
325 if (
m_sgs->retrieve(cib,cie).isSuccess()) {
327 ost << std::endl <<
" + " << cib.
key() <<
" v: " << cib->valid(
now)
328 <<
" id: " << cib->id();
330 if ( cib->valid(
now) ) {
331 validIDs.insert( cib->id() );
342 ost << std::endl <<
" -> found " << validIDs.size() <<
" valid IDs";
◆ initialize()
StatusCode CondSvc::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 52 of file CondSvc.cxx.
56 msg().setLevel( m_outputLevel.value() );
58 if (!
sc.isSuccess()) {
59 warning () <<
"Base class could not be initialized" <<
endmsg;
60 return StatusCode::FAILURE;
63 if (!
m_sgs.isValid()) {
64 error() <<
"could not get ConditionStore" <<
endmsg;
65 return StatusCode::FAILURE;
68 return StatusCode::SUCCESS;
◆ isRegistered() [1/2]
bool CondSvc::isRegistered |
( |
const DataObjID & |
id | ) |
const |
|
overridevirtual |
◆ isRegistered() [2/2]
bool CondSvc::isRegistered |
( |
IAlgorithm * |
ialg | ) |
const |
|
overridevirtual |
◆ isValidID()
bool CondSvc::isValidID |
( |
const EventContext & |
ctx, |
|
|
const DataObjID & |
id |
|
) |
| const |
|
overridevirtual |
Definition at line 352 of file CondSvc.cxx.
358 EventIDBase
now(ctx.eventID());
361 std::string sk =
id.key();
369 ATH_MSG_VERBOSE(
"CondSvc::isValidID: now: " << ctx.eventID() <<
" id : "
370 <<
id << (
valid ?
": T" :
": F") );
377 ATH_MSG_DEBUG(
"CondSvc::isValidID: now: " << ctx.eventID() <<
" id: "
◆ regHandle()
StatusCode CondSvc::regHandle |
( |
IAlgorithm * |
alg, |
|
|
const Gaudi::DataHandle & |
id |
|
) |
| |
|
overridevirtual |
◆ regHandle_i()
StatusCode CondSvc::regHandle_i |
( |
IAlgorithm * |
alg, |
|
|
const Gaudi::DataHandle & |
id |
|
) |
| |
|
private |
Definition at line 171 of file CondSvc.cxx.
177 info() <<
dh.fullKey() <<
" is a ReadHandle. no need to register"
179 return StatusCode::SUCCESS;
184 IAlgorithm *ia = *(itd2->second.begin());
185 if (ia->name() !=
alg->name()) {
186 error() <<
"WriteCondHandle " <<
dh.fullKey()
187 <<
" is already registered against a different Algorithm "
189 <<
". This is not allowed."
191 return StatusCode::FAILURE;
203 itd2->second.insert(
alg );
210 ita2->second.insert(
dh.fullKey() );
217 CLID clid =
dh.fullKey().clid();
225 sc = StatusCode::FAILURE;
◆ registerConditionIOSvc()
virtual StatusCode CondSvc::registerConditionIOSvc |
( |
IConditionIOSvc * |
| ) |
|
|
inlineoverridevirtual |
register an IConditionIOSvc (alternative to Algorithm processing of Conditions)
Definition at line 73 of file CondSvc.h.
74 return StatusCode::FAILURE;
◆ setupDone()
StatusCode CondSvc::setupDone |
( |
| ) |
|
|
overridevirtual |
To be called after changes to the set of conditions containers in the conditions store.
May not be called concurrently with any other methods of this class.
Definition at line 415 of file CondSvc.cxx.
417 std::lock_guard<mutex_t> lock(
m_lock);
420 if (
m_sgs->retrieve(cib,cie).isSuccess()) {
427 return StatusCode::SUCCESS;
◆ start()
StatusCode CondSvc::start |
( |
| ) |
|
|
overridevirtual |
Definition at line 133 of file CondSvc.cxx.
137 return StatusCode::SUCCESS;
◆ startConditionSetup()
virtual ConditionSlotFuture* CondSvc::startConditionSetup |
( |
const EventContext & |
| ) |
|
|
inlineoverridevirtual |
Asynchronously setup conditions.
Definition at line 67 of file CondSvc.h.
◆ stop()
StatusCode CondSvc::stop |
( |
| ) |
|
|
overridevirtual |
Definition at line 142 of file CondSvc.cxx.
147 std::ostringstream
ost;
153 return StatusCode::SUCCESS;
◆ validRanges()
StatusCode CondSvc::validRanges |
( |
std::vector< EventIDRange > & |
ranges, |
|
|
const DataObjID & |
id |
|
) |
| const |
|
overridevirtual |
Definition at line 26 of file CondSvc.cxx.
38 if (
sc.isSuccess() ) {
39 while ( cib != cie ) {
40 if ( cib->id() ==
id ) {
◆ m_algMap
◆ m_condAlgs
std::set<IAlgorithm*> CondSvc::m_condAlgs |
|
private |
◆ m_condConts
◆ m_condIDs
DataObjIDColl CondSvc::m_condIDs |
|
private |
◆ m_idMap
◆ m_lock
◆ m_sgs
The documentation for this class was generated from the following files: