ATLAS Offline Software
ALFA_RawData.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include "GaudiKernel/MsgStream.h"
7 
9  m_WordId(0),
10  m_PMFId(0),
11  m_MBId(0),
12  m_EventCount(0),
13  m_MarocChan(),
14  m_bit16(0),
15  m_bit18(0),
16  m_error_bit17(0),
17  m_bit26_27(0),
18  m_bit24_27(0)
19 {
20 }
21 
23  m_WordId(0),
24  m_PMFId(PMFId),
25  m_MBId(0),
26  m_EventCount(0),
27  m_MarocChan(),
28  m_bit16(0),
29  m_bit18(0),
30  m_error_bit17(0),
31  m_bit26_27(0),
32  m_bit24_27(0)
33 {
34 }
35 
37 // destructor
40 {
41 }
42 
43 
45 {
46  m_WordId=Word_number;
47 }
48 
50 {
51  m_PMFId=PMF_number;
52 }
53 
55 {
56  m_MBId=MB_number;
57 }
58 
60 {
61  m_EventCount=Event_number;
62 }
63 
64 
65 void ALFA_RawData::SetMarocChan_PMF(const std::vector<uint16_t>& HitChan)
66 {
68 
69 
70 }
71 
73  m_MarocChan.push_back(fiber_hit);
74 }
75 
77 {
78  m_dataWords.push_back(dataWord);
79 }
80 
82 {
83  m_error_bit17=bit;
84 }
85 
86 
88 {
89  m_WordId=0;
90  m_PMFId=0;
91  m_MBId=0;
92  m_EventCount=0;
93  m_bit26_27=0;
94  m_bit24_27=0;
95  m_bit16=false;
96  m_bit18=false;
97  m_error_bit17=false;
98  m_MarocChan.clear();
99  m_dataWords.clear();
100 }
101 
102 
ALFA_RawData::Set_error_bit17
void Set_error_bit17(bool bit)
Definition: ALFA_RawData.cxx:81
ALFA_RawData::HitChan
const std::vector< uint16_t > & HitChan() const
Definition: ALFA_RawData.h:64
ALFA_RawData::SetPMFId_PMF
void SetPMFId_PMF(uint16_t PMF_number)
Definition: ALFA_RawData.cxx:49
ALFA_RawData::addData
void addData(uint32_t dataWord)
Definition: ALFA_RawData.cxx:76
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
ALFA_RawData::m_dataWords
std::vector< uint32_t > m_dataWords
Definition: ALFA_RawData.h:85
ALFA_RawData::SetMBId_PMF
void SetMBId_PMF(uint16_t MB_number)
Definition: ALFA_RawData.cxx:54
ALFA_RawData::PushBack_PMF
void PushBack_PMF(uint16_t fiber_hit)
Definition: ALFA_RawData.cxx:72
ALFA_RawData::m_error_bit17
bool m_error_bit17
Definition: ALFA_RawData.h:79
ALFA_RawData::m_PMFId
uint16_t m_PMFId
Definition: ALFA_RawData.h:73
ALFA_RawData.h
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
ALFA_RawData::SetMarocChan_PMF
void SetMarocChan_PMF(const std::vector< uint16_t > &MarocChan)
Definition: ALFA_RawData.cxx:65
ALFA_RawData::m_bit16
bool m_bit16
Definition: ALFA_RawData.h:77
ALFA_RawData::~ALFA_RawData
~ALFA_RawData()
Definition: ALFA_RawData.cxx:39
ALFA_RawData::m_EventCount
uint32_t m_EventCount
Definition: ALFA_RawData.h:75
ALFA_RawData::m_MarocChan
std::vector< uint16_t > m_MarocChan
Definition: ALFA_RawData.h:76
ALFA_RawData::m_bit18
bool m_bit18
Definition: ALFA_RawData.h:78
ALFA_RawData::SetWordId_PMF
void SetWordId_PMF(uint16_t Word_number)
Definition: ALFA_RawData.cxx:44
ALFA_RawData::SetEventCount_PMF
void SetEventCount_PMF(uint32_t Event_number)
Definition: ALFA_RawData.cxx:59
ALFA_RawData::m_MBId
uint16_t m_MBId
Definition: ALFA_RawData.h:74
ALFA_RawData::ALFA_RawData
ALFA_RawData()
Definition: ALFA_RawData.cxx:8
ALFA_RawData::m_bit26_27
uint16_t m_bit26_27
Definition: ALFA_RawData.h:80
ALFA_RawData::SetZero_PMF
void SetZero_PMF()
Definition: ALFA_RawData.cxx:87
ALFA_RawData::m_WordId
uint16_t m_WordId
Definition: ALFA_RawData.h:72
ALFA_RawData::m_bit24_27
uint16_t m_bit24_27
Definition: ALFA_RawData.h:81