ATLAS Offline Software
Loading...
Searching...
No Matches
CpmRoiSubBlockV2.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_CPMROISUBBLOCKV2_H
6#define TRIGT1CALOBYTESTREAM_CPMROISUBBLOCKV2_H
7
8#include <vector>
9
10#include "L1CaloSubBlock.h"
11
12namespace LVL1 {
13 class CPMTobRoI;
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::CPMTobRoI roi(int chip, int loc, int type) 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_glinkPins = 16;
53 static const int s_energyLen = 8;
54 static const int s_isolLen = 5;
55 static const int s_locationLen = 2;
56 static const int s_bunchCrossingBits = 12;
57
59 bool packNeutral();
61 bool unpackNeutral();
62
64 std::vector<LVL1::CPMTobRoI> m_roiData;
65
66};
67
68} // end namespace
69
70#endif
static const int s_energyLen
bool unpackNeutral()
Unpack neutral data.
static const int s_locationLen
bool packNeutral()
Pack neutral data.
void clear()
Clear all data.
void setRoiHeader(int version, int crate, int module)
Store header.
static const int s_wordIdVal
Header word ID.
static const int s_bunchCrossingBits
static const int s_glinkPins
std::vector< LVL1::CPMTobRoI > m_roiData
RoI words.
void fillRoi(LVL1::CPMTobRoI roi)
Store RoI.
LVL1::CPMTobRoI roi(int chip, int loc, int type) const
Return RoI for given chip and location (left/right) and type (em/tau)
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...