CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 23 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:78
uint32_t m_data
Definition: L1GctHtMiss.h:77
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:78
uint32_t m_data
Definition: L1GctHtMiss.h:77
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:78
int16_t bx() const
get bunch-crossing index
Definition: L1GctHtMiss.h:68
uint32_t m_data
Definition: L1GctHtMiss.h:77
L1GctHtMiss::L1GctHtMiss ( unsigned  et,
unsigned  phi,
bool  oflow 
)
L1GctHtMiss::L1GctHtMiss ( unsigned  et,
unsigned  phi,
bool  oflow,
int16_t  bx 
)

Definition at line 24 of file L1GctHtMiss.cc.

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

24  : m_data(0), m_bx(bx) {
25  if ((et <= kHtMissMagMask) && (phi < kHtMissPhiNBins)) {
26  m_data = (oflow ? kHtMissOFlowBit : 0) | ((et & kHtMissMagMask) << kHtMissMagShift) |
28  } else {
30  }
31 }
int16_t m_bx
Definition: L1GctHtMiss.h:78
int16_t bx() const
get bunch-crossing index
Definition: L1GctHtMiss.h:68
unsigned et() const
get the magnitude
Definition: L1GctHtMiss.h:59
uint32_t m_data
Definition: L1GctHtMiss.h:77
unsigned phi() const
get the Et
Definition: L1GctHtMiss.h:65
L1GctHtMiss::~L1GctHtMiss ( )
virtual

Definition at line 33 of file L1GctHtMiss.cc.

33 {}

Member Function Documentation

int16_t L1GctHtMiss::bx ( ) const
inline

get bunch-crossing index

Definition at line 68 of file L1GctHtMiss.h.

References m_bx.

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

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

Definition at line 53 of file L1GctHtMiss.h.

53 { 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 74 of file L1GctHtMiss.h.

References alignCSCRings::e.

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

equality operator

Definition at line 71 of file L1GctHtMiss.h.

References m_data, and raw().

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

get the data

Definition at line 56 of file L1GctHtMiss.h.

References m_data.

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

56 { return m_data; }
uint32_t m_data
Definition: L1GctHtMiss.h:77

Member Data Documentation

int16_t L1GctHtMiss::m_bx
private

Definition at line 78 of file L1GctHtMiss.h.

Referenced by bx().

uint32_t L1GctHtMiss::m_data
private

Definition at line 77 of file L1GctHtMiss.h.

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