ATLAS Offline Software
Loading...
Searching...
No Matches
L1CaloPprDisabledChannelContainer.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGT1CALOCALIBCONDITIONS_L1CALOPPRDISABLEDCHANNELCONTAINER_H
6#define TRIGT1CALOCALIBCONDITIONS_L1CALOPPRDISABLEDCHANNELCONTAINER_H
7
8
9#include "GaudiKernel/DataObject.h"
10
14#include <map>
15#include <string>
16
24
25typedef std::map<unsigned int, L1CaloPprDisabledChannel> L1CaloPprDisabledChannelMap;
26
27class L1CaloPprDisabledChannelContainer : public virtual DataObject, public virtual AbstractL1CaloPersistentCondition {
28
29private:
31
32public:
34
35 typedef std::map<unsigned int, L1CaloPprDisabledChannel>::const_iterator const_iterator;
36
38 L1CaloPprDisabledChannelContainer(const std::map<L1CaloPprDisabledChannelContainer::eCoolFolders, std::string>& folderKeysMap);
40 virtual DataObject* makePersistent() const;
41
42 // IL1CaloPersistenceCapable interface
43 using AbstractL1CaloPersistentCondition::makeTransient; // to unhide the default implementation of makeTransient
44 virtual void makeTransient(const std::map<std::string, const CondAttrListCollection*>& condAttrListCollectionMap);
45
46 const L1CaloPprDisabledChannel* pprDisabledChannel(unsigned int channelId) const;
48 void addPprDisabledChannel(unsigned int channelId, const L1CaloPprDisabledChannel& pprDisabledChannel);
50
51 inline L1CaloPprDisabledChannelMap::const_iterator begin() const { return m_mPprDisabledChannelMap.begin(); };
52 inline L1CaloPprDisabledChannelMap::const_iterator end() const { return m_mPprDisabledChannelMap.end(); };
53
54 virtual std::vector<std::string> coolInputKeys() const;
55 virtual std::string coolOutputKey() const;
56
57 virtual void clear();
58
59 void dump() const;
60
61private:
62 virtual std::string coolFolderKey(L1CaloPprDisabledChannelContainer::eCoolFolders efolder) const;
63
65 std::map<L1CaloPprDisabledChannelContainer::eCoolFolders, std::string> m_mCoolFoldersKeysMap;
66
67};
68
71#endif
Hold mappings of ranges to condition objects.
#define CONDCONT_DEF(...)
Definition CondCont.h:1413
std::map< unsigned int, L1CaloPprDisabledChannel > L1CaloPprDisabledChannelMap
Container of L1CaloPprDisabledChannel objects, inherit from the abstract base class AbstractL1CaloCon...
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
AbstractL1CaloPersistentCondition(const std::string &condType)
Encapsulates the ID of one channel of conditions data in COOL, ie the ID of a row in a table.
std::map< L1CaloPprDisabledChannelContainer::eCoolFolders, std::string > m_mCoolFoldersKeysMap
void addPprDisabledChannel(unsigned int channelId, const L1CaloPprDisabledChannel &pprDisabledChannel)
std::map< unsignedint, L1CaloPprDisabledChannel >::const_iterator const_iterator
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
L1CaloPprDisabledChannelMap::const_iterator end() const
L1CaloPprDisabledChannelMap::const_iterator begin() const
virtual std::vector< std::string > coolInputKeys() const
const L1CaloPprDisabledChannel * pprDisabledChannel(unsigned int channelId) const
virtual std::string coolFolderKey(L1CaloPprDisabledChannelContainer::eCoolFolders efolder) const
Transient conditions class for objects defined by the online framework and retrieved from COOL.