ATLAS Offline Software
Loading...
Searching...
No Matches
LArFebConfig.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 LARRECCONDITIONS_LARFEBCONFIG_H
6#define LARRECCONDITIONS_LARFEBCONFIG_H
7
10#include "CoralBase/AttributeList.h"
12#include <unordered_map>
13
14class LArOnlineID;
15
17 public:
18 LArFebConfig()=delete;
19 LArFebConfig(const LArOnlineID* onlineId); // we do not own this pointer
20
21 void add (HWIdentifier febid,
22 const coral::AttributeList* attrList);
23
24 short lowerGainThreshold(const HWIdentifier& id) const;
25 short upperGainThreshold(const HWIdentifier& id) const;
26 void thresholds (const HWIdentifier& chid, short& lower, short& upper) const;
27
28
29 private:
31
32 std::unordered_map<HWIdentifier::value_type,const coral::AttributeList*> m_attrPerFeb;
33
34 const coral::AttributeList* getAttrList (const HWIdentifier& chid,
35 int& channel) const;
36 short
37 getThresholdFromAttrList(const std::string& MedLow,
38 const coral::AttributeList* attrList,
39 const std::string& chanstr) const;
40 short getThreshold(const std::string& MedLow, const HWIdentifier& chid) const;
41
42 static const std::string s_lower;
43 static const std::string s_upper;
44
46
47};
48
49inline short LArFebConfig::lowerGainThreshold(const HWIdentifier& chid) const {
50 return getThreshold(s_lower, chid);
51}
52
53
54inline short LArFebConfig::upperGainThreshold(const HWIdentifier& chid) const {
55 return getThreshold(s_upper,chid);
56}
57
58
60CLASS_DEF( LArFebConfig, 155518838 , 1)
61#include "AthenaKernel/CondCont.h"
62CLASS_DEF( CondCont<LArFebConfig>, 148539538 , 1)
63
64#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
int upper(int c)
Defines a common ERRORCODE enum for LAr-Calibration objects.
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
Hold mapping of ranges to condition objects.
Definition CondCont.h:889
std::unordered_map< HWIdentifier::value_type, const coral::AttributeList * > m_attrPerFeb
void add(HWIdentifier febid, const coral::AttributeList *attrList)
short getThreshold(const std::string &MedLow, const HWIdentifier &chid) const
void thresholds(const HWIdentifier &chid, short &lower, short &upper) const
const LArOnlineID * m_onlineID
static const std::string s_upper
static const std::string s_lower
short lowerGainThreshold(const HWIdentifier &id) const
const coral::AttributeList * getAttrList(const HWIdentifier &chid, int &channel) const
short upperGainThreshold(const HWIdentifier &id) const
short getThresholdFromAttrList(const std::string &MedLow, const coral::AttributeList *attrList, const std::string &chanstr) const
LArFebConfig()=delete