ATLAS Offline Software
Loading...
Searching...
No Matches
L1CaloRampDataContainer.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef L1CALORAMPDATACONTAINER_H
6#define L1CALORAMPDATACONTAINER_H
7
9
12
13#include <map>
14#include <string>
15
21
23{
24 public:
25 typedef std::map<unsigned int, L1CaloRampData> L1CaloRampDataMap;
26 typedef L1CaloRampDataMap::const_iterator const_iterator;
27 // typedef L1CaloRampDataMap::value_type value_type;
28
31
32 const L1CaloRampData* rampData(unsigned int channelId) const;
33 const L1CaloRampData* rampData(const L1CaloCoolChannelId& channelId) const;
35 L1CaloRampData* rampData(unsigned int channelId);
36
37 void addRampData(unsigned int channelId, const L1CaloRampData& rampData);
38 void addRampData(const L1CaloCoolChannelId& channelId, const L1CaloRampData& rampData);
39
40 inline const_iterator begin() const { return m_rampDataMap.begin(); }
41 inline const_iterator end() const { return m_rampDataMap.end(); }
42
43 unsigned int runNumber() const { return m_runNumber; }
44 const std::string& gainStrategy() const { return m_gainStrategy; }
45 void setRunNumber(unsigned int run) { m_runNumber = run; }
46 void setGainStrategy(const std::string& strategy) { m_gainStrategy = strategy; }
47
48 private:
49 typedef L1CaloRampDataMap::iterator iterator;
51 unsigned int m_runNumber;
52 std::string m_gainStrategy;
53};
54
55CLASS_DEF( L1CaloRampDataContainer , 1308570360 , 1 )
56
57#endif // L1CALORAMPDATACONTAINER_H
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Encapsulates the ID of one channel of conditions data in COOL, ie the ID of a row in a table.
Container of L1CaloRampData objects.
void setGainStrategy(const std::string &strategy)
void addRampData(unsigned int channelId, const L1CaloRampData &rampData)
std::map< unsigned int, L1CaloRampData > L1CaloRampDataMap
L1CaloRampDataMap::iterator iterator
const std::string & gainStrategy() const
const L1CaloRampData * rampData(unsigned int channelId) const
L1CaloRampDataMap::const_iterator const_iterator
void setRunNumber(unsigned int run)
const_iterator begin() const
Transient class to store the RampData calculated from calibration runs.
Definition run.py:1