ATLAS Offline Software
Loading...
Searching...
No Matches
L1CaloRxGainContainer.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_L1CALORXGAINCONTAINER_H
6#define TRIGT1CALOCALIBCONDITIONS_L1CALORXGAINCONTAINER_H
7
8
10
11#include "GaudiKernel/DataObject.h"
12
16
24
25typedef std::map<unsigned int, L1CaloRxGain> L1CaloRxGainMap;
26
28
29private:
31
32public:
34
35 typedef std::map<unsigned int, L1CaloRxGain>::const_iterator const_iterator;
36
38 L1CaloRxGainContainer(const std::map<L1CaloRxGainContainer::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 L1CaloRxGain* rxGain(unsigned int channelId) const;
47 const L1CaloRxGain* rxGain(const L1CaloRxCoolChannelId& channelId) const;
48 void addRxGain(unsigned int channelId, const L1CaloRxGain& rxGain);
49 void addRxGain(const L1CaloRxCoolChannelId& channelId, const L1CaloRxGain& rxGain);
50
51 inline L1CaloRxGainMap::const_iterator begin() const { return m_mRxGainMap.begin(); };
52 inline L1CaloRxGainMap::const_iterator end() const { return m_mRxGainMap.end(); };
53
54 virtual std::vector<std::string> coolInputKeys() const;
55 virtual std::string coolOutputKey() const;
56
57
58 virtual void clear();
59
60 void dump() const;
61
62private:
63 std::string coolFolderKey(L1CaloRxGainContainer::eCoolFolders efolder) const;
64
66 std::map<L1CaloRxGainContainer::eCoolFolders, std::string> m_mCoolFoldersKeysMap;
67
68};
69
70CLASS_DEF(L1CaloRxGainContainer , 1163860999 , 1 )
71
72#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, L1CaloRxGain > L1CaloRxGainMap
Container of L1CaloRxGain 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 Rx channel of conditions data in COOL, ie the ID of a row in a table.
virtual std::string coolOutputKey() const
std::map< L1CaloRxGainContainer::eCoolFolders, std::string > m_mCoolFoldersKeysMap
std::string coolFolderKey(L1CaloRxGainContainer::eCoolFolders efolder) const
L1CaloRxGainMap::const_iterator begin() const
L1CaloRxGainMap::const_iterator end() const
virtual std::vector< std::string > coolInputKeys() const
std::map< unsignedint, L1CaloRxGain >::const_iterator const_iterator
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
void addRxGain(unsigned int channelId, const L1CaloRxGain &rxGain)
const L1CaloRxGain * rxGain(unsigned int channelId) const
virtual DataObject * makePersistent() const
Transient conditions class for objects defined by the online framework and retrieved from COOL.