ATLAS Offline Software
Loading...
Searching...
No Matches
NswCalibDbThresholdData.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONCONDDATA_NSWCALIBDBTHRESHOLDDATA_H
6#define MUONCONDDATA_NSWCALIBDBTHRESHOLDDATA_H
7
8// STL includes
9#include <vector>
10
11// Athena includes
15
16
18
19 friend class NswCalibDbAlg;
20
21public:
22 enum class ThrsldTechType{
25 };
26
28 virtual ~NswCalibDbThresholdData() = default;
29
30 // setting functions
31 void setData(const Identifier&, const float);
32 void setZero(ThrsldTechType , const float);
33
34 // retrieval functions
35 std::vector<Identifier> getChannelIds(const std::string="", const std::string="") const;
36 bool getThreshold (const Identifier& , float& ) const;
37
38
39private:
40
41 // containers
42 using ChannelMap = std::map<unsigned long long, std::vector<float>>;
43 using ZeroMap = std::map<ThrsldTechType, float>;
46
47 // ID helpers
49};
50
51CLASS_DEF( NswCalibDbThresholdData , 108292495 , 1 )
53
54#endif
Hold mappings of ranges to condition objects.
Provide an interface for finding inheritance information at run time.
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Hold mapping of ranges to condition objects.
Definition CondCont.h:889
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
const Muon::IMuonIdHelperSvc * m_idHelperSvc
std::map< unsigned long long, std::vector< float > > ChannelMap
std::map< ThrsldTechType, float > ZeroMap
std::vector< Identifier > getChannelIds(const std::string="", const std::string="") const
void setData(const Identifier &, const float)
NswCalibDbThresholdData(const Muon::IMuonIdHelperSvc *idHelperSvc)
void setZero(ThrsldTechType, const float)
virtual ~NswCalibDbThresholdData()=default
bool getThreshold(const Identifier &, float &) const