ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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
CLASS_DEF.h
macros to associate a CLID to a type
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:67
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
IdentifierHash.h
TgcDigitCollection_vector
DataVector< TgcDigitCollection > TgcDigitCollection_vector
Definition
TgcDigitCollection.h:52
TgcDigit.h
DataVector
Derived DataVector<T>.
Definition
DataVector.h:795
DataVector< TgcDigit >::DataVector
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
TgcDigitCollection
Definition
TgcDigitCollection.h:17
TgcDigitCollection::m_id
Identifier m_id
Definition
TgcDigitCollection.h:44
TgcDigitCollection::identifierHash
IdentifierHash identifierHash() const
Definition
TgcDigitCollection.h:38
TgcDigitCollection::TgcDigitCollection
TgcDigitCollection(Identifier id, IdentifierHash idHash)
Definition
TgcDigitCollection.h:29
TgcDigitCollection::DIGIT
TgcDigit DIGIT
Definition
TgcDigitCollection.h:22
TgcDigitCollection::identify
Identifier identify() const
Definition
TgcDigitCollection.h:33
TgcDigitCollection::TgcDigitCollection
TgcDigitCollection()
Definition
TgcDigitCollection.h:24
TgcDigitCollection::m_idHash
IdentifierHash m_idHash
Definition
TgcDigitCollection.h:45
TgcDigitCollection::ID
Identifier ID
Definition
TgcDigitCollection.h:21
TgcDigit
Definition
TgcDigit.h:21
Identifier
Definition
IdentifierFieldParser.cxx:14
Generated on
for ATLAS Offline Software by
1.17.0