ATLAS Offline Software
Loading...
Searching...
No Matches
ALFA_RawData_charge.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#ifndef ALFA_RAWDATA_CHARGE_H
6#define ALFA_RAWDATA_CHARGE_H
7
8#include<stdint.h>
9#include<vector>
10#include <iostream>
11
12
17
18class MsgStream;
19
21{
22 public:
23
24 // Default constructor
26
27 // Full constructor
28 ALFA_RawData_charge(uint16_t PMF_number);
29
31
32 // set data members
33
34 void SetPMFId_PMF(uint16_t PMF_number);
35 void SetChannelNum_PMF(uint16_t Channel_number);
36 void SetMBId_PMF(uint16_t MB_number);
37 void SetFiberFirmware_PMF(uint16_t FiberFirmware_number);
38 void SetEventCount_PMF(uint32_t Event_number);
39 void SetChargeChan_PMF(uint16_t ChargeChan_number);
40
41 void SetChargeChanVect_PMF(const std::vector<uint16_t>& ChargeChan);
42 void PushBack_PMF(uint16_t ChargeChan_number);
43
44 void SetZero_PMF();
45
46 // Add a data word to the vector
47 void addData(uint32_t dataWord);
48
49 // Methods to retrieve the decoded word content
50
51 uint16_t GetPMFId_PMF() const {return m_PMFId;};
52 uint16_t GetChannelNum_PMF() const {return m_ChannelNumId;};
53 uint16_t GetMBId_PMF() const {return m_MBId;};
54 uint16_t GetFiberFirmware_PMF() const {return m_FiberFirmwareId;};
55 uint32_t GetEventCount_PMF() const {return m_EventCount;};
56 uint16_t GetChargeHit() const {return m_ChargeChanId;};
57
58 // std::vector<uint16_t> GetMarocHit() {return MarocChan;};
59 // uint32_t Get_Chan(uint16_t Numchan) {return MarocChan[Numchan];}; // used in SaraPkg
60
61 bool Get_bit12() const {return m_bit12;};
62
63 // Vector containing all 16 bits data words (undecoded)
64 const std::vector<uint16_t>& ChargeChanVect_number() const {return m_ChargeChan;}
65
66 // Vector containing all 32 bits data words (undecoded) : from the Muon BSC-> to test the structure
67 const std::vector<uint32_t>* dataWords() const {return &m_dataWords;}
68
69 private:
70
71 // Data info TSM:
73 uint16_t m_PMFId;
74 uint16_t m_MBId;
76 uint32_t m_EventCount;
77 uint16_t m_ChargeChanId;
78 bool m_bit12;
79 std::vector<uint16_t> m_ChargeChan;
80
81 // All the datawords (no headers and footers) coming from this channel
82 // to be decoded on demand using ALFA_ReadOut methods
83 std::vector<uint32_t> m_dataWords;
84
85};
86#endif // ALFA_RAWDATA_CHARGE_H
87
88
void SetChannelNum_PMF(uint16_t Channel_number)
const std::vector< uint16_t > & ChargeChanVect_number() const
void SetChargeChan_PMF(uint16_t ChargeChan_number)
uint16_t GetChargeHit() const
void SetMBId_PMF(uint16_t MB_number)
uint16_t GetFiberFirmware_PMF() const
std::vector< uint32_t > m_dataWords
uint16_t GetMBId_PMF() const
std::vector< uint16_t > m_ChargeChan
uint32_t GetEventCount_PMF() const
void SetEventCount_PMF(uint32_t Event_number)
void addData(uint32_t dataWord)
void SetFiberFirmware_PMF(uint16_t FiberFirmware_number)
void SetPMFId_PMF(uint16_t PMF_number)
void SetChargeChanVect_PMF(const std::vector< uint16_t > &ChargeChan)
void PushBack_PMF(uint16_t ChargeChan_number)
const std::vector< uint32_t > * dataWords() const
uint16_t GetChannelNum_PMF() const
uint16_t GetPMFId_PMF() const