ATLAS Offline Software
Loading...
Searching...
No Matches
L1CaloEnergyScanResultsContainer.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 L1CALOENERGYSCANRESULTSCONTAINER_H
6#define L1CALOENERGYSCANRESULTSCONTAINER_H
7
9
10#include "GaudiKernel/DataObject.h"
11
15
25
26class L1CaloEnergyScanResultsContainer: public DataObject,
28{
29 private:
31
32 public:
33
34 typedef std::map<unsigned int, L1CaloEnergyScanResults> L1CaloEnergyScanResultsMap;
35 typedef L1CaloEnergyScanResultsMap::const_iterator const_iterator;
36
38
40 L1CaloEnergyScanResultsContainer(const std::map<L1CaloEnergyScanResultsContainer::eCoolFolders, std::string>& folderKeysMap);
42 virtual DataObject* makePersistent() const;
43
44 // Hide from reflex to avoid warning from reflex shadow class.
45#ifndef __REFLEX__
46 // IL1CaloPersistenceCapable interface
47 using AbstractL1CaloPersistentCondition::makeTransient; // to unhide the default implementation of makeTransient
48 virtual void makeTransient(const std::map<std::string, const CondAttrListCollection*>& condAttrListCollectionMap);
49#endif
50
51 const L1CaloEnergyScanResults* energyScanResults(unsigned int channelId) const;
53 void addEnergyScanResults(unsigned int channelId, const L1CaloEnergyScanResults& energyScanResults);
55
56 inline const_iterator begin() const { return m_mEnergyScanResultsMap.begin(); };
57 inline const_iterator end() const { return m_mEnergyScanResultsMap.end(); };
58
59 virtual std::vector<std::string> coolInputKeys() const;
60 virtual std::string coolOutputKey() const;
61
62 virtual void clear();
63
64 private:
66
68 std::map<L1CaloEnergyScanResultsContainer::eCoolFolders, std::string> m_mCoolFoldersKeysMap;
69};
70
72
73#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)
Encapsulates the ID of one channel of conditions data in COOL, ie the ID of a row in a table.
Container of L1CaloEnergyScanResults objects, inherit from the abstract base class AbstractL1CaloCond...
std::map< L1CaloEnergyScanResultsContainer::eCoolFolders, std::string > m_mCoolFoldersKeysMap
std::string coolFolderKey(L1CaloEnergyScanResultsContainer::eCoolFolders efolder) const
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
void addEnergyScanResults(unsigned int channelId, const L1CaloEnergyScanResults &energyScanResults)
L1CaloEnergyScanResultsMap::const_iterator const_iterator
const L1CaloEnergyScanResults * energyScanResults(unsigned int channelId) const
virtual std::vector< std::string > coolInputKeys() const
std::map< unsigned int, L1CaloEnergyScanResults > L1CaloEnergyScanResultsMap
Class that holds transient information about the calibration for trigger towers.