ATLAS Offline Software
Loading...
Searching...
No Matches
L1CaloPprLutContainer.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGT1CALOCALIBCONDITIONS_L1CALOPPRLUTCONTAINER_H
6#define TRIGT1CALOCALIBCONDITIONS_L1CALOPPRLUTCONTAINER_H
7
9
10#include "GaudiKernel/DataObject.h"
11
15
23
24typedef std::map<unsigned int, L1CaloPprLut> L1CaloPprLutMap;
25
27
28
29private:
31
32
33public:
35
36 typedef std::map<unsigned int, L1CaloPprLut>::const_iterator const_iterator;
37
39 L1CaloPprLutContainer(const std::map<L1CaloPprLutContainer::eCoolFolders, std::string>& folderKeysMap);
41 virtual DataObject* makePersistent() const;
42
43 // Hide from reflex to avoid warning from reflex shadow class.
44#ifndef __REFLEX__
45 // IL1CaloPersistenceCapable interface
46 using AbstractL1CaloPersistentCondition::makeTransient; // to unhide the default implementation of makeTransient
47 virtual void makeTransient(const std::map<std::string, const CondAttrListCollection*>& condAttrListCollectionMap);
48#endif
49
50 const L1CaloPprLut* pprLut(unsigned int channelId) const;
51 const L1CaloPprLut* pprLut(const L1CaloCoolChannelId& channelId) const;
52 void addPprLut(unsigned int channelId, const L1CaloPprLut& pprLut);
53 void addPprLut(const L1CaloCoolChannelId& channelId, const L1CaloPprLut& pprLut);
54
55 inline L1CaloPprLutMap::const_iterator begin() const { return m_mPprLutMap.begin(); };
56 inline L1CaloPprLutMap::const_iterator end() const { return m_mPprLutMap.end(); };
57
58 virtual std::vector<std::string> coolInputKeys() const;
59 virtual std::string coolOutputKey() const;
60
61 virtual void clear();
62
63 void dump() const;
64
65private:
66 std::string coolFolderKey(L1CaloPprLutContainer::eCoolFolders efolder) const;
67
69 std::map<L1CaloPprLutContainer::eCoolFolders, std::string> m_mCoolFoldersKeysMap;
70
71};
72
73CLASS_DEF(L1CaloPprLutContainer , 1225798781 , 1 )
74
75#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
std::map< unsigned int, L1CaloPprLut > L1CaloPprLutMap
Container of L1CaloPprLut objects, inherit from the abstract base class AbstractL1CaloConditionContai...
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.
L1CaloPprLutMap::const_iterator end() const
L1CaloPprLutMap::const_iterator begin() const
std::map< unsignedint, L1CaloPprLut >::const_iterator const_iterator
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
virtual DataObject * makePersistent() const
const L1CaloPprLut * pprLut(unsigned int channelId) const
void addPprLut(unsigned int channelId, const L1CaloPprLut &pprLut)
virtual std::vector< std::string > coolInputKeys() const
virtual std::string coolOutputKey() const
std::string coolFolderKey(L1CaloPprLutContainer::eCoolFolders efolder) const
std::map< L1CaloPprLutContainer::eCoolFolders, std::string > m_mCoolFoldersKeysMap
Transient class defining the PPM lookup table objects.