ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonRDO
MuonRDO
RpcPad.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// RpcPad.h
6
7
#ifndef RpcPadH
8
#define RpcPadH
9
10
// M.Grothe, 28/11/02
11
// K. Assamagan 07/12/02
12
13
#include "
MuonRDO/RpcCoinMatrix.h
"
14
#include "
AthContainers/DataVector.h
"
15
#include "
AthenaKernel/CLASS_DEF.h
"
16
#include "Identifier/Identifier.h"
17
#include "
Identifier/IdentifierHash.h
"
18
#include <iosfwd>
19
20
typedef
unsigned
short
int
ubit16
;
21
22
class
RpcPad
:
public
DataVector
<RpcCoinMatrix> {
23
24
public
:
// functions
25
26
//typedef
27
typedef
Identifier
ID
;
28
typedef
RpcCoinMatrix
DIGIT
;
29
30
// Constructors.
31
33
RpcPad
()
34
:
DataVector
<
RpcCoinMatrix
>(),
m_id
(0),
m_idHash
(0),
35
m_onlineId
(0),
m_lvl1Id
(0),
m_bcId
(0),
m_status
(0),
m_errorCode
(0),
m_sector
(0)
36
{
37
// std::cout<<"RpcPad default ctor ["<<this<<"]"<<std::endl;
38
39
}
40
44
45
RpcPad
(
const
Identifier
&
id
,
const
IdentifierHash
& idHash)
46
:
DataVector
<
RpcCoinMatrix
>(),
m_id
(id),
m_idHash
(idHash),
47
m_onlineId
(0),
m_lvl1Id
(0),
m_bcId
(0),
m_status
(0),
m_errorCode
(0),
m_sector
(0)
48
{
49
// std::cout<<"RpcPad ctor 2 ["<<this<<"]"<<std::endl;
50
51
};
52
54
RpcPad
(
const
Identifier
&
id
,
const
IdentifierHash
& idHash,
ubit16
onlineId
,
ubit16
status
,
55
ubit16
errorCode
,
int
sector
)
56
:
DataVector
<
RpcCoinMatrix
>(),
m_id
(id),
m_idHash
(idHash),
m_onlineId
(
onlineId
),
57
m_lvl1Id
(0),
m_bcId
(0),
58
m_status
(
status
),
m_errorCode
(
errorCode
),
m_sector
(
sector
)
59
{
60
// std::cout<<"RpcPadContainer ctor 3 ["<<this<<"]"<<std::endl;
61
62
};
63
65
RpcPad
(
const
Identifier
&
id
,
const
IdentifierHash
& idHash,
ubit16
onlineId
,
66
ubit16
lvl1Id
,
ubit16
bcId
,
ubit16
status
,
67
ubit16
errorCode
,
int
sector
)
68
:
DataVector
<
RpcCoinMatrix
>(),
m_id
(id),
m_idHash
(idHash),
m_onlineId
(
onlineId
),
69
m_lvl1Id
(
lvl1Id
),
m_bcId
(
bcId
),
70
m_status
(
status
),
m_errorCode
(
errorCode
),
m_sector
(
sector
)
71
{
72
// std::cout<<"RpcPadContainer ctor 4 ["<<this<<"]"<<std::endl;
73
74
};
75
78
RpcPad
(
const
Identifier
&
id
,
const
IdentifierHash
& idHash,
ubit16
onlineId
,
79
int
sector
,
ubit16
status
)
80
:
DataVector
<
RpcCoinMatrix
>(),
m_id
(id),
m_idHash
(idHash),
m_onlineId
(
onlineId
),
81
m_lvl1Id
(0),
m_bcId
(0),
82
m_status
(
status
),
m_errorCode
(0),
m_sector
(
sector
)
83
{
84
// std::cout<<"RpcPadContainer ctor 5 ["<<this<<"]"<<std::endl;
85
86
};
87
88
// virtual destructor for persistency
89
virtual
~RpcPad
() {
90
// std::cout<<"RpcPadContainer dtor ["<<this<<"]"<<std::endl;
91
// for( auto it : this->stdcont() ) {
92
// for (auto it2 : it->stdcont() ) {
93
// delete it2;
94
// }
95
// delete it;
96
// }
97
}
98
99
RpcPad
&
operator=
(
RpcPad
&&) =
default
;
100
101
Identifier
identify
()
const
{
return
m_id
; }
102
104
IdentifierHash
identifyHash
()
const
{
return
m_idHash
;}
105
106
ubit16
status
()
const
{
return
m_status
; }
107
ubit16
errorCode
()
const
{
return
m_errorCode
; }
108
ubit16
onlineId
()
const
{
return
m_onlineId
; }
109
110
ubit16
lvl1Id
()
const
{
return
m_lvl1Id
; }
111
ubit16
bcId
()
const
{
return
m_bcId
; }
112
113
int
sector
()
const
{
return
m_sector
; }
114
115
// This method to be used with the second constructor above
116
void
setErrorCode
(
ubit16
errorCode
) {
m_errorCode
=
errorCode
;}
117
void
setOnlineId
(
ubit16
onlineId
) {
m_onlineId
=
onlineId
;}
118
void
setBcId
(
ubit16
bcId
) {
m_bcId
=
bcId
;}
119
void
setLvl1Id
(
ubit16
lvl1Id
) {
m_lvl1Id
=
lvl1Id
;}
120
121
void
setStatus
(
ubit16
status
) {
m_status
=
status
;}
122
void
setSector
(
int
sector
) {
m_sector
=
sector
;}
123
124
private
:
125
friend
class
RpcPadContainerCnv_p1
;
126
friend
class
RpcPadCnv_p1
;
127
128
Identifier
m_id
;
129
IdentifierHash
m_idHash
;
130
ubit16
m_onlineId
;
131
132
ubit16
m_lvl1Id
;
133
ubit16
m_bcId
;
134
135
ubit16
m_status
;
136
ubit16
m_errorCode
;
137
int
m_sector
;
138
139
};
140
142
MsgStream&
operator <<
( MsgStream& sl,
const
RpcPad
& coll);
143
145
std::ostream&
operator <<
( std::ostream& sl,
const
RpcPad
& coll);
146
147
148
CLASS_DEF
(
RpcPad
, 4189, 1)
149
150
// Class needed only for persistency
151
typedef
DataVector
<
RpcPad
>
RPC_PAD_vector
;
152
CLASS_DEF
(
RPC_PAD_vector
, 4181, 1 )
153
154
#endif
155
156
157
158
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
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
IdentifierHash.h
ubit16
unsigned short int ubit16
Definition
RpcByteStreamEncoder.h:20
RpcCoinMatrix.h
RPC_PAD_vector
DataVector< RpcPad > RPC_PAD_vector
Definition
RpcPad.h:151
operator<<
MsgStream & operator<<(MsgStream &sl, const RpcPad &coll)
Overload of << operator for MsgStream for debug output.
Definition
RpcPad.cxx:8
DataVector
Derived DataVector<T>.
Definition
DataVector.h:818
DataVector< RpcCoinMatrix >::DataVector
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
RpcCoinMatrix
Definition
RpcCoinMatrix.h:20
RpcPad
Definition
RpcPad.h:22
RpcPad::onlineId
ubit16 onlineId() const
Definition
RpcPad.h:108
RpcPad::m_onlineId
ubit16 m_onlineId
Definition
RpcPad.h:130
RpcPad::errorCode
ubit16 errorCode() const
Definition
RpcPad.h:107
RpcPad::identify
Identifier identify() const
Definition
RpcPad.h:101
RpcPad::operator=
RpcPad & operator=(RpcPad &&)=default
RpcPad::~RpcPad
virtual ~RpcPad()
Definition
RpcPad.h:89
RpcPad::sector
int sector() const
Definition
RpcPad.h:113
RpcPad::m_bcId
ubit16 m_bcId
Definition
RpcPad.h:133
RpcPad::setLvl1Id
void setLvl1Id(ubit16 lvl1Id)
Definition
RpcPad.h:119
RpcPad::m_sector
int m_sector
Definition
RpcPad.h:137
RpcPad::RpcPadCnv_p1
friend class RpcPadCnv_p1
Definition
RpcPad.h:126
RpcPad::RpcPad
RpcPad(const Identifier &id, const IdentifierHash &idHash, ubit16 onlineId, ubit16 lvl1Id, ubit16 bcId, ubit16 status, ubit16 errorCode, int sector)
full constructor with Lvl1 and Bcid
Definition
RpcPad.h:65
RpcPad::setOnlineId
void setOnlineId(ubit16 onlineId)
Definition
RpcPad.h:117
RpcPad::RpcPad
RpcPad()
Default constructor.
Definition
RpcPad.h:33
RpcPad::setStatus
void setStatus(ubit16 status)
Definition
RpcPad.h:121
RpcPad::ID
Identifier ID
Definition
RpcPad.h:27
RpcPad::setErrorCode
void setErrorCode(ubit16 errorCode)
Definition
RpcPad.h:116
RpcPad::RpcPad
RpcPad(const Identifier &id, const IdentifierHash &idHash, ubit16 onlineId, int sector, ubit16 status)
partial contructor: needed when filling pad from bytestream errorCode not know until one is reading t...
Definition
RpcPad.h:78
RpcPad::m_id
Identifier m_id
Definition
RpcPad.h:128
RpcPad::RpcPad
RpcPad(const Identifier &id, const IdentifierHash &idHash)
Creates an empty container ready for writing.
Definition
RpcPad.h:45
RpcPad::m_errorCode
ubit16 m_errorCode
Definition
RpcPad.h:136
RpcPad::status
ubit16 status() const
Definition
RpcPad.h:106
RpcPad::lvl1Id
ubit16 lvl1Id() const
Definition
RpcPad.h:110
RpcPad::setSector
void setSector(int sector)
Definition
RpcPad.h:122
RpcPad::identifyHash
IdentifierHash identifyHash() const
Returns the OFFLINE identifier hash for this collection.
Definition
RpcPad.h:104
RpcPad::bcId
ubit16 bcId() const
Definition
RpcPad.h:111
RpcPad::setBcId
void setBcId(ubit16 bcId)
Definition
RpcPad.h:118
RpcPad::m_lvl1Id
ubit16 m_lvl1Id
Definition
RpcPad.h:132
RpcPad::m_status
ubit16 m_status
Definition
RpcPad.h:135
RpcPad::m_idHash
IdentifierHash m_idHash
Definition
RpcPad.h:129
RpcPad::RpcPad
RpcPad(const Identifier &id, const IdentifierHash &idHash, ubit16 onlineId, ubit16 status, ubit16 errorCode, int sector)
full constructor
Definition
RpcPad.h:54
RpcPad::RpcPadContainerCnv_p1
friend class RpcPadContainerCnv_p1
Definition
RpcPad.h:125
RpcPad::DIGIT
RpcCoinMatrix DIGIT
Definition
RpcPad.h:28
Identifier
Definition
IdentifierFieldParser.cxx:14
Generated on
for ATLAS Offline Software by
1.17.0