ATLAS Offline Software
Loading...
Searching...
No Matches
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>
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*/
26{
27private:
29public:
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
57private:
58 std::vector<L1CaloDerivedRunPars> m_derivedRunParss;
59 std::string m_coolFolderKey = "/TRIGGER/L1Calo/V1/Conditions/DerivedRunPars";
60};
61
64#endif // TRIGT1CALOCALIBCONDITIONS_L1CALODERIVEDRUNPARSCONTAINER_H
Hold mappings of ranges to condition objects.
#define CONDCONT_DEF(...)
Definition CondCont.h:1413
macros to associate a CLID to a type
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
AbstractL1CaloPersistentCondition(const std::string &condType)
This class is a collection of AttributeLists where each one is associated with a channel number.
Encapsulates the ID of one channel of conditions data in COOL, ie the ID of a row in a table.
const L1CaloDerivedRunPars * derivedRunPars(const L1CaloCoolChannelId &channelId) const
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &)
const L1CaloDerivedRunPars * derivedRunPars(unsigned int channelId) const
virtual std::string coolOutputKey() const
void addDerivedRunPars(const L1CaloDerivedRunPars &derivedRunPars)
std::vector< L1CaloDerivedRunPars > m_derivedRunParss
std::vector< L1CaloDerivedRunPars >::const_iterator const_iterator
virtual std::vector< std::string > coolInputKeys() const
virtual DataObject * makePersistent() const
Folder <-> Object mapping for /TRIGGER/L1Calo/V1/Conditions/DerivedRunPars .