ATLAS Offline Software
L1CaloRxGainContainer.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGT1CALOCALIBCONDITIONS_L1CALORXGAINCONTAINER_H
6 #define TRIGT1CALOCALIBCONDITIONS_L1CALORXGAINCONTAINER_H
7 
8 
10 
11 #include "GaudiKernel/DataObject.h"
12 
16 
25 typedef std::map<unsigned int, L1CaloRxGain> L1CaloRxGainMap;
26 
27 class L1CaloRxGainContainer: public DataObject, public AbstractL1CaloPersistentCondition {
28 
29 private:
31 
32 public:
34 
35  typedef std::map<unsigned int, L1CaloRxGain>::const_iterator const_iterator;
36 
38  L1CaloRxGainContainer(const std::map<L1CaloRxGainContainer::eCoolFolders, std::string>& folderKeysMap);
39  virtual ~L1CaloRxGainContainer() {};
40  virtual DataObject* makePersistent() const;
41 
42  // IL1CaloPersistenceCapable interface
43  using AbstractL1CaloPersistentCondition::makeTransient; // to unhide the default implementation of makeTransient
44  virtual void makeTransient(const std::map<std::string, const CondAttrListCollection*>& condAttrListCollectionMap);
45 
46  const L1CaloRxGain* rxGain(unsigned int channelId) const;
48  void addRxGain(unsigned int channelId, const L1CaloRxGain& rxGain);
50 
51  inline L1CaloRxGainMap::const_iterator begin() const { return m_mRxGainMap.begin(); };
52  inline L1CaloRxGainMap::const_iterator end() const { return m_mRxGainMap.end(); };
53 
54  virtual std::vector<std::string> coolInputKeys() const;
55  virtual std::string coolOutputKey() const;
56 
57 
58  virtual void clear();
59 
60  void dump() const;
61 
62 private:
63  std::string coolFolderKey(L1CaloRxGainContainer::eCoolFolders efolder) const;
64 
66  std::map<L1CaloRxGainContainer::eCoolFolders, std::string> m_mCoolFoldersKeysMap;
67 
68 };
69 
70 CLASS_DEF(L1CaloRxGainContainer , 1163860999 , 1 )
71 
72 #endif
L1CaloRxGainContainer::rxGain
const L1CaloRxGain * rxGain(unsigned int channelId) const
Definition: L1CaloRxGainContainer.cxx:128
L1CaloRxGainContainer::eCoolFolders
eCoolFolders
Definition: L1CaloRxGainContainer.h:33
L1CaloRxCoolChannelId.h
L1CaloRxGain.h
L1CaloRxGainContainer::clear
virtual void clear()
Definition: L1CaloRxGainContainer.cxx:153
L1CaloRxGainContainer::eGain
@ eGain
Definition: L1CaloRxGainContainer.h:30
AbstractL1CaloPersistentCondition.h
L1CaloRxGainContainer::eSlot
@ eSlot
Definition: L1CaloRxGainContainer.h:30
L1CaloRxGainContainer::eComment
@ eComment
Definition: L1CaloRxGainContainer.h:30
L1CaloRxCoolChannelId
Definition: L1CaloRxCoolChannelId.h:10
L1CaloRxGainContainer::coolOutputKey
virtual std::string coolOutputKey() const
Definition: L1CaloRxGainContainer.cxx:55
L1CaloRxGainContainer::end
L1CaloRxGainMap::const_iterator end() const
Definition: L1CaloRxGainContainer.h:52
L1CaloRxGainContainer::coolFolderKey
std::string coolFolderKey(L1CaloRxGainContainer::eCoolFolders efolder) const
Definition: L1CaloRxGainContainer.cxx:39
L1CaloRxGainContainer::eIdentifier
@ eIdentifier
Definition: L1CaloRxGainContainer.h:30
L1CaloRxGainContainer::coolInputKeys
virtual std::vector< std::string > coolInputKeys() const
Definition: L1CaloRxGainContainer.cxx:49
CaloCondBlobAlgs_fillNoiseFromASCII.channelId
channelId
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:122
L1CaloRxGainMap
std::map< unsigned int, L1CaloRxGain > L1CaloRxGainMap
Container of L1CaloRxGain objects, inherit from the abstract base class AbstractL1CaloConditionContai...
Definition: L1CaloRxGainContainer.h:25
L1CaloRxGainContainer::const_iterator
std::map< unsigned int, L1CaloRxGain >::const_iterator const_iterator
Definition: L1CaloRxGainContainer.h:35
L1CaloRxGainContainer::eChannel
@ eChannel
Definition: L1CaloRxGainContainer.h:30
L1CaloRxGainContainer::eRxGainFolder
@ eRxGainFolder
Definition: L1CaloRxGainContainer.h:33
L1CaloRxGainContainer::eCrate
@ eCrate
Definition: L1CaloRxGainContainer.h:30
AbstractL1CaloPersistentCondition::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
Definition: AbstractL1CaloPersistentCondition.cxx:16
L1CaloRxGainContainer::addRxGain
void addRxGain(unsigned int channelId, const L1CaloRxGain &rxGain)
Definition: L1CaloRxGainContainer.cxx:138
L1CaloRxGainContainer::makePersistent
virtual DataObject * makePersistent() const
Definition: L1CaloRxGainContainer.cxx:59
L1CaloRxGain
Transient conditions class for objects defined by the online framework and retrieved from COOL.
Definition: L1CaloRxGain.h:24
L1CaloRxGainContainer::dump
void dump() const
Definition: L1CaloRxGainContainer.cxx:146
L1CaloRxGainContainer::L1CaloRxGainContainer
L1CaloRxGainContainer()
Definition: L1CaloRxGainContainer.cxx:15
L1CaloRxGainContainer::m_mCoolFoldersKeysMap
std::map< L1CaloRxGainContainer::eCoolFolders, std::string > m_mCoolFoldersKeysMap
Definition: L1CaloRxGainContainer.h:66
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
L1CaloRxGainContainer
Definition: L1CaloRxGainContainer.h:27
L1CaloRxGainContainer::~L1CaloRxGainContainer
virtual ~L1CaloRxGainContainer()
Definition: L1CaloRxGainContainer.h:39
L1CaloRxGainContainer::eAttrSpecification
eAttrSpecification
Definition: L1CaloRxGainContainer.h:30
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
L1CaloRxGainContainer::m_mRxGainMap
L1CaloRxGainMap m_mRxGainMap
Definition: L1CaloRxGainContainer.h:65
L1CaloRxGainContainer::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
Definition: L1CaloRxGainContainer.cxx:91
L1CaloRxGainContainer::begin
L1CaloRxGainMap::const_iterator begin() const
Definition: L1CaloRxGainContainer.h:51