CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
L1GctEtMiss Class Reference

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

#include <L1GctEtMiss.h>

Public Types

enum  numberOfBits {
  kEtMissNBits = 12, kEtMissOFlowBit = 1 << kEtMissNBits, kEtMissMaxValue = kEtMissOFlowBit - 1, kEtMissPhiShift = 16,
  kEtMissPhiNBits = 7, kETMissPhiMask = (1 << kEtMissPhiNBits) - 1, kEtMissPhiNBins = 72, kRawCtorMask = (kETMissPhiMask << kEtMissPhiShift) | kEtMissOFlowBit | kEtMissMaxValue
}
 

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...
 
 L1GctEtMiss ()
 
 L1GctEtMiss (uint32_t rawData)
 For use with raw data from the unpacker. More...
 
 L1GctEtMiss (uint32_t rawData, int16_t bx)
 For use with raw data from the unpacker. More...
 
 L1GctEtMiss (unsigned et, unsigned phi, bool oflow)
 
 L1GctEtMiss (unsigned et, unsigned phi, bool oflow, int16_t bx)
 
std::string name () const
 name method More...
 
int operator!= (const L1GctEtMiss &e) const
 inequality operator More...
 
int operator== (const L1GctEtMiss &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 ~L1GctEtMiss ()
 

Private Attributes

int16_t m_bx
 
uint32_t m_data
 

Detailed Description

Persistable copy of missing Et measured at Level-1.

Definition at line 17 of file L1GctEtMiss.h.

Member Enumeration Documentation

◆ numberOfBits

To match the RAW format, EtMiss is on bits 11:0, Overflow flag on bit 12, and Phi is on bits 22:16. All other bits will be be zero.

Enumerator
kEtMissNBits 
kEtMissOFlowBit 
kEtMissMaxValue 
kEtMissPhiShift 
kEtMissPhiNBits 
kETMissPhiMask 
kEtMissPhiNBins 
kRawCtorMask 

Definition at line 21 of file L1GctEtMiss.h.

Constructor & Destructor Documentation

◆ L1GctEtMiss() [1/5]

L1GctEtMiss::L1GctEtMiss ( )

Definition at line 4 of file L1GctEtMiss.cc.

4 : m_data(0), m_bx(0) {}

◆ L1GctEtMiss() [2/5]

L1GctEtMiss::L1GctEtMiss ( uint32_t  rawData)

For use with raw data from the unpacker.

Definition at line 10 of file L1GctEtMiss.cc.

10 : m_data(rawData & kRawCtorMask), m_bx(0) {}

◆ L1GctEtMiss() [3/5]

L1GctEtMiss::L1GctEtMiss ( uint32_t  rawData,
int16_t  bx 
)

For use with raw data from the unpacker.

Definition at line 12 of file L1GctEtMiss.cc.

◆ L1GctEtMiss() [4/5]

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

Definition at line 14 of file L1GctEtMiss.cc.

14  : m_data(0), m_bx(0) {
15  if ((et <= kEtMissMaxValue) && (phi < kEtMissPhiNBins)) {
16  m_data = et | (oflow ? kEtMissOFlowBit : 0) | ((phi & kETMissPhiMask) << kEtMissPhiShift);
17  } else {
19  }
20 }

References et(), kEtMissMaxValue, kEtMissOFlowBit, kETMissPhiMask, kEtMissPhiNBins, kEtMissPhiShift, m_data, and phi().

◆ L1GctEtMiss() [5/5]

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

Definition at line 22 of file L1GctEtMiss.cc.

22  : m_data(0), m_bx(bx) {
23  if ((et <= kEtMissMaxValue) && (phi < kEtMissPhiNBins)) {
24  m_data = et | (oflow ? kEtMissOFlowBit : 0) | ((phi & kETMissPhiMask) << kEtMissPhiShift);
25  } else {
27  }
28 }

References et(), kEtMissMaxValue, kEtMissOFlowBit, kETMissPhiMask, kEtMissPhiNBins, kEtMissPhiShift, m_data, and phi().

◆ ~L1GctEtMiss()

L1GctEtMiss::~L1GctEtMiss ( )
virtual

Definition at line 30 of file L1GctEtMiss.cc.

30 {}

Member Function Documentation

◆ bx()

int16_t L1GctEtMiss::bx ( ) const
inline

get bunch-crossing index

Definition at line 65 of file L1GctEtMiss.h.

65 { return m_bx; }

References m_bx.

◆ empty()

bool L1GctEtMiss::empty ( ) const
inline

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

Definition at line 50 of file L1GctEtMiss.h.

50 { return false; }

◆ et()

unsigned L1GctEtMiss::et ( ) const
inline

◆ name()

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

name method

Definition at line 47 of file L1GctEtMiss.h.

47 { return "EtMiss"; }

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

◆ operator!=()

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

inequality operator

Definition at line 71 of file L1GctEtMiss.h.

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

References MillePedeFileConverter_cfg::e, and m_data.

◆ operator==()

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

equality operator

Definition at line 68 of file L1GctEtMiss.h.

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

References MillePedeFileConverter_cfg::e, and m_data.

◆ overFlow()

bool L1GctEtMiss::overFlow ( ) const
inline

get the overflow

Definition at line 59 of file L1GctEtMiss.h.

59 { return (m_data & kEtMissOFlowBit) != 0; }

References kEtMissOFlowBit, and m_data.

Referenced by L1GtEnergySumCondition::evaluateCondition().

◆ phi()

unsigned L1GctEtMiss::phi ( ) const
inline

◆ raw()

uint32_t L1GctEtMiss::raw ( ) const
inline

get the data

Definition at line 53 of file L1GctEtMiss.h.

53 { return m_data; }

References m_data.

Referenced by L1GlobalTriggerPSB::fillPsbBlock().

Member Data Documentation

◆ m_bx

int16_t L1GctEtMiss::m_bx
private

Definition at line 75 of file L1GctEtMiss.h.

Referenced by bx().

◆ m_data

uint32_t L1GctEtMiss::m_data
private

Definition at line 74 of file L1GctEtMiss.h.

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

L1GctEtMiss::et
unsigned et() const
get the magnitude
Definition: L1GctEtMiss.h:56
L1GctEtMiss::phi
unsigned phi() const
get the Et
Definition: L1GctEtMiss.h:62
l1tstage2_dqm_sourceclient-live_cfg.rawData
rawData
Definition: l1tstage2_dqm_sourceclient-live_cfg.py:156
L1GctEtMiss::kEtMissOFlowBit
Definition: L1GctEtMiss.h:23
L1GctEtMiss::kEtMissMaxValue
Definition: L1GctEtMiss.h:24
L1GctEtMiss::kETMissPhiMask
Definition: L1GctEtMiss.h:27
L1GctEtMiss::kEtMissPhiNBins
Definition: L1GctEtMiss.h:28
L1GctEtMiss::m_bx
int16_t m_bx
Definition: L1GctEtMiss.h:75
L1GctEtMiss::kRawCtorMask
Definition: L1GctEtMiss.h:29
L1GctEtMiss::kEtMissPhiNBits
Definition: L1GctEtMiss.h:26
L1GctEtMiss::m_data
uint32_t m_data
Definition: L1GctEtMiss.h:74
L1GctEtMiss::kEtMissNBits
Definition: L1GctEtMiss.h:22
L1GctEtMiss::bx
int16_t bx() const
get bunch-crossing index
Definition: L1GctEtMiss.h:65
L1GctEtMiss::kEtMissPhiShift
Definition: L1GctEtMiss.h:25
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37