ATLAS Offline Software
Loading...
Searching...
No Matches
ALFA_RawDataCollection.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_RAWDATACOLLECTION_H
6#define ALFA_RAWDATACOLLECTION_H
7
11
12#include<stdint.h>
13
16
17
18class ALFA_RawDataCollection : public DataVector<ALFA_RawData>
19{
20
21 private:
22
23 //Motherboard id
24 uint16_t m_MBId_POT;
25 //Mrod id
26 uint16_t m_MrodId_POT;
27 //Event counter
29 //Hit store for one PMF
30 std::vector<ALFA_RawData> m_POT_DATA;
31
32 //pattern id
33 std::vector<bool> m_patternId;
34 //scaler id
35 uint16_t m_scalerId;
36 //ADC1 id Chan0
37 uint16_t m_ADC1Id;
38 //ADC1 id Chan1
39 uint16_t m_ADC2Id;
40 //syncronization error of PMF 24 (trigger info)
42
43 public:
44 //typedef
46
47
50
51
53 ALFA_RawDataCollection(uint16_t MB_number);
54
56 ALFA_RawDataCollection(uint16_t Mrod_number, uint16_t MB_number);
57
59
60 // set data members
61
62 void SetMBId_POT(uint16_t MB_number);
63 void SetMrodId_POT(uint16_t Mrod_number);
64 void SetEventCount_POT(uint32_t Event_number);
65 void PushBack_POT(const ALFA_RawData& PMF_HIT);
66
67 void Set_pattern_POT(const std::vector<bool>& pattern_number);
68 void Set_scaler_POT(uint16_t scaler_number);
69 void Set_ADC1_POT(uint16_t ADC1_number);
70 void Set_ADC2_POT(uint16_t ADC2_number);
71 void SetTrigSyncErr(bool bit);
72
73 void SetZero_POT();
74
75
76
77 // Methods to access the decoded information
78
79
80 uint16_t GetMBId_POT() const {return m_MBId_POT;};
81 uint16_t GetMrodId_POT() const {return m_MrodId_POT;};
82 uint32_t GetEventCount_POT() const {return m_EventCount_POT;};
83 const std::vector<bool>& Get_pattern_POT() const {return m_patternId;};
84 uint16_t Get_scaler_POT() const {return m_scalerId;};
85 uint16_t Get_ADC1_POT() const {return m_ADC1Id;};
86 uint16_t Get_ADC2_POT() const {return m_ADC2Id;};
87 bool GetTrigSyncErr() const {return m_TrigSyncErrId;};
88
89 const std::vector<ALFA_RawData>& Get_POT_DATA() const {return m_POT_DATA;};
90 ALFA_RawData Get_POT_PMF_DATA(uint32_t Numpmf) const {return m_POT_DATA[Numpmf];};
91
92
93};
94
95CLASS_DEF( ALFA_RawDataCollection , 1127672441 , 1 )
96
97
98#endif // ALFA_RAWDATACOLLECTION_H
99
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
An STL vector of pointers that by default owns its pointed-to elements.
RDOs : Chamber Service Module, collection of RawData.
void Set_ADC1_POT(uint16_t ADC1_number)
const std::vector< bool > & Get_pattern_POT() const
void Set_ADC2_POT(uint16_t ADC2_number)
void SetMrodId_POT(uint16_t Mrod_number)
void Set_pattern_POT(const std::vector< bool > &pattern_number)
void SetEventCount_POT(uint32_t Event_number)
std::vector< bool > m_patternId
const std::vector< ALFA_RawData > & Get_POT_DATA() const
void Set_scaler_POT(uint16_t scaler_number)
ALFA_RawDataCollection()
Default constructor.
std::vector< ALFA_RawData > m_POT_DATA
void SetMBId_POT(uint16_t MB_number)
ALFA_RawData Get_POT_PMF_DATA(uint32_t Numpmf) const
void PushBack_POT(const ALFA_RawData &PMF_HIT)
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)