ATLAS Offline Software
L1CaloDerivedRunParsContainer.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 #ifndef TRIGT1CALOCALIBCONDITIONS_L1CALODERIVEDRUNPARSCONTAINER_H
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 #define TRIGT1CALOCALIBCONDITIONS_L1CALODERIVEDRUNPARSCONTAINER_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 L1CaloDerivedRunPars objects. Automatically created using:
22 *
23 * ../python/CreateClassesForFolder.py --db frontier://ATLF/();schema=ATLAS_COOLONL_TRIGGER;dbname=CONDBR2 /TRIGGER/L1Calo/V1/Conditions/DerivedRunPars
24 */
25 class L1CaloDerivedRunParsContainer : public DataObject, virtual public AbstractL1CaloPersistentCondition
26 {
27 private:
29 public:
31  L1CaloDerivedRunParsContainer(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_derivedRunParss.clear(); }
41 
42  // getters
43  const L1CaloDerivedRunPars* derivedRunPars(unsigned int channelId) const;
45  return derivedRunPars(channelId.id());
46  }
47 
48  using const_iterator = std::vector<L1CaloDerivedRunPars>::const_iterator;
49  const_iterator begin() const { return m_derivedRunParss.begin(); }
50  const_iterator end() const { return m_derivedRunParss.end(); }
51 
52  // setters
54 
55  void dump() const;
56 
57 private:
58  std::vector<L1CaloDerivedRunPars> m_derivedRunParss;
59  std::string m_coolFolderKey = "/TRIGGER/L1Calo/V1/Conditions/DerivedRunPars";
60 };
61 
64 #endif // TRIGT1CALOCALIBCONDITIONS_L1CALODERIVEDRUNPARSCONTAINER_H
L1CaloCoolChannelId.h
CondCont.h
Hold mappings of ranges to condition objects.
L1CaloDerivedRunPars
Folder <-> Object mapping for /TRIGGER/L1Calo/V1/Conditions/DerivedRunPars .
Definition: L1CaloDerivedRunPars.h:17
CONDCONT_DEF
CONDCONT_DEF(L1CaloDerivedRunParsContainer, 1332387474)
L1CaloDerivedRunParsContainer::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &)
Definition: L1CaloDerivedRunParsContainer.cxx:50
L1CaloDerivedRunParsContainer::addDerivedRunPars
void addDerivedRunPars(const L1CaloDerivedRunPars &derivedRunPars)
Definition: L1CaloDerivedRunParsContainer.cxx:81
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
L1CaloDerivedRunParsContainer::derivedRunPars
const L1CaloDerivedRunPars * derivedRunPars(unsigned int channelId) const
Definition: L1CaloDerivedRunParsContainer.cxx:69
L1CaloDerivedRunPars.h
L1CaloDerivedRunParsContainer::coolInputKeys
virtual std::vector< std::string > coolInputKeys() const
Definition: L1CaloDerivedRunParsContainer.h:42
AbstractL1CaloPersistentCondition.h
L1CaloDerivedRunParsContainer::etimingRegime
@ etimingRegime
Definition: L1CaloDerivedRunParsContainer.h:36
L1CaloDerivedRunParsContainer::makePersistent
virtual DataObject * makePersistent() const
Definition: L1CaloDerivedRunParsContainer.cxx:30
L1CaloDerivedRunParsContainer::eAttrSpecification
eAttrSpecification
Definition: L1CaloDerivedRunParsContainer.h:32
L1CaloDerivedRunParsContainer::begin
const_iterator begin() const
Definition: L1CaloDerivedRunParsContainer.h:53
L1CaloDerivedRunParsContainer::L1CaloDerivedRunParsContainer
L1CaloDerivedRunParsContainer()
Definition: L1CaloDerivedRunParsContainer.cxx:15
L1CaloDerivedRunParsContainer::m_derivedRunParss
std::vector< L1CaloDerivedRunPars > m_derivedRunParss
Definition: L1CaloDerivedRunParsContainer.h:62
CaloCondBlobAlgs_fillNoiseFromASCII.channelId
channelId
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:122
L1CaloDerivedRunParsContainer
Definition: L1CaloDerivedRunParsContainer.h:26
L1CaloDerivedRunParsContainer::coolOutputKey
virtual std::string coolOutputKey() const
Definition: L1CaloDerivedRunParsContainer.h:43
AbstractL1CaloPersistentCondition::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
Definition: AbstractL1CaloPersistentCondition.cxx:16
L1CaloDerivedRunParsContainer::const_iterator
std::vector< L1CaloDerivedRunPars >::const_iterator const_iterator
Definition: L1CaloDerivedRunParsContainer.h:52
L1CaloCoolChannelId
Definition: L1CaloCoolChannelId.h:10
L1CaloDerivedRunParsContainer::clear
virtual void clear()
Definition: L1CaloDerivedRunParsContainer.h:44
L1CaloDerivedRunParsContainer::etierZeroTag
@ etierZeroTag
Definition: L1CaloDerivedRunParsContainer.h:36
L1CaloDerivedRunParsContainer::m_coolFolderKey
std::string m_coolFolderKey
Definition: L1CaloDerivedRunParsContainer.h:63
L1CaloDerivedRunParsContainer::end
const_iterator end() const
Definition: L1CaloDerivedRunParsContainer.h:54
CLASS_DEF.h
macros to associate a CLID to a type
L1CaloDerivedRunParsContainer::~L1CaloDerivedRunParsContainer
virtual ~L1CaloDerivedRunParsContainer()
Definition: L1CaloDerivedRunParsContainer.h:36
AbstractL1CaloPersistentCondition
AbstractL1CaloConditionContainer abstract base class for L1Calo persistent conditions container objec...
Definition: AbstractL1CaloPersistentCondition.h:22
L1CaloDerivedRunParsContainer::dump
void dump() const
Definition: L1CaloDerivedRunParsContainer.cxx:94