ATLAS Offline Software
L1CaloPprChanStrategyContainer.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 #ifndef TRIGT1CALOCALIBCONDITIONS_L1CALOPPRCHANSTRATEGYCONTAINER_H
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 #define TRIGT1CALOCALIBCONDITIONS_L1CALOPPRCHANSTRATEGYCONTAINER_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 L1CaloPprChanStrategy objects. Automatically created using:
21 *
22 * ../athena/Trigger/TrigT1/TrigT1CaloCalibConditions/python/CreateClassesForFolder.py --db frontier://ATLF/();schema=ATLAS_COOLONL_TRIGGER;dbname=CONDBR2 /TRIGGER/L1Calo/V2/Configuration/PprChanStrategy
23 */
24 class L1CaloPprChanStrategyContainer : public DataObject, virtual public AbstractL1CaloPersistentCondition
25 {
26 private:
28 public:
30  L1CaloPprChanStrategyContainer(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_pprChanStrategys.clear(); }
40 
41  // getters
42  const L1CaloPprChanStrategy* pprChanStrategy(unsigned int channelId) const;
44  return pprChanStrategy(channelId.id());
45  }
46 
47  using const_iterator = std::vector<L1CaloPprChanStrategy>::const_iterator;
48  const_iterator begin() const { return m_pprChanStrategys.begin(); }
49  const_iterator end() const { return m_pprChanStrategys.end(); }
50 
51  // setters
53 
54  void dump() const;
55 
56 private:
57  std::vector<L1CaloPprChanStrategy> m_pprChanStrategys;
58  std::string m_coolFolderKey = "/TRIGGER/L1Calo/V2/Configuration/PprChanStrategy";
59 };
60 
63 
64 #endif // TRIGT1CALOCALIBCONDITIONS_L1CALOPPRCHANSTRATEGYCONTAINER_H
L1CaloCoolChannelId.h
L1CaloPprChanStrategyContainer::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &)
Definition: L1CaloPprChanStrategyContainer.cxx:54
CondCont.h
Hold mappings of ranges to condition objects.
L1CaloPprChanStrategyContainer::pprChanStrategy
const L1CaloPprChanStrategy * pprChanStrategy(unsigned int channelId) const
Definition: L1CaloPprChanStrategyContainer.cxx:75
L1CaloPprChanStrategyContainer::eDescription
@ eDescription
Definition: L1CaloPprChanStrategyContainer.h:35
L1CaloPprChanStrategyContainer::coolOutputKey
virtual std::string coolOutputKey() const
Definition: L1CaloPprChanStrategyContainer.h:42
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
AbstractL1CaloPersistentCondition.h
L1CaloPprChanStrategyContainer::begin
const_iterator begin() const
Definition: L1CaloPprChanStrategyContainer.h:52
L1CaloPprChanStrategyContainer::const_iterator
std::vector< L1CaloPprChanStrategy >::const_iterator const_iterator
Definition: L1CaloPprChanStrategyContainer.h:51
L1CaloPprChanStrategy.h
L1CaloPprChanStrategyContainer::clear
virtual void clear()
Definition: L1CaloPprChanStrategyContainer.h:43
L1CaloPprChanStrategy
Folder <-> Object mapping for /TRIGGER/L1Calo/V2/Configuration/PprChanStrategy .
Definition: L1CaloPprChanStrategy.h:17
L1CaloPprChanStrategyContainer::eCode
@ eCode
Definition: L1CaloPprChanStrategyContainer.h:35
L1CaloPprChanStrategyContainer::eAttrSpecification
eAttrSpecification
Definition: L1CaloPprChanStrategyContainer.h:31
L1CaloPprChanStrategyContainer::m_pprChanStrategys
std::vector< L1CaloPprChanStrategy > m_pprChanStrategys
Definition: L1CaloPprChanStrategyContainer.h:61
L1CaloPprChanStrategyContainer::addPprChanStrategy
void addPprChanStrategy(const L1CaloPprChanStrategy &pprChanStrategy)
Definition: L1CaloPprChanStrategyContainer.cxx:87
CaloCondBlobAlgs_fillNoiseFromASCII.channelId
channelId
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:122
L1CaloPprChanStrategyContainer
Definition: L1CaloPprChanStrategyContainer.h:25
AbstractL1CaloPersistentCondition::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
Definition: AbstractL1CaloPersistentCondition.cxx:16
L1CaloPprChanStrategyContainer::m_coolFolderKey
std::string m_coolFolderKey
Definition: L1CaloPprChanStrategyContainer.h:62
L1CaloPprChanStrategyContainer::eStrategy
@ eStrategy
Definition: L1CaloPprChanStrategyContainer.h:35
L1CaloPprChanStrategyContainer::end
const_iterator end() const
Definition: L1CaloPprChanStrategyContainer.h:53
L1CaloCoolChannelId
Definition: L1CaloCoolChannelId.h:10
L1CaloPprChanStrategyContainer::eTimingRegime
@ eTimingRegime
Definition: L1CaloPprChanStrategyContainer.h:35
L1CaloPprChanStrategyContainer::L1CaloPprChanStrategyContainer
L1CaloPprChanStrategyContainer()
Definition: L1CaloPprChanStrategyContainer.cxx:15
CONDCONT_DEF
CONDCONT_DEF(L1CaloPprChanStrategyContainer, 1311862858)
L1CaloPprChanStrategyContainer::dump
void dump() const
Definition: L1CaloPprChanStrategyContainer.cxx:99
L1CaloPprChanStrategyContainer::makePersistent
virtual DataObject * makePersistent() const
Definition: L1CaloPprChanStrategyContainer.cxx:32
L1CaloPprChanStrategyContainer::~L1CaloPprChanStrategyContainer
virtual ~L1CaloPprChanStrategyContainer()
Definition: L1CaloPprChanStrategyContainer.h:35
L1CaloPprChanStrategyContainer::coolInputKeys
virtual std::vector< std::string > coolInputKeys() const
Definition: L1CaloPprChanStrategyContainer.h:41
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