7#include "CoralBase/AttributeListSpecification.h"
47 std::map<L1CaloRxLayersContainer::eCoolFolders, std::string>::const_iterator it =
m_mCoolFoldersKeysMap.find(efolder);
51 return std::string(
"");
56 std::vector<std::string> v;
71 if(!attrSpecification->size())
return NULL;
77 for(; pos!=
end; ++pos) {
78 const unsigned int channelId = pos->first;
80 const std::vector<int>& names(p.names());
81 const std::vector<int>& ncells(p.ncells());
82 const unsigned char nlayers = names.size();
83 const unsigned char name1 = (nlayers > 0) ? names[0] : 0;
84 const unsigned char name2 = (nlayers > 1) ? names[1] : 0;
85 const unsigned char name3 = (nlayers > 2) ? names[2] : 0;
86 const unsigned char name4 = (nlayers > 3) ? names[3] : 0;
87 const unsigned char ncells1 = (nlayers > 0) ? ncells[0] : 0;
88 const unsigned char ncells2 = (nlayers > 1) ? ncells[1] : 0;
89 const unsigned char ncells3 = (nlayers > 2) ? ncells[2] : 0;
90 const unsigned char ncells4 = (nlayers > 3) ? ncells[3] : 0;
105 attrListCollection->
add(channelId, attrList);
108 return attrListCollection;
115 std::map<std::string, const CondAttrListCollection*>::const_iterator
118 if(it_map!=condAttrListCollectionMap.end()) {
125 for(; pos!=
end; ++pos) {
127 const coral::AttributeList& attrList = pos->second;
133 std::vector<int> names;
134 std::vector<int> ncells;
152 L1CaloRxLayers l1CaloRxLayers(chanNum, std::move(names), std::move(ncells));
156 std::cout <<
"L1CaloRxLayersContainer : Could not find requested CondAttrListCollection "
162 L1CaloRxLayersMap::const_iterator pos =
m_mRxLayersMap.find(channelId);
164 else return &(pos->second);
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
char data[hepevt_bytes_allocation_ATLAS]
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.
const L1CaloRxLayers * rxLayers(unsigned int channelId) const
L1CaloRxLayersContainer()
L1CaloRxLayersMap m_mRxLayersMap
std::string coolFolderKey(L1CaloRxLayersContainer::eCoolFolders efolder) const
void addRxLayers(unsigned int channelId, L1CaloRxLayers &&rxLayers)
std::map< L1CaloRxLayersContainer::eCoolFolders, std::string > m_mCoolFoldersKeysMap
virtual std::vector< std::string > coolInputKeys() const
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
virtual std::string coolOutputKey() const
virtual DataObject * makePersistent() const
const_iterator end() const
Class that holds information about calo layers that make up receivers.