ATLAS Offline Software
L1CaloPprChanDefaultsContainer.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_L1CALOPPRCHANDEFAULTSCONTAINER_H
8 #define TRIGT1CALOCALIBCONDITIONS_L1CALOPPRCHANDEFAULTSCONTAINER_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 L1CaloPprChanDefaults objects. Automatically created using:
23 *
24 * python/CreateClassesForFolder.py --db frontier://ATLF/();schema=ATLAS_COOLONL_TRIGGER;dbname=CONDBR2 --include CR12_BcidDecision1,CR12_SatOverride1,CR13_BcidDecision2,CR13_SatOverride2,CR14_BcidDecision3,CR14_SatOverride3,CR15_PeakFinderCond,CR15_DecisionSource /TRIGGER/L1Calo/V2/Configuration/PprChanDefaults
25 */
26 class L1CaloPprChanDefaultsContainer : public DataObject, virtual public AbstractL1CaloPersistentCondition
27 {
28 private:
30 
31 public:
33  L1CaloPprChanDefaultsContainer(const std::string& folderKey);
35 
36  // interface of AbstractL1CaloPersistentCondition
38  virtual void makeTransient(const std::map<std::string, const CondAttrListCollection*>&);
39  virtual DataObject* makePersistent() const;
40  virtual std::vector<std::string> coolInputKeys() const { return {m_coolFolderKey}; }
41  virtual std::string coolOutputKey() const { return m_coolFolderKey; }
42  virtual void clear() { m_pprChanDefaultss.clear(); }
43 
44  // getters
45  const L1CaloPprChanDefaults* pprChanDefaults(unsigned int channelId) const;
47  return pprChanDefaults(channelId.id());
48  }
49 
51  iterator begin() { return m_pprChanDefaultss.begin(); }
52  iterator end() { return m_pprChanDefaultss.end(); }
53 
54  using const_iterator = std::vector<L1CaloPprChanDefaults>::const_iterator;
55  const_iterator begin() const { return m_pprChanDefaultss.begin(); }
56  const_iterator end() const { return m_pprChanDefaultss.end(); }
57 
58  // setters
60 
61 private:
62  std::vector<L1CaloPprChanDefaults> m_pprChanDefaultss;
63  std::string m_coolFolderKey = "/TRIGGER/L1Calo/V2/Configuration/PprChanDefaults";
64 };
65 
66 
69 #endif // TRIGT1CALOCALIBCONDITIONS_L1CALOPPRCHANDEFAULTSCONTAINER_H
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
L1CaloCoolChannelId.h
L1CaloPprChanDefaultsContainer::end
iterator end()
Definition: L1CaloPprChanDefaultsContainer.h:56
L1CaloPprChanDefaultsContainer::eSat80High
@ eSat80High
Definition: L1CaloPprChanDefaultsContainer.h:37
L1CaloPprChanDefaultsContainer::eDecisionSource
@ eDecisionSource
Definition: L1CaloPprChanDefaultsContainer.h:37
L1CaloPprChanDefaultsContainer::eEnergyLevelLow
@ eEnergyLevelLow
Definition: L1CaloPprChanDefaultsContainer.h:37
CondCont.h
Hold mappings of ranges to condition objects.
L1CaloPprChanDefaultsContainer::eBcidDecision1
@ eBcidDecision1
Definition: L1CaloPprChanDefaultsContainer.h:37
L1CaloPprChanDefaultsContainer::eSatOverride2
@ eSatOverride2
Definition: L1CaloPprChanDefaultsContainer.h:37
L1CaloPprChanDefaultsContainer::eNumBcBcid
@ eNumBcBcid
Definition: L1CaloPprChanDefaultsContainer.h:37
L1CaloPprChanDefaultsContainer
Definition: L1CaloPprChanDefaultsContainer.h:27
L1CaloPprChanDefaultsContainer::eFirCoeff5
@ eFirCoeff5
Definition: L1CaloPprChanDefaultsContainer.h:37
L1CaloPprChanDefaultsContainer::eStartBit
@ eStartBit
Definition: L1CaloPprChanDefaultsContainer.h:37
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
L1CaloPprChanDefaultsContainer::eFirCoeff2
@ eFirCoeff2
Definition: L1CaloPprChanDefaultsContainer.h:37
L1CaloPprChanDefaultsContainer::coolOutputKey
virtual std::string coolOutputKey() const
Definition: L1CaloPprChanDefaultsContainer.h:45
L1CaloPprChanDefaultsContainer::ePedCorrEnable
@ ePedCorrEnable
Definition: L1CaloPprChanDefaultsContainer.h:37
AbstractL1CaloPersistentCondition.h
L1CaloPprChanDefaultsContainer::eReadOut80Active
@ eReadOut80Active
Definition: L1CaloPprChanDefaultsContainer.h:37
L1CaloPprChanDefaultsContainer::eBcidDecision3
@ eBcidDecision3
Definition: L1CaloPprChanDefaultsContainer.h:37
L1CaloPprChanDefaultsContainer::ePeakFinderCond
@ ePeakFinderCond
Definition: L1CaloPprChanDefaultsContainer.h:37
L1CaloPprChanDefaultsContainer::addPprChanDefaults
void addPprChanDefaults(const L1CaloPprChanDefaults &pprChanDefaults)
Definition: L1CaloPprChanDefaultsContainer.cxx:187
L1CaloPprChanDefaultsContainer::eBypassLutJep
@ eBypassLutJep
Definition: L1CaloPprChanDefaultsContainer.h:37
L1CaloPprChanDefaultsContainer::eSatLevel
@ eSatLevel
Definition: L1CaloPprChanDefaultsContainer.h:37
L1CaloPprChanDefaultsContainer::eFirCoeff3
@ eFirCoeff3
Definition: L1CaloPprChanDefaultsContainer.h:37
L1CaloPprChanDefaultsContainer::begin
iterator begin()
Definition: L1CaloPprChanDefaultsContainer.h:55
L1CaloPprChanDefaultsContainer::coolInputKeys
virtual std::vector< std::string > coolInputKeys() const
Definition: L1CaloPprChanDefaultsContainer.h:44
L1CaloPprChanDefaultsContainer::eNumBcRaw
@ eNumBcRaw
Definition: L1CaloPprChanDefaultsContainer.h:37
L1CaloPprChanDefaultsContainer::eSatOverride1
@ eSatOverride1
Definition: L1CaloPprChanDefaultsContainer.h:37
CaloCondBlobAlgs_fillNoiseFromASCII.channelId
channelId
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:122
L1CaloPprChanDefaultsContainer::iterator
std::vector< L1CaloPprChanDefaults >::iterator iterator
Definition: L1CaloPprChanDefaultsContainer.h:54
L1CaloPprChanDefaultsContainer::const_iterator
std::vector< L1CaloPprChanDefaults >::const_iterator const_iterator
Definition: L1CaloPprChanDefaultsContainer.h:58
L1CaloPprChanDefaults.h
L1CaloPprChanDefaultsContainer::eFirCoeff1
@ eFirCoeff1
Definition: L1CaloPprChanDefaultsContainer.h:37
AbstractL1CaloPersistentCondition::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
Definition: AbstractL1CaloPersistentCondition.cxx:16
L1CaloPprChanDefaultsContainer::makePersistent
virtual DataObject * makePersistent() const
Definition: L1CaloPprChanDefaultsContainer.cxx:59
L1CaloPprChanDefaultsContainer::clear
virtual void clear()
Definition: L1CaloPprChanDefaultsContainer.h:46
L1CaloPprChanDefaultsContainer::~L1CaloPprChanDefaultsContainer
virtual ~L1CaloPprChanDefaultsContainer()
Definition: L1CaloPprChanDefaultsContainer.h:38
L1CaloPprChanDefaultsContainer::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &)
Definition: L1CaloPprChanDefaultsContainer.cxx:115
L1CaloPprChanDefaultsContainer::pprChanDefaults
const L1CaloPprChanDefaults * pprChanDefaults(unsigned int channelId) const
Definition: L1CaloPprChanDefaultsContainer.cxx:175
L1CaloPprChanDefaultsContainer::eSatOverride3
@ eSatOverride3
Definition: L1CaloPprChanDefaultsContainer.h:37
CONDCONT_DEF
CONDCONT_DEF(L1CaloPprChanDefaultsContainer, 1267912987)
L1CaloCoolChannelId
Definition: L1CaloCoolChannelId.h:10
L1CaloPprChanDefaultsContainer::eSatHigh
@ eSatHigh
Definition: L1CaloPprChanDefaultsContainer.h:37
L1CaloPprChanDefaultsContainer::eInDataSample
@ eInDataSample
Definition: L1CaloPprChanDefaultsContainer.h:37
L1CaloPprChanDefaultsContainer::eSaturationValue
@ eSaturationValue
Definition: L1CaloPprChanDefaultsContainer.h:37
L1CaloPprChanDefaultsContainer::eAttrSpecification
eAttrSpecification
Definition: L1CaloPprChanDefaultsContainer.h:33
L1CaloPprChanDefaultsContainer::eSat80Low
@ eSat80Low
Definition: L1CaloPprChanDefaultsContainer.h:37
L1CaloPprChanDefaultsContainer::L1CaloPprChanDefaultsContainer
L1CaloPprChanDefaultsContainer()
Definition: L1CaloPprChanDefaultsContainer.cxx:16
L1CaloPprChanDefaultsContainer::eBcidDecision2
@ eBcidDecision2
Definition: L1CaloPprChanDefaultsContainer.h:37
L1CaloPprChanDefaultsContainer::eEnergyLevelHigh
@ eEnergyLevelHigh
Definition: L1CaloPprChanDefaultsContainer.h:37
L1CaloPprChanDefaultsContainer::eBypassLutCp
@ eBypassLutCp
Definition: L1CaloPprChanDefaultsContainer.h:37
L1CaloPprChanDefaults
Folder <-> Object mapping for /TRIGGER/L1Calo/V2/Configuration/PprChanDefaults .
Definition: L1CaloPprChanDefaults.h:17
L1CaloPprChanDefaultsContainer::m_coolFolderKey
std::string m_coolFolderKey
Definition: L1CaloPprChanDefaultsContainer.h:67
L1CaloPprChanDefaultsContainer::m_pprChanDefaultss
std::vector< L1CaloPprChanDefaults > m_pprChanDefaultss
Definition: L1CaloPprChanDefaultsContainer.h:66
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
L1CaloPprChanDefaultsContainer::eFirCoeff4
@ eFirCoeff4
Definition: L1CaloPprChanDefaultsContainer.h:37
L1CaloPprChanDefaultsContainer::eSatLow
@ eSatLow
Definition: L1CaloPprChanDefaultsContainer.h:37