CMS 3D CMS Logo

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

◆ numberOfBits

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() [1/5]

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() [2/5]

L1GctHtMiss::L1GctHtMiss ( uint32_t  rawData)

For use with raw data from the unpacker.

Definition at line 11 of file L1GctHtMiss.cc.

◆ L1GctHtMiss() [3/5]

L1GctHtMiss::L1GctHtMiss ( uint32_t  rawData,
int16_t  bx 
)

For use with raw data from the unpacker.

Definition at line 13 of file L1GctHtMiss.cc.

◆ L1GctHtMiss() [4/5]

L1GctHtMiss::L1GctHtMiss ( unsigned  et,
unsigned  phi,
bool  oflow 
)

◆ L1GctHtMiss() [5/5]

L1GctHtMiss::L1GctHtMiss ( unsigned  et,
unsigned  phi,
bool  oflow,
int16_t  bx 
)

Definition at line 24 of file L1GctHtMiss.cc.

References et(), kHtMissMagMask, kHtMissMagShift, kHtMissOFlowBit, kHtMissPhiMask, kHtMissPhiNBins, kHtMissPhiShift, m_data, and phi().

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
uint32_t m_data
Definition: L1GctHtMiss.h:77
unsigned phi() const
get the Et
Definition: L1GctHtMiss.h:65
unsigned et() const
get the magnitude
Definition: L1GctHtMiss.h:59

◆ ~L1GctHtMiss()

L1GctHtMiss::~L1GctHtMiss ( )
virtual

Definition at line 33 of file L1GctHtMiss.cc.

33 {}

Member Function Documentation

◆ bx()

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

◆ empty()

bool L1GctHtMiss::empty ( ) const
inline

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

Definition at line 53 of file L1GctHtMiss.h.

53 { return false; }

◆ et()

unsigned L1GctHtMiss::et ( ) const
inline

◆ name()

std::string L1GctHtMiss::name ( ) const
inline

name method

Definition at line 50 of file L1GctHtMiss.h.

Referenced by config.CFG::__str__(), validation.Sample::digest(), and VIDSelectorBase.VIDSelectorBase::initialize().

50 { return "HtMiss"; }

◆ operator!=()

int L1GctHtMiss::operator!= ( const L1GctHtMiss e) const
inline

inequality operator

Definition at line 74 of file L1GctHtMiss.h.

References MillePedeFileConverter_cfg::e.

74 { return !(*this == e); }

◆ operator==()

int L1GctHtMiss::operator== ( const L1GctHtMiss e) const
inline

equality operator

Definition at line 71 of file L1GctHtMiss.h.

References MillePedeFileConverter_cfg::e, and m_data.

71 { return m_data == e.raw(); }
uint32_t m_data
Definition: L1GctHtMiss.h:77

◆ overFlow()

bool L1GctHtMiss::overFlow ( ) const
inline

get the overflow

Definition at line 62 of file L1GctHtMiss.h.

References kHtMissOFlowBit, and m_data.

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

62 { return (m_data & kHtMissOFlowBit) != 0; }
uint32_t m_data
Definition: L1GctHtMiss.h:77

◆ phi()

unsigned L1GctHtMiss::phi ( ) const
inline

◆ raw()

uint32_t L1GctHtMiss::raw ( ) const
inline

get the data

Definition at line 56 of file L1GctHtMiss.h.

References m_data.

Referenced by L1GtPatternGenerator::analyze().

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

Member Data Documentation

◆ m_bx

int16_t L1GctHtMiss::m_bx
private

Definition at line 78 of file L1GctHtMiss.h.

Referenced by bx().

◆ m_data

uint32_t L1GctHtMiss::m_data
private

Definition at line 77 of file L1GctHtMiss.h.

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