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

Class for LVL2/EF MissingET trigger. More...

#include <TrigMissingET.h>

Collaboration diagram for TrigMissingET:

Public Member Functions

 TrigMissingET ()=default
 default constructor
 TrigMissingET (unsigned char n)
 constructor (input is number of auxiliary components; if n==0 is like default)
 TrigMissingET (std::vector< TrigMissingEtComponent > &&compVec)
void clear ()
 reset contents
float ex () const
 Ex component of missing energy vector.
float ey () const
 Ey component of missing energy vector.
float ez () const
 Ez component of missing energy vector.
float sumEt () const
 sum of |Et|
float sumE () const
 sum of |E|
float et () const
 (modulus of) transverse energy
float e () const
 (modulus of) energy
int getFlag () const
 event flag: 0 (default) means OK
long RoIword () const
 RoI word.
void addEx (float ex)
 increment Ex component
void addEy (float ey)
 increment Ey component
void addEz (float ez)
 increment Ez component
void addSumEt (float ets)
 increment sumEt
void addSumE (float sumE)
 increment sumE
void setEx (float ex)
 set Ex component
void setEy (float ey)
 set Ey component
void setEz (float ez)
 set Ez component
void setSumEt (float ets)
 set sum of |Et|
void setSumE (float sumE)
 set sum of |E|
void setFlag (int flag)
 set event flag
void set_RoIword (long word)
 set RoIword
unsigned int getNumOfComponents () const
 get number of auxiliary components

Private Attributes

float m_ex {}
 Basic information: Ex component.
float m_ey {}
 Basic information: Ey component.
float m_ez {}
 Basic information: Ez component.
float m_sum_et {}
 Basic information: scalar sum of Et.
float m_sum_e {}
 Basic information: scalar sum of E.
int m_flag {}
 Basic information: event status flag: 0 (default) means OK.
long m_roiWord {}
 Basic information: RoIword.
std::vector< TrigMissingEtComponentm_compVec
 Auxiliary information: components from different calo layers and muons.

Friends

MsgStream & operator<< (MsgStream &m, const TrigMissingET &d)
 get name of component index' */ std::string getNameOfComponent(unsigned int index) const; /** get Ex from component index' */ float getExComponent(unsigned int index) const; /** get Ey from component index' */ float getEyComponent(unsigned int index) const; /** get Ez from component index' */ float getEzComponent(unsigned int index) const; /** get sum of |Et| from component index' */ float getSumEtComponent(unsigned int index) const; /** get sum of |E| from component index' */ float getSumEComponent(unsigned int index) const; /** get constant term for calibration of component index' */ float getComponentCalib0(unsigned int index) const; /** get scale for calibration of component index' */ float getComponentCalib1(unsigned int index) const; /** get sum of energy signs for calibration of component index' */ short getSumOfSigns(unsigned int index) const; /** get number of used channes in component index' */ unsigned short getUsedChannels(unsigned int index) const; /** get status flag for component `index' */ short getStatus(unsigned int index) const;

Detailed Description

Class for LVL2/EF MissingET trigger.

Definition at line 36 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

Constructor & Destructor Documentation

◆ TrigMissingET() [1/3]

TrigMissingET::TrigMissingET ( )
default

default constructor

◆ TrigMissingET() [2/3]

TrigMissingET::TrigMissingET ( unsigned char n)
explicit

constructor (input is number of auxiliary components; if n==0 is like default)

definition of auxiliary information

Definition at line 15 of file TrigMissingET.cxx.

