ATLAS Offline Software
MdtCsm.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 MUONRDO_MDTCSM_H
6 #define MUONRDO_MDTCSM_H
7 
8 #include "MuonRDO/MdtAmtHit.h"
10 #include "AthenaKernel/CLASS_DEF.h"
11 #include "Identifier/Identifier.h"
13 
14 #include<stdint.h>
15 
18 class MdtCsm : public DataVector<MdtAmtHit>
19 {
20 
21  private:
22 
28 
29  public:
30  //typedef
31  typedef Identifier ID;
32  typedef MdtAmtHit DIGIT;
33 
34  friend class MdtCsmCnv_p1;
35 
37  MdtCsm();
38 
41  MdtCsm(const Identifier id, const IdentifierHash idHash);
42 
45 
46  virtual ~MdtCsm() { };
47 
49 
51  Identifier identify() const {return m_Id;}
52 
55 
57  uint16_t SubDetId() const {return m_SubDetId;}
59  uint16_t MrodId() const {return m_MrodId;}
61  uint16_t CsmId() const {return m_CsmId;}
62 
63 };
64 
66 MsgStream& operator << ( MsgStream& sl, const MdtCsm& coll);
67 
69 std::ostream& operator << ( std::ostream& sl, const MdtCsm& coll);
70 
71 
72 CLASS_DEF(MdtCsm, 4188, 1)
73 
74 // Class needed only for persistency
76 CLASS_DEF( MDT_CSM_vector, 4180, 1 )
77 
78 #endif // MUONRDO_MDTCSM_H
79 
MdtCsm::m_Id
Identifier m_Id
Definition: MdtCsm.h:23
MdtCsm::CsmId
uint16_t CsmId() const
Returns the CSM online id (online identifier inside a MROD)
Definition: MdtCsm.h:61
MdtAmtHit
MDT RDO's : data from a single channel of an AMT Atlas Muon TDC.
Definition: MdtAmtHit.h:20
MdtCsm::m_SubDetId
uint16_t m_SubDetId
Sub-detector identifier.
Definition: MdtCsm.h:25
MdtCsm::identify
Identifier identify() const
Returns the CSM offline identifier (chamber offline id)
Definition: MdtCsm.h:51
MdtCsm::SubDetId
uint16_t SubDetId() const
Returns the sub-detector Id.
Definition: MdtCsm.h:57
MdtCsm
MDT RDOs : Chamber Service Module, container of AmtHits of a single Mdt chamber.
Definition: MdtCsm.h:19
MdtCsmCnv_p1
Definition: MdtCsmCnv_p1.h:23
MdtCsm::MrodId
uint16_t MrodId() const
Returns the MROD id from the CSM header.
Definition: MdtCsm.h:59
MdtCsm::m_idHash
IdentifierHash m_idHash
Offline idenfifier hash corresponding to this collection.
Definition: MdtCsm.h:24
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
MdtCsm::ID
Identifier ID
Definition: MdtCsm.h:31
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
MdtCsm::m_CsmId
uint16_t m_CsmId
Csm link number.
Definition: MdtCsm.h:27
MdtCsm::m_MrodId
uint16_t m_MrodId
Mrod number.
Definition: MdtCsm.h:26
MdtCsm::~MdtCsm
virtual ~MdtCsm()
Definition: MdtCsm.h:46
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
MdtAmtHit.h
MdtCsm::identifyHash
IdentifierHash identifyHash() const
Returns the CSM offline identifier hash (chamber offline id)
Definition: MdtCsm.h:54
IdentifierHash.h
operator<<
MsgStream & operator<<(MsgStream &sl, const MdtCsm &coll)
Overload of << operator for MsgStream for debug output.
Definition: MdtCsm.cxx:49
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
MdtCsm::DIGIT
MdtAmtHit DIGIT
Definition: MdtCsm.h:32
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:64
MdtCsm::set_values
void set_values(const Identifier id, const IdentifierHash idHash, uint16_t SubDetId, uint16_t MrodId, uint16_t CsmId)
Definition: MdtCsm.cxx:39
IdentifierHash
Definition: IdentifierHash.h:38
CLASS_DEF.h
macros to associate a CLID to a type
MdtCsm::MdtCsm
MdtCsm()
Default constructor.
Definition: MdtCsm.cxx:9