CMS 3D CMS Logo

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

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

#include <L1GctEtTotal.h>

Public Types

enum  numberOfBits { kEtTotalNBits = 12, kEtTotalOFlowBit = 1 << kEtTotalNBits, kEtTotalMaxValue = kEtTotalOFlowBit - 1, kRawCtorMask = kEtTotalOFlowBit | kEtTotalMaxValue }
 

Public Member Functions

int16_t bx () const
 get bunch-crossing index More...
 
bool empty () const
 empty method (= false; total Et is always calculated) More...
 
unsigned et () const
 get the Et More...
 
 L1GctEtTotal ()
 
 L1GctEtTotal (uint16_t rawData)
 
 L1GctEtTotal (uint16_t rawData, int16_t bx)
 
 L1GctEtTotal (unsigned et, bool oflow)
 
 L1GctEtTotal (unsigned et, bool oflow, int16_t bx)
 
std::string name () const
 name method More...
 
int operator!= (const L1GctEtTotal &e) const
 inequality operator More...
 
int operator== (const L1GctEtTotal &e) const
 equality operator More...
 
bool overFlow () const
 get the overflow More...
 
uint16_t raw () const
 get the data More...
 
virtual ~L1GctEtTotal ()
 

Private Attributes

int16_t m_bx
 
uint16_t m_data
 

Detailed Description

Persistable copy of total Et measured at Level-1.

Definition at line 17 of file L1GctEtTotal.h.

Member Enumeration Documentation

◆ numberOfBits

Enumerator
kEtTotalNBits 
kEtTotalOFlowBit 
kEtTotalMaxValue 
kRawCtorMask 

Definition at line 19 of file L1GctEtTotal.h.

Constructor & Destructor Documentation

◆ L1GctEtTotal() [1/5]

L1GctEtTotal::L1GctEtTotal ( )

Definition at line 4 of file L1GctEtTotal.cc.

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

◆ L1GctEtTotal() [2/5]

L1GctEtTotal::L1GctEtTotal ( uint16_t  rawData)

Definition at line 6 of file L1GctEtTotal.cc.

◆ L1GctEtTotal() [3/5]

L1GctEtTotal::L1GctEtTotal ( uint16_t  rawData,
int16_t  bx 
)

Definition at line 8 of file L1GctEtTotal.cc.

◆ L1GctEtTotal() [4/5]

L1GctEtTotal::L1GctEtTotal ( unsigned  et,
bool  oflow 
)

Definition at line 10 of file L1GctEtTotal.cc.

10  : m_data(0), m_bx(0) {
11  m_data = (et & kEtTotalMaxValue) | ((oflow || et > kEtTotalMaxValue) ? kEtTotalOFlowBit : 0);
12 }

References et(), kEtTotalMaxValue, kEtTotalOFlowBit, and m_data.

◆ L1GctEtTotal() [5/5]

L1GctEtTotal::L1GctEtTotal ( unsigned  et,
bool  oflow,
int16_t  bx 
)

Definition at line 14 of file L1GctEtTotal.cc.

14  : m_data(0), m_bx(bx) {
15  m_data = (et & kEtTotalMaxValue) | ((oflow || et > kEtTotalMaxValue) ? kEtTotalOFlowBit : 0);
16 }

References et(), kEtTotalMaxValue, kEtTotalOFlowBit, and m_data.

◆ ~L1GctEtTotal()

L1GctEtTotal::~L1GctEtTotal ( )
virtual

Definition at line 18 of file L1GctEtTotal.cc.

18 {}

Member Function Documentation

◆ bx()

int16_t L1GctEtTotal::bx ( ) const
inline

get bunch-crossing index

Definition at line 49 of file L1GctEtTotal.h.

49 { return m_bx; }

References m_bx.

◆ empty()

bool L1GctEtTotal::empty ( ) const
inline

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

Definition at line 37 of file L1GctEtTotal.h.

37 { return false; }

◆ et()

unsigned L1GctEtTotal::et ( ) const
inline

◆ name()

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

name method

Definition at line 34 of file L1GctEtTotal.h.

34 { return "EtTotal"; }

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

◆ operator!=()

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

inequality operator

Definition at line 55 of file L1GctEtTotal.h.

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

References MillePedeFileConverter_cfg::e, and m_data.

◆ operator==()

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

equality operator

Definition at line 52 of file L1GctEtTotal.h.

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

References MillePedeFileConverter_cfg::e, and m_data.

◆ overFlow()

bool L1GctEtTotal::overFlow ( ) const
inline

get the overflow

Definition at line 46 of file L1GctEtTotal.h.

46 { return (m_data & kEtTotalOFlowBit) != 0; }

References kEtTotalOFlowBit, and m_data.

Referenced by L1GtEnergySumCondition::evaluateCondition().

◆ raw()

uint16_t L1GctEtTotal::raw ( ) const
inline

get the data

Definition at line 40 of file L1GctEtTotal.h.

40 { return m_data; }

References m_data.

Referenced by L1GtPatternGenerator::analyze(), and L1GlobalTriggerPSB::fillPsbBlock().

Member Data Documentation

◆ m_bx

int16_t L1GctEtTotal::m_bx
private

Definition at line 59 of file L1GctEtTotal.h.

Referenced by bx().

◆ m_data

uint16_t L1GctEtTotal::m_data
private

Definition at line 58 of file L1GctEtTotal.h.

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

L1GctEtTotal::kRawCtorMask
Definition: L1GctEtTotal.h:23
l1tstage2_dqm_sourceclient-live_cfg.rawData
rawData
Definition: l1tstage2_dqm_sourceclient-live_cfg.py:162
L1GctEtTotal::kEtTotalNBits
Definition: L1GctEtTotal.h:20
L1GctEtTotal::bx
int16_t bx() const
get bunch-crossing index
Definition: L1GctEtTotal.h:49
L1GctEtTotal::kEtTotalMaxValue
Definition: L1GctEtTotal.h:22
L1GctEtTotal::m_bx
int16_t m_bx
Definition: L1GctEtTotal.h:59
L1GctEtTotal::kEtTotalOFlowBit
Definition: L1GctEtTotal.h:21
L1GctEtTotal::m_data
uint16_t m_data
Definition: L1GctEtTotal.h:58
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
L1GctEtTotal::et
unsigned et() const
get the Et
Definition: L1GctEtTotal.h:43