ATLAS Offline Software
Loading...
Searching...
No Matches
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"
11#include "Identifier/Identifier.h"
13
14#include<stdint.h>
15
18class MdtCsm : public DataVector<MdtAmtHit>
19{
20
21 private:
22
25 uint16_t m_SubDetId;
26 uint16_t m_MrodId;
27 uint16_t m_CsmId;
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
44 MdtCsm(const Identifier id, const IdentifierHash idHash, uint16_t SubDetId, uint16_t MrodId, uint16_t CsmId);
45
46 virtual ~MdtCsm() { };
47
48 void set_values(const Identifier id, const IdentifierHash idHash, uint16_t SubDetId, uint16_t MrodId, uint16_t CsmId);
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
66MsgStream& operator << ( MsgStream& sl, const MdtCsm& coll);
67
69std::ostream& operator << ( std::ostream& sl, const MdtCsm& coll);
70
71
72CLASS_DEF(MdtCsm, 4188, 1)
73
74// Class needed only for persistency
76CLASS_DEF( MDT_CSM_vector, 4180, 1 )
77
78#endif // MUONRDO_MDTCSM_H
79
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.
MsgStream & operator<<(MsgStream &sl, const MdtCsm &coll)
Overload of << operator for MsgStream for debug output.
Definition MdtCsm.cxx:49
DataVector< MdtCsm > MDT_CSM_vector
Definition MdtCsm.h:75
Derived DataVector<T>.
Definition DataVector.h:795
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
This is a "hash" representation of an Identifier.
MDT RDO's : data from a single channel of an AMT Atlas Muon TDC.
Definition MdtAmtHit.h:20
MDT RDOs : Chamber Service Module, container of AmtHits of a single Mdt chamber.
Definition MdtCsm.h:19
uint16_t m_MrodId
Mrod number.
Definition MdtCsm.h:26
MdtAmtHit DIGIT
Definition MdtCsm.h:32
uint16_t CsmId() const
Returns the CSM online id (online identifier inside a MROD)
Definition MdtCsm.h:61
IdentifierHash identifyHash() const
Returns the CSM offline identifier hash (chamber offline id)
Definition MdtCsm.h:54
uint16_t MrodId() const
Returns the MROD id from the CSM header.
Definition MdtCsm.h:59
friend class MdtCsmCnv_p1
Definition MdtCsm.h:34
Identifier m_Id
Definition MdtCsm.h:23
uint16_t m_SubDetId
Sub-detector identifier.
Definition MdtCsm.h:25
void set_values(const Identifier id, const IdentifierHash idHash, uint16_t SubDetId, uint16_t MrodId, uint16_t CsmId)
Definition MdtCsm.cxx:39
Identifier identify() const
Returns the CSM offline identifier (chamber offline id)
Definition MdtCsm.h:51
uint16_t m_CsmId
Csm link number.
Definition MdtCsm.h:27
uint16_t SubDetId() const
Returns the sub-detector Id.
Definition MdtCsm.h:57
Identifier ID
Definition MdtCsm.h:31
virtual ~MdtCsm()
Definition MdtCsm.h:46
MdtCsm()
Default constructor.
Definition MdtCsm.cxx:9
IdentifierHash m_idHash
Offline idenfifier hash corresponding to this collection.
Definition MdtCsm.h:24