ATLAS Offline Software
L1CaloPprDisabledChannelContainer.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGT1CALOCALIBCONDITIONS_L1CALOPPRDISABLEDCHANNELCONTAINER_H
6 #define TRIGT1CALOCALIBCONDITIONS_L1CALOPPRDISABLEDCHANNELCONTAINER_H
7 
8 
9 #include "GaudiKernel/DataObject.h"
10 
14 #include <map>
15 #include <string>
16 
25 typedef std::map<unsigned int, L1CaloPprDisabledChannel> L1CaloPprDisabledChannelMap;
26 
27 class L1CaloPprDisabledChannelContainer : public virtual DataObject, public virtual AbstractL1CaloPersistentCondition {
28 
29 private:
31 
32 public:
34 
35  typedef std::map<unsigned int, L1CaloPprDisabledChannel>::const_iterator const_iterator;
36 
38  L1CaloPprDisabledChannelContainer(const std::map<L1CaloPprDisabledChannelContainer::eCoolFolders, std::string>& folderKeysMap);
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 L1CaloPprDisabledChannel* pprDisabledChannel(unsigned int channelId) const;
50 
51  inline L1CaloPprDisabledChannelMap::const_iterator begin() const { return m_mPprDisabledChannelMap.begin(); };
52  inline L1CaloPprDisabledChannelMap::const_iterator end() const { return m_mPprDisabledChannelMap.end(); };
53 
54  virtual std::vector<std::string> coolInputKeys() const;
55  virtual std::string coolOutputKey() const;
56 
57  virtual void clear();
58 
59  void dump() const;
60 
61 private:
62  virtual std::string coolFolderKey(L1CaloPprDisabledChannelContainer::eCoolFolders efolder) const;
63 
65  std::map<L1CaloPprDisabledChannelContainer::eCoolFolders, std::string> m_mCoolFoldersKeysMap;
66 
67 };
68 
69 #include "AthenaKernel/CondCont.h"
71 #endif
L1CaloCoolChannelId.h
L1CaloPprDisabledChannelContainer::m_mPprDisabledChannelMap
L1CaloPprDisabledChannelMap m_mPprDisabledChannelMap
Definition: L1CaloPprDisabledChannelContainer.h:64
L1CaloPprDisabledChannel
Transient conditions class for objects defined by the online framework and retrieved from COOL.
Definition: L1CaloPprDisabledChannel.h:25
CondCont.h
Hold mappings of ranges to condition objects.
L1CaloPprDisabledChannelContainer::pprDisabledChannel
const L1CaloPprDisabledChannel * pprDisabledChannel(unsigned int channelId) const
Definition: L1CaloPprDisabledChannelContainer.cxx:224
L1CaloPprDisabledChannelContainer::L1CaloPprDisabledChannelContainer
L1CaloPprDisabledChannelContainer()
Definition: L1CaloPprDisabledChannelContainer.cxx:18
L1CaloPprDisabledChannelContainer::~L1CaloPprDisabledChannelContainer
virtual ~L1CaloPprDisabledChannelContainer()
Definition: L1CaloPprDisabledChannelContainer.h:39
L1CaloPprDisabledChannelContainer::eChanCalibErrorCode
@ eChanCalibErrorCode
Definition: L1CaloPprDisabledChannelContainer.h:30
L1CaloPprDisabledChannelContainer::makePersistent
virtual DataObject * makePersistent() const
Definition: L1CaloPprDisabledChannelContainer.cxx:78
L1CaloPprDisabledChannelContainer
Definition: L1CaloPprDisabledChannelContainer.h:27
L1CaloPprDisabledChannelMap
std::map< unsigned int, L1CaloPprDisabledChannel > L1CaloPprDisabledChannelMap
Container of L1CaloPprDisabledChannel objects, inherit from the abstract base class AbstractL1CaloCon...
Definition: L1CaloPprDisabledChannelContainer.h:25
AbstractL1CaloPersistentCondition.h
L1CaloPprDisabledChannelContainer::coolInputKeys
virtual std::vector< std::string > coolInputKeys() const
Definition: L1CaloPprDisabledChannelContainer.cxx:64
L1CaloPprDisabledChannelContainer::end
L1CaloPprDisabledChannelMap::const_iterator end() const
Definition: L1CaloPprDisabledChannelContainer.h:52
L1CaloPprDisabledChannelContainer::eCaloDisableMask
@ eCaloDisableMask
Definition: L1CaloPprDisabledChannelContainer.h:30
L1CaloPprDisabledChannel.h
L1CaloPprDisabledChannelContainer::eChanDeadErrorCode
@ eChanDeadErrorCode
Definition: L1CaloPprDisabledChannelContainer.h:30
L1CaloPprDisabledChannelContainer::eNoiseCut
@ eNoiseCut
Definition: L1CaloPprDisabledChannelContainer.h:30
L1CaloPprDisabledChannelContainer::eChanDisableMask
@ eChanDisableMask
Definition: L1CaloPprDisabledChannelContainer.h:30
L1CaloPprDisabledChannelContainer::ePprChanCalib
@ ePprChanCalib
Definition: L1CaloPprDisabledChannelContainer.h:33
L1CaloPprDisabledChannelContainer::m_mCoolFoldersKeysMap
std::map< L1CaloPprDisabledChannelContainer::eCoolFolders, std::string > m_mCoolFoldersKeysMap
Definition: L1CaloPprDisabledChannelContainer.h:65
L1CaloPprDisabledChannelContainer::ePpmDeadChannels
@ ePpmDeadChannels
Definition: L1CaloPprDisabledChannelContainer.h:33
L1CaloPprDisabledChannelContainer::begin
L1CaloPprDisabledChannelMap::const_iterator begin() const
Definition: L1CaloPprDisabledChannelContainer.h:51
CaloCondBlobAlgs_fillNoiseFromASCII.channelId
channelId
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:122
L1CaloPprDisabledChannelContainer::coolOutputKey
virtual std::string coolOutputKey() const
Definition: L1CaloPprDisabledChannelContainer.cxx:73
L1CaloPprDisabledChannelContainer::const_iterator
std::map< unsigned int, L1CaloPprDisabledChannel >::const_iterator const_iterator
Definition: L1CaloPprDisabledChannelContainer.h:35
CONDCONT_DEF
CONDCONT_DEF(L1CaloPprDisabledChannelContainer, 201127142)
L1CaloPprDisabledChannelContainer::coolFolderKey
virtual std::string coolFolderKey(L1CaloPprDisabledChannelContainer::eCoolFolders efolder) const
Definition: L1CaloPprDisabledChannelContainer.cxx:54
AbstractL1CaloPersistentCondition::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
Definition: AbstractL1CaloPersistentCondition.cxx:16
L1CaloPprDisabledChannelContainer::eOKS2COOL
@ eOKS2COOL
Definition: L1CaloPprDisabledChannelContainer.h:33
L1CaloPprDisabledChannelContainer::eEtaDisableMask
@ eEtaDisableMask
Definition: L1CaloPprDisabledChannelContainer.h:30
L1CaloCoolChannelId
Definition: L1CaloCoolChannelId.h:10
L1CaloPprDisabledChannelContainer::ePhiDisableMask
@ ePhiDisableMask
Definition: L1CaloPprDisabledChannelContainer.h:30
L1CaloPprDisabledChannelContainer::eDisabledTowers
@ eDisabledTowers
Definition: L1CaloPprDisabledChannelContainer.h:33
L1CaloPprDisabledChannelContainer::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
Definition: L1CaloPprDisabledChannelContainer.cxx:108
L1CaloPprDisabledChannelContainer::addPprDisabledChannel
void addPprDisabledChannel(unsigned int channelId, const L1CaloPprDisabledChannel &pprDisabledChannel)
Definition: L1CaloPprDisabledChannelContainer.cxx:234
L1CaloPprDisabledChannelContainer::eAttrSpecification
eAttrSpecification
Definition: L1CaloPprDisabledChannelContainer.h:30
L1CaloPprDisabledChannelContainer::eCoolFolders
eCoolFolders
Definition: L1CaloPprDisabledChannelContainer.h:33
L1CaloPprDisabledChannelContainer::clear
virtual void clear()
Definition: L1CaloPprDisabledChannelContainer.cxx:249
L1CaloPprDisabledChannelContainer::dump
void dump() const
Definition: L1CaloPprDisabledChannelContainer.cxx:242
L1CaloPprDisabledChannelContainer::eDisabledBits
@ eDisabledBits
Definition: L1CaloPprDisabledChannelContainer.h:30
AbstractL1CaloPersistentCondition
AbstractL1CaloConditionContainer abstract base class for L1Calo persistent conditions container objec...
Definition: AbstractL1CaloPersistentCondition.h:22