ATLAS Offline Software
Loading...
Searching...
No Matches
LArLATOMEHeader.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef LARLATOMEHEADER_H
6#define LARLATOMEHEADER_H
7
9#include <vector>
10
17
19{
20 public:
21
23 LArLATOMEHeader(const uint32_t lid);
24
26 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);
27
30
32 inline uint32_t SourceId() const {return m_sourceId;}
33
35 inline uint32_t LatomeId() const {return m_latomeId;}
36
38 inline uint16_t NChans() const {return m_nChannels;}
39
41 inline uint16_t BCId() const {return m_BCId;}
42
44 inline uint32_t L1Id() const {return m_l1Id;}
45
47 inline uint32_t ROBFragSize() const {return m_ROBFragSize;}
48
50 inline uint32_t FWversion() const {return m_LATOMEFWVersion;}
51
53 inline void SetBCId(const uint16_t bcid)
54 { m_BCId=bcid; return; }
55
57 inline void SetNChan(const uint16_t nchan)
58 { m_nChannels=nchan; return; }
59
61 inline void SetSourceId(const uint32_t source)
62 { m_sourceId=source; return; }
63
65 inline void SetLatomeId(const uint32_t source)
66 { m_latomeId=source; return; }
67
69 inline void SetL1Id(const uint32_t source)
70 { m_l1Id=source; return; }
71
73 inline void SetROBFragSize(const uint32_t robfragsize)
74 { m_ROBFragSize=robfragsize; return; }
75
77 inline void SetFWversion(const uint32_t fwversion)
78 { m_LATOMEFWVersion=fwversion; return;}
79
80
81 private:
82
84 uint32_t m_sourceId;
85
87 uint32_t m_latomeId;
88
90 uint16_t m_nChannels;
91
93 uint16_t m_BCId;
94
96 uint32_t m_l1Id;
97
99 uint32_t m_ROBFragSize;
100
103};
104
105#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.