ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonDigitContainer
MuonDigitContainer
MmDigitCollection.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
// MmDigitCollection.h
6
7
#ifndef MUONSPECTROMETER_MMDIGITCOLLECTION_H
8
#define MUONSPECTROMETER_MMDIGITCOLLECTION_H
9
10
#include "
MuonDigitContainer/MmDigit.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
MmDigitCollection
:
public
DataVector
<MmDigit>
18
{
19
20
public
:
// functions
21
//typedef
22
typedef
Identifier
ID
;
23
typedef
MmDigit
DIGIT
;
24
// Default constructor.
25
MmDigitCollection
()
26
:
DataVector
<
MmDigit
>() {}
27
28
// Creates an empty container ready for writing.
29
MmDigitCollection
(
Identifier
id
,
IdentifierHash
idHash)
30
:
DataVector
<
MmDigit
>(),
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
{0};
42
IdentifierHash
m_idHash
{0};
43
44
};
45
46
CLASS_DEF
(
MmDigitCollection
, 1166674576, 1)
47
48
// Class needed only for persistency
49
typedef
DataVector
<
MmDigitCollection
>
MmDigitCollection_vector
;
50
CLASS_DEF
(
MmDigitCollection_vector
, 1149160569 , 1 )
51
52
#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
MmDigitCollection_vector
DataVector< MmDigitCollection > MmDigitCollection_vector
Definition
MmDigitCollection.h:49
MmDigit.h
DataVector
Derived DataVector<T>.
Definition
DataVector.h:795
DataVector< MmDigit >::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
MmDigitCollection
Definition
MmDigitCollection.h:18
MmDigitCollection::MmDigitCollection
MmDigitCollection(Identifier id, IdentifierHash idHash)
Definition
MmDigitCollection.h:29
MmDigitCollection::DIGIT
MmDigit DIGIT
Definition
MmDigitCollection.h:23
MmDigitCollection::m_idHash
IdentifierHash m_idHash
Definition
MmDigitCollection.h:42
MmDigitCollection::identify
Identifier identify() const
Definition
MmDigitCollection.h:32
MmDigitCollection::ID
Identifier ID
Definition
MmDigitCollection.h:22
MmDigitCollection::m_id
Identifier m_id
Definition
MmDigitCollection.h:41
MmDigitCollection::MmDigitCollection
MmDigitCollection()
Definition
MmDigitCollection.h:25
MmDigitCollection::identifierHash
IdentifierHash identifierHash() const
Definition
MmDigitCollection.h:36
MmDigit
Definition
MmDigit.h:20
Identifier
Definition
IdentifierFieldParser.cxx:14
Generated on
for ATLAS Offline Software by
1.17.0