15 :
16 m_ex(0), m_ey(0), m_ez(0), m_sum_et(0), m_sum_e(0),
17 m_flag(0), m_roiWord(0)
18{
20 // 1. muons + all calo samplings in barrel + calo samplings in both end-caps
21 char names25[25][6] = {"EMB0", "EMB1", "EMB2", "EMB3",
22 "EME0", "EME1", "EME2", "EME3",
23 "HEC0", "HEC1", "HEC2", "HEC3",
24 "TiB0", "TiB1", "TiB2",
25 "TiG1", "TiG2", "TiG3",
26 "TiE0", "TiE1", "TiE2",
27 "FCa0", "FCa1", "FCa2",
28 "Muon"};
29
30 // 2. only muons
31 char names1[1][6] = {"Muon"};
32
33 // 3. muons + sum of all EM + sum of all HAD
34 char names3[3][6] = {"Muon", "E.M.", "Had."};
35
36 // 4. muons + EM_barrel + EM_endcaps + HAD_barrel + HAD_endcaps
37 char names5[5][6] = {"Muon", "EM_B", "EM_E", "HadB", "HadE"};
38
39 if (n>0) m_compVec.reserve(n);
40 for (int i=0; i<n; ++i) {
41 TrigMissingEtComponent c;
42 if (n==25) {
43 c.setName(names25[i]);
44 } else if (n==1) {
45 c.setName(names1[i]);
46 } else if (n==3) {
47 c.setName(names3[i]);
48 } else if (n==5) {
49 c.setName(names5[i]);
50 } else {
51 c.setName("????");
52 }
53 m_compVec.push_back(c);
54 }
55}
int m_flag
Basic information: event status flag: 0 (default) means OK.
std::vector< TrigMissingEtComponent > m_compVec
Auxiliary information: components from different calo layers and muons.

◆ TrigMissingET() [3/3]

TrigMissingET::TrigMissingET ( std::vector< TrigMissingEtComponent > && compVec)

Definition at line 58 of file TrigMissingET.cxx.

59 : m_ex(0), m_ey(0), m_ez(0), m_sum_et(0), m_sum_e(0),
60 m_flag(0), m_roiWord(0),
61 m_compVec (std::move(compVec))
62{
63}

Member Function Documentation

◆ addEx()

void TrigMissingET::addEx ( float ex)
inline

increment Ex component

Definition at line 70 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

70{ m_ex += ex; }
float ex() const
Ex component of missing energy vector.

◆ addEy()

void TrigMissingET::addEy ( float ey)
inline

increment Ey component

Definition at line 72 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

72{ m_ey += ey; }
float ey() const
Ey component of missing energy vector.

◆ addEz()

void TrigMissingET::addEz ( float ez)
inline

increment Ez component

Definition at line 74 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

74{ m_ez += ez; }
float ez() const
Ez component of missing energy vector.

◆ addSumE()

void TrigMissingET::addSumE ( float sumE)
inline

◆ addSumEt()

void TrigMissingET::addSumEt ( float ets)
inline

increment sumEt

Definition at line 77 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

77{ m_sum_et += ets; }

◆ clear()

void TrigMissingET::clear ( )

reset contents

Definition at line 68 of file TrigMissingET.cxx.

69{
70
71 m_ex=0;
72 m_ey=0;
73 m_ez=0;
74 m_sum_et=0;
75 m_sum_e=0;
76 m_flag=0;
77
78 for (unsigned int i=0; i<m_compVec.size(); ++i) {
79 m_compVec[i].reset();
80 }
81
82}

◆ e()

float TrigMissingET::e ( ) const
inline

(modulus of) energy

Definition at line 62 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

62{ return std::sqrt(m_ex*m_ex+m_ey*m_ey+m_ez*m_ez); }

◆ et()

float TrigMissingET::et ( ) const
inline

(modulus of) transverse energy

Definition at line 60 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

60{ return std::sqrt(m_ex*m_ex+m_ey*m_ey); }

◆ ex()

float TrigMissingET::ex ( ) const
inline

Ex component of missing energy vector.

Definition at line 50 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

50{ return m_ex; }

◆ ey()

float TrigMissingET::ey ( ) const
inline

Ey component of missing energy vector.

Definition at line 52 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

52{ return m_ey; }

◆ ez()

float TrigMissingET::ez ( ) const
inline

Ez component of missing energy vector.

Definition at line 54 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

54{ return m_ez; }

◆ getFlag()

int TrigMissingET::getFlag ( ) const
inline

event flag: 0 (default) means OK

Definition at line 65 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

65{return m_flag;}

◆ getNumOfComponents()

unsigned int TrigMissingET::getNumOfComponents ( ) const
inline

get number of auxiliary components

Definition at line 98 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

98{return m_compVec.size();}

◆ RoIword()

long TrigMissingET::RoIword ( ) const
inline

RoI word.

Definition at line 67 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

67{ return m_roiWord; }

◆ set_RoIword()

void TrigMissingET::set_RoIword ( long word)
inline

set RoIword

Definition at line 95 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

95{ m_roiWord=word; }

◆ setEx()

void TrigMissingET::setEx ( float ex)
inline

set Ex component

Definition at line 82 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

82{ m_ex = ex; }

◆ setEy()

