test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
L1GctEtHad Class Reference

Persistable copy of total Ht measured at Level-1. More...

#include <L1GctEtHad.h>

Public Types

enum  numberOfBits { kEtHadNBits = 12, kEtHadOFlowBit = 1 << kEtHadNBits, kEtHadMaxValue = kEtHadOFlowBit - 1, kRawCtorMask = kEtHadOFlowBit | kEtHadMaxValue }
 

Public Member Functions

int16_t bx () const
 get bunch-crossing index More...
 
bool empty () const
 empty method (= false; hadronic Et is always calculated) More...
 
unsigned et () const
 get the Et More...
 
 L1GctEtHad ()
 
 L1GctEtHad (uint16_t rawData)
 
 L1GctEtHad (uint16_t rawData, int16_t bx)
 
 L1GctEtHad (unsigned et, bool oflow)
 
 L1GctEtHad (unsigned et, bool oflow, int16_t bx)
 
std::string name () const
 name method More...
 
int operator!= (const L1GctEtHad &e) const
 inequality operator More...
 
int operator== (const L1GctEtHad &e) const
 equality operator More...
 
bool overFlow () const
 get the overflow More...
 
uint16_t raw () const
 get the data More...
 
virtual ~L1GctEtHad ()
 

Private Attributes

int16_t m_bx
 
uint16_t m_data
 

Detailed Description

Persistable copy of total Ht measured at Level-1.

Definition at line 18 of file L1GctEtHad.h.

Member Enumeration Documentation

Enumerator
kEtHadNBits 
kEtHadOFlowBit 
kEtHadMaxValue 
kRawCtorMask 

Definition at line 21 of file L1GctEtHad.h.

Constructor & Destructor Documentation

L1GctEtHad::L1GctEtHad ( )

Definition at line 4 of file L1GctEtHad.cc.

4 : m_data(0), m_bx(0) { }
int16_t m_bx
Definition: L1GctEtHad.h:62
uint16_t m_data
Definition: L1GctEtHad.h:61
L1GctEtHad::L1GctEtHad ( uint16_t  rawData)

Definition at line 6 of file L1GctEtHad.cc.

6 : m_data(rawData & kRawCtorMask), m_bx(0) { }
int16_t m_bx
Definition: L1GctEtHad.h:62
uint16_t m_data
Definition: L1GctEtHad.h:61
L1GctEtHad::L1GctEtHad ( uint16_t  rawData,
int16_t  bx 
)

Definition at line 8 of file L1GctEtHad.cc.

8 : m_data(rawData & kRawCtorMask), m_bx(bx) { }
int16_t m_bx
Definition: L1GctEtHad.h:62
int16_t bx() const
get bunch-crossing index
Definition: L1GctEtHad.h:51
uint16_t m_data
Definition: L1GctEtHad.h:61
L1GctEtHad::L1GctEtHad ( unsigned  et,
bool  oflow 
)

Definition at line 10 of file L1GctEtHad.cc.

References kEtHadMaxValue, kEtHadOFlowBit, and m_data.

10  : m_data(0),
11  m_bx(0)
12 {
13  m_data = (et & kEtHadMaxValue) | ((oflow || et>kEtHadMaxValue) ? kEtHadOFlowBit : 0);
14 }
int16_t m_bx
Definition: L1GctEtHad.h:62
unsigned et() const
get the Et
Definition: L1GctEtHad.h:45
uint16_t m_data
Definition: L1GctEtHad.h:61
L1GctEtHad::L1GctEtHad ( unsigned  et,
bool  oflow,
int16_t  bx 
)

Definition at line 16 of file L1GctEtHad.cc.

References kEtHadMaxValue, kEtHadOFlowBit, and m_data.

16  : m_data(0),
17  m_bx(bx)
18 {
19  m_data = (et & kEtHadMaxValue) | ((oflow || et>kEtHadMaxValue) ? kEtHadOFlowBit : 0);
20 }
int16_t m_bx
Definition: L1GctEtHad.h:62
unsigned et() const
get the Et
Definition: L1GctEtHad.h:45
int16_t bx() const
get bunch-crossing index
Definition: L1GctEtHad.h:51
uint16_t m_data
Definition: L1GctEtHad.h:61
L1GctEtHad::~L1GctEtHad ( )
virtual

Definition at line 22 of file L1GctEtHad.cc.

22 { }

Member Function Documentation

int16_t L1GctEtHad::bx ( ) const
inline

get bunch-crossing index

Definition at line 51 of file L1GctEtHad.h.

References m_bx.

51 { return m_bx; }
int16_t m_bx
Definition: L1GctEtHad.h:62
bool L1GctEtHad::empty ( ) const
inline

empty method (= false; hadronic Et is always calculated)

Definition at line 39 of file L1GctEtHad.h.

Referenced by Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), and Vispa.Gui.VispaWidget.TextField::setAutotruncate().

39 { return false; }
unsigned L1GctEtHad::et ( ) const
inline
std::string L1GctEtHad::name ( ) const
inline
int L1GctEtHad::operator!= ( const L1GctEtHad e) const
inline

inequality operator

Definition at line 57 of file L1GctEtHad.h.

References m_data, and raw().

57 { return m_data!=e.raw(); }
uint16_t raw() const
get the data
Definition: L1GctEtHad.h:42
uint16_t m_data
Definition: L1GctEtHad.h:61
int L1GctEtHad::operator== ( const L1GctEtHad e) const
inline

equality operator

Definition at line 54 of file L1GctEtHad.h.

References m_data, and raw().

54 { return m_data==e.raw(); }
uint16_t raw() const
get the data
Definition: L1GctEtHad.h:42
uint16_t m_data
Definition: L1GctEtHad.h:61
bool L1GctEtHad::overFlow ( ) const
inline

get the overflow

Definition at line 48 of file L1GctEtHad.h.

References kEtHadOFlowBit, and m_data.

Referenced by L1GtEnergySumCondition::evaluateCondition(), and operator<<().

48 { return (m_data & kEtHadOFlowBit)!=0; }
uint16_t m_data
Definition: L1GctEtHad.h:61
uint16_t L1GctEtHad::raw ( ) const
inline

get the data

Definition at line 42 of file L1GctEtHad.h.

References m_data.

Referenced by L1GtPatternGenerator::analyze(), L1GlobalTriggerPSB::fillPsbBlock(), operator!=(), and operator==().

42 { return m_data; }
uint16_t m_data
Definition: L1GctEtHad.h:61

Member Data Documentation

int16_t L1GctEtHad::m_bx
private

Definition at line 62 of file L1GctEtHad.h.

Referenced by bx().

uint16_t L1GctEtHad::m_data
private

Definition at line 61 of file L1GctEtHad.h.

Referenced by et(), L1GctEtHad(), operator!=(), operator==(), overFlow(), and raw().