ATLAS Offline Software
L1CaloPprChanCalibContainer.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_L1CALOPPRCHANCALIBCONTAINER_H
8 #define TRIGT1CALOCALIBCONDITIONS_L1CALOPPRCHANCALIBCONTAINER_H
9 
10 #include <map>
11 #include <string>
12 #include <vector>
13 #include "AthenaKernel/CLASS_DEF.h"
14 #include "GaudiKernel/DataObject.h"
18 #include "AthenaKernel/CondCont.h"
20 
21 /***
22 * Container of L1CaloPprChanCalib objects. Automatically created using:
23 *
24 * python/CreateClassesForFolder.py --db frontier://ATLF/();schema=ATLAS_COOLONL_TRIGGER;dbname=CONDBR2 --exclude ModuleId,PprDacScanResultsTimeStamp,PprPedestalRunResultsTimeStamp,PprNoiseRunResultsTimeStamp,PprTimingResultsTimeStamp,PprSatBcidResultsTimeStamp,PprFirFilterResultsTimeStamp,PprLutValuesResultsTimeStamp,DacOffset,DacSlope,FullDelayData,SyncDelayBcid,InBcidNegedge,rateCpEtThresh,rateJepEtThresh /TRIGGER/L1Calo/V2/Calibration/Physics/PprChanCalib
25 */
26 class L1CaloPprChanCalibContainer : public DataObject, virtual public AbstractL1CaloPersistentCondition
27 {
28 private:
30 public:
32  L1CaloPprChanCalibContainer(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_pprChanCalibs.clear(); }
42 
43  // getters
44  const L1CaloPprChanCalib* pprChanCalib(unsigned int channelId) const;
46  return pprChanCalib(channelId.id());
47  }
48 
50  iterator begin() { return m_pprChanCalibs.begin(); }
51  iterator end() { return m_pprChanCalibs.end(); }
52  using const_iterator = std::vector<L1CaloPprChanCalib>::const_iterator;
53  const_iterator begin() const { return m_pprChanCalibs.begin(); }
54  const_iterator end() const { return m_pprChanCalibs.end(); }
55 
56  // setters
58 
59 private:
60  std::vector<L1CaloPprChanCalib> m_pprChanCalibs;
61  std::string m_coolFolderKey = "/TRIGGER/L1Calo/V2/Calibration/Physics/PprChanCalib";
62 };
63 
65 #endif // TRIGT1CALOCALIBCONDITIONS_L1CALOPPRCHANCALIBCONTAINER_H
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
L1CaloCoolChannelId.h
L1CaloPprChanCalibContainer::eLutCpOffset
@ eLutCpOffset
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::eFirCoeff4
@ eFirCoeff4
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::eLutCpPar1
@ eLutCpPar1
Definition: L1CaloPprChanCalibContainer.h:37
CondCont.h
Hold mappings of ranges to condition objects.
L1CaloPprChanCalibContainer::begin
iterator begin()
Definition: L1CaloPprChanCalibContainer.h:54
L1CaloPprChanCalibContainer::eLutJepPar4
@ eLutJepPar4
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::eLutCpPar3
@ eLutCpPar3
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::eSatBcidThreshHigh
@ eSatBcidThreshHigh
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::ePedMean
@ ePedMean
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::eFirCoeff5
@ eFirCoeff5
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::eSatBcidLevel
@ eSatBcidLevel
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::eLutJepSlope
@ eLutJepSlope
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::eAttrSpecification
eAttrSpecification
Definition: L1CaloPprChanCalibContainer.h:33
L1CaloPprChanCalibContainer::eLutJepPar2
@ eLutJepPar2
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::m_coolFolderKey
std::string m_coolFolderKey
Definition: L1CaloPprChanCalibContainer.h:65
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
L1CaloPprChanCalibContainer::eLutCpSlope
@ eLutCpSlope
Definition: L1CaloPprChanCalibContainer.h:37
AbstractL1CaloPersistentCondition.h
L1CaloPprChanCalibContainer
Definition: L1CaloPprChanCalibContainer.h:27
L1CaloPprChanCalibContainer::addPprChanCalib
void addPprChanCalib(const L1CaloPprChanCalib &pprChanCalib)
Definition: L1CaloPprChanCalibContainer.cxx:182
L1CaloPprChanCalibContainer::eLutJepOffset
@ eLutJepOffset
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::m_pprChanCalibs
std::vector< L1CaloPprChanCalib > m_pprChanCalibs
Definition: L1CaloPprChanCalibContainer.h:64
L1CaloPprChanCalibContainer::coolInputKeys
virtual std::vector< std::string > coolInputKeys() const
Definition: L1CaloPprChanCalibContainer.h:43
L1CaloPprChanCalibContainer::~L1CaloPprChanCalibContainer
virtual ~L1CaloPprChanCalibContainer()
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &)
Definition: L1CaloPprChanCalibContainer.cxx:114
L1CaloPprChanCalibContainer::eErrorCode
@ eErrorCode
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::eFirCoeff3
@ eFirCoeff3
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::clear
virtual void clear()
Definition: L1CaloPprChanCalibContainer.h:45
L1CaloPprChanCalibContainer::eLutCpStrategy
@ eLutCpStrategy
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::eLutCpNoiseCut
@ eLutCpNoiseCut
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::eLutCpPar4
@ eLutCpPar4
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalib
Folder <-> Object mapping for /TRIGGER/L1Calo/V2/Calibration/Physics/PprChanCalib .
Definition: L1CaloPprChanCalib.h:17
L1CaloPprChanCalibContainer::iterator
std::vector< L1CaloPprChanCalib >::iterator iterator
Definition: L1CaloPprChanCalibContainer.h:53
CaloCondBlobAlgs_fillNoiseFromASCII.channelId
channelId
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:122
L1CaloPprChanCalibContainer::L1CaloPprChanCalibContainer
L1CaloPprChanCalibContainer()
Definition: L1CaloPprChanCalibContainer.cxx:15
L1CaloPprChanCalibContainer::eLutJepStrategy
@ eLutJepStrategy
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::eExtBcidThreshold
@ eExtBcidThreshold
Definition: L1CaloPprChanCalibContainer.h:37
AbstractL1CaloPersistentCondition::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
Definition: AbstractL1CaloPersistentCondition.cxx:16
L1CaloPprChanCalibContainer::eSatBcidThreshLow
@ eSatBcidThreshLow
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::eLutJepPar3
@ eLutJepPar3
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::const_iterator
std::vector< L1CaloPprChanCalib >::const_iterator const_iterator
Definition: L1CaloPprChanCalibContainer.h:56
L1CaloPprChanCalibContainer::eFirCoeff1
@ eFirCoeff1
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::pprChanCalib
const L1CaloPprChanCalib * pprChanCalib(unsigned int channelId) const
Definition: L1CaloPprChanCalibContainer.cxx:170
L1CaloCoolChannelId
Definition: L1CaloCoolChannelId.h:10
CONDCONT_DEF
CONDCONT_DEF(L1CaloPprChanCalibContainer, 1264520813)
L1CaloPprChanCalibContainer::end
iterator end()
Definition: L1CaloPprChanCalibContainer.h:55
L1CaloPprChanCalibContainer::eBcidEnergyRangeLow
@ eBcidEnergyRangeLow
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::eFirCoeff2
@ eFirCoeff2
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalib.h
L1CaloPprChanCalibContainer::ePedValue
@ ePedValue
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::coolOutputKey
virtual std::string coolOutputKey() const
Definition: L1CaloPprChanCalibContainer.h:44
L1CaloPprChanCalibContainer::ePedFirSum
@ ePedFirSum
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::eLutJepNoiseCut
@ eLutJepNoiseCut
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::eLutJepPar1
@ eLutJepPar1
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::eLutCpScale
@ eLutCpScale
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::makePersistent
virtual DataObject * makePersistent() const
Definition: L1CaloPprChanCalibContainer.cxx:62
CLASS_DEF.h
macros to associate a CLID to a type
L1CaloPprChanCalibContainer::eBcidEnergyRangeHigh
@ eBcidEnergyRangeHigh
Definition: L1CaloPprChanCalibContainer.h:37
AbstractL1CaloPersistentCondition
AbstractL1CaloConditionContainer abstract base class for L1Calo persistent conditions container objec...
Definition: AbstractL1CaloPersistentCondition.h:22
L1CaloPprChanCalibContainer::eLutCpPar2
@ eLutCpPar2
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::eFirStartBit
@ eFirStartBit
Definition: L1CaloPprChanCalibContainer.h:37
L1CaloPprChanCalibContainer::eLutJepScale
@ eLutJepScale
Definition: L1CaloPprChanCalibContainer.h:37