void TrigMissingET::setEy ( float ey)
inline

set Ey component

Definition at line 84 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

84{ m_ey = ey; }

◆ setEz()

void TrigMissingET::setEz ( float ez)
inline

set Ez component

Definition at line 86 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

86{ m_ez = ez; }

◆ setFlag()

void TrigMissingET::setFlag ( int flag)
inline

set event flag

Definition at line 93 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

93{ m_flag=flag; }
bool flag
Definition master.py:29

◆ setSumE()

void TrigMissingET::setSumE ( float sumE)
inline

set sum of |E|

Definition at line 90 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

90{ m_sum_e = sumE; }

◆ setSumEt()

void TrigMissingET::setSumEt ( float ets)
inline

set sum of |Et|

Definition at line 88 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

88{ m_sum_et = ets; }

◆ sumE()

float TrigMissingET::sumE ( ) const
inline

sum of |E|

Definition at line 58 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

58{ return m_sum_e; }

◆ sumEt()

float TrigMissingET::sumEt ( ) const
inline

sum of |Et|

Definition at line 56 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

56{ return m_sum_et; }

◆ operator<<

MsgStream & operator<< ( MsgStream & m,
const TrigMissingET & d )
friend

get name of component index' */ std::string getNameOfComponent(unsigned int index) const; /** get Ex from component index' */ float getExComponent(unsigned int index) const; /** get Ey from component index' */ float getEyComponent(unsigned int index) const; /** get Ez from component index' */ float getEzComponent(unsigned int index) const; /** get sum of |Et| from component index' */ float getSumEtComponent(unsigned int index) const; /** get sum of |E| from component index' */ float getSumEComponent(unsigned int index) const; /** get constant term for calibration of component index' */ float getComponentCalib0(unsigned int index) const; /** get scale for calibration of component index' */ float getComponentCalib1(unsigned int index) const; /** get sum of energy signs for calibration of component index' */ short getSumOfSigns(unsigned int index) const; /** get number of used channes in component index' */ unsigned short getUsedChannels(unsigned int index) const; /** get status flag for component `index' */ short getStatus(unsigned int index) const;

/** set name of component index' */ void setNameOfComponent(unsigned int index, const char* str); /** set Ex for component index' */ void setExComponent(unsigned int index, float value); /** set Ey for component index' */ void setEyComponent(unsigned int index, float value); /** set Ez for component index' */ void setEzComponent(unsigned int index, float value); /** set sum of |Et| for component index' */ void setSumEtComponent(unsigned int index, float value); /** set sum of |E| for component index' */ void setSumEComponent(unsigned int index, float value); /** set constant term for calibration of component index' */ void setComponentCalib0(unsigned int index, float value); /** set scale for calibration of component index' */ void setComponentCalib1(unsigned int index, float value); /** set sum of energy signs for calibration of component index' */ void setSumOfSigns(unsigned int index, short value); /** set number of used channels in component index' */ void setUsedChannels(unsigned int index, unsigned short value); /** set status flag of component `index' */ void setStatus(unsigned int index, short value);

/** formatted output

Definition at line 329 of file TrigMissingET.cxx.

329 {
330 return ( m << str( d ) );
331}

Member Data Documentation

◆ m_compVec

std::vector< TrigMissingEtComponent > TrigMissingET::m_compVec
private

Auxiliary information: components from different calo layers and muons.

Definition at line 169 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

◆ m_ex

float TrigMissingET::m_ex {}
private

Basic information: Ex component.

Definition at line 153 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

153{};

◆ m_ey

float TrigMissingET::m_ey {}
private

Basic information: Ey component.

Definition at line 155 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

155{};

◆ m_ez

float TrigMissingET::m_ez {}
private

Basic information: Ez component.

Definition at line 157 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

157{};

◆ m_flag

int TrigMissingET::m_flag {}
private

Basic information: event status flag: 0 (default) means OK.

Definition at line 163 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

163{};

◆ m_roiWord

long TrigMissingET::m_roiWord {}
private

Basic information: RoIword.

Definition at line 165 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

165{};

◆ m_sum_e

float TrigMissingET::m_sum_e {}
private

Basic information: scalar sum of E.

Definition at line 161 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

161{};

◆ m_sum_et

float TrigMissingET::m_sum_et {}
private

Basic information: scalar sum of Et.

Definition at line 159 of file Trigger/TrigEvent/TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingET.h.

159{};

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