ATLAS Offline Software
MuonSpectrometer
MuonDigitContainer
MuonDigitContainer
TgcDigitCollection.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
// TgcDigitCollection.h
6
7
#ifndef MUONSPECTROMETER_TGCDIGITCOLLECTION_H
8
#define MUONSPECTROMETER_TGCDIGITCOLLECTION_H
9
10
#include "
MuonDigitContainer/TgcDigit.h
"
11
#include "Identifier/Identifier.h"
12
#include "
Identifier/IdentifierHash.h
"
13
#include "
AthContainers/DataVector.h
"
14
#include "
AthenaKernel/CLASS_DEF.h
"
15
16
class
TgcDigitCollection
:
public
DataVector
<TgcDigit>
17
{
18
19
public
:
// functions
20
//typedef
21
typedef
Identifier
ID
;
22
typedef
TgcDigit
DIGIT
;
23
// Default constructor.
24
TgcDigitCollection
()
25
:
DataVector
<
TgcDigit
>(),
m_id
(0),
m_idHash
(0)
26
{ };
27
28
// Creates an empty container ready for writing.
29
TgcDigitCollection
(
Identifier
id
,
IdentifierHash
idHash)
30
:
DataVector
<
TgcDigit
>(),
m_id
(
id
),
m_idHash
(idHash)
31
{ };
32
33
Identifier
identify
()
const
34
{
35
return
m_id
;
36
}
37
38
IdentifierHash
identifierHash
()
const
39
{
40
return
m_idHash
;
41
}
42
43
private
:
44
Identifier
m_id
;
45
IdentifierHash
m_idHash
;
46
47
};
48
49
CLASS_DEF
(
TgcDigitCollection
, 4197, 1)
50
51
// Class needed only for persistency
52
typedef
DataVector
<
TgcDigitCollection
>
TgcDigitCollection_vector
;
53
CLASS_DEF
(
TgcDigitCollection_vector
, 1095153488 , 1 )
54
55
#endif
TgcDigitCollection::m_idHash
IdentifierHash m_idHash
Definition:
TgcDigitCollection.h:45
TgcDigitCollection::TgcDigitCollection
TgcDigitCollection(Identifier id, IdentifierHash idHash)
Definition:
TgcDigitCollection.h:29
TgcDigitCollection::identifierHash
IdentifierHash identifierHash() const
Definition:
TgcDigitCollection.h:38
TgcDigitCollection::TgcDigitCollection
TgcDigitCollection()
Definition:
TgcDigitCollection.h:24
TgcDigitCollection::ID
Identifier ID
Definition:
TgcDigitCollection.h:21
TgcDigitCollection
Definition:
TgcDigitCollection.h:17
TgcDigit.h
DataVector
Derived DataVector<T>.
Definition:
DataVector.h:581
TgcDigitCollection::m_id
Identifier m_id
Definition:
TgcDigitCollection.h:44
TgcDigit
Definition:
TgcDigit.h:21
id
SG::auxid_t id
Definition:
Control/AthContainers/Root/debug.cxx:220
IdentifierHash.h
TgcDigitCollection::identify
Identifier identify() const
Definition:
TgcDigitCollection.h:33
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
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
TgcDigitCollection::DIGIT
TgcDigit DIGIT
Definition:
TgcDigitCollection.h:22
CLASS_DEF.h
macros to associate a CLID to a type
Identifier
Definition:
IdentifierFieldParser.cxx:14
Generated on Thu Nov 7 2024 21:27:39 for ATLAS Offline Software by
1.8.18