ATLAS Offline Software
MuonSpectrometer
MuonDigitContainer
MuonDigitContainer
CscDigitCollection.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
// CscDigitCollection.h
6
7
#ifndef MUONSPECTROMETER_CSCDIGITCOLLECTION_H
8
#define MUONSPECTROMETER_CSCDIGITCOLLECTION_H
9
10
#include "
MuonDigitContainer/CscDigit.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
CscDigitCollection
:
public
DataVector
<CscDigit>
17
{
18
19
public
:
// functions
20
//typedef
21
typedef
Identifier
ID
;
22
typedef
CscDigit
DIGIT
;
23
// Default constructor.
24
CscDigitCollection
() =
default
;
25
26
// Creates an empty container ready for writing.
27
CscDigitCollection
(
const
Identifier
&
id
,
const
IdentifierHash
& idHash)
28
:
DataVector
<
CscDigit
>(),
m_id
(
id
),
m_idHash
(idHash)
29
{
m_samplingPhase
=
false
; };
30
31
Identifier
identify
()
const
{
return
m_id
; }
32
IdentifierHash
identifierHash
()
const
{
return
m_idHash
; }
33
bool
samplingPhase
()
const
{
return
m_samplingPhase
; }
34
void
set_samplingPhase
() {
m_samplingPhase
=
true
; }
35
private
:
36
Identifier
m_id
{0};
37
IdentifierHash
m_idHash
{0};
38
bool
m_samplingPhase
{
false
};
39
};
40
41
CLASS_DEF
(
CscDigitCollection
, 4198, 1)
42
43
// Class needed only for persistency
44
typedef
DataVector
<
CscDigitCollection
>
CscDigitCollection_vector
;
45
CLASS_DEF
(
CscDigitCollection_vector
, 1282354891 , 1 )
46
47
#endif
CscDigit.h
CscDigitCollection::samplingPhase
bool samplingPhase() const
Definition:
CscDigitCollection.h:33
CscDigitCollection::CscDigitCollection
CscDigitCollection(const Identifier &id, const IdentifierHash &idHash)
Definition:
CscDigitCollection.h:27
CscDigitCollection::set_samplingPhase
void set_samplingPhase()
Definition:
CscDigitCollection.h:34
CscDigitCollection::identify
Identifier identify() const
Definition:
CscDigitCollection.h:31
CscDigit
Definition:
CscDigit.h:17
CscDigitCollection::CscDigitCollection
CscDigitCollection()=default
CscDigitCollection::identifierHash
IdentifierHash identifierHash() const
Definition:
CscDigitCollection.h:32
DataVector
Derived DataVector<T>.
Definition:
DataVector.h:794
CscDigitCollection
Definition:
CscDigitCollection.h:17
CscDigitCollection::m_idHash
IdentifierHash m_idHash
Definition:
CscDigitCollection.h:37
id
SG::auxid_t id
Definition:
Control/AthContainers/Root/debug.cxx:227
IdentifierHash.h
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
CscDigitCollection::ID
Identifier ID
Definition:
CscDigitCollection.h:21
CscDigitCollection::m_id
Identifier m_id
Definition:
CscDigitCollection.h:36
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
CscDigitCollection::DIGIT
CscDigit DIGIT
Definition:
CscDigitCollection.h:22
CscDigitCollection::m_samplingPhase
bool m_samplingPhase
Definition:
CscDigitCollection.h:38
Identifier
Definition:
IdentifierFieldParser.cxx:14
Generated on Fri Jan 10 2025 21:08:45 for ATLAS Offline Software by
1.8.18