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
L1GctHtMiss Class Reference

Persistable copy of missing Et measured at Level-1. More...

#include <L1GctHtMiss.h>

Public Types

enum  numberOfBits {
  kHtMissPhiNBits = 5, kHtMissMagNBits = 7, kHtMissPhiMask = (1 << kHtMissPhiNBits) - 1, kHtMissMagMask = (1 << kHtMissMagNBits) - 1,
  kHtMissPhiShift = 0, kHtMissMagShift = kHtMissPhiNBits, kHtMissOFlowBit = (1 << (kHtMissPhiNBits + kHtMissMagNBits)), kHtMissPhiNBins = 18,
  kRawCtorMask = kHtMissOFlowBit | (kHtMissMagMask << kHtMissMagShift) | (kHtMissPhiMask << kHtMissPhiShift)
}
 

Public Member Functions

int16_t bx () const
 get bunch-crossing index More...
 
bool empty () const
 empty method (= false; missing Et is always calculated) More...
 
unsigned et () const
 get the magnitude More...
 
 L1GctHtMiss ()
 
 L1GctHtMiss (uint32_t rawData)
 For use with raw data from the unpacker. More...
 
 L1GctHtMiss (uint32_t rawData, int16_t bx)
 For use with raw data from the unpacker. More...
 
 L1GctHtMiss (unsigned et, unsigned phi, bool oflow)
 
 L1GctHtMiss (unsigned et, unsigned phi, bool oflow, int16_t bx)
 
std::string name () const
 name method More...
 
int operator!= (const L1GctHtMiss &e) const
 inequality operator More...
 
int operator== (const L1GctHtMiss &e) const
 equality operator More...
 
bool overFlow () const
 get the overflow More...
 
unsigned phi () const
 get the Et More...
 
uint32_t raw () const
 get the data More...
 
virtual ~L1GctHtMiss ()
 

Private Attributes

int16_t m_bx
 
uint32_t m_data
 

Detailed Description

Persistable copy of missing Et measured at Level-1.

Definition at line 16 of file L1GctHtMiss.h.

Member Enumeration Documentation

To match the RAW format: HtMissPhi is on bits 4:0, HtMissMagnitude is on bits 11:5, Overflow flag on bit 12, All other bits will be be zero.

Enumerator
kHtMissPhiNBits 
kHtMissMagNBits 
kHtMissPhiMask 
kHtMissMagMask 
kHtMissPhiShift 
kHtMissMagShift 
kHtMissOFlowBit 
kHtMissPhiNBins 
kRawCtorMask 

Definition at line 24 of file L1GctHtMiss.h.

Constructor & Destructor Documentation

L1GctHtMiss::L1GctHtMiss ( )

Definition at line 4 of file L1GctHtMiss.cc.

4 : m_data(0), m_bx(0) { }
int16_t m_bx
Definition: L1GctHtMiss.h:80
uint32_t m_data
Definition: L1GctHtMiss.h:79
L1GctHtMiss::L1GctHtMiss ( uint32_t  rawData)

For use with raw data from the unpacker.

Definition at line 11 of file L1GctHtMiss.cc.

11 : m_data(rawData & kRawCtorMask), m_bx(0) { }
int16_t m_bx
Definition: L1GctHtMiss.h:80
uint32_t m_data
Definition: L1GctHtMiss.h:79
L1GctHtMiss::L1GctHtMiss ( uint32_t  rawData,
int16_t  bx 
)

For use with raw data from the unpacker.

Definition at line 13 of file L1GctHtMiss.cc.

13 : m_data(rawData & kRawCtorMask), m_bx(bx) { }
int16_t m_bx
Definition: L1GctHtMiss.h:80
int16_t bx() const
get bunch-crossing index
Definition: L1GctHtMiss.h:69
uint32_t m_data
Definition: L1GctHtMiss.h:79
L1GctHtMiss::L1GctHtMiss ( unsigned  et,
unsigned  phi,
bool  oflow 
)

Definition at line 15 of file L1GctHtMiss.cc.

References kHtMissMagMask, kHtMissMagShift, kHtMissOFlowBit, kHtMissPhiMask, kHtMissPhiNBins, kHtMissPhiShift, and m_data.

15  : m_data(0),
16  m_bx(0)
17 {
18  if ((et <= kHtMissMagMask) && (phi < kHtMissPhiNBins)) {
19  m_data = (oflow ? kHtMissOFlowBit : 0) |
22  }
23  else {
25  }
26 }
int16_t m_bx
Definition: L1GctHtMiss.h:80
unsigned et() const
get the magnitude
Definition: L1GctHtMiss.h:60
uint32_t m_data
Definition: L1GctHtMiss.h:79
unsigned phi() const
get the Et
Definition: L1GctHtMiss.h:66
L1GctHtMiss::L1GctHtMiss ( unsigned  et,
unsigned  phi,
bool  oflow,
int16_t  bx 
)

Definition at line 28 of file L1GctHtMiss.cc.

References kHtMissMagMask, kHtMissMagShift, kHtMissOFlowBit, kHtMissPhiMask, kHtMissPhiNBins, kHtMissPhiShift, and m_data.

28  : m_data(0),
29  m_bx(bx)
30 {
31  if ((et <= kHtMissMagMask) && (phi < kHtMissPhiNBins)) {
32  m_data = (oflow ? kHtMissOFlowBit : 0) |
35  }
36  else {
38  }
39 }
int16_t m_bx
Definition: L1GctHtMiss.h:80
int16_t bx() const
get bunch-crossing index
Definition: L1GctHtMiss.h:69
unsigned et() const
get the magnitude
Definition: L1GctHtMiss.h:60
uint32_t m_data
Definition: L1GctHtMiss.h:79
unsigned phi() const
get the Et
Definition: L1GctHtMiss.h:66
L1GctHtMiss::~L1GctHtMiss ( )
virtual

Definition at line 41 of file L1GctHtMiss.cc.

41 { }

Member Function Documentation

int16_t L1GctHtMiss::bx ( ) const
inline

get bunch-crossing index

Definition at line 69 of file L1GctHtMiss.h.

References m_bx.

69 { return m_bx; }
int16_t m_bx
Definition: L1GctHtMiss.h:80
bool L1GctHtMiss::empty ( ) const
inline

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

Definition at line 54 of file L1GctHtMiss.h.

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

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

inequality operator

Definition at line 75 of file L1GctHtMiss.h.

References alignCSCRings::e.

75 { return !(*this == e); }
int L1GctHtMiss::operator== ( const L1GctHtMiss e) const
inline

equality operator

Definition at line 72 of file L1GctHtMiss.h.

References m_data, and raw().

72 { return m_data==e.raw(); }
uint32_t raw() const
get the data
Definition: L1GctHtMiss.h:57
uint32_t m_data
Definition: L1GctHtMiss.h:79
bool L1GctHtMiss::overFlow ( ) const
inline
unsigned L1GctHtMiss::phi ( ) const
inline
uint32_t L1GctHtMiss::raw ( ) const
inline

get the data

Definition at line 57 of file L1GctHtMiss.h.

References m_data.

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

57 { return m_data; }
uint32_t m_data
Definition: L1GctHtMiss.h:79

Member Data Documentation

int16_t L1GctHtMiss::m_bx
private

Definition at line 80 of file L1GctHtMiss.h.

Referenced by bx().

uint32_t L1GctHtMiss::m_data
private

Definition at line 79 of file L1GctHtMiss.h.

Referenced by et(), L1GctHtMiss(), operator==(), overFlow(), phi(), and raw().