ATLAS Offline Software
Loading...
Searching...
No Matches
L1CaloRdoFexTob Class Reference

L1CaloRdo subclass for FEX Trigger Objects (TOBs and XTOBs). More...

#include <L1CaloRdoFexTob.h>

Inheritance diagram for L1CaloRdoFexTob:
Collaboration diagram for L1CaloRdoFexTob:

Public Types

enum  TobType {
  Invalid , EM , Tau , LargeJet ,
  SmallJet , Energy , Muon
}
enum  TobSource {
  EfexTob , EfexXtob , JfexTob , JfexXtob ,
  GfexTob , GfexXtob , Ph1Topo
}

Public Member Functions

 L1CaloRdoFexTob (int crate, int module, int eta, int phi, int numSlices, TobType tobType, TobSource source, int id=0, int fibre=0, int tobSeq=0)
bool sameDatum (const L1CaloRdoFexTob &rhs) const
virtual std::string getType () const override
TobType getTobType () const
std::string getTobTypeString () const
int getTobID () const
bool getIsEM () const
bool getIsTau () const
bool getIsJet () const
bool getIsLargeJet () const
bool getIsSmallJet () const
bool getIsEnergy () const
bool getIsMuon () const
TobSource getTobSource () const
std::string getTobSourceString () const
bool getIsTob () const
bool getIsXtob () const
bool getIsEfex () const
bool getIsJfex () const
bool getIsGfex () const
bool getIsTopo () const
int getFibre () const
int getTobSeq () const
int getCrate () const
int getModule () const
int getEta () const
int getPhi () const
int getLayer () const
int getValue (size_t slice) const
int getValue () const
int getFlag (size_t slice) const
int getFlag () const
int getL1aPos () const
L1CaloDetectorRegion getRegion () const
const std::list< L1CaloRdoRodInfo >::const_iteratorgetRodInfo () const
int getModuleStatus () const
bool getModuleErrorGlinkParity () const
bool getModuleErrorGlinkProtocol () const
bool getModuleErrorBcnMismatch () const
bool getModuleErrorFifoOverflow () const
bool getModuleErrorSpecific () const
bool getModuleErrorUnused () const
bool getModuleErrorGlinkTimeout () const
bool getModuleErrorGlinkDown () const
size_t numSlices () const
bool sameDatum (const L1CaloRdo &rhs) const
void setValue (int val, size_t slice)
void setValue (int val)
void setFlag (int flag, size_t slice)
void setFlag (int flag)
void setRodInfo (std::list< L1CaloRdoRodInfo >::const_iterator &rodInfo)
void info () const
virtual void infoSpecific () const

Protected Member Functions

void setRegion (const L1CaloDetectorRegion &region)

Private Attributes

TobType m_tobType
TobSource m_source
int m_id
int m_fibre
int m_tobSeq
int m_crate
int m_module
int m_eta
int m_phi
int m_layer
std::vector< int > m_vals
std::vector< int > m_flags
int m_l1aPos
L1CaloDetectorRegion m_region
std::list< L1CaloRdoRodInfo >::const_iterator m_rodInfo

Detailed Description

L1CaloRdo subclass for FEX Trigger Objects (TOBs and XTOBs).

These may come from FEX or phase 1 Topo readout.

Definition at line 11 of file L1CaloRdoFexTob.h.

Member Enumeration Documentation

◆ TobSource

Enumerator
EfexTob 
EfexXtob 
JfexTob 
JfexXtob 
GfexTob 
GfexXtob 
Ph1Topo 

Definition at line 15 of file L1CaloRdoFexTob.h.

◆ TobType

Enumerator
Invalid 
EM 
Tau 
LargeJet 
SmallJet 
Energy 
Muon 

Definition at line 14 of file L1CaloRdoFexTob.h.

Constructor & Destructor Documentation

◆ L1CaloRdoFexTob()

L1CaloRdoFexTob::L1CaloRdoFexTob ( int crate,
int module,
int eta,
int phi,
int numSlices,
L1CaloRdoFexTob::TobType tobType,
L1CaloRdoFexTob::TobSource source,
int id = 0,
int fibre = 0,
int tobSeq = 0 )

Definition at line 16 of file L1CaloRdoFexTob.cxx.

19: L1CaloRdo( crate, module, eta, phi, 0, numSlices )
20, m_tobType( tobType )
21, m_source( source )
22, m_id( id )
23, m_fibre( fibre )
24, m_tobSeq( tobSeq )
25{
26}
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
size_t numSlices() const

