ATLAS Offline Software
Loading...
Searching...
No Matches
TrigMissingEtComponent Class Reference

MET trigger slice components (auxiliary information for TrigMissingET). More...

#include <TrigMissingEtComponent.h>

Collaboration diagram for TrigMissingEtComponent:

Public Member Functions

 TrigMissingEtComponent ()
 constructor
 ~TrigMissingEtComponent ()
 destructor
void reset ()
 clean values and calibration constants
std::string getFormattedHeader ()
 use this to print the header of the table printed by the following method
std::string getFormattedValues ()
 print the (1-line) table of all attributes
const std::string & name () const
 get component name
short status () const
 get status flag
float ex () const
 get Ex
float ey () const
 get Ey
float ez () const
 get Ez
float sumEt () const
 get sum of |Et|
float sumE () const
 get sum of |E|
float calib0 () const
 get constant term, for calibration
float calib1 () const
 get scale, for calibration
short sumOfSigns () const
 get sum of energy signs, for calibration
unsigned short usedChannels () const
 get used channels
void setName (const char *s)
 set component name
void setStatus (short v)
 set status flag
void setEx (float v)
 set Ex
void setEy (float v)
 set Ey
void setEz (float v)
 set Ez
void setSumEt (float v)
 set sum of |Et|
void setSumE (float v)
 set sum of |E|
void setCalib0 (float v)
 set constant term, for calibration
void setCalib1 (float v)
 set scale, for calibration
void setSumOfSigns (short v)
 set sum of energy signs, for calibration
void setUsedChannels (unsigned short v)
 set number of used channels

Private Attributes

std::string m_name
 name
short m_status
 status flag
float m_ex
 Ey.
float m_ey
 Ey.
float m_ez
 Ez.
float m_sumEt
 sum of |Et|
float m_sumE
 sum of |E|
float m_calib0
 constant term, for calibration (default 0)
float m_calib1
 scale, for calibration (default 1)
short m_sumOfSigns
 calibration: sum of energy signs (-1, +1)
unsigned short m_usedChannels
 number of used channels

Detailed Description

MET trigger slice components (auxiliary information for TrigMissingET).

Definition at line 27 of file TrigMissingEtComponent.h.

Constructor & Destructor Documentation

◆ TrigMissingEtComponent()

TrigMissingEtComponent::TrigMissingEtComponent ( )

constructor

Definition at line 21 of file TrigMissingEtComponent.cxx.

22 : m_name ("empty")
23{
24 reset();
25}
void reset()
clean values and calibration constants

◆ ~TrigMissingEtComponent()

TrigMissingEtComponent::~TrigMissingEtComponent ( )

destructor

Definition at line 27 of file TrigMissingEtComponent.cxx.

27 {
28}

Member Function Documentation

◆ calib0()

float TrigMissingEtComponent::calib0 ( ) const
inline

get constant term, for calibration

Definition at line 58 of file TrigMissingEtComponent.h.

58{return m_calib0;}
float m_calib0
constant term, for calibration (default 0)

◆ calib1()

float TrigMissingEtComponent::calib1 ( ) const
inline

get scale, for calibration

Definition at line 60 of file TrigMissingEtComponent.h.

60{return m_calib1;}
float m_calib1
scale, for calibration (default 1)

◆ ex()

float TrigMissingEtComponent::ex ( ) const
inline

get Ex

Definition at line 48 of file TrigMissingEtComponent.h.

◆ ey()

float TrigMissingEtComponent::ey ( ) const
inline

get Ey

Definition at line 50 of file TrigMissingEtComponent.h.

◆ ez()

float TrigMissingEtComponent::ez ( ) const
inline

get Ez

Definition at line 52 of file TrigMissingEtComponent.h.

◆ getFormattedHeader()

std::string TrigMissingEtComponent::getFormattedHeader ( )

use this to print the header of the table printed by the following method

Definition at line 39 of file TrigMissingEtComponent.cxx.

39 {
40 std::string s="_name__status_usedChannels__sumOfSigns__calib1_calib0/MeV";
41 s+="___ex/MeV_____ey/MeV_____ez/MeV___sumE/MeV__sumEt/MeV";
42 return s;
43}

◆ getFormattedValues()

std::string TrigMissingEtComponent::getFormattedValues ( )

print the (1-line) table of all attributes

Definition at line 46 of file TrigMissingEtComponent.cxx.

