ATLAS Offline Software
BunchLumisCondData.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 /*
3  * Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration.
4  */
13 #ifndef COOLLUMIUTILITIES_BUNCHLUMISCONDDATA_H
14 #define COOLLUMIUTILITIES_BUNCHLUMISCONDDATA_H
15 
16 
17 #include "AthenaKernel/CondCont.h"
18 #include "AthenaKernel/CLASS_DEF.h"
19 #include <vector>
20 #include <unordered_map>
21 
22 
27 {
28 public:
35  const std::vector<float>& rawLuminosity (unsigned int channel) const;
36 
37 
43  void addChannel (unsigned int channel, std::vector<float>&& rawLumi);
44 
45 
46 private:
48  std::unordered_map<unsigned int, std::vector<float> > m_rawLumi;
49 };
50 
51 
52 CLASS_DEF (BunchLumisCondData, 140920238, 0)
54 
55 
56 #endif // not COOLLUMIUTILITIES_BUNCHLUMISCONDDATA_H
CONDCONT_DEF
CONDCONT_DEF(BunchLumisCondData, 134532794)
CondCont.h
Hold mappings of ranges to condition objects.
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
BunchLumisCondData
Holds raw luminosity data, per channel.
Definition: BunchLumisCondData.h:27
BunchLumisCondData::rawLuminosity
const std::vector< float > & rawLuminosity(unsigned int channel) const
Return vector of per-BCID raw luminosity for a given channel.
Definition: BunchLumisCondData.cxx:22
BunchLumisCondData::m_rawLumi
std::unordered_map< unsigned int, std::vector< float > > m_rawLumi
Raw luminosity, per channel.
Definition: BunchLumisCondData.h:48
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
BunchLumisCondData::addChannel
void addChannel(unsigned int channel, std::vector< float > &&rawLumi)
Add raw luminisity data for a channel.
Definition: BunchLumisCondData.cxx:38
CLASS_DEF.h
macros to associate a CLID to a type