L1CaloCondSvc class.
More...
#include <L1CaloCondSvc.h>
L1CaloCondSvc class.
Service that implement the methods required to store/retrieve inline payload to/from the condition DB
- Author
- Damien Prieur damie.nosp@m.n.pr.nosp@m.ieur@.nosp@m.cern.nosp@m..ch
Definition at line 38 of file L1CaloCondSvc.h.
◆ L1CaloCondSvc()
L1CaloCondSvc::L1CaloCondSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
svc |
|
) |
| |
◆ ~L1CaloCondSvc()
L1CaloCondSvc::~L1CaloCondSvc |
( |
| ) |
|
|
virtual |
◆ finalize()
StatusCode L1CaloCondSvc::finalize |
( |
| ) |
|
|
virtual |
Definition at line 55 of file L1CaloCondSvc.cxx.
61 delete it_AttrList->second;
66 delete it_AttrListColl->second;
69 return StatusCode::SUCCESS;
◆ initialize()
StatusCode L1CaloCondSvc::initialize |
( |
| ) |
|
|
virtual |
◆ interfaceID()
const InterfaceID & L1CaloCondSvc::interfaceID |
( |
| ) |
|
|
inlinestatic |
Definition at line 114 of file L1CaloCondSvc.h.
115 static const InterfaceID IID_L1CaloCondSvc(
"L1CaloCondSvc",1,0);
116 return IID_L1CaloCondSvc;
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ queryInterface()
StatusCode L1CaloCondSvc::queryInterface |
( |
const InterfaceID & |
riid, |
|
|
void ** |
ppvInterface |
|
) |
| |
|
virtual |
Definition at line 32 of file L1CaloCondSvc.cxx.
41 return AthService::queryInterface(riid,ppvInterface);
43 return StatusCode::SUCCESS;
◆ registerCondition()
template<typename T >
StatusCode L1CaloCondSvc::registerCondition |
( |
T *& |
pobj, |
|
|
const std::string & |
mykey = "" |
|
) |
| |
|
private |
◆ retrieve() [1/2]
template<typename T , typename FolderMapping >
StatusCode L1CaloCondSvc::retrieve |
( |
T *& |
pobj, |
|
|
const FolderMapping & |
folderKeyMap, |
|
|
const std::string & |
key = "" |
|
) |
| |
To retrieve a condition object from the COOL DB with custom folder mapping.
- Warning
- Only objects that implement the IL1CaloPersistenceCapable interface can be retrieved using this method
◆ retrieve() [2/2]
template<typename T >
StatusCode L1CaloCondSvc::retrieve |
( |
T *& |
pobj, |
|
|
const std::string & |
key = "" |
|
) |
| |
To retrieve a condition object from the COOL DB.
- Warning
- Only objects that implement the IL1CaloPersistenceCapable interface can be retrieved using this method
◆ retrieveImpl()
template<typename T >
StatusCode L1CaloCondSvc::retrieveImpl |
( |
T *& |
pobj, |
|
|
const std::string & |
key |
|
) |
| |
|
private |
◆ store()
template<typename T >
StatusCode L1CaloCondSvc::store |
( |
const T *& |
pobj, |
|
|
const std::string & |
key, |
|
|
const std::string & |
folder, |
|
|
const std::string & |
tag |
|
) |
| const |
To store a condition object into the COOL DB.
- Warning
- Only objects that implement the IL1CaloPersistenceCapable interface can be stored using this method
◆ updateConditions()
Definition at line 72 of file L1CaloCondSvc.cxx.
79 std::set<IL1CaloPersistenceCapable*> vToBeUpdated;
82 std::list<std::string>::const_iterator itr;
83 for(itr=
keys.begin(); itr!=
keys.end(); ++itr) {
84 std::string
key = *itr;
89 std::map<std::string, std::vector<IL1CaloPersistenceCapable*> >::const_iterator it_map =
m_mConditions.find(
key);
93 std::vector<IL1CaloPersistenceCapable*> vObjs = it_map->second;
94 std::vector<IL1CaloPersistenceCapable*>::const_iterator it_vObjs = vObjs.begin();
95 for(;it_vObjs!=vObjs.end();++it_vObjs) {
97 vToBeUpdated.insert(pobj);
104 std::set<IL1CaloPersistenceCapable*>::const_iterator it_set = vToBeUpdated.begin();
105 for(;it_set!=vToBeUpdated.end();++it_set) {
109 std::vector<std::string> vCoolInputKeys = pobj->
coolInputKeys();
112 vCoolInputKeys.insert(vCoolInputKeys.end(),otherkeys.begin(),otherkeys.end());
117 if(conditionType==
"CondAttrListCollection") {
120 std::map<std::string, const CondAttrListCollection*> condAttrListCollectionMap;
123 std::vector<std::string>::const_iterator it_coolInputKeys = vCoolInputKeys.begin();
124 for(;it_coolInputKeys!=vCoolInputKeys.end();++it_coolInputKeys) {
125 std::string
key = *it_coolInputKeys;
131 if (attrListCollection) {
140 }
else if(conditionType==
"AthenaAttributeList"){
148 ATH_MSG_ERROR(
"Condition type " << conditionType<<
"not recognized by L1CaloCondSvc");
149 return StatusCode::FAILURE;
185 ATH_MSG_VERBOSE(
"end of L1CaloCondSvc::updateConditions(IOVSVC_CALLBACK_ARGS_P(/*I*/, keys))");
186 return StatusCode::SUCCESS;
◆ m_bUseTimeStamp
bool L1CaloCondSvc::m_bUseTimeStamp |
|
private |
◆ m_bWriteNewChannels
bool L1CaloCondSvc::m_bWriteNewChannels |
|
private |
◆ m_detStore
◆ m_iovBeginLB
unsigned int L1CaloCondSvc::m_iovBeginLB |
|
private |
◆ m_iovBeginRun
unsigned int L1CaloCondSvc::m_iovBeginRun |
|
private |
◆ m_iovBeginTime
uint64_t L1CaloCondSvc::m_iovBeginTime |
|
private |
◆ m_iovEndLB
unsigned int L1CaloCondSvc::m_iovEndLB |
|
private |
◆ m_iovEndRun
unsigned int L1CaloCondSvc::m_iovEndRun |
|
private |
◆ m_iovEndTime
uint64_t L1CaloCondSvc::m_iovEndTime |
|
private |
◆ m_map_conditions2key
◆ m_mConditions
◆ m_mDataHandleAttrList
◆ m_mDataHandleAttrListColl
◆ m_regSvc
◆ m_streamName
std::string L1CaloCondSvc::m_streamName |
|
private |
The documentation for this class was generated from the following files: