ATLAS Offline Software
TileCalorimeter
TileIdentifier
TileIdentifier
TileRodIdHash.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TILERECEVENT_TILERODIDHASH_H
6
#define TILERECEVENT_TILERODIDHASH_H
7
8
9
#include <vector>
10
#include <map>
11
19
class
TileRodIdHash
{
20
21
public
:
22
23
typedef
int
ID
;
24
TileRodIdHash
();
25
virtual
~TileRodIdHash
() { };
26
28
void
initialize
(
int
offset
,
int
runnum
);
29
31
void
initialize
(
int
offset
,
const
std::vector<ID>& rmod );
32
34
int
operator()
(
const
ID
&
id
)
const
;
35
37
int
max
()
const
;
38
40
ID
identifier
(
int
i
)
const
;
41
43
int
offset
()
const
;
44
45
private
:
47
int
m_size
;
// total number of IDs
48
51
std::map<unsigned int, int>
m_lookup
;
52
54
std::vector<ID>
m_int2id
;
55
56
int
m_offset
;
57
58
};
59
60
#endif
61
python.utils.AtlRunQueryDQUtils.runnum
runnum
Definition:
AtlRunQueryDQUtils.py:214
TileRodIdHash::TileRodIdHash
TileRodIdHash()
Definition:
TileRodIdHash.cxx:15
TileRodIdHash::operator()
int operator()(const ID &id) const
Convert ID to int.
Definition:
TileRodIdHash.cxx:118
TileRodIdHash::m_lookup
std::map< unsigned int, int > m_lookup
test beam flag
Definition:
TileRodIdHash.h:51
ID
std::vector< Identifier > ID
Definition:
CalibHitIDCheck.h:24
TileRodIdHash::offset
int offset() const
return offset
Definition:
TileRodIdHash.cxx:135
TileRodIdHash::initialize
void initialize(int offset, int runnum)
initialize
Definition:
TileRodIdHash.cxx:23
TileRodIdHash::m_offset
int m_offset
Definition:
TileRodIdHash.h:56
TileRodIdHash::ID
int ID
Definition:
TileRodIdHash.h:23
lumiFormat.i
int i
Definition:
lumiFormat.py:85
TileRodIdHash::m_int2id
std::vector< ID > m_int2id
reverse look up
Definition:
TileRodIdHash.h:54
TileRodIdHash::m_size
int m_size
total number of IDs
Definition:
TileRodIdHash.h:47
TileRodIdHash::max
int max() const
return maximum number of IDs
Definition:
TileRodIdHash.cxx:129
TileRodIdHash
Table to convert ROB ID to fragment hash.
Definition:
TileRodIdHash.h:19
TileRodIdHash::identifier
ID identifier(int i) const
reverse conversion
Definition:
TileRodIdHash.cxx:112
TileRodIdHash::~TileRodIdHash
virtual ~TileRodIdHash()
Definition:
TileRodIdHash.h:25
Generated on Fri Jan 10 2025 21:19:23 for ATLAS Offline Software by
1.8.18