ATLAS Offline Software
L1CaloEnergyScanRunInfoContainer.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef L1CALOENERGYSCANRUNINFOCONTAINER_H
6 #define L1CALOENERGYSCANRUNINFOCONTAINER_H
7 
8 #include <map>
9 #include <string>
10 
11 #include "AthenaKernel/CLASS_DEF.h"
12 
13 #include "GaudiKernel/DataObject.h"
14 
16 
26 class L1CaloEnergyScanRunInfoContainer: public DataObject,
28 {
29  private:
31 
32  public:
33 
35 
37  L1CaloEnergyScanRunInfoContainer(const std::map<L1CaloEnergyScanRunInfoContainer::eCoolFolders, std::string>& folderKeysMap);
39  virtual DataObject* makePersistent() const;
40 
41  // Hide from reflex to avoid warning from reflex shadow class.
42 #ifndef __REFLEX__
43  // IL1CaloPersistenceCapable interface
44  using AbstractL1CaloPersistentCondition::makeTransient; // to unhide the default implementation of makeTransient
45  virtual void makeTransient(const std::map<std::string, AthenaAttributeList*>& athenaAttributeListMap);
46 #endif
47 
48  unsigned int runNumber() const { return m_runNumber; }
49  const std::string& gainStrategy() const { return m_gainStrategy; }
50  void setRunNumber(unsigned int run) { m_runNumber = run; }
51  void setGainStrategy(const std::string& strategy) { m_gainStrategy = strategy; }
52 
53  virtual std::vector<std::string> coolInputKeys() const;
54  virtual std::string coolOutputKey() const;
55 
56  private:
58 
59  std::map<L1CaloEnergyScanRunInfoContainer::eCoolFolders, std::string> m_mCoolFoldersKeysMap;
60  unsigned int m_runNumber;
61  std::string m_gainStrategy;
62 };
63 
65 
66 #endif
xAOD::strategy
strategy
Definition: L2CombinedMuon_v1.cxx:107
L1CaloEnergyScanRunInfoContainer::makePersistent
virtual DataObject * makePersistent() const
Definition: L1CaloEnergyScanRunInfoContainer.cxx:56
L1CaloEnergyScanRunInfoContainer::gainStrategy
const std::string & gainStrategy() const
Definition: L1CaloEnergyScanRunInfoContainer.h:49
L1CaloEnergyScanRunInfoContainer::coolFolderKey
std::string coolFolderKey(L1CaloEnergyScanRunInfoContainer::eCoolFolders efolder) const
Definition: L1CaloEnergyScanRunInfoContainer.cxx:36
L1CaloEnergyScanRunInfoContainer::setRunNumber
void setRunNumber(unsigned int run)
Definition: L1CaloEnergyScanRunInfoContainer.h:50
L1CaloEnergyScanRunInfoContainer::eRunNumber
@ eRunNumber
Definition: L1CaloEnergyScanRunInfoContainer.h:30
run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28
L1CaloEnergyScanRunInfoContainer::eCoolFolders
eCoolFolders
Definition: L1CaloEnergyScanRunInfoContainer.h:34
L1CaloEnergyScanRunInfoContainer::coolInputKeys
virtual std::vector< std::string > coolInputKeys() const
Definition: L1CaloEnergyScanRunInfoContainer.cxx:46
L1CaloEnergyScanRunInfoContainer::eEnergyScanRunInfo
@ eEnergyScanRunInfo
Definition: L1CaloEnergyScanRunInfoContainer.h:34
AbstractL1CaloPersistentCondition.h
L1CaloEnergyScanRunInfoContainer::makeTransient
virtual void makeTransient(const std::map< std::string, AthenaAttributeList * > &athenaAttributeListMap)
Definition: L1CaloEnergyScanRunInfoContainer.cxx:71
L1CaloEnergyScanRunInfoContainer::coolOutputKey
virtual std::string coolOutputKey() const
Definition: L1CaloEnergyScanRunInfoContainer.cxx:52
L1CaloEnergyScanRunInfoContainer::eGainStrategy
@ eGainStrategy
Definition: L1CaloEnergyScanRunInfoContainer.h:30
run
Definition: run.py:1
L1CaloEnergyScanRunInfoContainer::m_runNumber
unsigned int m_runNumber
Definition: L1CaloEnergyScanRunInfoContainer.h:60
L1CaloEnergyScanRunInfoContainer::m_mCoolFoldersKeysMap
std::map< L1CaloEnergyScanRunInfoContainer::eCoolFolders, std::string > m_mCoolFoldersKeysMap
Definition: L1CaloEnergyScanRunInfoContainer.h:59
L1CaloEnergyScanRunInfoContainer::~L1CaloEnergyScanRunInfoContainer
virtual ~L1CaloEnergyScanRunInfoContainer()
Definition: L1CaloEnergyScanRunInfoContainer.h:38
AbstractL1CaloPersistentCondition::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
Definition: AbstractL1CaloPersistentCondition.cxx:16
L1CaloEnergyScanRunInfoContainer::eAttrSpecification
eAttrSpecification
Definition: L1CaloEnergyScanRunInfoContainer.h:30
L1CaloEnergyScanRunInfoContainer::L1CaloEnergyScanRunInfoContainer
L1CaloEnergyScanRunInfoContainer()
Definition: L1CaloEnergyScanRunInfoContainer.cxx:13
L1CaloEnergyScanRunInfoContainer::m_gainStrategy
std::string m_gainStrategy
Definition: L1CaloEnergyScanRunInfoContainer.h:61
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
L1CaloEnergyScanRunInfoContainer::setGainStrategy
void setGainStrategy(const std::string &strategy)
Definition: L1CaloEnergyScanRunInfoContainer.h:51
CLASS_DEF.h
macros to associate a CLID to a type
L1CaloEnergyScanRunInfoContainer
Container of L1CaloEnergyScanRunInfo metadata, inherit from the abstract base class AbstractL1CaloCon...
Definition: L1CaloEnergyScanRunInfoContainer.h:28
AbstractL1CaloPersistentCondition
AbstractL1CaloConditionContainer abstract base class for L1Calo persistent conditions container objec...
Definition: AbstractL1CaloPersistentCondition.h:22
L1CaloEnergyScanRunInfoContainer::runNumber
unsigned int runNumber() const
Definition: L1CaloEnergyScanRunInfoContainer.h:48