ATLAS Offline Software
L1CaloDisabledTowersContainer.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_L1CALODISABLEDTOWERSCONTAINER_H
8 #define TRIGT1CALOCALIBCONDITIONS_L1CALODISABLEDTOWERSCONTAINER_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 L1CaloDisabledTowers objects. Automatically created using:
23 *
24 * python/CreateClassesForFolder.py --db frontier://ATLF/();schema=ATLAS_COOLONL_TRIGGER;dbname=CONDBR2 /TRIGGER/L1Calo/V1/Conditions/DisabledTowers
25 */
26 class L1CaloDisabledTowersContainer : public DataObject, virtual public AbstractL1CaloPersistentCondition
27 {
28 private:
30 public:
32  L1CaloDisabledTowersContainer(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_disabledTowerss.clear(); }
42 
43  // getters
44  const L1CaloDisabledTowers* disabledTowers(unsigned int channelId) const;
46  return disabledTowers(channelId.id());
47  }
48 
49  using const_iterator = std::vector<L1CaloDisabledTowers>::const_iterator;
50  const_iterator begin() const { return m_disabledTowerss.begin(); }
51  const_iterator end() const { return m_disabledTowerss.end(); }
52 
53  // setters
55 
56 private:
57  std::vector<L1CaloDisabledTowers> m_disabledTowerss;
58  std::string m_coolFolderKey = "/TRIGGER/L1Calo/V1/Conditions/DisabledTowers";
59 };
60 
63 
64 #endif // TRIGT1CALOCALIBCONDITIONS_L1CALODISABLEDTOWERSCONTAINER_H
L1CaloCoolChannelId.h
L1CaloDisabledTowersContainer::m_coolFolderKey
std::string m_coolFolderKey
Definition: L1CaloDisabledTowersContainer.h:62
CondCont.h
Hold mappings of ranges to condition objects.
L1CaloDisabledTowersContainer
Definition: L1CaloDisabledTowersContainer.h:27
L1CaloDisabledTowersContainer::clear
virtual void clear()
Definition: L1CaloDisabledTowersContainer.h:45
L1CaloDisabledTowersContainer::addDisabledTowers
void addDisabledTowers(const L1CaloDisabledTowers &disabledTowers)
Definition: L1CaloDisabledTowersContainer.cxx:81
CONDCONT_DEF
CONDCONT_DEF(L1CaloDisabledTowersContainer, 1338619614)
L1CaloDisabledTowersContainer::end
const_iterator end() const
Definition: L1CaloDisabledTowersContainer.h:55
L1CaloDisabledTowersContainer::eAttrSpecification
eAttrSpecification
Definition: L1CaloDisabledTowersContainer.h:33
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
L1CaloDisabledTowersContainer::~L1CaloDisabledTowersContainer
virtual ~L1CaloDisabledTowersContainer()
Definition: L1CaloDisabledTowersContainer.h:37
L1CaloDisabledTowersContainer::coolOutputKey
virtual std::string coolOutputKey() const
Definition: L1CaloDisabledTowersContainer.h:44
AbstractL1CaloPersistentCondition.h
L1CaloDisabledTowersContainer::disabledTowers
const L1CaloDisabledTowers * disabledTowers(unsigned int channelId) const
Definition: L1CaloDisabledTowersContainer.cxx:69
L1CaloDisabledTowersContainer::const_iterator
std::vector< L1CaloDisabledTowers >::const_iterator const_iterator
Definition: L1CaloDisabledTowersContainer.h:53
CaloCondBlobAlgs_fillNoiseFromASCII.channelId
channelId
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:122
L1CaloDisabledTowersContainer::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &)
Definition: L1CaloDisabledTowersContainer.cxx:49
L1CaloDisabledTowersContainer::coolInputKeys
virtual std::vector< std::string > coolInputKeys() const
Definition: L1CaloDisabledTowersContainer.h:43
L1CaloDisabledTowers.h
AbstractL1CaloPersistentCondition::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
Definition: AbstractL1CaloPersistentCondition.cxx:16
L1CaloDisabledTowersContainer::m_disabledTowerss
std::vector< L1CaloDisabledTowers > m_disabledTowerss
Definition: L1CaloDisabledTowersContainer.h:61
L1CaloCoolChannelId
Definition: L1CaloCoolChannelId.h:10
L1CaloDisabledTowers
Folder <-> Object mapping for /TRIGGER/L1Calo/V1/Conditions/DisabledTowers .
Definition: L1CaloDisabledTowers.h:17
L1CaloDisabledTowersContainer::makePersistent
virtual DataObject * makePersistent() const
Definition: L1CaloDisabledTowersContainer.cxx:30
L1CaloDisabledTowersContainer::begin
const_iterator begin() const
Definition: L1CaloDisabledTowersContainer.h:54
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
L1CaloDisabledTowersContainer::edisabledBits
@ edisabledBits
Definition: L1CaloDisabledTowersContainer.h:37
L1CaloDisabledTowersContainer::L1CaloDisabledTowersContainer
L1CaloDisabledTowersContainer()
Definition: L1CaloDisabledTowersContainer.cxx:16