ATLAS Offline Software
Loading...
Searching...
No Matches
JemRoiSubBlock.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_JEMROISUBBLOCK_H
6#define TRIGT1CALOBYTESTREAM_JEMROISUBBLOCK_H
7
8#include <vector>
9
10#include "L1CaloSubBlock.h"
11
12namespace LVL1 {
13 class JEMRoI;
14}
15
16namespace LVL1BS {
17
25
27
28 public:
31
33 void clear();
34
36 void setRoiHeader(int version, int crate, int module);
39
41 LVL1::JEMRoI roi(int frame, int forward) const;
42
44 bool pack();
46 bool unpack();
47
48 private:
50 static const int s_wordIdVal = 0xc;
51 // G-Link/Neutral format
52 static const int s_frames = 8;
53 static const int s_framesPerPin = 4;
54 static const int s_bunchCrossingPin = 2;
55 static const int s_hitsBits = 8;
56 static const int s_locationBits = 2;
57 static const int s_saturationBits = 1;
58 static const int s_bunchCrossingBits = 12;
59 static const int s_paddingBits = 32;
60
62 bool packNeutral();
64 bool unpackNeutral();
65
67 std::vector<LVL1::JEMRoI> m_roiData;
68
69};
70
71} // end namespace
72
73#endif
static const int s_framesPerPin
std::vector< LVL1::JEMRoI > m_roiData
RoIs.
static const int s_bunchCrossingBits
bool packNeutral()
Pack neutral data.
static const int s_hitsBits
static const int s_bunchCrossingPin
void fillRoi(LVL1::JEMRoI roi)
Store RoI.
void setRoiHeader(int version, int crate, int module)
Store header.
static const int s_paddingBits
static const int s_saturationBits
void clear()
Clear all data.
bool unpackNeutral()
Unpack neutral data.
LVL1::JEMRoI roi(int frame, int forward) const
Return RoI for given frame and forward.
static const int s_locationBits
bool unpack()
Unpack data.
static const int s_frames
static const int s_wordIdVal
Header word ID.
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...