ATLAS Offline Software
LArLATOMEHeader.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LARLATOMEHEADER_H
6 #define LARLATOMEHEADER_H
7 
9 #include <vector>
10 
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);
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 void SetBCId(const uint16_t bcid)
51  { m_BCId=bcid; return; }
52 
54  inline void SetNChan(const uint16_t nchan)
55  { m_nChannels=nchan; return; }
56 
58  inline void SetSourceId(const uint32_t source)
59  { m_sourceId=source; return; }
60 
62  inline void SetLatomeId(const uint32_t source)
63  { m_latomeId=source; return; }
64 
66  inline void SetL1Id(const uint32_t source)
67  { m_l1Id=source; return; }
68 
69 
71  inline void SetROBFragSize(const uint32_t robfragsize)
72  { m_ROBFragSize=robfragsize; return; }
73 
74  private:
75 
78 
81 
84 
87 
90 
93 };
94 
95 #endif
LArLATOMEHeader::m_sourceId
uint32_t m_sourceId
LATOME sourceId.
Definition: LArLATOMEHeader.h:77
LArLATOMEHeader::SetNChan
void SetNChan(const uint16_t nchan)
set the LATOME Channel
Definition: LArLATOMEHeader.h:54
LArLATOMEHeader::SetSourceId
void SetSourceId(const uint32_t source)
set the LATOME SourceId
Definition: LArLATOMEHeader.h:58
LArLATOMEHeader::SetROBFragSize
void SetROBFragSize(const uint32_t robfragsize)
set the ROB frag size
Definition: LArLATOMEHeader.h:71
LArLATOMEHeader::SetLatomeId
void SetLatomeId(const uint32_t source)
set the latome Id
Definition: LArLATOMEHeader.h:62
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
LArLATOMEHeader::~LArLATOMEHeader
~LArLATOMEHeader()
Destructor.
Definition: LArLATOMEHeader.h:29
LArLATOMEHeader::m_ROBFragSize
uint32_t m_ROBFragSize
ROB frag size.
Definition: LArLATOMEHeader.h:92
PlotCalibFromCool.nchan
nchan
Definition: PlotCalibFromCool.py:564
LArLATOMEHeader::L1Id
uint32_t L1Id() const
get the L1 Id
Definition: LArLATOMEHeader.h:44
LArLATOMEHeader::ROBFragSize
uint32_t ROBFragSize() const
get the ROB frag size
Definition: LArLATOMEHeader.h:47
LArLATOMEHeader::LatomeId
uint32_t LatomeId() const
get the latome Id
Definition: LArLATOMEHeader.h:35
LArLATOMEHeader::m_nChannels
uint16_t m_nChannels
LATOME channels.
Definition: LArLATOMEHeader.h:83
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
LArLATOMEHeader::LArLATOMEHeader
LArLATOMEHeader(const uint32_t lid)
Constructor with Id.
Definition: LArLATOMEHeader.cxx:8
LArLATOMEHeader::NChans
uint16_t NChans() const
get the number of channels
Definition: LArLATOMEHeader.h:38
LArLATOMEHeader::m_l1Id
uint32_t m_l1Id
extended LVL1 Id
Definition: LArLATOMEHeader.h:89
LArLATOMEHeader::BCId
uint16_t BCId() const
get the Bunch Crossing IDs
Definition: LArLATOMEHeader.h:41
LArLATOMEHeader::SetBCId
void SetBCId(const uint16_t bcid)
set the LATOME Bunch Crossing ID
Definition: LArLATOMEHeader.h:50
HWIdentifier.h
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
LArLATOMEHeader::SourceId
uint32_t SourceId() const
get the source Id
Definition: LArLATOMEHeader.h:32
LArLATOMEHeader
Holds information from the LATOME Header.
Definition: LArLATOMEHeader.h:19
LArLATOMEHeader::m_BCId
uint16_t m_BCId
LATOME BCId from TTC.
Definition: LArLATOMEHeader.h:86
LArLATOMEHeader::SetL1Id
void SetL1Id(const uint32_t source)
set the latome Id
Definition: LArLATOMEHeader.h:66
LArLATOMEHeader::m_latomeId
uint32_t m_latomeId
LATOME Id.
Definition: LArLATOMEHeader.h:80