ATLAS Offline Software
L1CaloPprChanDefaultsV1Container.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_L1CALOPPRCHANDEFAULTSV1CONTAINER_H
8 #define TRIGT1CALOCALIBCONDITIONS_L1CALOPPRCHANDEFAULTSV1CONTAINER_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 L1CaloPprChanDefaultsV1 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/V1/Configuration/PprChanDefaults
25 */
27 {
28 private:
30 public:
32  L1CaloPprChanDefaultsV1Container(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_pprChanDefaultsV1s.clear(); }
42 
43  // getters
46  return pprChanDefaultsV1(channelId.id());
47  }
48 
49  using const_iterator = std::vector<L1CaloPprChanDefaultsV1>::const_iterator;
50  const_iterator begin() const;
51  const_iterator end() const;
52 
53  // setters
55 
56 private:
57  std::vector<L1CaloPprChanDefaultsV1> m_pprChanDefaultsV1s;
58  std::string m_coolFolderKey = "/TRIGGER/L1Calo/V1/Configuration/PprChanDefaults";
59 };
60 
62 
63 #endif // TRIGT1CALOCALIBCONDITIONS_L1CALOPPRCHANDEFAULTSV1CONTAINER_H
L1CaloCoolChannelId.h
L1CaloPprChanDefaultsV1Container::coolInputKeys
virtual std::vector< std::string > coolInputKeys() const
Definition: L1CaloPprChanDefaultsV1Container.h:43
L1CaloPprChanDefaultsV1Container::clear
virtual void clear()
Definition: L1CaloPprChanDefaultsV1Container.h:45
L1CaloPprChanDefaultsV1Container::eSatOverride1
@ eSatOverride1
Definition: L1CaloPprChanDefaultsV1Container.h:37
L1CaloPprChanDefaultsV1Container::m_pprChanDefaultsV1s
std::vector< L1CaloPprChanDefaultsV1 > m_pprChanDefaultsV1s
Definition: L1CaloPprChanDefaultsV1Container.h:61
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
AbstractL1CaloPersistentCondition.h
L1CaloPprChanDefaultsV1Container::pprChanDefaultsV1
const L1CaloPprChanDefaultsV1 * pprChanDefaultsV1(unsigned int channelId) const
Definition: L1CaloPprChanDefaultsV1Container.cxx:88
L1CaloPprChanDefaultsV1Container::eSatOverride3
@ eSatOverride3
Definition: L1CaloPprChanDefaultsV1Container.h:37
L1CaloPprChanDefaultsV1Container::eBcidDecision1
@ eBcidDecision1
Definition: L1CaloPprChanDefaultsV1Container.h:37
L1CaloPprChanDefaultsV1.h
L1CaloPprChanDefaultsV1Container::eBcidDecision3
@ eBcidDecision3
Definition: L1CaloPprChanDefaultsV1Container.h:37
L1CaloPprChanDefaultsV1Container::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &)
Definition: L1CaloPprChanDefaultsV1Container.cxx:63
L1CaloPprChanDefaultsV1Container::makePersistent
virtual DataObject * makePersistent() const
Definition: L1CaloPprChanDefaultsV1Container.cxx:37
L1CaloPprChanDefaultsV1Container::m_coolFolderKey
std::string m_coolFolderKey
Definition: L1CaloPprChanDefaultsV1Container.h:62
L1CaloPprChanDefaultsV1Container::eAttrSpecification
eAttrSpecification
Definition: L1CaloPprChanDefaultsV1Container.h:33
L1CaloPprChanDefaultsV1Container::~L1CaloPprChanDefaultsV1Container
virtual ~L1CaloPprChanDefaultsV1Container()
Definition: L1CaloPprChanDefaultsV1Container.h:37
L1CaloPprChanDefaultsV1
Folder <-> Object mapping for /TRIGGER/L1Calo/V1/Configuration/PprChanDefaults .
Definition: L1CaloPprChanDefaultsV1.h:17
L1CaloPprChanDefaultsV1Container::ePeakFinderCond
@ ePeakFinderCond
Definition: L1CaloPprChanDefaultsV1Container.h:37
L1CaloPprChanDefaultsV1Container::const_iterator
std::vector< L1CaloPprChanDefaultsV1 >::const_iterator const_iterator
Definition: L1CaloPprChanDefaultsV1Container.h:53
L1CaloPprChanDefaultsV1Container::coolOutputKey
virtual std::string coolOutputKey() const
Definition: L1CaloPprChanDefaultsV1Container.h:44
CaloCondBlobAlgs_fillNoiseFromASCII.channelId
channelId
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:122
L1CaloPprChanDefaultsV1Container::eBcidDecision2
@ eBcidDecision2
Definition: L1CaloPprChanDefaultsV1Container.h:37
AbstractL1CaloPersistentCondition::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
Definition: AbstractL1CaloPersistentCondition.cxx:16
L1CaloPprChanDefaultsV1Container
Definition: L1CaloPprChanDefaultsV1Container.h:27
L1CaloPprChanDefaultsV1Container::addPprChanDefaultsV1
void addPprChanDefaultsV1(const L1CaloPprChanDefaultsV1 &pprChanDefaultsV1)
Definition: L1CaloPprChanDefaultsV1Container.cxx:100
L1CaloCoolChannelId
Definition: L1CaloCoolChannelId.h:10
L1CaloPprChanDefaultsV1Container::eDecisionSource
@ eDecisionSource
Definition: L1CaloPprChanDefaultsV1Container.h:37
L1CaloPprChanDefaultsV1Container::end
const_iterator end() const
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
L1CaloPprChanDefaultsV1Container::L1CaloPprChanDefaultsV1Container
L1CaloPprChanDefaultsV1Container()
Definition: L1CaloPprChanDefaultsV1Container.cxx:16
CLASS_DEF.h
macros to associate a CLID to a type
L1CaloPprChanDefaultsV1Container::begin
const_iterator begin() const
L1CaloPprChanDefaultsV1Container::eSatOverride2
@ eSatOverride2
Definition: L1CaloPprChanDefaultsV1Container.h:37
AbstractL1CaloPersistentCondition
AbstractL1CaloConditionContainer abstract base class for L1Calo persistent conditions container objec...
Definition: AbstractL1CaloPersistentCondition.h:22