ATLAS Offline Software
Loading...
Searching...
No Matches
ALFA_RawDataCollection_charge.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ALFA_RAWDATACOLLECTION_CHARGE_H
6#define ALFA_RAWDATACOLLECTION_CHARGE_H
7
11
12#include<stdint.h>
13
16
17
18class ALFA_RawDataCollection_charge : public DataVector<ALFA_RawData_charge>
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_charge> m_POT_DATA;
31 //Time Stamp
33 //Bunch Crossing ID
34 uint32_t m_BCId_POT;
35
36 public:
37 //typedef
39
40
43
44
46 ALFA_RawDataCollection_charge(uint16_t MB_number);
47
49 ALFA_RawDataCollection_charge(uint16_t Mrod_number, uint16_t MB_number);
50
52
53 // set data members
54
55 void SetMBId_POT(uint16_t MB_number) ;
56 void SetMrodId_POT(uint16_t Mrod_number) ;
57 void SetEventCount_POT(uint32_t Event_number);
58 void PushBack_POT(const ALFA_RawData_charge& PMF_HIT);
59
60 void SetTimeStamp_POT(uint32_t TimeStamp);
61 void SetBCId_POT(uint32_t BCId);
62
63 void SetZero_POT();
64
65 // Methods to access the decoded information
66
67 uint16_t GetMBId_POT() const {return m_MBId_POT;};
68 uint16_t GetMrodId_POT() const {return m_MrodId_POT;};
69 uint32_t GetEventCount_POT() const {return m_EventCount_POT;};
70
71 uint32_t GetTimeStamp_POT() const {return m_TimeStamp_POT;};
72 uint32_t GetBCId_POT() const {return m_BCId_POT;};
73
74 const std::vector<ALFA_RawData_charge>& Get_POT_DATA() const {return m_POT_DATA;};
75 ALFA_RawData_charge Get_POT_PMF_DATA(uint32_t Numpmf) const {return m_POT_DATA[Numpmf];};
76
77
78};
79
81
82
83#endif // ALFA_RAWDATACOLLECTION_CHARGE_H
84
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.
ALFA_RawData_charge Get_POT_PMF_DATA(uint32_t Numpmf) const
void SetEventCount_POT(uint32_t Event_number)
const std::vector< ALFA_RawData_charge > & Get_POT_DATA() const
std::vector< ALFA_RawData_charge > m_POT_DATA
void PushBack_POT(const ALFA_RawData_charge &PMF_HIT)
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)