ATLAS Offline Software
Loading...
Searching...
No Matches
L1CaloHVCorrectionsContainer.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 L1CALOHVCORRECTIONSCONTAINER_H
6#define L1CALOHVCORRECTIONSCONTAINER_H
7
8#include <map>
9#include <string>
10#include <vector>
11
13
14#include "GaudiKernel/DataObject.h"
15
19
27
28class L1CaloHVCorrectionsContainer: public DataObject,
30{
31 private:
34
35 public:
36
37 typedef std::map<unsigned int, L1CaloHVCorrections> L1CaloHVCorrectionsMap;
38 typedef L1CaloHVCorrectionsMap::const_iterator const_iterator;
39
41
43 L1CaloHVCorrectionsContainer(const std::map<L1CaloHVCorrectionsContainer::eCoolFolders, std::string>& folderKeysMap);
45 virtual DataObject* makePersistent() const;
46
47 // Hide from reflex to avoid warning from reflex shadow class.
48#ifndef __REFLEX__
49 // IL1CaloPersistenceCapable interface
50 using AbstractL1CaloPersistentCondition::makeTransient; // to unhide the default implementation of makeTransient
51 virtual void makeTransient(const std::map<std::string, const CondAttrListCollection*>& condAttrListCollectionMap);
52#endif
53
54 const L1CaloHVCorrections* hvCorrections(unsigned int channelId) const;
55 const L1CaloHVCorrections* hvCorrections(const L1CaloRxCoolChannelId& channelId) const;
56 void addHVCorrections(unsigned int channelId, L1CaloHVCorrections&& hvCorrections);
58
59 inline const_iterator begin() const { return m_mHVCorrectionsMap.begin(); };
60 inline const_iterator end() const { return m_mHVCorrectionsMap.end(); };
61
62 virtual std::vector<std::string> coolInputKeys() const;
63 virtual std::string coolOutputKey() const;
64
65 virtual void clear();
66
67 private:
69
71 std::map<L1CaloHVCorrectionsContainer::eCoolFolders, std::string> m_mCoolFoldersKeysMap;
72};
73
75
76#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
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
AbstractL1CaloPersistentCondition(const std::string &condType)
Container of L1CaloHVCorrections objects, inherit from the abstract base class AbstractL1CaloConditio...
L1CaloHVCorrectionsMap::const_iterator const_iterator
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
virtual std::vector< std::string > coolInputKeys() const
virtual std::string coolOutputKey() const
void addHVCorrections(unsigned int channelId, L1CaloHVCorrections &&hvCorrections)
std::map< unsigned int, L1CaloHVCorrections > L1CaloHVCorrectionsMap
const L1CaloHVCorrections * hvCorrections(unsigned int channelId) const
std::map< L1CaloHVCorrectionsContainer::eCoolFolders, std::string > m_mCoolFoldersKeysMap
std::string coolFolderKey(L1CaloHVCorrectionsContainer::eCoolFolders efolder) const
virtual DataObject * makePersistent() const
Class that holds mean HV corrections for receivers.
Encapsulates the ID of one Rx channel of conditions data in COOL, ie the ID of a row in a table.