ATLAS Offline Software
L1CaloRunParametersContainer.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 #ifndef TRIGT1CALOCALIBCONDITIONS_L1CALORUNPARAMETERSCONTAINER_H
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 #define TRIGT1CALOCALIBCONDITIONS_L1CALORUNPARAMETERSCONTAINER_H
7 
8 #include <map>
9 #include <string>
10 #include <vector>
11 #include "AthenaKernel/CLASS_DEF.h"
12 #include "GaudiKernel/DataObject.h"
16 
19 
20 /***
21 * Container of L1CaloRunParameters objects. Automatically created using:
22 *
23 * ./CreateClassesForFolder.py /TRIGGER/L1Calo/V1/Conditions/RunParameters
24 */
25 class L1CaloRunParametersContainer : public DataObject, virtual public AbstractL1CaloPersistentCondition
26 {
27 private:
29 public:
31  L1CaloRunParametersContainer(const std::string& folderKey);
33 
34  // interface of AbstractL1CaloPersistentCondition
36  virtual void makeTransient(const std::map<std::string, const CondAttrListCollection*>&);
37  virtual DataObject* makePersistent() const;
38  virtual std::vector<std::string> coolInputKeys() const { return {m_coolFolderKey}; }
39  virtual std::string coolOutputKey() const { return m_coolFolderKey; }
40  virtual void clear() { m_runParameterss.clear(); }
41 
42  // getters
43  const L1CaloRunParameters* runParameters(unsigned int channelId) const;
45  return runParameters(channelId.id());
46  }
47 
48  using const_iterator = std::vector<L1CaloRunParameters>::const_iterator;
49  const_iterator begin() const { return m_runParameterss.begin(); }
50  const_iterator end() const { return m_runParameterss.end(); }
51 
52  // setters
54 
55  void dump() const;
56 
57 private:
58  std::vector<L1CaloRunParameters> m_runParameterss;
59  std::string m_coolFolderKey = "/TRIGGER/L1Calo/V1/Conditions/RunParameters";
60 };
61 
64 #endif // TRIGT1CALOCALIBCONDITIONS_L1CALORUNPARAMETERSCONTAINER_H
L1CaloCoolChannelId.h
CondCont.h
Hold mappings of ranges to condition objects.
L1CaloRunParametersContainer::~L1CaloRunParametersContainer
virtual ~L1CaloRunParametersContainer()
Definition: L1CaloRunParametersContainer.h:36
L1CaloRunParametersContainer::ereadoutConfigID
@ ereadoutConfigID
Definition: L1CaloRunParametersContainer.h:36
L1CaloRunParametersContainer::etriggerMenu
@ etriggerMenu
Definition: L1CaloRunParametersContainer.h:36
L1CaloRunParametersContainer::m_coolFolderKey
std::string m_coolFolderKey
Definition: L1CaloRunParametersContainer.h:63
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
L1CaloRunParametersContainer::L1CaloRunParametersContainer
L1CaloRunParametersContainer()
Definition: L1CaloRunParametersContainer.cxx:15
AbstractL1CaloPersistentCondition.h
L1CaloRunParametersContainer::addRunParameters
void addRunParameters(const L1CaloRunParameters &runParameters)
Definition: L1CaloRunParametersContainer.cxx:105
L1CaloRunParametersContainer::erunActionVersion
@ erunActionVersion
Definition: L1CaloRunParametersContainer.h:36
L1CaloRunParametersContainer::coolOutputKey
virtual std::string coolOutputKey() const
Definition: L1CaloRunParametersContainer.h:43
L1CaloRunParametersContainer::runParameters
const L1CaloRunParameters * runParameters(unsigned int channelId) const
Definition: L1CaloRunParametersContainer.cxx:93
L1CaloRunParametersContainer::econditions
@ econditions
Definition: L1CaloRunParametersContainer.h:36
L1CaloRunParametersContainer::dump
void dump() const
Definition: L1CaloRunParametersContainer.cxx:117
L1CaloRunParameters
Folder <-> Object mapping for /TRIGGER/L1Calo/V1/Conditions/RunParameters .
Definition: L1CaloRunParameters.h:18
L1CaloRunParametersContainer::const_iterator
std::vector< L1CaloRunParameters >::const_iterator const_iterator
Definition: L1CaloRunParametersContainer.h:52
L1CaloRunParametersContainer::coolInputKeys
virtual std::vector< std::string > coolInputKeys() const
Definition: L1CaloRunParametersContainer.h:42
L1CaloRunParametersContainer::eAttrSpecification
eAttrSpecification
Definition: L1CaloRunParametersContainer.h:32
CaloCondBlobAlgs_fillNoiseFromASCII.channelId
channelId
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:122
L1CaloRunParametersContainer::ettcConfigurationID
@ ettcConfigurationID
Definition: L1CaloRunParametersContainer.h:36
L1CaloRunParameters.h
L1CaloRunParametersContainer::begin
const_iterator begin() const
Definition: L1CaloRunParametersContainer.h:53
L1CaloRunParametersContainer::clear
virtual void clear()
Definition: L1CaloRunParametersContainer.h:44
L1CaloRunParametersContainer::ereadoutConfig
@ ereadoutConfig
Definition: L1CaloRunParametersContainer.h:36
L1CaloRunParametersContainer::ettcConfiguration
@ ettcConfiguration
Definition: L1CaloRunParametersContainer.h:36
AbstractL1CaloPersistentCondition::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
Definition: AbstractL1CaloPersistentCondition.cxx:16
L1CaloRunParametersContainer::end
const_iterator end() const
Definition: L1CaloRunParametersContainer.h:54
L1CaloCoolChannelId
Definition: L1CaloCoolChannelId.h:10
L1CaloRunParametersContainer::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &)
Definition: L1CaloRunParametersContainer.cxx:66
L1CaloRunParametersContainer::erunType
@ erunType
Definition: L1CaloRunParametersContainer.h:36
L1CaloRunParametersContainer::erunActionName
@ erunActionName
Definition: L1CaloRunParametersContainer.h:36
L1CaloRunParametersContainer::ecalibration
@ ecalibration
Definition: L1CaloRunParametersContainer.h:36
CONDCONT_DEF
CONDCONT_DEF(L1CaloRunParametersContainer, 1258804674)
L1CaloRunParametersContainer::makePersistent
virtual DataObject * makePersistent() const
Definition: L1CaloRunParametersContainer.cxx:38
L1CaloRunParametersContainer::m_runParameterss
std::vector< L1CaloRunParameters > m_runParameterss
Definition: L1CaloRunParametersContainer.h:62
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
L1CaloRunParametersContainer
Definition: L1CaloRunParametersContainer.h:26