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) {}

◆ L1GctHtMiss() [2/5]

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) {}

◆ 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 
)

Definition at line 15 of file L1GctHtMiss.cc.

15  : m_data(0), m_bx(0) {
16  if ((et <= kHtMissMagMask) && (phi < kHtMissPhiNBins)) {
17  m_data = (oflow ? kHtMissOFlowBit : 0) | ((et & kHtMissMagMask) << kHtMissMagShift) |
19  } else {
21  }
22 }

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

◆ L1GctHtMiss() [5/5]

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

Definition at line 24 of file L1GctHtMiss.cc.

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 }

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

◆ ~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.

68 { return m_bx; }

References m_bx.

◆ 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.

50 { return "HtMiss"; }

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

◆ operator!=()

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

inequality operator

Definition at line 74 of file L1GctHtMiss.h.

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

References MillePedeFileConverter_cfg::e.

◆ operator==()

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

equality operator

Definition at line 71 of file L1GctHtMiss.h.

71 { return m_data == e.raw(); }

References MillePedeFileConverter_cfg::e, and m_data.

◆ overFlow()

bool L1GctHtMiss::overFlow ( ) const
inline

get the overflow

Definition at line 62 of file L1GctHtMiss.h.

62 { return (m_data & kHtMissOFlowBit) != 0; }

References kHtMissOFlowBit, and m_data.

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

◆ phi()

unsigned L1GctHtMiss::phi ( ) const
inline

◆ raw()

uint32_t L1GctHtMiss::raw ( ) const
inline

get the data

Definition at line 56 of file L1GctHtMiss.h.

56 { return m_data; }

References m_data.

Referenced by L1GtPatternGenerator::analyze().

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

L1GctHtMiss::kRawCtorMask
Definition: L1GctHtMiss.h:32
L1GctHtMiss::kHtMissMagNBits
Definition: L1GctHtMiss.h:25
L1GctHtMiss::m_bx
int16_t m_bx
Definition: L1GctHtMiss.h:78
l1tstage2_dqm_sourceclient-live_cfg.rawData
rawData
Definition: l1tstage2_dqm_sourceclient-live_cfg.py:163
L1GctHtMiss::kHtMissMagMask
Definition: L1GctHtMiss.h:27
L1GctHtMiss::bx
int16_t bx() const
get bunch-crossing index
Definition: L1GctHtMiss.h:68
L1GctHtMiss::kHtMissPhiNBins
Definition: L1GctHtMiss.h:31
L1GctHtMiss::kHtMissPhiNBits
Definition: L1GctHtMiss.h:24
L1GctHtMiss::m_data
uint32_t m_data
Definition: L1GctHtMiss.h:77
L1GctHtMiss::kHtMissOFlowBit
Definition: L1GctHtMiss.h:30
L1GctHtMiss::kHtMissPhiMask
Definition: L1GctHtMiss.h:26
L1GctHtMiss::phi
unsigned phi() const
get the Et
Definition: L1GctHtMiss.h:65
L1GctHtMiss::kHtMissPhiShift
Definition: L1GctHtMiss.h:28
L1GctHtMiss::kHtMissMagShift
Definition: L1GctHtMiss.h:29
L1GctHtMiss::et
unsigned et() const
get the magnitude
Definition: L1GctHtMiss.h:59
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37