Member Function Documentation

◆ getCrate()

int L1CaloRdo::getCrate ( ) const
inherited

Definition at line 73 of file L1CaloRdo.cxx.

74{
75 return m_crate;
76}
int m_crate
Definition L1CaloRdo.h:73

◆ getEta()

int L1CaloRdo::getEta ( ) const
inherited

Definition at line 85 of file L1CaloRdo.cxx.

86{
87 return m_eta;
88}
int m_eta
Definition L1CaloRdo.h:75

◆ getFibre()

int L1CaloRdoFexTob::getFibre ( ) const

Definition at line 173 of file L1CaloRdoFexTob.cxx.

174{
175 return m_fibre;
176}

◆ getFlag() [1/2]

int L1CaloRdo::getFlag ( ) const
inherited

Definition at line 125 of file L1CaloRdo.cxx.

126{
127 return getFlag( getL1aPos() );
128}
int getFlag() const
int getL1aPos() const

◆ getFlag() [2/2]

int L1CaloRdo::getFlag ( size_t slice) const
inherited

Definition at line 117 of file L1CaloRdo.cxx.

118{
119 if ( slice < m_flags.size() )
120 return m_flags[slice];
121 return 0;
122}
std::vector< int > m_flags
Definition L1CaloRdo.h:79

◆ getIsEfex()

bool L1CaloRdoFexTob::getIsEfex ( ) const

Definition at line 146 of file L1CaloRdoFexTob.cxx.

