ATLAS Offline Software
RpcCoinMatrix.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 // RpcCoincMatrix.h
6 
7 #ifndef RpcCoinMatrixH
8 #define RpcCoinMatrixH
9 
10 
11 // M.Grothe, 28/11/02
12 // K. Assamagan 06/12/02
13 
16 #include "Identifier/Identifier.h"
17 
18 typedef unsigned short int ubit16;
19 
20 class RpcCoinMatrix : public DataVector<RpcFiredChannel> {
21 
22  private:
23 
29 
30  public:
31  friend class RpcCoinMatrixCnv_p1;
32  // default constructor
35  m_fel1Id(0), m_febcId(0) {
36  //std::cout<<"RpcCoinMatrix ctor 0 ["<<this<<"]"<<std::endl;
37  };
38 
39  // Partial constructor.
44  // std::cout<<"RpcCoinMatrix ctor 1 ["<<this<<"]"<<std::endl;
45  };
46 
47  // Full constructor.
50  ubit16 febcId)
53  // std::cout<<"RpcCoinMatrix ctor 2 ["<<this<<"]"<<std::endl;
54  };
55 
56  // virtual destructor for persistency
57  virtual ~RpcCoinMatrix() {
58  // std::cout<<"RpcCoinMatrix dtor ["<<this<<"]"<<std::endl;
59  }
60 
62 
63  // return the pad Identifier of this CM
64  Identifier identify() const { return m_id;}
65 
66  // return the online identifier
67  ubit16 onlineId() const {return m_onlineId; }
68 
69  ubit16 crc() const {return m_crc; }
70 
71  ubit16 fel1Id() const {return m_fel1Id; }
72 
73  ubit16 febcId() const {return m_febcId; }
74 
75  void setCRC(ubit16 crc) { m_crc = crc;}
76 };
77 
79 MsgStream& operator << ( MsgStream& sl, const RpcCoinMatrix& coll);
80 
82 std::ostream& operator << ( std::ostream& sl, const RpcCoinMatrix& coll);
83 
84 #endif
85 
86 
87 
88 
89 
90 
RpcCoinMatrix::crc
ubit16 crc() const
Definition: RpcCoinMatrix.h:69
operator<<
MsgStream & operator<<(MsgStream &sl, const RpcCoinMatrix &coll)
Overload of << operator for MsgStream for debug output.
Definition: RpcCoinMatrix.cxx:8
RpcCoinMatrix::identify
Identifier identify() const
Definition: RpcCoinMatrix.h:64
RpcCoinMatrix::RpcCoinMatrix
RpcCoinMatrix(const Identifier &id, ubit16 onlineId, ubit16 crc, ubit16 fel1Id, ubit16 febcId)
Definition: RpcCoinMatrix.h:48
RpcFiredChannel.h
RpcCoinMatrix::~RpcCoinMatrix
virtual ~RpcCoinMatrix()
Definition: RpcCoinMatrix.h:57
RpcCoinMatrix
Definition: RpcCoinMatrix.h:20
RpcFiredChannel
Definition: RpcFiredChannel.h:20
RpcCoinMatrix::RpcCoinMatrix
RpcCoinMatrix(const Identifier &id, ubit16 onlineId, ubit16 fel1Id, ubit16 febcId)
Definition: RpcCoinMatrix.h:40
RpcCoinMatrix::RpcCoinMatrix
RpcCoinMatrix()
Definition: RpcCoinMatrix.h:33
RpcCoinMatrix::m_fel1Id
ubit16 m_fel1Id
Definition: RpcCoinMatrix.h:27
RpcCoinMatrix::m_id
Identifier m_id
Definition: RpcCoinMatrix.h:24
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
RpcCoinMatrix::onlineId
ubit16 onlineId() const
Definition: RpcCoinMatrix.h:67
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
RpcCoinMatrix::setCRC
void setCRC(ubit16 crc)
Definition: RpcCoinMatrix.h:75
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:191
RpcCoinMatrix::m_febcId
ubit16 m_febcId
Definition: RpcCoinMatrix.h:28
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
RpcCoinMatrix::fel1Id
ubit16 fel1Id() const
Definition: RpcCoinMatrix.h:71
RpcCoinMatrix::operator=
RpcCoinMatrix & operator=(RpcCoinMatrix &&)=default
RpcCoinMatrix::m_onlineId
ubit16 m_onlineId
Definition: RpcCoinMatrix.h:25
RpcCoinMatrix::febcId
ubit16 febcId() const
Definition: RpcCoinMatrix.h:73
ubit16
unsigned short int ubit16
Definition: RpcByteStreamEncoder.h:20
RpcCoinMatrixCnv_p1
Definition: RpcCoinMatrixCnv_p1.h:25
RpcCoinMatrix::m_crc
ubit16 m_crc
Definition: RpcCoinMatrix.h:26
ubit16
unsigned short int ubit16
Definition: RpcCoinMatrix.h:18