ATLAS Offline Software
Loading...
Searching...
No Matches
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
16#include "Identifier/Identifier.h"
18#include <iosfwd>
19
20typedef unsigned short int ubit16;
21
22class RpcPad : public DataVector<RpcCoinMatrix> {
23
24public: // functions
25
26 //typedef
27 typedef Identifier ID;
29
30 // Constructors.
31
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),
48 {
49 // std::cout<<"RpcPad ctor 2 ["<<this<<"]"<<std::endl;
50
51 };
52
57 m_lvl1Id(0), m_bcId(0),
59 {
60 // std::cout<<"RpcPadContainer ctor 3 ["<<this<<"]"<<std::endl;
61
62 };
63
65 RpcPad(const Identifier& id, const IdentifierHash& idHash, ubit16 onlineId,
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)
81 m_lvl1Id(0), m_bcId(0),
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
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
120
123
124private:
126 friend class RpcPadCnv_p1;
127
131
134
138
139};
140
142MsgStream& operator << ( MsgStream& sl, const RpcPad& coll);
143
145std::ostream& operator << ( std::ostream& sl, const RpcPad& coll);
146
147
148CLASS_DEF(RpcPad, 4189, 1)
149
150// Class needed only for persistency
152CLASS_DEF( RPC_PAD_vector, 4181, 1 )
153
154#endif
155
156
157
158
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
An STL vector of pointers that by default owns its pointed-to elements.
unsigned short int ubit16
DataVector< RpcPad > RPC_PAD_vector
Definition RpcPad.h:151
MsgStream & operator<<(MsgStream &sl, const RpcPad &coll)
Overload of << operator for MsgStream for debug output.
Definition RpcPad.cxx:8
Derived DataVector<T>.
Definition DataVector.h:818
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
This is a "hash" representation of an Identifier.
ubit16 onlineId() const
Definition RpcPad.h:108
ubit16 m_onlineId
Definition RpcPad.h:130
ubit16 errorCode() const
Definition RpcPad.h:107
Identifier identify() const
Definition RpcPad.h:101
RpcPad & operator=(RpcPad &&)=default
virtual ~RpcPad()
Definition RpcPad.h:89
int sector() const
Definition RpcPad.h:113
ubit16 m_bcId
Definition RpcPad.h:133
void setLvl1Id(ubit16 lvl1Id)
Definition RpcPad.h:119
int m_sector
Definition RpcPad.h:137
friend class RpcPadCnv_p1
Definition RpcPad.h:126
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
void setOnlineId(ubit16 onlineId)
Definition RpcPad.h:117
RpcPad()
Default constructor.
Definition RpcPad.h:33
void setStatus(ubit16 status)
Definition RpcPad.h:121
Identifier ID
Definition RpcPad.h:27
void setErrorCode(ubit16 errorCode)
Definition RpcPad.h:116
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
Identifier m_id
Definition RpcPad.h:128
RpcPad(const Identifier &id, const IdentifierHash &idHash)
Creates an empty container ready for writing.
Definition RpcPad.h:45
ubit16 m_errorCode
Definition RpcPad.h:136
ubit16 status() const
Definition RpcPad.h:106
ubit16 lvl1Id() const
Definition RpcPad.h:110
void setSector(int sector)
Definition RpcPad.h:122
IdentifierHash identifyHash() const
Returns the OFFLINE identifier hash for this collection.
Definition RpcPad.h:104
ubit16 bcId() const
Definition RpcPad.h:111
void setBcId(ubit16 bcId)
Definition RpcPad.h:118
ubit16 m_lvl1Id
Definition RpcPad.h:132
ubit16 m_status
Definition RpcPad.h:135
IdentifierHash m_idHash
Definition RpcPad.h:129
RpcPad(const Identifier &id, const IdentifierHash &idHash, ubit16 onlineId, ubit16 status, ubit16 errorCode, int sector)
full constructor
Definition RpcPad.h:54
friend class RpcPadContainerCnv_p1
Definition RpcPad.h:125
RpcCoinMatrix DIGIT
Definition RpcPad.h:28