7#include "CoralBase/AttributeListSpecification.h"
11#include "GaudiKernel/MsgStream.h"
41 std::map<L1CaloRxGainContainer::eCoolFolders, std::string>::const_iterator it =
m_mCoolFoldersKeysMap.find(efolder);
45 return std::string(
"");
50 std::vector<std::string> v;
65 if(!attrSpecification->size())
return 0;
70 L1CaloRxGainMap::const_iterator pos =
m_mRxGainMap.begin();
72 const unsigned int channelId = pos->first;
85 attrListCollection->
add(channelId, attrList);
88 return attrListCollection;
95 std::map<std::string, const CondAttrListCollection*>::const_iterator it_map;
98 if(it_map!=condAttrListCollectionMap.end()) {
104 for(;it!=attrListCollection->
end();++it) {
106 const coral::AttributeList& attrList = it->second;
129 L1CaloRxGainMap::const_iterator pos =
m_mRxGainMap.find(channelId);
131 else return &(pos->second);
135 return this->
rxGain(channelId.
id());
148 for(;it!=this->
end();++it) {
149 std::cout <<
" * item: " <<it->first <<
" => "<<it->second <<std::endl;
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
std::string specificationName(int specId) const
AbstractL1CaloPersistentCondition(const std::string &condType)
void addSpecification(int specId, const std::string &specName, const std::string &specType)
coral::AttributeListSpecification * createAttributeListSpecification() const
An AttributeList represents a logical row of attributes in a metadata table.
This class is a collection of AttributeLists where each one is associated with a channel number.
const_iterator end() const
bool add(ChanNum chanNum, const AttributeList &attributeList)
Adding in chan/attrList pairs.
const_iterator begin() const
Access to Chan/AttributeList pairs via iterators.
ChanAttrListMap::const_iterator const_iterator
Encapsulates the ID of one Rx channel of conditions data in COOL, ie the ID of a row in a table.
virtual std::string coolOutputKey() const
std::map< L1CaloRxGainContainer::eCoolFolders, std::string > m_mCoolFoldersKeysMap
std::string coolFolderKey(L1CaloRxGainContainer::eCoolFolders efolder) const
L1CaloRxGainMap::const_iterator begin() const
L1CaloRxGainMap::const_iterator end() const
virtual std::vector< std::string > coolInputKeys() const
std::map< unsignedint, L1CaloRxGain >::const_iterator const_iterator
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
void addRxGain(unsigned int channelId, const L1CaloRxGain &rxGain)
const L1CaloRxGain * rxGain(unsigned int channelId) const
L1CaloRxGainMap m_mRxGainMap
virtual DataObject * makePersistent() const
Transient conditions class for objects defined by the online framework and retrieved from COOL.