ATLAS Offline Software
Loading...
Searching...
No Matches
L1CaloRampDataContainer.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7const L1CaloRampData* L1CaloRampDataContainer::rampData(unsigned int channelId) const
8{
9 const_iterator pos(m_rampDataMap.find(channelId));
10 if(pos == m_rampDataMap.end()) return 0;
11 return &(pos->second);
12}
13
15{
16 iterator pos(m_rampDataMap.find(channelId));
17 if(pos == m_rampDataMap.end()) return 0;
18 return &(pos->second);
19}
20
22{
23 return this->rampData(channelId.id());
24}
25
27{
28 return this->rampData(channelId.id());
29}
30
31
33{
34 m_rampDataMap[channelId] = rampData;
35}
36
38{
39 this->addRampData(channelId.id(), rampData);
40}
Encapsulates the ID of one channel of conditions data in COOL, ie the ID of a row in a table.
unsigned int id() const
void addRampData(unsigned int channelId, const L1CaloRampData &rampData)
L1CaloRampDataMap::iterator iterator
const L1CaloRampData * rampData(unsigned int channelId) const
L1CaloRampDataMap::const_iterator const_iterator
Transient class to store the RampData calculated from calibration runs.