CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

L1GctHtMiss Class Reference

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

#include <L1GctHtMiss.h>

List of all members.

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
bool empty () const
 empty method (= false; missing Et is always calculated)
unsigned et () const
 get the magnitude
 L1GctHtMiss (uint32_t rawData)
 For use with raw data from the unpacker.
 L1GctHtMiss (unsigned et, unsigned phi, bool oflow)
 L1GctHtMiss ()
 L1GctHtMiss (unsigned et, unsigned phi, bool oflow, int16_t bx)
 L1GctHtMiss (uint32_t rawData, int16_t bx)
 For use with raw data from the unpacker.
std::string name () const
 name method
int operator!= (const L1GctHtMiss &e) const
 inequality operator
int operator== (const L1GctHtMiss &e) const
 equality operator
bool overFlow () const
 get the overflow
unsigned phi () const
 get the Et
uint32_t raw () const
 get the data
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.

: m_data(0), m_bx(0) { } 
L1GctHtMiss::L1GctHtMiss ( uint32_t  rawData)

For use with raw data from the unpacker.

Definition at line 11 of file L1GctHtMiss.cc.

: m_data(rawData & kRawCtorMask), m_bx(0) { }
L1GctHtMiss::L1GctHtMiss ( uint32_t  rawData,
int16_t  bx 
)

For use with raw data from the unpacker.

Definition at line 13 of file L1GctHtMiss.cc.

: m_data(rawData & kRawCtorMask), m_bx(bx) { }
L1GctHtMiss::L1GctHtMiss ( unsigned  et,
unsigned  phi,
bool  oflow 
)
L1GctHtMiss::L1GctHtMiss ( unsigned  et,
unsigned  phi,
bool  oflow,
int16_t  bx 
)
L1GctHtMiss::~L1GctHtMiss ( ) [virtual]

Definition at line 41 of file L1GctHtMiss.cc.

{ } 

Member Function Documentation

int16_t L1GctHtMiss::bx ( ) const [inline]

get bunch-crossing index

Definition at line 69 of file L1GctHtMiss.h.

References m_bx.

{ return m_bx; }
bool L1GctHtMiss::empty ( ) const [inline]

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

Definition at line 54 of file L1GctHtMiss.h.

{ return false; }
unsigned L1GctHtMiss::et ( ) const [inline]
std::string L1GctHtMiss::name ( ) const [inline]

name method

Definition at line 51 of file L1GctHtMiss.h.

{ return "HtMiss"; }
int L1GctHtMiss::operator!= ( const L1GctHtMiss e) const [inline]

inequality operator

Definition at line 75 of file L1GctHtMiss.h.

References alignCSCRings::e.

{ 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().

{ return m_data==e.raw(); }
bool L1GctHtMiss::overFlow ( ) const [inline]

get the overflow

Definition at line 63 of file L1GctHtMiss.h.

References kHtMissOFlowBit, and m_data.

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

{ return (m_data & kHtMissOFlowBit)!=0; }
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==().

{ return m_data; }

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().