ATLAS Offline Software
Public Types | Public Member Functions | Private Types | Private Attributes | List of all members
L1CaloReadoutConfigContainer Class Reference

#include <L1CaloReadoutConfigContainer.h>

Inheritance diagram for L1CaloReadoutConfigContainer:
Collaboration diagram for L1CaloReadoutConfigContainer:

Public Types

using const_iterator = std::vector< L1CaloReadoutConfig >::const_iterator
 

Public Member Functions

 L1CaloReadoutConfigContainer ()
 
 L1CaloReadoutConfigContainer (const std::string &folderKey)
 
virtual ~L1CaloReadoutConfigContainer ()
 
virtual void makeTransient (const std::map< std::string, const CondAttrListCollection * > &)
 
virtual DataObject * makePersistent () const
 
virtual std::vector< std::string > coolInputKeys () const
 
virtual std::string coolOutputKey () const
 
virtual void clear ()
 
const L1CaloReadoutConfigreadoutConfig (unsigned int channelId) const
 
const L1CaloReadoutConfigreadoutConfig (const L1CaloCoolChannelId &channelId) const
 
const_iterator begin () const
 
const_iterator end () const
 
void addReadoutConfig (const L1CaloReadoutConfig &readoutConfig)
 
virtual void makeTransient (const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
 
virtual void makeTransient (const std::map< std::string, const AthenaAttributeList * > &condAttributeList)
 
virtual void makeTransient (const std::map< std::string, const AthenaAttributeList * > &condAttributeList)
 
std::string specificationName (int specId) const
 
std::string specificationType (int specId) const
 
void addSpecification (int specId, const std::string &specName, const std::string &specType)
 
coral::AttributeListSpecification * createAttributeListSpecification () const
 
virtual std::string conditionType () const
 

Private Types

enum  eAttrSpecification {
  edescription, ebaselinePointer, enumFadcSlices, el1aFadcSlice,
  enumLutSlices, el1aLutSlice, enumProcSlices, el1aProcSlice,
  enumTopoSlices, el1aTopoSlice, elatencyPpmFadc, elatencyPpmLut,
  elatencyCpmInput, elatencyCpmHits, elatencyCpmRoi, elatencyJemInput,
  elatencyJemRoi, elatencyCpCmxBackplane, elatencyCpCmxLocal, elatencyCpCmxCable,
  elatencyCpCmxSystem, elatencyCpCmxInfo, elatencyJetCmxBackplane, elatencyJetCmxLocal,
  elatencyJetCmxCable, elatencyJetCmxSystem, elatencyJetCmxInfo, elatencyJetCmxRoi,
  elatencyEnergyCmxBackplane, elatencyEnergyCmxLocal, elatencyEnergyCmxCable, elatencyEnergyCmxSystem,
  elatencyEnergyCmxInfo, elatencyEnergyCmxRoi, elatencyTopo, einternalLatencyJemJet,
  einternalLatencyJemSum, ebcOffsetJemJet, ebcOffsetJemSum, ebcOffsetCmx,
  ebcOffsetTopo, eformatTypePpm, eformatTypeCpJep, eformatTypeTopo,
  ecompressionThresholdPpm, ecompressionThresholdCpJep, ecompressionThresholdTopo, ecompressionBaselinePpm,
  ereadout80ModePpm
}
 
typedef std::map< int, std::string > AttrSpecificationMap
 

Private Attributes

std::vector< L1CaloReadoutConfigm_readoutConfigs
 
std::string m_coolFolderKey = "/TRIGGER/L1Calo/V2/Configuration/ReadoutConfig"
 
AttrSpecificationMap m_attrSpecificationNameMap
 
AttrSpecificationMap m_attrSpecificationTypeMap
 
std::string m_strConditionType
 

Detailed Description

Definition at line 24 of file L1CaloReadoutConfigContainer.h.

Member Typedef Documentation

◆ AttrSpecificationMap

typedef std::map<int, std::string> AbstractL1CaloPersistentCondition::AttrSpecificationMap
privateinherited

Definition at line 50 of file AbstractL1CaloPersistentCondition.h.

◆ const_iterator

Definition at line 51 of file L1CaloReadoutConfigContainer.h.

Member Enumeration Documentation

◆ eAttrSpecification

Enumerator
edescription 
ebaselinePointer 
enumFadcSlices 
el1aFadcSlice 
enumLutSlices 
el1aLutSlice 
enumProcSlices 
el1aProcSlice 
enumTopoSlices 
el1aTopoSlice 
elatencyPpmFadc 
elatencyPpmLut 
elatencyCpmInput 
elatencyCpmHits 
elatencyCpmRoi 
elatencyJemInput 
elatencyJemRoi 
elatencyCpCmxBackplane 
elatencyCpCmxLocal 
elatencyCpCmxCable 
elatencyCpCmxSystem 
elatencyCpCmxInfo 
elatencyJetCmxBackplane 
elatencyJetCmxLocal 
elatencyJetCmxCable 
elatencyJetCmxSystem 
elatencyJetCmxInfo 
elatencyJetCmxRoi 
elatencyEnergyCmxBackplane 
elatencyEnergyCmxLocal 
elatencyEnergyCmxCable 
elatencyEnergyCmxSystem 
elatencyEnergyCmxInfo 
elatencyEnergyCmxRoi 
elatencyTopo 
einternalLatencyJemJet 
einternalLatencyJemSum 
ebcOffsetJemJet 
ebcOffsetJemSum 
ebcOffsetCmx 
ebcOffsetTopo 
eformatTypePpm 
eformatTypeCpJep 
eformatTypeTopo 
ecompressionThresholdPpm 
ecompressionThresholdCpJep 
ecompressionThresholdTopo 
ecompressionBaselinePpm 
ereadout80ModePpm 

Definition at line 31 of file L1CaloReadoutConfigContainer.h.

31 {}

Constructor & Destructor Documentation

◆ L1CaloReadoutConfigContainer() [1/2]

L1CaloReadoutConfigContainer::L1CaloReadoutConfigContainer ( )

Definition at line 14 of file L1CaloReadoutConfigContainer.cxx.

15  : AbstractL1CaloPersistentCondition("CondAttrListCollection")
16 {
17  this->addSpecification(edescription, "description", "string");
18  this->addSpecification(ebaselinePointer, "baselinePointer", "unsigned int");
19  this->addSpecification(enumFadcSlices, "numFadcSlices", "unsigned int");
20  this->addSpecification(el1aFadcSlice, "l1aFadcSlice", "unsigned int");
21  this->addSpecification(enumLutSlices, "numLutSlices", "unsigned int");
22  this->addSpecification(el1aLutSlice, "l1aLutSlice", "unsigned int");
23  this->addSpecification(enumProcSlices, "numProcSlices", "unsigned int");
24  this->addSpecification(el1aProcSlice, "l1aProcSlice", "unsigned int");
25  this->addSpecification(enumTopoSlices, "numTopoSlices", "unsigned int");
26  this->addSpecification(el1aTopoSlice, "l1aTopoSlice", "unsigned int");
27  this->addSpecification(elatencyPpmFadc, "latencyPpmFadc", "unsigned int");
28  this->addSpecification(elatencyPpmLut, "latencyPpmLut", "unsigned int");
29  this->addSpecification(elatencyCpmInput, "latencyCpmInput", "unsigned int");
30  this->addSpecification(elatencyCpmHits, "latencyCpmHits", "unsigned int");
31  this->addSpecification(elatencyCpmRoi, "latencyCpmRoi", "unsigned int");
32  this->addSpecification(elatencyJemInput, "latencyJemInput", "unsigned int");
33  this->addSpecification(elatencyJemRoi, "latencyJemRoi", "unsigned int");
34  this->addSpecification(elatencyCpCmxBackplane, "latencyCpCmxBackplane", "unsigned int");
35  this->addSpecification(elatencyCpCmxLocal, "latencyCpCmxLocal", "unsigned int");
36  this->addSpecification(elatencyCpCmxCable, "latencyCpCmxCable", "unsigned int");
37  this->addSpecification(elatencyCpCmxSystem, "latencyCpCmxSystem", "unsigned int");
38  this->addSpecification(elatencyCpCmxInfo, "latencyCpCmxInfo", "unsigned int");
39  this->addSpecification(elatencyJetCmxBackplane, "latencyJetCmxBackplane", "unsigned int");
40  this->addSpecification(elatencyJetCmxLocal, "latencyJetCmxLocal", "unsigned int");
41  this->addSpecification(elatencyJetCmxCable, "latencyJetCmxCable", "unsigned int");
42  this->addSpecification(elatencyJetCmxSystem, "latencyJetCmxSystem", "unsigned int");
43  this->addSpecification(elatencyJetCmxInfo, "latencyJetCmxInfo", "unsigned int");
44  this->addSpecification(elatencyJetCmxRoi, "latencyJetCmxRoi", "unsigned int");
45  this->addSpecification(elatencyEnergyCmxBackplane, "latencyEnergyCmxBackplane", "unsigned int");
46  this->addSpecification(elatencyEnergyCmxLocal, "latencyEnergyCmxLocal", "unsigned int");
47  this->addSpecification(elatencyEnergyCmxCable, "latencyEnergyCmxCable", "unsigned int");
48  this->addSpecification(elatencyEnergyCmxSystem, "latencyEnergyCmxSystem", "unsigned int");
49  this->addSpecification(elatencyEnergyCmxInfo, "latencyEnergyCmxInfo", "unsigned int");
50  this->addSpecification(elatencyEnergyCmxRoi, "latencyEnergyCmxRoi", "unsigned int");
51  this->addSpecification(elatencyTopo, "latencyTopo", "unsigned int");
52  this->addSpecification(einternalLatencyJemJet, "internalLatencyJemJet", "unsigned int");
53  this->addSpecification(einternalLatencyJemSum, "internalLatencyJemSum", "unsigned int");
54  this->addSpecification(ebcOffsetJemJet, "bcOffsetJemJet", "unsigned int");
55  this->addSpecification(ebcOffsetJemSum, "bcOffsetJemSum", "unsigned int");
56  this->addSpecification(ebcOffsetCmx, "bcOffsetCmx", "int");
57  this->addSpecification(ebcOffsetTopo, "bcOffsetTopo", "int");
58  this->addSpecification(eformatTypePpm, "formatTypePpm", "string");
59  this->addSpecification(eformatTypeCpJep, "formatTypeCpJep", "string");
60  this->addSpecification(eformatTypeTopo, "formatTypeTopo", "string");
61  this->addSpecification(ecompressionThresholdPpm, "compressionThresholdPpm", "unsigned int");
62  this->addSpecification(ecompressionThresholdCpJep, "compressionThresholdCpJep", "unsigned int");
63  this->addSpecification(ecompressionThresholdTopo, "compressionThresholdTopo", "unsigned int");
64  this->addSpecification(ecompressionBaselinePpm, "compressionBaselinePpm", "unsigned int");
65  this->addSpecification(ereadout80ModePpm, "readout80ModePpm", "unsigned int");
66 }

◆ L1CaloReadoutConfigContainer() [2/2]

L1CaloReadoutConfigContainer::L1CaloReadoutConfigContainer ( const std::string &  folderKey)

Definition at line 68 of file L1CaloReadoutConfigContainer.cxx.

69  : L1CaloReadoutConfigContainer() // delegating constructor
70 {
71  // cppcheck-suppress useInitializationList
72  m_coolFolderKey = folderKey;
73 }

◆ ~L1CaloReadoutConfigContainer()

virtual L1CaloReadoutConfigContainer::~L1CaloReadoutConfigContainer ( )
inlinevirtual

Definition at line 35 of file L1CaloReadoutConfigContainer.h.

Member Function Documentation

◆ addReadoutConfig()

void L1CaloReadoutConfigContainer::addReadoutConfig ( const L1CaloReadoutConfig readoutConfig)

Definition at line 221 of file L1CaloReadoutConfigContainer.cxx.

222 {
223  // insert into the correct position mainting the sorted vector
224  m_readoutConfigs.insert(std::lower_bound(std::begin(m_readoutConfigs),
227  [](const L1CaloReadoutConfig& el, unsigned int va) -> bool {
228  return el.channelId() < va;
229  }),
230  readoutConfig);
231 }

◆ addSpecification()

void AbstractL1CaloPersistentCondition::addSpecification ( int  specId,
const std::string &  specName,
const std::string &  specType 
)
inherited

Definition at line 26 of file AbstractL1CaloPersistentCondition.cxx.

26  {
27  m_attrSpecificationNameMap[specId] = specName;
28  m_attrSpecificationTypeMap[specId] = specType;
29 }

◆ begin()

const_iterator L1CaloReadoutConfigContainer::begin ( ) const
inline

Definition at line 52 of file L1CaloReadoutConfigContainer.h.

54 :
55  std::vector<L1CaloReadoutConfig> m_readoutConfigs;

◆ clear()

virtual void L1CaloReadoutConfigContainer::clear ( )
inlinevirtual

Reimplemented from AbstractL1CaloPersistentCondition.

Definition at line 43 of file L1CaloReadoutConfigContainer.h.

43 {

◆ conditionType()

virtual std::string AbstractL1CaloPersistentCondition::conditionType ( ) const
inlinevirtualinherited

Implements IL1CaloPersistenceCapable.

Definition at line 37 of file AbstractL1CaloPersistentCondition.h.

37 { return m_strConditionType; };

◆ coolInputKeys()

virtual std::vector<std::string> L1CaloReadoutConfigContainer::coolInputKeys ( ) const
inlinevirtual

Reimplemented from AbstractL1CaloPersistentCondition.

Definition at line 41 of file L1CaloReadoutConfigContainer.h.

43 {

◆ coolOutputKey()

virtual std::string L1CaloReadoutConfigContainer::coolOutputKey ( ) const
inlinevirtual

Reimplemented from AbstractL1CaloPersistentCondition.

Definition at line 42 of file L1CaloReadoutConfigContainer.h.

43 {

◆ createAttributeListSpecification()

coral::AttributeListSpecification * AbstractL1CaloPersistentCondition::createAttributeListSpecification ( ) const
inherited

Definition at line 31 of file AbstractL1CaloPersistentCondition.cxx.

31  {
32 
33  coral::AttributeListSpecification* attrSpecification = new coral::AttributeListSpecification();
34 
35  AttrSpecificationMap::const_iterator it_name = m_attrSpecificationNameMap.begin();
36  AttrSpecificationMap::const_iterator it_type = m_attrSpecificationTypeMap.begin();
37 
38  for(;it_name!=m_attrSpecificationNameMap.end();++it_name,++it_type) {
39  attrSpecification->extend(it_name->second, it_type->second);
40  }
41  return attrSpecification;
42 }

◆ end()

const_iterator L1CaloReadoutConfigContainer::end ( ) const
inline

Definition at line 53 of file L1CaloReadoutConfigContainer.h.

54 :
55  std::vector<L1CaloReadoutConfig> m_readoutConfigs;

◆ makePersistent()

DataObject * L1CaloReadoutConfigContainer::makePersistent ( ) const
virtual

Reimplemented from AbstractL1CaloPersistentCondition.

Definition at line 76 of file L1CaloReadoutConfigContainer.cxx.

77 {
78  using std::make_unique;
79 
80  if(m_coolFolderKey.empty()) return nullptr;
81 
82  auto* attrSpecification = this->createAttributeListSpecification();
83  if(!attrSpecification || !attrSpecification->size()) return nullptr;
84 
85  auto attrListCollection = make_unique<CondAttrListCollection>(true);
86  for(const auto& item : m_readoutConfigs) {
87  AthenaAttributeList attrList(*attrSpecification);
88  attrList[specificationName(edescription)].setValue(item.description());
89  attrList[specificationName(ebaselinePointer)].setValue(item.baselinePointer());
90  attrList[specificationName(enumFadcSlices)].setValue(item.numFadcSlices());
91  attrList[specificationName(el1aFadcSlice)].setValue(item.l1aFadcSlice());
92  attrList[specificationName(enumLutSlices)].setValue(item.numLutSlices());
93  attrList[specificationName(el1aLutSlice)].setValue(item.l1aLutSlice());
94  attrList[specificationName(enumProcSlices)].setValue(item.numProcSlices());
95  attrList[specificationName(el1aProcSlice)].setValue(item.l1aProcSlice());
96  attrList[specificationName(enumTopoSlices)].setValue(item.numTopoSlices());
97  attrList[specificationName(el1aTopoSlice)].setValue(item.l1aTopoSlice());
98  attrList[specificationName(elatencyPpmFadc)].setValue(item.latencyPpmFadc());
99  attrList[specificationName(elatencyPpmLut)].setValue(item.latencyPpmLut());
100  attrList[specificationName(elatencyCpmInput)].setValue(item.latencyCpmInput());
101  attrList[specificationName(elatencyCpmHits)].setValue(item.latencyCpmHits());
102  attrList[specificationName(elatencyCpmRoi)].setValue(item.latencyCpmRoi());
103  attrList[specificationName(elatencyJemInput)].setValue(item.latencyJemInput());
104  attrList[specificationName(elatencyJemRoi)].setValue(item.latencyJemRoi());
105  attrList[specificationName(elatencyCpCmxBackplane)].setValue(item.latencyCpCmxBackplane());
106  attrList[specificationName(elatencyCpCmxLocal)].setValue(item.latencyCpCmxLocal());
107  attrList[specificationName(elatencyCpCmxCable)].setValue(item.latencyCpCmxCable());
108  attrList[specificationName(elatencyCpCmxSystem)].setValue(item.latencyCpCmxSystem());
109  attrList[specificationName(elatencyCpCmxInfo)].setValue(item.latencyCpCmxInfo());
110  attrList[specificationName(elatencyJetCmxBackplane)].setValue(item.latencyJetCmxBackplane());
111  attrList[specificationName(elatencyJetCmxLocal)].setValue(item.latencyJetCmxLocal());
112  attrList[specificationName(elatencyJetCmxCable)].setValue(item.latencyJetCmxCable());
113  attrList[specificationName(elatencyJetCmxSystem)].setValue(item.latencyJetCmxSystem());
114  attrList[specificationName(elatencyJetCmxInfo)].setValue(item.latencyJetCmxInfo());
115  attrList[specificationName(elatencyJetCmxRoi)].setValue(item.latencyJetCmxRoi());
116  attrList[specificationName(elatencyEnergyCmxBackplane)].setValue(item.latencyEnergyCmxBackplane());
117  attrList[specificationName(elatencyEnergyCmxLocal)].setValue(item.latencyEnergyCmxLocal());
118  attrList[specificationName(elatencyEnergyCmxCable)].setValue(item.latencyEnergyCmxCable());
119  attrList[specificationName(elatencyEnergyCmxSystem)].setValue(item.latencyEnergyCmxSystem());
120  attrList[specificationName(elatencyEnergyCmxInfo)].setValue(item.latencyEnergyCmxInfo());
121  attrList[specificationName(elatencyEnergyCmxRoi)].setValue(item.latencyEnergyCmxRoi());
122  attrList[specificationName(elatencyTopo)].setValue(item.latencyTopo());
123  attrList[specificationName(einternalLatencyJemJet)].setValue(item.internalLatencyJemJet());
124  attrList[specificationName(einternalLatencyJemSum)].setValue(item.internalLatencyJemSum());
125  attrList[specificationName(ebcOffsetJemJet)].setValue(item.bcOffsetJemJet());
126  attrList[specificationName(ebcOffsetJemSum)].setValue(item.bcOffsetJemSum());
127  attrList[specificationName(ebcOffsetCmx)].setValue(item.bcOffsetCmx());
128  attrList[specificationName(ebcOffsetTopo)].setValue(item.bcOffsetTopo());
129  attrList[specificationName(eformatTypePpm)].setValue(item.formatTypePpm());
130  attrList[specificationName(eformatTypeCpJep)].setValue(item.formatTypeCpJep());
131  attrList[specificationName(eformatTypeTopo)].setValue(item.formatTypeTopo());
132  attrList[specificationName(ecompressionThresholdPpm)].setValue(item.compressionThresholdPpm());
133  attrList[specificationName(ecompressionThresholdCpJep)].setValue(item.compressionThresholdCpJep());
134  attrList[specificationName(ecompressionThresholdTopo)].setValue(item.compressionThresholdTopo());
135  attrList[specificationName(ecompressionBaselinePpm)].setValue(item.compressionBaselinePpm());
136  attrList[specificationName(ereadout80ModePpm)].setValue(item.readout80ModePpm());
137 
138  attrListCollection->add(item.channelId(), attrList);
139  }
140  return static_cast<DataObject*>(attrListCollection.release());
141 }

◆ makeTransient() [1/4]

void AbstractL1CaloPersistentCondition::makeTransient ( const std::map< std::string, const AthenaAttributeList * > &  condAttributeList)
virtualinherited

Implements IL1CaloPersistenceCapable.

Definition at line 21 of file AbstractL1CaloPersistentCondition.cxx.

21  {
22  std::cout << "ERROR - The makeTransient(const map<std::string, const AthenaAttributeList*>) method you are calling is not implemented by the current class !" << std::endl;
23  return;
24 }

◆ makeTransient() [2/4]

void AbstractL1CaloPersistentCondition::makeTransient

Definition at line 30 of file AbstractL1CaloPersistentCondition.cxx.

21  {
22  std::cout << "ERROR - The makeTransient(const map<std::string, const AthenaAttributeList*>) method you are calling is not implemented by the current class !" << std::endl;
23  return;
24 }

◆ makeTransient() [3/4]

void L1CaloReadoutConfigContainer::makeTransient ( const std::map< std::string, const CondAttrListCollection * > &  condAttrListCollectionMap)
virtual

Reimplemented from AbstractL1CaloPersistentCondition.

Definition at line 143 of file L1CaloReadoutConfigContainer.cxx.

144 {
145  clear();
146 
147  auto it = condAttrListCollectionMap.find(m_coolFolderKey);
148  if(it == std::end(condAttrListCollectionMap)) return;
149 
150  auto attrListCollection = it->second;
151  for(const auto& item : *attrListCollection) {
152  auto chanNum = item.first;
153  const auto& attrList = item.second;
154 
155  auto description = attrList[specificationName(edescription)].data<std::string>();
156  auto baselinePointer = attrList[specificationName(ebaselinePointer)].data<unsigned int>();
157  auto numFadcSlices = attrList[specificationName(enumFadcSlices)].data<unsigned int>();
158  auto l1aFadcSlice = attrList[specificationName(el1aFadcSlice)].data<unsigned int>();
159  auto numLutSlices = attrList[specificationName(enumLutSlices)].data<unsigned int>();
160  auto l1aLutSlice = attrList[specificationName(el1aLutSlice)].data<unsigned int>();
161  auto numProcSlices = attrList[specificationName(enumProcSlices)].data<unsigned int>();
162  auto l1aProcSlice = attrList[specificationName(el1aProcSlice)].data<unsigned int>();
163  auto numTopoSlices = attrList[specificationName(enumTopoSlices)].data<unsigned int>();
164  auto l1aTopoSlice = attrList[specificationName(el1aTopoSlice)].data<unsigned int>();
165  auto latencyPpmFadc = attrList[specificationName(elatencyPpmFadc)].data<unsigned int>();
166  auto latencyPpmLut = attrList[specificationName(elatencyPpmLut)].data<unsigned int>();
167  auto latencyCpmInput = attrList[specificationName(elatencyCpmInput)].data<unsigned int>();
168  auto latencyCpmHits = attrList[specificationName(elatencyCpmHits)].data<unsigned int>();
169  auto latencyCpmRoi = attrList[specificationName(elatencyCpmRoi)].data<unsigned int>();
170  auto latencyJemInput = attrList[specificationName(elatencyJemInput)].data<unsigned int>();
171  auto latencyJemRoi = attrList[specificationName(elatencyJemRoi)].data<unsigned int>();
172  auto latencyCpCmxBackplane = attrList[specificationName(elatencyCpCmxBackplane)].data<unsigned int>();
173  auto latencyCpCmxLocal = attrList[specificationName(elatencyCpCmxLocal)].data<unsigned int>();
174  auto latencyCpCmxCable = attrList[specificationName(elatencyCpCmxCable)].data<unsigned int>();
175  auto latencyCpCmxSystem = attrList[specificationName(elatencyCpCmxSystem)].data<unsigned int>();
176  auto latencyCpCmxInfo = attrList[specificationName(elatencyCpCmxInfo)].data<unsigned int>();
177  auto latencyJetCmxBackplane = attrList[specificationName(elatencyJetCmxBackplane)].data<unsigned int>();
178  auto latencyJetCmxLocal = attrList[specificationName(elatencyJetCmxLocal)].data<unsigned int>();
179  auto latencyJetCmxCable = attrList[specificationName(elatencyJetCmxCable)].data<unsigned int>();
180  auto latencyJetCmxSystem = attrList[specificationName(elatencyJetCmxSystem)].data<unsigned int>();
181  auto latencyJetCmxInfo = attrList[specificationName(elatencyJetCmxInfo)].data<unsigned int>();
182  auto latencyJetCmxRoi = attrList[specificationName(elatencyJetCmxRoi)].data<unsigned int>();
183  auto latencyEnergyCmxBackplane = attrList[specificationName(elatencyEnergyCmxBackplane)].data<unsigned int>();
184  auto latencyEnergyCmxLocal = attrList[specificationName(elatencyEnergyCmxLocal)].data<unsigned int>();
185  auto latencyEnergyCmxCable = attrList[specificationName(elatencyEnergyCmxCable)].data<unsigned int>();
186  auto latencyEnergyCmxSystem = attrList[specificationName(elatencyEnergyCmxSystem)].data<unsigned int>();
187  auto latencyEnergyCmxInfo = attrList[specificationName(elatencyEnergyCmxInfo)].data<unsigned int>();
188  auto latencyEnergyCmxRoi = attrList[specificationName(elatencyEnergyCmxRoi)].data<unsigned int>();
189  auto latencyTopo = attrList[specificationName(elatencyTopo)].data<unsigned int>();
190  auto internalLatencyJemJet = attrList[specificationName(einternalLatencyJemJet)].data<unsigned int>();
191  auto internalLatencyJemSum = attrList[specificationName(einternalLatencyJemSum)].data<unsigned int>();
192  auto bcOffsetJemJet = attrList[specificationName(ebcOffsetJemJet)].data<unsigned int>();
193  auto bcOffsetJemSum = attrList[specificationName(ebcOffsetJemSum)].data<unsigned int>();
194  auto bcOffsetCmx = attrList[specificationName(ebcOffsetCmx)].data<int>();
195  auto bcOffsetTopo = attrList[specificationName(ebcOffsetTopo)].data<int>();
196  auto formatTypePpm = attrList[specificationName(eformatTypePpm)].data<std::string>();
197  auto formatTypeCpJep = attrList[specificationName(eformatTypeCpJep)].data<std::string>();
198  auto formatTypeTopo = attrList[specificationName(eformatTypeTopo)].data<std::string>();
199  auto compressionThresholdPpm = attrList[specificationName(ecompressionThresholdPpm)].data<unsigned int>();
200  auto compressionThresholdCpJep = attrList[specificationName(ecompressionThresholdCpJep)].data<unsigned int>();
201  auto compressionThresholdTopo = attrList[specificationName(ecompressionThresholdTopo)].data<unsigned int>();
202  auto compressionBaselinePpm = attrList[specificationName(ecompressionBaselinePpm)].data<unsigned int>();
203  auto readout80ModePpm = attrList[specificationName(ereadout80ModePpm)].data<unsigned int>();
204 
205  addReadoutConfig(L1CaloReadoutConfig(chanNum, description, baselinePointer, numFadcSlices, l1aFadcSlice, numLutSlices, l1aLutSlice, numProcSlices, l1aProcSlice, numTopoSlices, l1aTopoSlice, latencyPpmFadc, latencyPpmLut, latencyCpmInput, latencyCpmHits, latencyCpmRoi, latencyJemInput, latencyJemRoi, latencyCpCmxBackplane, latencyCpCmxLocal, latencyCpCmxCable, latencyCpCmxSystem, latencyCpCmxInfo, latencyJetCmxBackplane, latencyJetCmxLocal, latencyJetCmxCable, latencyJetCmxSystem, latencyJetCmxInfo, latencyJetCmxRoi, latencyEnergyCmxBackplane, latencyEnergyCmxLocal, latencyEnergyCmxCable, latencyEnergyCmxSystem, latencyEnergyCmxInfo, latencyEnergyCmxRoi, latencyTopo, internalLatencyJemJet, internalLatencyJemSum, bcOffsetJemJet, bcOffsetJemSum, bcOffsetCmx, bcOffsetTopo, formatTypePpm, formatTypeCpJep, formatTypeTopo, compressionThresholdPpm, compressionThresholdCpJep, compressionThresholdTopo, compressionBaselinePpm, readout80ModePpm));
206  }
207 }

◆ makeTransient() [4/4]

void AbstractL1CaloPersistentCondition::makeTransient

Definition at line 29 of file AbstractL1CaloPersistentCondition.cxx.

16  {
17  std::cout << "ERROR - The makeTransient(const map<std::string, const CondAttrListCollection*>) method you are calling is not implemented by the current class !" << std::endl;
18  return;
19 }

◆ readoutConfig() [1/2]

const L1CaloReadoutConfig* L1CaloReadoutConfigContainer::readoutConfig ( const L1CaloCoolChannelId channelId) const
inline

Definition at line 47 of file L1CaloReadoutConfigContainer.h.

48  { return m_readoutConfigs.begin(); }
49  const_iterator end() const { return m_readoutConfigs.end(); }

◆ readoutConfig() [2/2]

const L1CaloReadoutConfig * L1CaloReadoutConfigContainer::readoutConfig ( unsigned int  channelId) const

Definition at line 209 of file L1CaloReadoutConfigContainer.cxx.

210 {
211  auto it = std::lower_bound(std::begin(m_readoutConfigs),
213  channelId,
214  [](const L1CaloReadoutConfig& el, unsigned int val) -> bool {
215  return el.channelId() < val;
216  });
217  if(it == std::end(m_readoutConfigs)) return nullptr;
218  return &(*it);
219 }

◆ specificationName()

std::string AbstractL1CaloPersistentCondition::specificationName ( int  specId) const
inherited

Definition at line 44 of file AbstractL1CaloPersistentCondition.cxx.

44  {
45  return m_attrSpecificationNameMap.find(specId)->second;
46 }

◆ specificationType()

std::string AbstractL1CaloPersistentCondition::specificationType ( int  specId) const
inherited

Definition at line 48 of file AbstractL1CaloPersistentCondition.cxx.

48  {
49  return m_attrSpecificationTypeMap.find(specId)->second;
50 }

Member Data Documentation

◆ m_attrSpecificationNameMap

AttrSpecificationMap AbstractL1CaloPersistentCondition::m_attrSpecificationNameMap
privateinherited

Definition at line 51 of file AbstractL1CaloPersistentCondition.h.

◆ m_attrSpecificationTypeMap

AttrSpecificationMap AbstractL1CaloPersistentCondition::m_attrSpecificationTypeMap
privateinherited

Definition at line 52 of file AbstractL1CaloPersistentCondition.h.

◆ m_coolFolderKey

std::string L1CaloReadoutConfigContainer::m_coolFolderKey = "/TRIGGER/L1Calo/V2/Configuration/ReadoutConfig"
private

Definition at line 60 of file L1CaloReadoutConfigContainer.h.

◆ m_readoutConfigs

std::vector<L1CaloReadoutConfig> L1CaloReadoutConfigContainer::m_readoutConfigs
private

Definition at line 59 of file L1CaloReadoutConfigContainer.h.

◆ m_strConditionType

std::string AbstractL1CaloPersistentCondition::m_strConditionType
privateinherited

Definition at line 53 of file AbstractL1CaloPersistentCondition.h.


The documentation for this class was generated from the following files:
L1CaloReadoutConfigContainer::m_coolFolderKey
std::string m_coolFolderKey
Definition: L1CaloReadoutConfigContainer.h:60
L1CaloReadoutConfigContainer::elatencyJemInput
@ elatencyJemInput
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::ecompressionBaselinePpm
@ ecompressionBaselinePpm
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::elatencyJetCmxSystem
@ elatencyJetCmxSystem
Definition: L1CaloReadoutConfigContainer.h:35
AbstractL1CaloPersistentCondition::m_attrSpecificationTypeMap
AttrSpecificationMap m_attrSpecificationTypeMap
Definition: AbstractL1CaloPersistentCondition.h:52
L1CaloReadoutConfigContainer::const_iterator
std::vector< L1CaloReadoutConfig >::const_iterator const_iterator
Definition: L1CaloReadoutConfigContainer.h:51
L1CaloReadoutConfigContainer::clear
virtual void clear()
Definition: L1CaloReadoutConfigContainer.h:43
L1CaloReadoutConfigContainer::enumProcSlices
@ enumProcSlices
Definition: L1CaloReadoutConfigContainer.h:35
make_unique
std::unique_ptr< T > make_unique(Args &&... args)
Definition: SkimmingToolEXOT5.cxx:23
L1CaloReadoutConfigContainer::el1aProcSlice
@ el1aProcSlice
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::m_readoutConfigs
std::vector< L1CaloReadoutConfig > m_readoutConfigs
Definition: L1CaloReadoutConfigContainer.h:59
L1CaloReadoutConfigContainer::einternalLatencyJemSum
@ einternalLatencyJemSum
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::elatencyJetCmxBackplane
@ elatencyJetCmxBackplane
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::elatencyCpmInput
@ elatencyCpmInput
Definition: L1CaloReadoutConfigContainer.h:35
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
L1CaloReadoutConfigContainer::einternalLatencyJemJet
@ einternalLatencyJemJet
Definition: L1CaloReadoutConfigContainer.h:35
skel.it
it
Definition: skel.GENtoEVGEN.py:396
AbstractL1CaloPersistentCondition::addSpecification
void addSpecification(int specId, const std::string &specName, const std::string &specType)
Definition: AbstractL1CaloPersistentCondition.cxx:26
L1CaloReadoutConfigContainer::elatencyJetCmxInfo
@ elatencyJetCmxInfo
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::enumFadcSlices
@ enumFadcSlices
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::ecompressionThresholdPpm
@ ecompressionThresholdPpm
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::ecompressionThresholdCpJep
@ ecompressionThresholdCpJep
Definition: L1CaloReadoutConfigContainer.h:35
AbstractL1CaloPersistentCondition::createAttributeListSpecification
coral::AttributeListSpecification * createAttributeListSpecification() const
Definition: AbstractL1CaloPersistentCondition.cxx:31
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
L1CaloReadoutConfig::channelId
unsigned int channelId() const
Definition: L1CaloReadoutConfig.h:21
L1CaloReadoutConfigContainer::addReadoutConfig
void addReadoutConfig(const L1CaloReadoutConfig &readoutConfig)
Definition: L1CaloReadoutConfigContainer.cxx:221
L1CaloReadoutConfigContainer::elatencyCpCmxLocal
@ elatencyCpCmxLocal
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::elatencyCpmRoi
@ elatencyCpmRoi
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::ebcOffsetJemSum
@ ebcOffsetJemSum
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::elatencyEnergyCmxCable
@ elatencyEnergyCmxCable
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfig
Folder <-> Object mapping for /TRIGGER/L1Calo/V2/Configuration/ReadoutConfig .
Definition: L1CaloReadoutConfig.h:16
L1CaloReadoutConfigContainer::elatencyJemRoi
@ elatencyJemRoi
Definition: L1CaloReadoutConfigContainer.h:35
checkCoolLatestUpdate.chanNum
chanNum
Definition: checkCoolLatestUpdate.py:27
L1CaloReadoutConfigContainer::L1CaloReadoutConfigContainer
L1CaloReadoutConfigContainer()
Definition: L1CaloReadoutConfigContainer.cxx:14
L1CaloReadoutConfigContainer::el1aLutSlice
@ el1aLutSlice
Definition: L1CaloReadoutConfigContainer.h:35
AbstractL1CaloPersistentCondition::AbstractL1CaloPersistentCondition
AbstractL1CaloPersistentCondition(const std::string &condType)
Definition: AbstractL1CaloPersistentCondition.h:45
AbstractL1CaloPersistentCondition::m_attrSpecificationNameMap
AttrSpecificationMap m_attrSpecificationNameMap
Definition: AbstractL1CaloPersistentCondition.h:51
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
AthenaAttributeList
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
Definition: PersistentDataModel/PersistentDataModel/AthenaAttributeList.h:45
L1CaloReadoutConfigContainer::elatencyCpmHits
@ elatencyCpmHits
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::edescription
@ edescription
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::el1aFadcSlice
@ el1aFadcSlice
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::enumTopoSlices
@ enumTopoSlices
Definition: L1CaloReadoutConfigContainer.h:35
CaloCondBlobAlgs_fillNoiseFromASCII.channelId
channelId
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:122
L1CaloReadoutConfigContainer::elatencyCpCmxBackplane
@ elatencyCpCmxBackplane
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::elatencyPpmFadc
@ elatencyPpmFadc
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::elatencyPpmLut
@ elatencyPpmLut
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::elatencyCpCmxCable
@ elatencyCpCmxCable
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::ebcOffsetJemJet
@ ebcOffsetJemJet
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::elatencyEnergyCmxInfo
@ elatencyEnergyCmxInfo
Definition: L1CaloReadoutConfigContainer.h:35
item
Definition: ItemListSvc.h:43
AbstractL1CaloPersistentCondition::specificationName
std::string specificationName(int specId) const
Definition: AbstractL1CaloPersistentCondition.cxx:44
L1CaloReadoutConfigContainer::end
const_iterator end() const
Definition: L1CaloReadoutConfigContainer.h:53
L1CaloReadoutConfigContainer::eformatTypePpm
@ eformatTypePpm
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::elatencyTopo
@ elatencyTopo
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::ecompressionThresholdTopo
@ ecompressionThresholdTopo
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::ebcOffsetTopo
@ ebcOffsetTopo
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::elatencyCpCmxSystem
@ elatencyCpCmxSystem
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::elatencyJetCmxLocal
@ elatencyJetCmxLocal
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::elatencyJetCmxCable
@ elatencyJetCmxCable
Definition: L1CaloReadoutConfigContainer.h:35
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
L1CaloReadoutConfigContainer::ebcOffsetCmx
@ ebcOffsetCmx
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::elatencyJetCmxRoi
@ elatencyJetCmxRoi
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::elatencyEnergyCmxLocal
@ elatencyEnergyCmxLocal
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::elatencyCpCmxInfo
@ elatencyCpCmxInfo
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::ereadout80ModePpm
@ ereadout80ModePpm
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::eformatTypeTopo
@ eformatTypeTopo
Definition: L1CaloReadoutConfigContainer.h:35
AbstractL1CaloPersistentCondition::m_strConditionType
std::string m_strConditionType
Definition: AbstractL1CaloPersistentCondition.h:53
L1CaloReadoutConfigContainer::readoutConfig
const L1CaloReadoutConfig * readoutConfig(unsigned int channelId) const
Definition: L1CaloReadoutConfigContainer.cxx:209
L1CaloReadoutConfigContainer::enumLutSlices
@ enumLutSlices
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::elatencyEnergyCmxBackplane
@ elatencyEnergyCmxBackplane
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::elatencyEnergyCmxSystem
@ elatencyEnergyCmxSystem
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::eformatTypeCpJep
@ eformatTypeCpJep
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::ebaselinePointer
@ ebaselinePointer
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::elatencyEnergyCmxRoi
@ elatencyEnergyCmxRoi
Definition: L1CaloReadoutConfigContainer.h:35
description
std::string description
glabal timer - how long have I taken so far?
Definition: hcg.cxx:88
L1CaloReadoutConfigContainer::el1aTopoSlice
@ el1aTopoSlice
Definition: L1CaloReadoutConfigContainer.h:35