46 {
47 char buff[256];
48 sprintf(buff,
49 "%s %7d %12d %11d %7.3f %7.2f %10.2f %10.2f %10.2f %10.2f %10.2f\n",
50 m_name.c_str(),
53 return std::string(buff);
54}
unsigned short m_usedChannels
number of used channels
short m_sumOfSigns
calibration: sum of energy signs (-1, +1)

◆ name()

const std::string & TrigMissingEtComponent::name ( ) const
inline

get component name

Definition at line 44 of file TrigMissingEtComponent.h.

44{return m_name;}

◆ reset()

void TrigMissingEtComponent::reset ( )

clean values and calibration constants

Definition at line 31 of file TrigMissingEtComponent.cxx.

31 {
33 m_calib0 = 0;
34 m_calib1 = 1;
35 m_ex = m_ey = m_ez = m_sumEt = m_sumE = 0;
36}

◆ setCalib0()

void TrigMissingEtComponent::setCalib0 ( float v)
inline

set constant term, for calibration

Definition at line 82 of file TrigMissingEtComponent.h.

◆ setCalib1()

void TrigMissingEtComponent::setCalib1 ( float v)
inline

set scale, for calibration

Definition at line 84 of file TrigMissingEtComponent.h.

84{m_calib1 = v;}

◆ setEx()

void TrigMissingEtComponent::setEx ( float v)
inline

set Ex

Definition at line 72 of file TrigMissingEtComponent.h.

72{m_ex = v;}

◆ setEy()

void TrigMissingEtComponent::setEy ( float v)
inline

set Ey

Definition at line 74 of file TrigMissingEtComponent.h.

74{m_ey = v;}

◆ setEz()

void TrigMissingEtComponent::setEz ( float v)
inline

set Ez

Definition at line 76 of file TrigMissingEtComponent.h.

76{m_ez = v;}

◆ setName()

void TrigMissingEtComponent::setName ( const char * s)
inline

set component name

Definition at line 68 of file TrigMissingEtComponent.h.

68{m_name = s;};

◆ setStatus()

void TrigMissingEtComponent::setStatus ( short v)
inline

set status flag

Definition at line 70 of file TrigMissingEtComponent.h.

70{m_status = v;}

◆ setSumE()

void TrigMissingEtComponent::setSumE ( float v)
inline

set sum of |E|

Definition at line 80 of file TrigMissingEtComponent.h.

80{m_sumE = v;}

◆ setSumEt()

void TrigMissingEtComponent::setSumEt ( float v)
inline

set sum of |Et|

Definition at line 78 of file TrigMissingEtComponent.h.

78{m_sumEt = v;}

◆ setSumOfSigns()

void TrigMissingEtComponent::setSumOfSigns ( short v)
inline

set sum of energy signs, for calibration

Definition at line 86 of file TrigMissingEtComponent.h.

86{m_sumOfSigns = v;}

◆ setUsedChannels()

void TrigMissingEtComponent::setUsedChannels ( unsigned short v)
inline

set number of used channels

Definition at line 88 of file TrigMissingEtComponent.h.

◆ status()

short TrigMissingEtComponent::status ( ) const
inline

get status flag

Definition at line 46 of file TrigMissingEtComponent.h.

46{return m_status;}

◆ sumE()

float TrigMissingEtComponent::sumE ( ) const
inline

get sum of |E|

Definition at line 56 of file TrigMissingEtComponent.h.

56{return m_sumE;}

◆ sumEt()

float TrigMissingEtComponent::sumEt ( ) const
inline

get sum of |Et|

Definition at line 54 of file TrigMissingEtComponent.h.

54{return m_sumEt;}

◆ sumOfSigns()

short TrigMissingEtComponent::sumOfSigns ( ) const
inline

get sum of energy signs, for calibration

Definition at line 62 of file TrigMissingEtComponent.h.

62{return m_sumOfSigns;}

◆ usedChannels()

unsigned short TrigMissingEtComponent::usedChannels ( ) const
inline

get used channels

Definition at line 64 of file TrigMissingEtComponent.h.

64{return m_usedChannels;}

Member Data Documentation

◆ m_calib0

float TrigMissingEtComponent::m_calib0
private

constant term, for calibration (default 0)

Definition at line 106 of file TrigMissingEtComponent.h.

◆ m_calib1

float TrigMissingEtComponent::m_calib1
private

scale, for calibration (default 1)

Definition at line 108 of file TrigMissingEtComponent.h.

◆ m_ex

float TrigMissingEtComponent::m_ex
private

Ey.

Definition at line 96 of file TrigMissingEtComponent.h.

◆ m_ey

float TrigMissingEtComponent::m_ey
private

Ey.

Definition at line 98 of file TrigMissingEtComponent.h.

◆ m_ez

float TrigMissingEtComponent::m_ez
private

Ez.

Definition at line 100 of file TrigMissingEtComponent.h.

◆ m_name

std::string TrigMissingEtComponent::m_name
private

name

Definition at line 92 of file TrigMissingEtComponent.h.

◆ m_status

short TrigMissingEtComponent::m_status
private

status flag

Definition at line 94 of file TrigMissingEtComponent.h.

◆ m_sumE

float TrigMissingEtComponent::m_sumE
private

sum of |E|

Definition at line 104 of file TrigMissingEtComponent.h.

◆ m_sumEt

float TrigMissingEtComponent::m_sumEt
private

sum of |Et|

Definition at line 102 of file TrigMissingEtComponent.h.

◆ m_sumOfSigns

short TrigMissingEtComponent::m_sumOfSigns
private

calibration: sum of energy signs (-1, +1)

Definition at line 110 of file TrigMissingEtComponent.h.

◆ m_usedChannels

unsigned short TrigMissingEtComponent::m_usedChannels
private

number of used channels

Definition at line 112 of file TrigMissingEtComponent.h.


The documentation for this class was generated from the following files: