ATLAS Offline Software
TrigMissingEtEvent/TrigMissingEtEvent/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 
20 #include "AthenaKernel/CLASS_DEF.h"
21 #include <string>
22 
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 
126 CLASS_DEF( TrigMissingEtComponent , 129642584 , 1 )
127 
128 #endif
TrigMissingEtComponent::m_calib1
float m_calib1
scale, for calibration (default 1)
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:108
TrigMissingEtComponent::setSumOfSigns
void setSumOfSigns(short v)
set sum of energy signs, for calibration
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:86
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
TrigMissingEtComponent::m_ey
float m_ey
Ey.
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:98
TrigMissingEtComponent
MET trigger slice components (auxiliary information for TrigMissingET)
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:27
TrigMissingEtComponent::setSumEt
void setSumEt(float v)
set sum of |Et|
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:78
TrigMissingEtComponent::ex
float ex() const
get Ex
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:48
TrigMissingEtComponent::calib0
float calib0() const
get constant term, for calibration
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:58
TrigMissingEtComponent::m_status
short m_status
status flag
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:94
TrigMissingEtComponent::status
short status() const
get status flag
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:46
TrigMissingEtComponent::m_sumEt
float m_sumEt
sum of |Et|
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:102
TrigMissingEtComponent::m_ez
float m_ez
Ez.
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:100
TrigMissingEtComponent::reset
void reset()
clean values and calibration constants
Definition: TrigMissingEtComponent.cxx:31
operator!=
bool operator!=(const TrigMissingEtComponent &a, const TrigMissingEtComponent &b)
Operator comparing two objects for inequality.
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:121
operator==
bool operator==(const TrigMissingEtComponent &a, const TrigMissingEtComponent &b)
Operator comparing two objects for equality.
Definition: TrigMissingEtComponent.cxx:57
TrigMissingEtComponent::m_sumE
float m_sumE
sum of |E|
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:104
TrigMissingEtComponent::getFormattedValues
std::string getFormattedValues()
print the (1-line) table of all attributes
Definition: TrigMissingEtComponent.cxx:46
TrigMissingEtComponent::m_name
std::string m_name
name
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:92
TrigMissingEtComponent::ez
float ez() const
get Ez
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:52
TrigMissingEtComponent::m_ex
float m_ex
Ey.
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:96
TrigMissingEtComponent::setCalib0
void setCalib0(float v)
set constant term, for calibration
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:82
TrigMissingEtComponent::sumOfSigns
short sumOfSigns() const
get sum of energy signs, for calibration
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:62
TrigMissingEtComponent::setCalib1
void setCalib1(float v)
set scale, for calibration
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:84
TrigMissingEtComponent::sumEt
float sumEt() const
get sum of |Et|
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:54
TrigMissingEtComponent::sumE
float sumE() const
get sum of |E|
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:56
TrigMissingEtComponent::calib1
float calib1() const
get scale, for calibration
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:60
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
TrigMissingEtComponent::setEx
void setEx(float v)
set Ex
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:72
TrigMissingEtComponent::setEy
void setEy(float v)
set Ey
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:74
TrigMissingEtComponent::usedChannels
unsigned short usedChannels() const
get used channels
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:64
TrigMissingEtComponent::setName
void setName(const char *s)
set component name
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:68
TrigMissingEtComponent::TrigMissingEtComponent
TrigMissingEtComponent()
constructor
Definition: TrigMissingEtComponent.cxx:21
python.PyAthena.v
v
Definition: PyAthena.py:154
TrigMissingEtComponent::m_usedChannels
unsigned short m_usedChannels
number of used channels
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:112
a
TList * a
Definition: liststreamerinfos.cxx:10
TrigMissingEtComponent::setUsedChannels
void setUsedChannels(unsigned short v)
set number of used channels
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:88
TrigMissingEtComponent::setStatus
void setStatus(short v)
set status flag
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:70
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
TrigMissingEtComponent::getFormattedHeader
std::string getFormattedHeader()
use this to print the header of the table printed by the following method
Definition: TrigMissingEtComponent.cxx:39
TrigMissingEtComponent::ey
float ey() const
get Ey
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:50
TrigMissingEtComponent::m_calib0
float m_calib0
constant term, for calibration (default 0)
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:106
TrigMissingEtComponent::setEz
void setEz(float v)
set Ez
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:76
TrigMissingEtComponent::~TrigMissingEtComponent
~TrigMissingEtComponent()
destructor
Definition: TrigMissingEtComponent.cxx:27
TrigMissingEtComponent::name
const std::string & name() const
get component name
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:44
CLASS_DEF.h
macros to associate a CLID to a type
TrigMissingEtComponent::setSumE
void setSumE(float v)
set sum of |E|
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:80
TrigMissingEtComponent::m_sumOfSigns
short m_sumOfSigns
calibration: sum of energy signs (-1, +1)
Definition: TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:110