ATLAS Offline Software
Loading...
Searching...
No Matches
L1CaloPpmDeadChannelsContainer.h
Go to the documentation of this file.
1// -*- C++ -*-
2
3/*
4 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef TRIGT1CALOCALIBCONDITIONS_L1CALOPPMDEADCHANNELSCONTAINER_H
8#define TRIGT1CALOCALIBCONDITIONS_L1CALOPPMDEADCHANNELSCONTAINER_H
9
10#include <map>
11#include <string>
12#include <vector>
14#include "GaudiKernel/DataObject.h"
18
20
21/***
22* Container of L1CaloPpmDeadChannels objects. Automatically created using:
23*
24* python/CreateClassesForFolder.py --db frontier://ATLF/();schema=ATLAS_COOLONL_TRIGGER;dbname=CONDBR2 --exclude Comment /TRIGGER/L1Calo/V1/Calibration/PpmDeadChannels
25*/
27{
28private:
30public:
32 L1CaloPpmDeadChannelsContainer(const std::string& folderKey);
34
35 // interface of AbstractL1CaloPersistentCondition
37 virtual void makeTransient(const std::map<std::string, const CondAttrListCollection*>&);
38 virtual DataObject* makePersistent() const;
39 virtual std::vector<std::string> coolInputKeys() const { return {m_coolFolderKey}; }
40 virtual std::string coolOutputKey() const { return m_coolFolderKey; }
41 virtual void clear() { m_ppmDeadChannelss.clear(); }
42
43 // getters
44 const L1CaloPpmDeadChannels* ppmDeadChannels(unsigned int channelId) const;
46 return ppmDeadChannels(channelId.id());
47 }
48
49 using const_iterator = std::vector<L1CaloPpmDeadChannels>::const_iterator;
50 const_iterator begin() const { return m_ppmDeadChannelss.begin(); }
51 const_iterator end() const { return m_ppmDeadChannelss.end(); }
52
53 // setters
55
56private:
57 std::vector<L1CaloPpmDeadChannels> m_ppmDeadChannelss;
58 std::string m_coolFolderKey = "/TRIGGER/L1Calo/V1/Calibration/PpmDeadChannels";
59};
60
63
64#endif // TRIGT1CALOCALIBCONDITIONS_L1CALOPPMDEADCHANNELSCONTAINER_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 L1CaloPpmDeadChannels * ppmDeadChannels(const L1CaloCoolChannelId &channelId) const
std::vector< L1CaloPpmDeadChannels > m_ppmDeadChannelss
const L1CaloPpmDeadChannels * ppmDeadChannels(unsigned int channelId) const
virtual std::vector< std::string > coolInputKeys() const
std::vector< L1CaloPpmDeadChannels >::const_iterator const_iterator
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &)
void addPpmDeadChannels(const L1CaloPpmDeadChannels &ppmDeadChannels)
Folder <-> Object mapping for /TRIGGER/L1Calo/V1/Calibration/PpmDeadChannels .