ATLAS Offline Software
Loading...
Searching...
No Matches
BunchLumisCondData.cxx
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration.
3 */
10
11
13
14
21const std::vector<float>&
22BunchLumisCondData::rawLuminosity (unsigned int channel) const
23{
24 auto it = m_rawLumi.find (channel);
25 if (it != m_rawLumi.end()) {
26 return it->second;
27 }
28 static const std::vector<float> dum;
29 return dum;
30}
31
32
38void BunchLumisCondData::addChannel (unsigned int channel,
39 std::vector<float>&& rawLumi)
40{
41 m_rawLumi[channel] = std::move (rawLumi);
42}
43
Holds raw luminosity data, per channel.
const std::vector< float > & rawLuminosity(unsigned int channel) const
Return vector of per-BCID raw luminosity for a given channel.
void addChannel(unsigned int channel, std::vector< float > &&rawLumi)
Add raw luminisity data for a channel.
std::unordered_map< unsigned int, std::vector< float > > m_rawLumi
Raw luminosity, per channel.