ATLAS Offline Software
Loading...
Searching...
No Matches
SubBlockHeader.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 TRIGT1CALOBYTESTREAM_SUBBLOCKHEADER_H
6#define TRIGT1CALOBYTESTREAM_SUBBLOCKHEADER_H
7
8#include <cstdint>
9
10namespace LVL1BS {
11
19
21private:
22 uint32_t m_header;
23public:
25 SubBlockHeader(uint32_t header = 0x0);
26 uint8_t type() const;
27 uint8_t version() const;
28 uint8_t format() const;
29 uint8_t seqNum() const;
30 uint8_t crate() const;
31 uint8_t module() const;
32 uint8_t nSlice2() const;
33 uint8_t nSlice1() const;
34 uint8_t compVer() const { return seqNum();}
35
36 bool isPpmBlock() const;
37
38 bool isSubBlockHeader() const;
39 static bool isSubBlockHeader(uint32_t word);
40};
41
42
43
44} // end namespace
45
46#endif
uint8_t compVer() const
SubBlockHeader(uint32_t header=0x0)
Constructor - default just sets word ID and number of header words.