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