ATLAS Offline Software
Loading...
Searching...
No Matches
LArLATOMEHeader.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef LARLATOMEHEADER_H
6#define LARLATOMEHEADER_H
7
9#include <vector>
10#include <cstdint> //for uint32_t
11
18
20{
21 public:
22
24 LArLATOMEHeader(const uint32_t lid);
25
27 LArLATOMEHeader(const uint32_t sourceid, const uint32_t latomeId, const uint16_t nchan, const uint16_t bcid, const uint32_t l1Id, const uint32_t robfragsize=0, const uint32_t latomeFwVersion = 0);
28
31
33 inline uint32_t SourceId() const {return m_sourceId;}
34
36 inline uint32_t LatomeId() const {return m_latomeId;}
37
39 inline uint16_t NChans() const {return m_nChannels;}
40
42 inline uint16_t BCId() const {return m_BCId;}
43
45 inline uint32_t L1Id() const {return m_l1Id;}
46
48 inline uint32_t ROBFragSize() const {return m_ROBFragSize;}
49
51 inline uint32_t FWversion() const {return m_LATOMEFWVersion;}
52
54 inline void SetBCId(const uint16_t bcid)
55 { m_BCId=bcid; return; }
56
58 inline void SetNChan(const uint16_t nchan)
59 { m_nChannels=nchan; return; }
60
62 inline void SetSourceId(const uint32_t source)
63 { m_sourceId=source; return; }
64
66 inline void SetLatomeId(const uint32_t source)
67 { m_latomeId=source; return; }
68
70 inline void SetL1Id(const uint32_t source)
71 { m_l1Id=source; return; }
72
74 inline void SetROBFragSize(const uint32_t robfragsize)
75 { m_ROBFragSize=robfragsize; return; }
76
78 inline void SetFWversion(const uint32_t fwversion)
79 { m_LATOMEFWVersion=fwversion; return;}
80
81
82 private:
83
85 uint32_t m_sourceId;
86
88 uint32_t m_latomeId;
89
91 uint16_t m_nChannels;
92
94 uint16_t m_BCId;
95
97 uint32_t m_l1Id;
98
100 uint32_t m_ROBFragSize;
101
104};
105
106#endif
uint32_t m_l1Id
extended LVL1 Id
uint32_t FWversion() const
get the FW version
uint32_t L1Id() const
get the L1 Id
void SetFWversion(const uint32_t fwversion)
set the FW version
void SetROBFragSize(const uint32_t robfragsize)
set the ROB frag size
uint32_t m_LATOMEFWVersion
FW version.
uint32_t ROBFragSize() const
get the ROB frag size
void SetBCId(const uint16_t bcid)
set the LATOME Bunch Crossing ID
void SetL1Id(const uint32_t source)
set the latome Id
uint32_t m_sourceId
LATOME sourceId.
void SetLatomeId(const uint32_t source)
set the latome Id
void SetSourceId(const uint32_t source)
set the LATOME SourceId
uint32_t LatomeId() const
get the latome Id
uint32_t m_ROBFragSize
ROB frag size.
uint16_t m_BCId
LATOME BCId from TTC.
~LArLATOMEHeader()
Destructor.
uint16_t BCId() const
get the Bunch Crossing IDs
uint16_t m_nChannels
LATOME channels.
uint16_t NChans() const
get the number of channels
LArLATOMEHeader(const uint32_t lid)
Constructor with Id.
uint32_t SourceId() const
get the source Id
void SetNChan(const uint16_t nchan)
set the LATOME Channel
uint32_t m_latomeId
LATOME Id.