ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArRecConditions
LArRecConditions
LArFebRodMapping.h
Go to the documentation of this file.
1
//Dear emacs, this is -*-c++-*-
2
3
/*
4
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
#ifndef LARRECCONDITIONS_LARFEBRODMAPPING_H
8
#define LARRECCONDITIONS_LARFEBRODMAPPING_H
9
10
#include "
Identifier/HWIdentifier.h
"
11
#include "Identifier/Identifier.h"
12
#include "
Identifier/IdentifierHash.h
"
13
#include <vector>
14
15
class
LArOnlineID
;
16
17
class
LArFebRodMapping
{
18
19
friend
class
LArFebRodMappingAlg
;
//The conditions alg filling this object
20
21
public
:
22
LArFebRodMapping
()=
delete
;
23
LArFebRodMapping
(
const
LArOnlineID
* onlineId);
24
25
HWIdentifier
getReadoutModuleID
(
const
HWIdentifier
&
id
)
const
;
26
HWIdentifier
getReadoutModuleIDFromHash
(
const
IdentifierHash
h
)
const
;
27
31
const
std::vector<HWIdentifier>&
getLArRoModIDvec
()
const
;
32
33
private
:
34
const
LArOnlineID
*
m_onlineId
;
35
const
uint32_t*
m_pFebHashtoROD
;
36
std::vector<HWIdentifier>
m_readoutModuleIDVec
;
37
38
};
39
40
41
//Inline methods:
42
inline
HWIdentifier
LArFebRodMapping::getReadoutModuleIDFromHash
(
const
IdentifierHash
h
)
const
{
43
return
HWIdentifier
(
m_pFebHashtoROD
[
h
]);
44
}
45
46
inline
const
std::vector<HWIdentifier>&
LArFebRodMapping::getLArRoModIDvec
()
const
{
47
return
m_readoutModuleIDVec
;
48
}
49
50
#include "
AthenaKernel/CLASS_DEF.h
"
51
CLASS_DEF
(
LArFebRodMapping
, 204177791 , 1)
52
#include "AthenaKernel/CondCont.h"
53
CLASS_DEF
(
CondCont<LArFebRodMapping>
, 244452853 , 1)
54
55
#endif
CLASS_DEF.h
macros to associate a CLID to a type
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:67
HWIdentifier.h
IdentifierHash.h
h
Header file for AthHistogramAlgorithm.
CondCont
Hold mapping of ranges to condition objects.
Definition
CondCont.h:889
HWIdentifier
Definition
HWIdentifier.h:13
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
LArFebRodMapping
Definition
LArFebRodMapping.h:17
LArFebRodMapping::getLArRoModIDvec
const std::vector< HWIdentifier > & getLArRoModIDvec() const
"iterator" on LArReadoutModuleIDs
Definition
LArFebRodMapping.h:46
LArFebRodMapping::m_readoutModuleIDVec
std::vector< HWIdentifier > m_readoutModuleIDVec
Definition
LArFebRodMapping.h:36
LArFebRodMapping::getReadoutModuleID
HWIdentifier getReadoutModuleID(const HWIdentifier &id) const
Definition
LArFebRodMapping.cxx:15
LArFebRodMapping::LArFebRodMappingAlg
friend class LArFebRodMappingAlg
Definition
LArFebRodMapping.h:19
LArFebRodMapping::m_onlineId
const LArOnlineID * m_onlineId
Definition
LArFebRodMapping.h:34
LArFebRodMapping::LArFebRodMapping
LArFebRodMapping()=delete
LArFebRodMapping::getReadoutModuleIDFromHash
HWIdentifier getReadoutModuleIDFromHash(const IdentifierHash h) const
Definition
LArFebRodMapping.h:42
LArFebRodMapping::m_pFebHashtoROD
const uint32_t * m_pFebHashtoROD
Definition
LArFebRodMapping.h:35
LArOnlineID
Definition
LArOnlineID.h:21
Generated on
for ATLAS Offline Software by
1.17.0