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