ATLAS Offline Software
Loading...
Searching...
No Matches
L1CaloReadoutConfigContainerJSON.h
Go to the documentation of this file.
1// -*- C++ -*-
2#ifndef TRIGT1CALOCALIBCONDITIONS_L1CALOREADOUTCONFIGCONTAINERJSON_H
3/*
4 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5*/
6#define TRIGT1CALOCALIBCONDITIONS_L1CALOREADOUTCONFIGCONTAINERJSON_H
7
8#include <map>
9#include <string>
10#include <vector>
12#include "GaudiKernel/DataObject.h"
16#include "GaudiKernel/MsgStream.h"
18
21
22/***
23* Container of L1CaloReadoutConfig objects. Automatically created using:
24*
25* ../python/CreateClassesForFolder.py --db frontier://ATLF/();schema=ATLAS_COOLONL_TRIGGER;dbname=CONDBR2 /TRIGGER/L1Calo/V2/Configuration/ReadoutConfig
26*/
28{
29private:
31public:
33 L1CaloReadoutConfigContainerJSON(const std::string& folderKey);
35
36 // interface of AbstractL1CaloPersistentCondition
38 virtual void makeTransient(const std::map<std::string, const CondAttrListCollection*>&) override;
39 virtual DataObject* makePersistent() const override;
40 virtual void clear() override { m_readoutConfigsJSON.clear(); }
41
42 // getters
43 const L1CaloReadoutConfigJSON* readoutConfigJSON(unsigned int channelId) const;
45 return readoutConfigJSON(channelId.id());
46 }
47
48 using const_iterator = std::vector<L1CaloReadoutConfigJSON>::const_iterator;
49 const_iterator begin() const { return m_readoutConfigsJSON.begin(); }
50 const_iterator end() const { return m_readoutConfigsJSON.end(); }
51
52 // setters
54
55private:
56 std::vector<L1CaloReadoutConfigJSON> m_readoutConfigsJSON;
57};
58
61
62#endif // TRIGT1CALOCALIBCONDITIONS_L1CALOREADOUTCONFIGCONTAINERJSON_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.
void addReadoutConfigJSON(const L1CaloReadoutConfigJSON &readoutConfigJSON)
const L1CaloReadoutConfigJSON * readoutConfigJSON(unsigned int channelId) const
const L1CaloReadoutConfigJSON * readoutConfigJSON(const L1CaloCoolChannelId &channelId) const
std::vector< L1CaloReadoutConfigJSON > m_readoutConfigsJSON
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &) override
virtual ~L1CaloReadoutConfigContainerJSON()=default
L1CaloReadoutConfigContainerJSON(const std::string &folderKey)
std::vector< L1CaloReadoutConfigJSON >::const_iterator const_iterator
virtual DataObject * makePersistent() const override
Folder <-> Object mapping for /TRIGGER/L1Calo/V2/Configuration/ReadoutConfigJSON .