ATLAS Offline Software
L1CaloReadoutConfigContainer.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 #ifndef TRIGT1CALOCALIBCONDITIONS_L1CALOREADOUTCONFIGCONTAINER_H
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 #define TRIGT1CALOCALIBCONDITIONS_L1CALOREADOUTCONFIGCONTAINER_H
7 
8 #include <map>
9 #include <string>
10 #include <vector>
11 #include "AthenaKernel/CLASS_DEF.h"
12 #include "GaudiKernel/DataObject.h"
16 
18 
19 /***
20 * Container of L1CaloReadoutConfig objects. Automatically created using:
21 *
22 * ../python/CreateClassesForFolder.py --db frontier://ATLF/();schema=ATLAS_COOLONL_TRIGGER;dbname=CONDBR2 /TRIGGER/L1Calo/V2/Configuration/ReadoutConfig
23 */
24 class L1CaloReadoutConfigContainer : public DataObject, virtual public AbstractL1CaloPersistentCondition
25 {
26 private:
28 public:
30  L1CaloReadoutConfigContainer(const std::string& folderKey);
32 
33  // interface of AbstractL1CaloPersistentCondition
35  virtual void makeTransient(const std::map<std::string, const CondAttrListCollection*>&);
36  virtual DataObject* makePersistent() const;
37  virtual std::vector<std::string> coolInputKeys() const { return {m_coolFolderKey}; }
38  virtual std::string coolOutputKey() const { return m_coolFolderKey; }
39  virtual void clear() { m_readoutConfigs.clear(); }
40 
41  // getters
42  const L1CaloReadoutConfig* readoutConfig(unsigned int channelId) const;
44  return readoutConfig(channelId.id());
45  }
46 
47  using const_iterator = std::vector<L1CaloReadoutConfig>::const_iterator;
48  const_iterator begin() const { return m_readoutConfigs.begin(); }
49  const_iterator end() const { return m_readoutConfigs.end(); }
50 
51  // setters
53 
54 private:
55  std::vector<L1CaloReadoutConfig> m_readoutConfigs;
56  std::string m_coolFolderKey = "/TRIGGER/L1Calo/V2/Configuration/ReadoutConfig";
57 };
58 
61 
62 #endif // TRIGT1CALOCALIBCONDITIONS_L1CALOREADOUTCONFIGCONTAINER_H
L1CaloReadoutConfigContainer::m_coolFolderKey
std::string m_coolFolderKey
Definition: L1CaloReadoutConfigContainer.h:60
L1CaloCoolChannelId.h
L1CaloReadoutConfigContainer::elatencyJemInput
@ elatencyJemInput
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::ecompressionBaselinePpm
@ ecompressionBaselinePpm
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::elatencyJetCmxSystem
@ elatencyJetCmxSystem
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::const_iterator
std::vector< L1CaloReadoutConfig >::const_iterator const_iterator
Definition: L1CaloReadoutConfigContainer.h:51
CondCont.h
Hold mappings of ranges to condition objects.
L1CaloReadoutConfigContainer::clear
virtual void clear()
Definition: L1CaloReadoutConfigContainer.h:43
L1CaloReadoutConfigContainer::eAttrSpecification
eAttrSpecification
Definition: L1CaloReadoutConfigContainer.h:31
L1CaloReadoutConfigContainer::enumProcSlices
@ enumProcSlices
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::el1aProcSlice
@ el1aProcSlice
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::m_readoutConfigs
std::vector< L1CaloReadoutConfig > m_readoutConfigs
Definition: L1CaloReadoutConfigContainer.h:59
L1CaloReadoutConfigContainer::coolOutputKey
virtual std::string coolOutputKey() const
Definition: L1CaloReadoutConfigContainer.h:42
L1CaloReadoutConfigContainer::einternalLatencyJemSum
@ einternalLatencyJemSum
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::elatencyJetCmxBackplane
@ elatencyJetCmxBackplane
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::elatencyCpmInput
@ elatencyCpmInput
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::einternalLatencyJemJet
@ einternalLatencyJemJet
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::elatencyJetCmxInfo
@ elatencyJetCmxInfo
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::enumFadcSlices
@ enumFadcSlices
Definition: L1CaloReadoutConfigContainer.h:35
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
L1CaloReadoutConfigContainer::ecompressionThresholdPpm
@ ecompressionThresholdPpm
Definition: L1CaloReadoutConfigContainer.h:35
AbstractL1CaloPersistentCondition.h
L1CaloReadoutConfigContainer::ecompressionThresholdCpJep
@ ecompressionThresholdCpJep
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer
Definition: L1CaloReadoutConfigContainer.h:25
L1CaloReadoutConfigContainer::begin
const_iterator begin() const
Definition: L1CaloReadoutConfigContainer.h:52
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
L1CaloReadoutConfigContainer::makePersistent
virtual DataObject * makePersistent() const
Definition: L1CaloReadoutConfigContainer.cxx:76
L1CaloReadoutConfigContainer::L1CaloReadoutConfigContainer
L1CaloReadoutConfigContainer()
Definition: L1CaloReadoutConfigContainer.cxx:14
L1CaloReadoutConfigContainer::el1aLutSlice
@ el1aLutSlice
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::coolInputKeys
virtual std::vector< std::string > coolInputKeys() const
Definition: L1CaloReadoutConfigContainer.h:41
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
L1CaloReadoutConfigContainer::~L1CaloReadoutConfigContainer
virtual ~L1CaloReadoutConfigContainer()
Definition: L1CaloReadoutConfigContainer.h:35
AbstractL1CaloPersistentCondition::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
Definition: AbstractL1CaloPersistentCondition.cxx:16
L1CaloReadoutConfigContainer::end
const_iterator end() const
Definition: L1CaloReadoutConfigContainer.h:53
L1CaloReadoutConfigContainer::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &)
Definition: L1CaloReadoutConfigContainer.cxx:143
L1CaloReadoutConfigContainer::eformatTypePpm
@ eformatTypePpm
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::elatencyTopo
@ elatencyTopo
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloReadoutConfigContainer::ecompressionThresholdTopo
@ ecompressionThresholdTopo
Definition: L1CaloReadoutConfigContainer.h:35
L1CaloCoolChannelId
Definition: L1CaloCoolChannelId.h:10
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
L1CaloReadoutConfigContainer::ebcOffsetCmx
@ ebcOffsetCmx
Definition: L1CaloReadoutConfigContainer.h:35
CONDCONT_DEF
CONDCONT_DEF(L1CaloReadoutConfigContainer, 1269713155)
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
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
L1CaloReadoutConfig.h
CLASS_DEF.h
macros to associate a CLID to a type
AbstractL1CaloPersistentCondition
AbstractL1CaloConditionContainer abstract base class for L1Calo persistent conditions container objec...
Definition: AbstractL1CaloPersistentCondition.h:22
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
L1CaloReadoutConfigContainer::el1aTopoSlice
@ el1aTopoSlice
Definition: L1CaloReadoutConfigContainer.h:35