ATLAS Offline Software
L1CaloPprChanCalibV1Container.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef TRIGT1CALOCALIBCONDITIONS_L1CALOPPRCHANCALIBV1CONTAINER_H
8 #define TRIGT1CALOCALIBCONDITIONS_L1CALOPPRCHANCALIBV1CONTAINER_H
9 
10 #include <map>
11 #include <string>
12 #include <vector>
13 #include "AthenaKernel/CLASS_DEF.h"
14 #include "GaudiKernel/DataObject.h"
17 
20 
21 /***
22 * Container of L1CaloPprChanCalibV1 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/V1/Calibration/Physics/PprChanCalib --objectName L1CaloPprChanCalibV1 --containerName L1CaloPprChanCalibV1Container
25 */
26 class L1CaloPprChanCalibV1Container : public DataObject, virtual public AbstractL1CaloPersistentCondition
27 {
28 private:
30 public:
32  L1CaloPprChanCalibV1Container(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();
42 
43  // getters
44  const L1CaloPprChanCalibV1* pprChanCalibV1(unsigned int channelId) const;
46  return pprChanCalibV1(channelId.id());
47  }
48 
49  using const_iterator = std::vector<L1CaloPprChanCalibV1>::const_iterator;
50  const_iterator begin() const;
51  const_iterator end() const;
52 
53  // setters
54  void addPprChanCalibV1(const L1CaloPprChanCalibV1& pprChanCalib);
55 
56 private:
57  std::vector<L1CaloPprChanCalibV1> m_pprChanCalibs;
58  std::string m_coolFolderKey = "/TRIGGER/L1Calo/V1/Calibration/Physics/PprChanCalib";
59 };
60 
62 
63 #endif // TRIGT1CALOCALIBCONDITIONS_L1CALOPPRCHANCALIBV1CONTAINER_H
L1CaloPprChanCalibV1Container::eLutSlope
@ eLutSlope
Definition: L1CaloPprChanCalibV1Container.h:37
L1CaloCoolChannelId.h
L1CaloPprChanCalibV1Container::clear
virtual void clear()
Definition: L1CaloPprChanCalibV1Container.cxx:148
L1CaloPprChanCalibV1Container::m_coolFolderKey
std::string m_coolFolderKey
Definition: L1CaloPprChanCalibV1Container.h:62
L1CaloPprChanCalibV1Container::m_pprChanCalibs
std::vector< L1CaloPprChanCalibV1 > m_pprChanCalibs
Definition: L1CaloPprChanCalibV1Container.h:61
L1CaloPprChanCalibV1Container::eExtBcidThreshold
@ eExtBcidThreshold
Definition: L1CaloPprChanCalibV1Container.h:37
L1CaloPprChanCalibV1Container::L1CaloPprChanCalibV1Container
L1CaloPprChanCalibV1Container()
Definition: L1CaloPprChanCalibV1Container.cxx:16
L1CaloPprChanCalibV1Container::eBcidEnergyRangeLow
@ eBcidEnergyRangeLow
Definition: L1CaloPprChanCalibV1Container.h:37
L1CaloPprChanCalibV1
Folder <-> Object mapping for /TRIGGER/L1Calo/V1/Calibration/Physics/PprChanCalib .
Definition: L1CaloPprChanCalibV1.h:17
L1CaloPprChanCalibV1Container::pprChanCalibV1
const L1CaloPprChanCalibV1 * pprChanCalibV1(unsigned int channelId) const
Definition: L1CaloPprChanCalibV1Container.cxx:124
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
AbstractL1CaloPersistentCondition.h
L1CaloPprChanCalibV1Container
Definition: L1CaloPprChanCalibV1Container.h:27
L1CaloPprChanCalibV1Container::ePedValue
@ ePedValue
Definition: L1CaloPprChanCalibV1Container.h:37
L1CaloPprChanCalibV1Container::eLutStrategy
@ eLutStrategy
Definition: L1CaloPprChanCalibV1Container.h:37
L1CaloPprChanCalibV1Container::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &)
Definition: L1CaloPprChanCalibV1Container.cxx:88
L1CaloPprChanCalibV1Container::const_iterator
std::vector< L1CaloPprChanCalibV1 >::const_iterator const_iterator
Definition: L1CaloPprChanCalibV1Container.h:53
L1CaloPprChanCalibV1Container::coolOutputKey
virtual std::string coolOutputKey() const
Definition: L1CaloPprChanCalibV1Container.h:44
L1CaloPprChanCalibV1Container::eErrorCode
@ eErrorCode
Definition: L1CaloPprChanCalibV1Container.h:37
L1CaloPprChanCalibV1Container::ePedMean
@ ePedMean
Definition: L1CaloPprChanCalibV1Container.h:37
L1CaloPprChanCalibV1Container::eFirCoeff3
@ eFirCoeff3
Definition: L1CaloPprChanCalibV1Container.h:37
L1CaloPprChanCalibV1Container::eLutNoiseCut
@ eLutNoiseCut
Definition: L1CaloPprChanCalibV1Container.h:37
CaloCondBlobAlgs_fillNoiseFromASCII.channelId
channelId
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:122
L1CaloPprChanCalibV1Container::eSatBcidThreshHigh
@ eSatBcidThreshHigh
Definition: L1CaloPprChanCalibV1Container.h:37
L1CaloPprChanCalibV1Container::addPprChanCalibV1
void addPprChanCalibV1(const L1CaloPprChanCalibV1 &pprChanCalib)
Definition: L1CaloPprChanCalibV1Container.cxx:136
L1CaloPprChanCalibV1Container::eAttrSpecification
eAttrSpecification
Definition: L1CaloPprChanCalibV1Container.h:33
L1CaloPprChanCalibV1Container::makePersistent
virtual DataObject * makePersistent() const
Definition: L1CaloPprChanCalibV1Container.cxx:51
AbstractL1CaloPersistentCondition::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
Definition: AbstractL1CaloPersistentCondition.cxx:16
L1CaloPprChanCalibV1Container::eSatBcidLevel
@ eSatBcidLevel
Definition: L1CaloPprChanCalibV1Container.h:37
L1CaloPprChanCalibV1Container::eFirCoeff5
@ eFirCoeff5
Definition: L1CaloPprChanCalibV1Container.h:37
L1CaloCoolChannelId
Definition: L1CaloCoolChannelId.h:10
L1CaloPprChanCalibV1Container::eFirCoeff2
@ eFirCoeff2
Definition: L1CaloPprChanCalibV1Container.h:37
L1CaloPprChanCalibV1.h
L1CaloPprChanCalibV1Container::begin
const_iterator begin() const
L1CaloPprChanCalibV1Container::eFirCoeff4
@ eFirCoeff4
Definition: L1CaloPprChanCalibV1Container.h:37
L1CaloPprChanCalibV1Container::eLutOffset
@ eLutOffset
Definition: L1CaloPprChanCalibV1Container.h:37
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
L1CaloPprChanCalibV1Container::eFirCoeff1
@ eFirCoeff1
Definition: L1CaloPprChanCalibV1Container.h:37
L1CaloPprChanCalibV1Container::eSatBcidThreshLow
@ eSatBcidThreshLow
Definition: L1CaloPprChanCalibV1Container.h:37
L1CaloPprChanCalibV1Container::eFirStartBit
@ eFirStartBit
Definition: L1CaloPprChanCalibV1Container.h:37
L1CaloPprChanCalibV1Container::~L1CaloPprChanCalibV1Container
virtual ~L1CaloPprChanCalibV1Container()
Definition: L1CaloPprChanCalibV1Container.cxx:47
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
L1CaloPprChanCalibV1Container::end
const_iterator end() const
L1CaloPprChanCalibV1Container::coolInputKeys
virtual std::vector< std::string > coolInputKeys() const
Definition: L1CaloPprChanCalibV1Container.h:43
L1CaloPprChanCalibV1Container::eBcidEnergyRangeHigh
@ eBcidEnergyRangeHigh
Definition: L1CaloPprChanCalibV1Container.h:37