ATLAS Offline Software
L1CaloPpmDeadChannelsContainer.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef TRIGT1CALOCALIBCONDITIONS_L1CALOPPMDEADCHANNELSCONTAINER_H
8 #define TRIGT1CALOCALIBCONDITIONS_L1CALOPPMDEADCHANNELSCONTAINER_H
9 
10 #include <map>
11 #include <string>
12 #include <vector>
13 #include "AthenaKernel/CLASS_DEF.h"
14 #include "GaudiKernel/DataObject.h"
18 
20 
21 /***
22 * Container of L1CaloPpmDeadChannels objects. Automatically created using:
23 *
24 * python/CreateClassesForFolder.py --db frontier://ATLF/();schema=ATLAS_COOLONL_TRIGGER;dbname=CONDBR2 --exclude Comment /TRIGGER/L1Calo/V1/Calibration/PpmDeadChannels
25 */
26 class L1CaloPpmDeadChannelsContainer : public DataObject, virtual public AbstractL1CaloPersistentCondition
27 {
28 private:
30 public:
32  L1CaloPpmDeadChannelsContainer(const std::string& folderKey);
34 
35  // interface of AbstractL1CaloPersistentCondition
37  virtual void makeTransient(const std::map<std::string, const CondAttrListCollection*>&);
38  virtual DataObject* makePersistent() const;
39  virtual std::vector<std::string> coolInputKeys() const { return {m_coolFolderKey}; }
40  virtual std::string coolOutputKey() const { return m_coolFolderKey; }
41  virtual void clear() { m_ppmDeadChannelss.clear(); }
42 
43  // getters
44  const L1CaloPpmDeadChannels* ppmDeadChannels(unsigned int channelId) const;
46  return ppmDeadChannels(channelId.id());
47  }
48 
49  using const_iterator = std::vector<L1CaloPpmDeadChannels>::const_iterator;
50  const_iterator begin() const { return m_ppmDeadChannelss.begin(); }
51  const_iterator end() const { return m_ppmDeadChannelss.end(); }
52 
53  // setters
55 
56 private:
57  std::vector<L1CaloPpmDeadChannels> m_ppmDeadChannelss;
58  std::string m_coolFolderKey = "/TRIGGER/L1Calo/V1/Calibration/PpmDeadChannels";
59 };
60 
63 
64 #endif // TRIGT1CALOCALIBCONDITIONS_L1CALOPPMDEADCHANNELSCONTAINER_H
L1CaloCoolChannelId.h
L1CaloPpmDeadChannels
Folder <-> Object mapping for /TRIGGER/L1Calo/V1/Calibration/PpmDeadChannels .
Definition: L1CaloPpmDeadChannels.h:17
L1CaloPpmDeadChannelsContainer::m_coolFolderKey
std::string m_coolFolderKey
Definition: L1CaloPpmDeadChannelsContainer.h:62
CondCont.h
Hold mappings of ranges to condition objects.
L1CaloPpmDeadChannelsContainer::eErrorCode
@ eErrorCode
Definition: L1CaloPpmDeadChannelsContainer.h:37
L1CaloPpmDeadChannelsContainer::m_ppmDeadChannelss
std::vector< L1CaloPpmDeadChannels > m_ppmDeadChannelss
Definition: L1CaloPpmDeadChannelsContainer.h:61
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
AbstractL1CaloPersistentCondition.h
L1CaloPpmDeadChannelsContainer::coolOutputKey
virtual std::string coolOutputKey() const
Definition: L1CaloPpmDeadChannelsContainer.h:44
L1CaloPpmDeadChannelsContainer::begin
const_iterator begin() const
Definition: L1CaloPpmDeadChannelsContainer.h:54
L1CaloPpmDeadChannelsContainer::ppmDeadChannels
const L1CaloPpmDeadChannels * ppmDeadChannels(unsigned int channelId) const
Definition: L1CaloPpmDeadChannelsContainer.cxx:72
L1CaloPpmDeadChannelsContainer::const_iterator
std::vector< L1CaloPpmDeadChannels >::const_iterator const_iterator
Definition: L1CaloPpmDeadChannelsContainer.h:53
CONDCONT_DEF
CONDCONT_DEF(L1CaloPpmDeadChannelsContainer, 1082931680)
L1CaloPpmDeadChannelsContainer::makePersistent
virtual DataObject * makePersistent() const
Definition: L1CaloPpmDeadChannelsContainer.cxx:31
L1CaloPpmDeadChannelsContainer::eNoiseCut
@ eNoiseCut
Definition: L1CaloPpmDeadChannelsContainer.h:37
L1CaloPpmDeadChannelsContainer::eAttrSpecification
eAttrSpecification
Definition: L1CaloPpmDeadChannelsContainer.h:33
L1CaloPpmDeadChannelsContainer::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &)
Definition: L1CaloPpmDeadChannelsContainer.cxx:51
L1CaloPpmDeadChannelsContainer::coolInputKeys
virtual std::vector< std::string > coolInputKeys() const
Definition: L1CaloPpmDeadChannelsContainer.h:43
CaloCondBlobAlgs_fillNoiseFromASCII.channelId
channelId
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:122
L1CaloPpmDeadChannelsContainer::~L1CaloPpmDeadChannelsContainer
virtual ~L1CaloPpmDeadChannelsContainer()
Definition: L1CaloPpmDeadChannelsContainer.h:37
AbstractL1CaloPersistentCondition::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
Definition: AbstractL1CaloPersistentCondition.cxx:16
L1CaloPpmDeadChannelsContainer
Definition: L1CaloPpmDeadChannelsContainer.h:27
L1CaloCoolChannelId
Definition: L1CaloCoolChannelId.h:10
L1CaloPpmDeadChannels.h
L1CaloPpmDeadChannelsContainer::L1CaloPpmDeadChannelsContainer
L1CaloPpmDeadChannelsContainer()
Definition: L1CaloPpmDeadChannelsContainer.cxx:16
L1CaloPpmDeadChannelsContainer::addPpmDeadChannels
void addPpmDeadChannels(const L1CaloPpmDeadChannels &ppmDeadChannels)
Definition: L1CaloPpmDeadChannelsContainer.cxx:84
L1CaloPpmDeadChannelsContainer::end
const_iterator end() const
Definition: L1CaloPpmDeadChannelsContainer.h:55
L1CaloPpmDeadChannelsContainer::clear
virtual void clear()
Definition: L1CaloPpmDeadChannelsContainer.h:45
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