ATLAS Offline Software
ForwardDetectors
ALFA
ALFA_RawEv
src
ALFA_RawDataCollection.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
ALFA_RawEv/ALFA_RawDataCollection.h
"
6
//#include "GaudiKernel/MsgStream.h"
7
8
// Default constructor
9
ALFA_RawDataCollection::ALFA_RawDataCollection
() :
10
DataVector
<
ALFA_RawData
>(),
11
m_MBId_POT(0),
12
m_MrodId_POT(0),
13
m_EventCount_POT(0),
14
m_POT_DATA(),
15
m_patternId(),
16
m_scalerId(0),
17
m_ADC1Id(0),
18
m_ADC2Id(0),
19
m_TrigSyncErrId(0)
20
{ }
21
22
// Full constructor
23
ALFA_RawDataCollection::ALFA_RawDataCollection
(
uint16_t
MB_number) :
24
DataVector
<
ALFA_RawData
>(),
25
m_MBId_POT(MB_number),
26
m_MrodId_POT(0),
27
m_EventCount_POT(0),
28
m_POT_DATA(),
29
m_patternId(),
30
m_scalerId(0),
31
m_ADC1Id(0),
32
m_ADC2Id(0),
33
m_TrigSyncErrId(0)
34
{ }
35
36
// Full constructor
37
ALFA_RawDataCollection::ALFA_RawDataCollection
(
uint16_t
Mrod_number,
uint16_t
MB_number) :
38
DataVector
<
ALFA_RawData
>(),
39
m_MBId_POT(MB_number),
40
m_MrodId_POT(Mrod_number),
41
m_EventCount_POT(0),
42
m_POT_DATA(),
43
m_patternId(),
44
m_scalerId(0),
45
m_ADC1Id(0),
46
m_ADC2Id(0),
47
m_TrigSyncErrId(0)
48
{ }
49
50
51
52
void
ALFA_RawDataCollection::SetMBId_POT
(
uint16_t
MB_number)
53
{
54
m_MBId_POT
=MB_number;
55
}
56
57
58
void
ALFA_RawDataCollection::SetMrodId_POT
(
uint16_t
Mrod_number)
59
{
60
m_MrodId_POT
=Mrod_number;
61
}
62
63
64
void
ALFA_RawDataCollection::SetEventCount_POT
(
uint32_t
Event_number)
65
{
66
m_EventCount_POT
=Event_number;
67
}
68
69
void
ALFA_RawDataCollection::Set_pattern_POT
(
const
std::vector<bool>& pattern_number)
70
{
71
m_patternId
=pattern_number;
72
}
73
74
void
ALFA_RawDataCollection::Set_scaler_POT
(
uint16_t
scaler_number)
75
{
76
m_scalerId
=scaler_number;
77
}
78
79
void
ALFA_RawDataCollection::Set_ADC1_POT
(
uint16_t
ADC1_number)
80
{
81
m_ADC1Id
=ADC1_number;
82
}
83
84
void
ALFA_RawDataCollection::Set_ADC2_POT
(
uint16_t
ADC2_number)
85
{
86
m_ADC2Id
=ADC2_number;
87
}
88
89
void
ALFA_RawDataCollection::SetTrigSyncErr
(
bool
bit)
90
{
91
m_TrigSyncErrId
=bit;
92
}
93
94
void
ALFA_RawDataCollection::PushBack_POT
(
const
ALFA_RawData
& PMF_HIT)
95
{
96
m_POT_DATA
.push_back(PMF_HIT);
97
}
98
99
100
void
ALFA_RawDataCollection::SetZero_POT
()
101
{
102
103
m_MBId_POT
= 0;
// MB number
104
105
m_MrodId_POT
= 0;
// Mrodnumber
106
107
m_EventCount_POT
=0;
108
109
m_patternId
.clear();
110
m_scalerId
=0;
111
m_ADC1Id
=0;
112
m_ADC2Id
=0;
113
m_TrigSyncErrId
=
false
;
114
115
m_POT_DATA
.clear();
116
}
117
ALFA_RawDataCollection::m_EventCount_POT
uint32_t m_EventCount_POT
Definition:
ALFA_RawDataCollection.h:28
ALFA_RawDataCollection::Set_ADC2_POT
void Set_ADC2_POT(uint16_t ADC2_number)
Definition:
ALFA_RawDataCollection.cxx:84
xAOD::uint32_t
setEventNumber uint32_t
Definition:
EventInfo_v1.cxx:127
ALFA_RawDataCollection::m_POT_DATA
std::vector< ALFA_RawData > m_POT_DATA
Definition:
ALFA_RawDataCollection.h:30
ALFA_RawDataCollection::m_patternId
std::vector< bool > m_patternId
Definition:
ALFA_RawDataCollection.h:33
ALFA_RawDataCollection::m_scalerId
uint16_t m_scalerId
Definition:
ALFA_RawDataCollection.h:35
ALFA_RawDataCollection::Set_ADC1_POT
void Set_ADC1_POT(uint16_t ADC1_number)
Definition:
ALFA_RawDataCollection.cxx:79
ALFA_RawDataCollection::ALFA_RawDataCollection
ALFA_RawDataCollection()
Default constructor.
Definition:
ALFA_RawDataCollection.cxx:9
ALFA_RawDataCollection::m_TrigSyncErrId
bool m_TrigSyncErrId
Definition:
ALFA_RawDataCollection.h:41
ALFA_RawDataCollection::SetTrigSyncErr
void SetTrigSyncErr(bool bit)
Definition:
ALFA_RawDataCollection.cxx:89
ALFA_RawDataCollection::Set_scaler_POT
void Set_scaler_POT(uint16_t scaler_number)
Definition:
ALFA_RawDataCollection.cxx:74
ALFA_RawData
Definition:
ALFA_RawData.h:21
ALFA_RawDataCollection::m_ADC1Id
uint16_t m_ADC1Id
Definition:
ALFA_RawDataCollection.h:37
xAOD::uint16_t
setWord1 uint16_t
Definition:
eFexEMRoI_v1.cxx:93
ALFA_RawDataCollection::SetMBId_POT
void SetMBId_POT(uint16_t MB_number)
Definition:
ALFA_RawDataCollection.cxx:52
ALFA_RawDataCollection::PushBack_POT
void PushBack_POT(const ALFA_RawData &PMF_HIT)
Definition:
ALFA_RawDataCollection.cxx:94
ALFA_RawDataCollection::m_MrodId_POT
uint16_t m_MrodId_POT
Definition:
ALFA_RawDataCollection.h:26
DataVector
Derived DataVector<T>.
Definition:
DataVector.h:794
ALFA_RawDataCollection::SetEventCount_POT
void SetEventCount_POT(uint32_t Event_number)
Definition:
ALFA_RawDataCollection.cxx:64
ALFA_RawDataCollection::Set_pattern_POT
void Set_pattern_POT(const std::vector< bool > &pattern_number)
Definition:
ALFA_RawDataCollection.cxx:69
ALFA_RawDataCollection::m_ADC2Id
uint16_t m_ADC2Id
Definition:
ALFA_RawDataCollection.h:39
ALFA_RawDataCollection::SetMrodId_POT
void SetMrodId_POT(uint16_t Mrod_number)
Definition:
ALFA_RawDataCollection.cxx:58
ALFA_RawDataCollection::SetZero_POT
void SetZero_POT()
Definition:
ALFA_RawDataCollection.cxx:100
ALFA_RawDataCollection.h
ALFA_RawDataCollection::m_MBId_POT
uint16_t m_MBId_POT
Definition:
ALFA_RawDataCollection.h:24
Generated on Fri Jan 10 2025 21:06:45 for ATLAS Offline Software by
1.8.18