ATLAS Offline Software
JetCMXTopoData.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 /* **********************************************************
5 *
6 * Emulation of TOB link from one CP CMX to L1Topo
7 * Author: Alan Watson <Alan.Watson@CERN.CH>
8 *
9 ********************************************************** */
10 #ifndef TRIGT1CALO_JETCMXTOPODATA_H
11 #define TRIGT1CALO_JETCMXTOPODATA_H
12 
13 // STL include(s):
14 #include <vector>
15 #include <string>
16 
17 // Local include(s):
19 
20 namespace LVL1 {
21 
23 
24  public:
26  JetCMXTopoData( int crate, bool overflow, const std::vector< uint32_t >& tobWords );
28  JetCMXTopoData( int crate, bool overflow, const std::vector< JetTopoTOB >& tobs );
30  JetCMXTopoData( int crate, const std::vector< uint32_t >& roiWords );
32  JetCMXTopoData( int crate );
36 
38  int crate() const;
40  bool overflow() const;
42  void tobs(std::vector< JetTopoTOB >& tobs) const;
44  const std::vector< uint32_t >& tobWords() const;
45 
47  void addTOB( const JetTopoTOB tob);
48  void addTOB( uint32_t tobWord);
49 
51  void addRoI( uint32_t roiWord );
52 
54  void setOverflow( bool overflow );
55 
61 
62  private:
64  int m_crate;
65  bool m_overflow;
67  std::vector< uint32_t > m_tobWords;
68 
69  static const unsigned int s_maxTOBsPerLink = 32;
70  static const unsigned int s_maxTOBsPerJem = 4;
71 
72  }; // class JetCMXTopoData
73 
74 
75 } // namespace bracket
76 
77 #ifndef JetCMXTopoData_ClassDEF_H
79 #endif
80 
81 #endif // TRIGT1CALO_JETCMXTOPODATA_H
LVL1::JetCMXTopoData::tobWords
const std::vector< uint32_t > & tobWords() const
Return vector of TOB words.
Definition: JetCMXTopoData.cxx:122
LVL1::JetCMXTopoData::~JetCMXTopoData
~JetCMXTopoData()
Destructor.
Definition: JetCMXTopoData.cxx:77
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
LVL1::JetCMXTopoData::s_maxTOBsPerLink
static const unsigned int s_maxTOBsPerLink
Static constants.
Definition: JetCMXTopoData.h:69
LVL1::JetCMXTopoData::overflow
bool overflow() const
Return overflow flag.
Definition: JetCMXTopoData.cxx:114
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
JetTopoTOB.h
LVL1::JetCMXTopoData::tobs
void tobs(std::vector< JetTopoTOB > &tobs) const
Return vector of TOBs.
Definition: JetCMXTopoData.cxx:127
LVL1::JetCMXTopoData::s_maxTOBsPerJem
static const unsigned int s_maxTOBsPerJem
as specified in BackplaneFormats_v3.xlsx
Definition: JetCMXTopoData.h:70
xAOD::roiWord
roiWord
Definition: TrigMissingET_v1.cxx:36
LVL1::JetCMXTopoData::m_crate
int m_crate
Data members.
Definition: JetCMXTopoData.h:64
LVL1::JetCMXTopoData::m_jem_overflow
bool m_jem_overflow
overflow on JEM -> CMX transmission
Definition: JetCMXTopoData.h:66
LVL1::JetCMXTopoData::addTOB
void addTOB(const JetTopoTOB tob)
Add TOB to record.
Definition: JetCMXTopoData.cxx:82
LVL1::JetTopoTOB
Jet TOB data for L1Topo.
Definition: JetTopoTOB.h:19
LVL1::JetCMXTopoData::addRoI
void addRoI(uint32_t roiWord)
Add TOB from RoI word.
Definition: JetCMXTopoData.cxx:96
LVL1::JetCMXTopoData
Definition: JetCMXTopoData.h:22
LVL1::JetCMXTopoData::m_tobWords
std::vector< uint32_t > m_tobWords
Definition: JetCMXTopoData.h:67
LVL1::JetCMXTopoData::checkJemOverflow
JetCMXTopoData & checkJemOverflow()
count whether any transmission JEM -> CMX had too many TOBs
Definition: JetCMXTopoData.cxx:137
LVL1::JetCMXTopoData::m_overflow
bool m_overflow
overflow on CMX -> L1Topo transmission
Definition: JetCMXTopoData.h:65
LVL1::JetCMXTopoData::JetCMXTopoData
JetCMXTopoData()
Default constructor.
Definition: JetCMXTopoData.cxx:68
LVL1::JetCMXTopoData::crate
int crate() const
Return crate number (0-1)
Definition: JetCMXTopoData.cxx:109
LVL1::JetCMXTopoData::setOverflow
void setOverflow(bool overflow)
Set overflow flag.
Definition: JetCMXTopoData.cxx:103
JetCMXTopoData_ClassDEF.h