ATLAS Offline Software
Loading...
Searching...
No Matches
TrigMissingEtComponent.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5// ********************************************************************
6//
7// NAME: TrigMissingEtComponent.h
8// PACKAGE: Trigger/TrigEvent/TrigCaloEvent
9//
10// AUTHOR: Diego Casadei
11// CREATED: April, 2008
12//
13// Description: MET trigger slice components (auxiliary information).
14//
15// ********************************************************************
16
17#ifndef TRIGCALOEVENT_TRIGMISSINGETCOMPONENT_H
18#define TRIGCALOEVENT_TRIGMISSINGETCOMPONENT_H
19
21#include <string>
22
26
28
29 public:
30
36 void reset();
38 std::string getFormattedHeader();
40 std::string getFormattedValues();
41
42 // Read access
44 const std::string& name() const {return m_name;}
46 short status() const {return m_status;}
48 float ex() const {return m_ex;}
50 float ey() const {return m_ey;}
52 float ez() const {return m_ez;}
54 float sumEt() const {return m_sumEt;}
56 float sumE() const {return m_sumE;}
58 float calib0() const {return m_calib0;}
60 float calib1() const {return m_calib1;}
62 short sumOfSigns() const {return m_sumOfSigns;}
64 unsigned short usedChannels() const {return m_usedChannels;}
65
66 // Write access
68 void setName(const char* s) {m_name = s;};
70 void setStatus(short v) {m_status = v;}
72 void setEx(float v) {m_ex = v;}
74 void setEy(float v) {m_ey = v;}
76 void setEz(float v) {m_ez = v;}
78 void setSumEt(float v) {m_sumEt = v;}
80 void setSumE(float v) {m_sumE = v;}
82 void setCalib0(float v) {m_calib0 = v;}
84 void setCalib1(float v) {m_calib1 = v;}
86 void setSumOfSigns(short v) {m_sumOfSigns = v;}
88 void setUsedChannels(unsigned short v) {m_usedChannels = v;}
89
90 private:
92 std::string m_name;
94 short m_status; //<! default 0 = OK
96 float m_ex;
98 float m_ey;
100 float m_ez;
102 float m_sumEt;
104 float m_sumE;
106 float m_calib0;
108 float m_calib1;
112 unsigned short m_usedChannels;
113
114};
115
116
119
122 return !( a == b );
123}
124
125
126CLASS_DEF( TrigMissingEtComponent , 129642584 , 1 )
127
128#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
static Double_t a
bool operator==(const TrigMissingEtComponent &a, const TrigMissingEtComponent &b)
Operator comparing two objects for equality.
bool operator!=(const TrigMissingEtComponent &a, const TrigMissingEtComponent &b)
Operator comparing two objects for inequality.
MET trigger slice components (auxiliary information for TrigMissingET).
short status() const
get status flag
void setName(const char *s)
set component name
float sumE() const
get sum of |E|
float sumEt() const
get sum of |Et|
float calib1() const
get scale, for calibration
void setSumE(float v)
set sum of |E|
void setSumEt(float v)
set sum of |Et|
void setCalib0(float v)
set constant term, for calibration
void setCalib1(float v)
set scale, for calibration
std::string getFormattedHeader()
use this to print the header of the table printed by the following method
const std::string & name() const
get component name
short sumOfSigns() const
get sum of energy signs, for calibration
float m_calib0
constant term, for calibration (default 0)
void setStatus(short v)
set status flag
float m_calib1
scale, for calibration (default 1)
std::string getFormattedValues()
print the (1-line) table of all attributes
void setSumOfSigns(short v)
set sum of energy signs, for calibration
void setUsedChannels(unsigned short v)
set number of used channels
unsigned short m_usedChannels
number of used channels
void reset()
clean values and calibration constants
unsigned short usedChannels() const
get used channels
float calib0() const
get constant term, for calibration
short m_sumOfSigns
calibration: sum of energy signs (-1, +1)