10#include "CoralBase/AttributeListSpecification.h"
33 using std::make_unique;
38 if(!attrSpecification || !attrSpecification->size())
return nullptr;
40 auto attrListCollection = make_unique<CondAttrListCollection>(
true);
46 attrListCollection->add(item.channelId(), attrList);
48 return static_cast<DataObject*
>(attrListCollection.release());
57 if (condAttrListCollectionMap.empty())
return;
58 auto it = condAttrListCollectionMap.rbegin();
60 auto attrListCollection = it->second;
61 for(
const auto& item : *attrListCollection) {
62 auto chanNum = item.first;
63 const auto& attrList = item.second;
78 return el.channelId() < val;
91 return el.channelId() < va;
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.
L1CaloPpmDeadChannelsContainer()
std::vector< L1CaloPpmDeadChannels > m_ppmDeadChannelss
const L1CaloPpmDeadChannels * ppmDeadChannels(unsigned int channelId) const
virtual DataObject * makePersistent() const
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &)
void addPpmDeadChannels(const L1CaloPpmDeadChannels &ppmDeadChannels)
std::string m_coolFolderKey
Folder <-> Object mapping for /TRIGGER/L1Calo/V1/Calibration/PpmDeadChannels .