147{
148 return ( getTobSource() == TobSource::EfexTob ||
150}
TobSource getTobSource() const

◆ getIsEM()

bool L1CaloRdoFexTob::getIsEM ( ) const

Definition at line 71 of file L1CaloRdoFexTob.cxx.

72{
73 return ( getTobType() == TobType::EM );
74}
TobType getTobType() const

◆ getIsEnergy()

bool L1CaloRdoFexTob::getIsEnergy ( ) const

Definition at line 102 of file L1CaloRdoFexTob.cxx.

103{
104 return ( getTobType() == TobType::Energy );
105}

◆ getIsGfex()

bool L1CaloRdoFexTob::getIsGfex ( ) const

Definition at line 160 of file L1CaloRdoFexTob.cxx.

161{
162 return ( getTobSource() == TobSource::GfexTob ||
164}

◆ getIsJet()

bool L1CaloRdoFexTob::getIsJet ( ) const

Definition at line 83 of file L1CaloRdoFexTob.cxx.

84{
85 return ( getTobType() == TobType::LargeJet ||
87}

◆ getIsJfex()

bool L1CaloRdoFexTob::getIsJfex ( ) const

Definition at line 153 of file L1CaloRdoFexTob.cxx.

154{
155 return ( getTobSource() == TobSource::JfexTob ||
157}

◆ getIsLargeJet()

bool L1CaloRdoFexTob::getIsLargeJet ( ) const

Definition at line 90 of file L1CaloRdoFexTob.cxx.

91{
92 return ( getTobType() == TobType::LargeJet );
93}

◆ getIsMuon()

bool L1CaloRdoFexTob::getIsMuon ( ) const

Definition at line 108 of file L1CaloRdoFexTob.cxx.

109{
110 return ( getTobType() == TobType::Muon );
111}

◆ getIsSmallJet()

bool L1CaloRdoFexTob::getIsSmallJet ( ) const

Definition at line 96 of file L1CaloRdoFexTob.cxx.

97{
98 return ( getTobType() == TobType::SmallJet );
99}

◆ getIsTau()

bool L1CaloRdoFexTob::getIsTau ( ) const

Definition at line 77 of file L1CaloRdoFexTob.cxx.

78{
79 return ( getTobType() == TobType::Tau );
80}

◆ getIsTob()

bool L1CaloRdoFexTob::getIsTob ( ) const

Definition at line 129 of file L1CaloRdoFexTob.cxx.

◆ getIsTopo()

bool L1CaloRdoFexTob::getIsTopo ( ) const

Definition at line 167 of file L1CaloRdoFexTob.cxx.

168{
169 return ( getTobSource() == TobSource::Ph1Topo );
170}

◆ getIsXtob()

bool L1CaloRdoFexTob::getIsXtob ( ) const

Definition at line 138 of file L1CaloRdoFexTob.cxx.

139{
140 return ( getTobSource() == TobSource::EfexXtob ||
143}

◆ getL1aPos()

int L1CaloRdo::getL1aPos ( ) const
inherited

Definition at line 131 of file L1CaloRdo.cxx.

132{
133 return m_l1aPos;
134}
int m_l1aPos
Definition L1CaloRdo.h:80

◆ getLayer()

int L1CaloRdo::getLayer ( ) const
inherited

Definition at line 97 of file L1CaloRdo.cxx.

98{
99 return m_layer;
100}
int m_layer
Definition L1CaloRdo.h:77

◆ getModule()

int L1CaloRdo::getModule ( ) const
inherited

Definition at line 79 of file L1CaloRdo.cxx.

80{
81 return m_module;
82}
int m_module
Definition L1CaloRdo.h:74

◆ getModuleErrorBcnMismatch()

bool L1CaloRdo::getModuleErrorBcnMismatch ( ) const
inherited

Definition at line 168 of file L1CaloRdo.cxx.

169{
170 return getModuleStatus( ) & 0x04 ;
171}
int getModuleStatus() const

◆ getModuleErrorFifoOverflow()

bool L1CaloRdo::getModuleErrorFifoOverflow ( ) const
inherited

Definition at line 174 of file L1CaloRdo.cxx.

175{
176 return getModuleStatus( ) & 0x08 ;
177}

◆ getModuleErrorGlinkDown()

bool L1CaloRdo::getModuleErrorGlinkDown ( ) const
inherited

Definition at line 198 of file L1CaloRdo.cxx.

199{
200 return getModuleStatus( ) & 0x80 ;
201}

◆ getModuleErrorGlinkParity()

bool L1CaloRdo::getModuleErrorGlinkParity ( ) const
inherited

Definition at line 156 of file L1CaloRdo.cxx.

157{
158 return getModuleStatus( ) & 0x01 ;
159}

◆ getModuleErrorGlinkProtocol()

bool L1CaloRdo::getModuleErrorGlinkProtocol ( ) const
inherited

Definition at line 162 of file L1CaloRdo.cxx.

163{
164 return getModuleStatus( ) & 0x02 ;
165}

◆ getModuleErrorGlinkTimeout()

bool L1CaloRdo::getModuleErrorGlinkTimeout ( ) const
inherited

Definition at line 192 of file L1CaloRdo.cxx.

193{
194 return getModuleStatus( ) & 0x40 ;
195}

◆ getModuleErrorSpecific()

bool L1CaloRdo::getModuleErrorSpecific ( ) const
inherited

Definition at line 180 of file L1CaloRdo.cxx.

181{
182 return getModuleStatus( ) & 0x10 ;
183}

◆ getModuleErrorUnused()

bool L1CaloRdo::getModuleErrorUnused ( ) const
inherited

Definition at line 186 of file L1CaloRdo.cxx.

187{
188 return getModuleStatus( ) & 0x20 ;
189}

◆ getModuleStatus()

int L1CaloRdo::getModuleStatus ( ) const
inherited

Definition at line 150 of file L1CaloRdo.cxx.

151{
152 return m_rodInfo->getModuleStatus( getModule() );
153}
int getModule() const
Definition L1CaloRdo.cxx:79
std::list< L1CaloRdoRodInfo >::const_iterator m_rodInfo
Definition L1CaloRdo.h:86

◆ getPhi()

int L1CaloRdo::getPhi ( ) const
inherited

Definition at line 91 of file L1CaloRdo.cxx.

92{
93 return m_phi;
94}
int m_phi
Definition L1CaloRdo.h:76

◆ getRegion()

L1CaloDetectorRegion L1CaloRdo::getRegion ( ) const
inherited

Definition at line 137 of file L1CaloRdo.cxx.

138{
139 return m_region;
140}
L1CaloDetectorRegion m_region
Definition L1CaloRdo.h:82

◆ getRodInfo()

const std::list< L1CaloRdoRodInfo >::const_iterator & L1CaloRdo::getRodInfo ( ) const
inherited

Definition at line 144 of file L1CaloRdo.cxx.

145{
146 return m_rodInfo;
147}

◆ getTobID()

int L1CaloRdoFexTob::getTobID ( ) const

Definition at line 65 of file L1CaloRdoFexTob.cxx.

66{
67 return m_id;
68}

◆ getTobSeq()

int L1CaloRdoFexTob::getTobSeq ( ) const

Definition at line 179 of file L1CaloRdoFexTob.cxx.

180{
181 return m_tobSeq;
182}

◆ getTobSource()

L1CaloRdoFexTob::TobSource L1CaloRdoFexTob::getTobSource ( ) const

Definition at line 114 of file L1CaloRdoFexTob.cxx.

115{
116 return m_source;
117}

◆ getTobSourceString()

std::string L1CaloRdoFexTob::getTobSourceString ( ) const

Definition at line 120 of file L1CaloRdoFexTob.cxx.

121{
122 if ( getIsTob() ) { return "Tob"; }
123 else if ( getIsXtob() ) { return "Xtob"; }
124 else if ( getIsTopo() ) { std::ostringstream s; s << "Topo" << m_id; return s.str(); }
125 else { return ""; }
126}
bool getIsXtob() const
bool getIsTopo() const
bool getIsTob() const

◆ getTobType()

L1CaloRdoFexTob::TobType L1CaloRdoFexTob::getTobType ( ) const

Definition at line 47 of file L1CaloRdoFexTob.cxx.

48{
49 return m_tobType;
50}

◆ getTobTypeString()

std::string L1CaloRdoFexTob::getTobTypeString ( ) const

Definition at line 53 of file L1CaloRdoFexTob.cxx.

54{
55 if ( getIsEM() ) { return "EM"; }
56 else if ( getIsTau() ) { return "Tau"; }
57 else if ( getIsLargeJet() ) { return "LJet"; }
58 else if ( getIsSmallJet() ) { return "SJet"; }
59 else if ( getIsEnergy() ) { return "Energy"; }
60 else if ( getIsMuon() ) { return "Muon"; }
61 else { return ""; }
62}
bool getIsMuon() const
bool getIsEnergy() const
bool getIsEM() const
bool getIsTau() const
bool getIsSmallJet() const
bool getIsLargeJet() const

◆ getType()

std::string L1CaloRdoFexTob::getType ( ) const
overridevirtual

Implements L1CaloRdo.

Definition at line 29 of file L1CaloRdoFexTob.cxx.

30{
31 return getTobTypeString() + std::string( "Tob:" ) + getTobSourceString();
32}
std::string getTobTypeString() const
std::string getTobSourceString() const

◆ getValue() [1/2]

int L1CaloRdo::getValue ( ) const
inherited

Definition at line 111 of file L1CaloRdo.cxx.

112{
113 return getValue( getL1aPos() );
114}
int getValue() const

◆ getValue() [2/2]

int L1CaloRdo::getValue ( size_t slice) const
inherited

Definition at line 103 of file L1CaloRdo.cxx.

104{
105 if ( slice < m_vals.size() )
106 return m_vals[slice];
107 return 0;
108}
std::vector< int > m_vals
Definition L1CaloRdo.h:78

◆ info()

void L1CaloRdo::info ( ) const
inherited

Definition at line 258 of file L1CaloRdo.cxx.

259{
260 std::cout << "RDO Object Type: " << getType()
261 << " Crate: " << getCrate()
262 << " Module: " << getModule()
263 << " Eta: " << getEta()
264 << " Phi: " << getPhi()
265 << " Layer: " << getLayer() << std::endl;
266 std::cout << " Values: " << std::hex;
267 for ( size_t i = 0 ; i < m_vals.size() ; ++i )
268 std::cout << getValue(i) << " ";
269 std::cout << " Flags: ";
270 for ( size_t i = 0 ; i < m_flags.size() ; ++i )
271 std::cout << getFlag(i) << " ";
272 std::cout << std::endl << std::dec;
273 infoSpecific();
274}
int getEta() const
Definition L1CaloRdo.cxx:85
virtual void infoSpecific() const
int getPhi() const
Definition L1CaloRdo.cxx:91
int getLayer() const
Definition L1CaloRdo.cxx:97
int getCrate() const
Definition L1CaloRdo.cxx:73
virtual std::string getType() const =0

◆ infoSpecific()

void L1CaloRdo::infoSpecific ( ) const
virtualinherited

Reimplemented in L1CaloRdoEfexTob.

Definition at line 277 of file L1CaloRdo.cxx.

278{
279}

◆ numSlices()

size_t L1CaloRdo::numSlices ( ) const
inherited

Definition at line 204 of file L1CaloRdo.cxx.

205{
206 return m_vals.size();
207}

◆ sameDatum() [1/2]

bool L1CaloRdo::sameDatum ( const L1CaloRdo & rhs) const
inherited

Definition at line 210 of file L1CaloRdo.cxx.

211{
212 if ( m_crate != rhs.m_crate )
213 return false;
214 if ( m_module != rhs.m_module )
215 return false;
216 if ( m_eta != rhs.m_eta )
217 return false;
218 if ( m_phi != rhs.m_phi )
219 return false;
220 if ( m_layer != rhs.m_layer )
221 return false;
222 return true;
223}

◆ sameDatum() [2/2]

bool L1CaloRdoFexTob::sameDatum ( const L1CaloRdoFexTob & rhs) const

Definition at line 35 of file L1CaloRdoFexTob.cxx.

36{
37 if ( m_tobType != rhs.m_tobType )
38 return false;
39 if ( m_source != rhs.m_source )
40 return false;
41 if ( m_id != rhs.m_id )
42 return false;
43 return L1CaloRdo::sameDatum( rhs );
44}
bool sameDatum(const L1CaloRdo &rhs) const

◆ setFlag() [1/2]

void L1CaloRdo::setFlag ( int flag)
inherited

Definition at line 246 of file L1CaloRdo.cxx.

247{
248 setFlag( flag, getL1aPos() );
249}
void setFlag(int flag, size_t slice)

◆ setFlag() [2/2]

void L1CaloRdo::setFlag ( int flag,
size_t slice )
inherited

Definition at line 239 of file L1CaloRdo.cxx.

240{
241 if ( slice < m_flags.size() )
242 m_flags[slice] = flag;
243}
bool flag
Definition master.py:29

◆ setRegion()

void L1CaloRdo::setRegion ( const L1CaloDetectorRegion & region)
protectedinherited

Definition at line 283 of file L1CaloRdo.cxx.

284{
285 m_region = region;
286}

◆ setRodInfo()

void L1CaloRdo::setRodInfo ( std::list< L1CaloRdoRodInfo >::const_iterator & rodInfo)
inherited

Definition at line 252 of file L1CaloRdo.cxx.

253{
254 m_rodInfo = rodInfo;
255}

◆ setValue() [1/2]

void L1CaloRdo::setValue ( int val)
inherited

Definition at line 233 of file L1CaloRdo.cxx.

234{
235 setValue( val, getL1aPos() );
236}
void setValue(int val, size_t slice)

◆ setValue() [2/2]

void L1CaloRdo::setValue ( int val,
size_t slice )
inherited

Definition at line 226 of file L1CaloRdo.cxx.

227{
228 if ( slice < m_vals.size() )
229 m_vals[slice] = val;
230}

Member Data Documentation

◆ m_crate

int L1CaloRdo::m_crate
privateinherited

Definition at line 73 of file L1CaloRdo.h.

◆ m_eta

int L1CaloRdo::m_eta
privateinherited

Definition at line 75 of file L1CaloRdo.h.

◆ m_fibre

int L1CaloRdoFexTob::m_fibre
private

Definition at line 50 of file L1CaloRdoFexTob.h.

◆ m_flags

std::vector<int> L1CaloRdo::m_flags
privateinherited

Definition at line 79 of file L1CaloRdo.h.

◆ m_id

int L1CaloRdoFexTob::m_id
private

Definition at line 49 of file L1CaloRdoFexTob.h.

◆ m_l1aPos

int L1CaloRdo::m_l1aPos
privateinherited

Definition at line 80 of file L1CaloRdo.h.

◆ m_layer

int L1CaloRdo::m_layer
privateinherited

Definition at line 77 of file L1CaloRdo.h.

◆ m_module

int L1CaloRdo::m_module
privateinherited

Definition at line 74 of file L1CaloRdo.h.

◆ m_phi

int L1CaloRdo::m_phi
privateinherited

Definition at line 76 of file L1CaloRdo.h.

◆ m_region

L1CaloDetectorRegion L1CaloRdo::m_region
privateinherited

Definition at line 82 of file L1CaloRdo.h.

◆ m_rodInfo

std::list<L1CaloRdoRodInfo>::const_iterator L1CaloRdo::m_rodInfo
privateinherited

Definition at line 86 of file L1CaloRdo.h.

◆ m_source

TobSource L1CaloRdoFexTob::m_source
private

Definition at line 48 of file L1CaloRdoFexTob.h.

◆ m_tobSeq

int L1CaloRdoFexTob::m_tobSeq
private

Definition at line 51 of file L1CaloRdoFexTob.h.

◆ m_tobType

TobType L1CaloRdoFexTob::m_tobType
private

Definition at line 47 of file L1CaloRdoFexTob.h.

◆ m_vals

std::vector<int> L1CaloRdo::m_vals
privateinherited

Definition at line 78 of file L1CaloRdo.h.


The documentation for this class was generated from the following files: