ATLAS Offline Software
MuonSpectrometer
MuonDigitContainer
MuonDigitContainer
MdtDigitCollection.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// MdtDigitCollection.h
6
7
#ifndef MUONSPECTROMETER_MDTDIGITCOLLECTION_H
8
#define MUONSPECTROMETER_MDTDIGITCOLLECTION_H
9
10
#include "
MuonDigitContainer/MdtDigit.h
"
11
#include "Identifier/Identifier.h"
12
#include "
Identifier/IdentifierHash.h
"
13
14
#include "
AthContainers/DataVector.h
"
15
#include "
AthenaKernel/CLASS_DEF.h
"
16
17
class
MdtDigitCollection
:
public
DataVector
<MdtDigit>
18
{
19
20
public
:
// functions
21
//typedef
22
typedef
Identifier
ID
;
23
typedef
MdtDigit
DIGIT
;
24
// Default constructor.
25
MdtDigitCollection
()
26
:
DataVector
<
MdtDigit
>() { }
27
28
// Creates an empty container ready for writing.
29
MdtDigitCollection
(
Identifier
id
,
IdentifierHash
idHash)
30
:
DataVector
<
MdtDigit
>(),
m_id
(
id
),
m_idHash
(idHash) {}
31
32
Identifier
identify
()
const
{
33
return
m_id
;
34
}
35
36
IdentifierHash
identifierHash
()
const
{
37
return
m_idHash
;
38
}
39
40
private
:
41
Identifier
m_id
;
42
IdentifierHash
m_idHash
;
43
44
};
45
46
CLASS_DEF
(
MdtDigitCollection
, 4195, 1)
47
48
// Class needed only for persistency
49
typedef
DataVector
<
MdtDigitCollection
>
MdtDigitCollection_vector
;
50
CLASS_DEF
(
MdtDigitCollection_vector
, 1163423195 , 1 )
51
52
#endif
MdtDigitCollection::identify
Identifier identify() const
Definition:
MdtDigitCollection.h:32
MdtDigit
Definition:
MdtDigit.h:19
MdtDigit.h
MdtDigitCollection::DIGIT
MdtDigit DIGIT
Definition:
MdtDigitCollection.h:23
MdtDigitCollection::m_idHash
IdentifierHash m_idHash
Definition:
MdtDigitCollection.h:42
MdtDigitCollection::ID
Identifier ID
Definition:
MdtDigitCollection.h:22
MdtDigitCollection::MdtDigitCollection
MdtDigitCollection()
Definition:
MdtDigitCollection.h:25
MdtDigitCollection::identifierHash
IdentifierHash identifierHash() const
Definition:
MdtDigitCollection.h:36
MdtDigitCollection::MdtDigitCollection
MdtDigitCollection(Identifier id, IdentifierHash idHash)
Definition:
MdtDigitCollection.h:29
DataVector
Derived DataVector<T>.
Definition:
DataVector.h:581
id
SG::auxid_t id
Definition:
Control/AthContainers/Root/debug.cxx:220
MdtDigitCollection
Definition:
MdtDigitCollection.h:18
IdentifierHash.h
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
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
MdtDigitCollection::m_id
Identifier m_id
Definition:
MdtDigitCollection.h:41
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition:
IdentifierHash.h:25
CLASS_DEF.h
macros to associate a CLID to a type
Identifier
Definition:
IdentifierFieldParser.cxx:14
Generated on Thu Nov 7 2024 21:20:39 for ATLAS Offline Software by
1.8.18