ATLAS Offline Software
Public Types | Public Member Functions | Protected Attributes | List of all members
MissingET Class Reference

#include <MissingET.h>

Inheritance diagram for MissingET:
Collaboration diagram for MissingET:

Public Types

enum  Source {
  Calo = 0, Calib = 1, Truth = 2, Muon = 3,
  CaloRaw = 4, Final = 5, Cryo = 6, Topo = 7,
  Ref = 8, DeadMaterial = 9, Track = 10, ObjElectron = 100,
  ObjMuon = 101, ObjJet = 102, ObjIdTrk = 103, ObjMiniJet = 104,
  ObjRest = 105, ObjFinal = 106, Unknown = 999
}
 

Public Member Functions

 MissingET ()
 
 MissingET (MissingET::Source aSource)
 
 MissingET (MissingEtRegions *theRegions)
 
 MissingET (MissingET::Source aSource, MissingEtRegions *theRegions)
 
 MissingET (MissingET::Source aSource, std::unique_ptr< MissingEtRegions > theRegions, double ex, double ey, double etSum)
 Full constructor. More...
 
 MissingET (const MissingET &b)
 
MissingEToperator= (const MissingET &b)
 
 MissingET (MissingET &&b)=default
 Move. More...
 
MissingEToperator= (MissingET &&b)=default
 
virtual ~MissingET ()
 
virtual void setEx (double theEx)
 
virtual void setEy (double theEy)
 
virtual void setEtSum (double theSum)
 
virtual void add (double theEx, double theEy, double theEt, double theEta, double weight)
 
virtual double etx () const
 
virtual double ety () const
 
virtual double sumet () const
 
virtual double et () const
 
virtual double phi () const
 
virtual const MissingEtRegionsgetRegions () const
 
virtual Source getSource () const
 

Protected Attributes

std::unique_ptr< MissingEtRegionsm_regions
 
Source m_source
 
double m_ex
 
double m_ey
 
double m_etSum
 

Detailed Description

Definition at line 22 of file Reconstruction/MissingETEvent/MissingETEvent/MissingET.h.

Member Enumeration Documentation

◆ Source

Enumerator
Calo 
Calib 
Truth 
Muon 
CaloRaw 
Final 
Cryo 
Topo 
Ref 
DeadMaterial 
Track 
ObjElectron 
ObjMuon 
ObjJet 
ObjIdTrk 
ObjMiniJet 
ObjRest 
ObjFinal 
Unknown 

Definition at line 37 of file Reconstruction/MissingETEvent/MissingETEvent/MissingET.h.

Constructor & Destructor Documentation

◆ MissingET() [1/7]

MissingET::MissingET ( )

Definition at line 41 of file MissingET.cxx.

41  :
43  m_ex(0.),
44  m_ey(0.),
45  m_etSum(0.)
46 { }

◆ MissingET() [2/7]

MissingET::MissingET ( MissingET::Source  aSource)

Definition at line 49 of file MissingET.cxx.

49  :
50  m_source(aSource),
51  m_ex(0.),
52  m_ey(0.),
53  m_etSum(0.)
54 { }

◆ MissingET() [3/7]

MissingET::MissingET ( MissingEtRegions theRegions)

Definition at line 58 of file MissingET.cxx.

58  :
59  m_regions(theRegions),
61  m_ex(0.),
62  m_ey(0.),
63  m_etSum(0.)
64 { }

◆ MissingET() [4/7]

MissingET::MissingET ( MissingET::Source  aSource,
MissingEtRegions theRegions 
)

Definition at line 67 of file MissingET.cxx.

67  :
68  m_regions(theRegions),
69  m_source(aSource),
70  m_ex(0.),
71  m_ey(0.),
72  m_etSum(0.)
73 { }

◆ MissingET() [5/7]

MissingET::MissingET ( MissingET::Source  aSource,
std::unique_ptr< MissingEtRegions theRegions,
double  ex,
double  ey,
double  etSum 
)

Full constructor.

Definition at line 77 of file MissingET.cxx.

81  :
82  m_regions(std::move(theRegions)),
83  m_source(aSource),
84  m_ex(ex),
85  m_ey(ey),
86  m_etSum(etSum)
87 { }

◆ MissingET() [6/7]

MissingET::MissingET ( const MissingET b)

Definition at line 19 of file MissingET.cxx.

20 : m_regions(b.m_regions ? std::make_unique<MissingEtRegions>(*b.m_regions) : 0)
21 , m_source(b.m_source)
22 , m_ex(b.m_ex)
23 , m_ey(b.m_ey)
24 , m_etSum(b.m_etSum)
25 {}

◆ MissingET() [7/7]

MissingET::MissingET ( MissingET &&  b)
default

Move.

◆ ~MissingET()

MissingET::~MissingET ( )
virtual

Definition at line 91 of file MissingET.cxx.

92 {
93 }

Member Function Documentation

◆ add()

void MissingET::add ( double  theEx,
double  theEy,
double  theEt,
double  theEta,
double  weight 
)
virtual

Definition at line 127 of file MissingET.cxx.

129 {
130  // Note the minus sign! We want to calculate missing ET
131  m_ex -= theEx * weight;
132  m_ey -= theEy * weight;
133  m_etSum += theEt * weight;
134 
135  // regions
136  if ( m_regions != 0 ) m_regions->addReg(theEx, theEy, theEt, theEta, weight);
137 }

◆ et()

double MissingET::et ( ) const
virtual

Definition at line 153 of file MissingET.cxx.

154 {
155  return sqrt(m_ex*m_ex + m_ey*m_ey);
156 }

◆ etx()

double MissingET::etx ( ) const
virtual

Definition at line 141 of file MissingET.cxx.

142 {
143  return m_ex;
144 }

◆ ety()

double MissingET::ety ( ) const
virtual

Definition at line 145 of file MissingET.cxx.

146 {
147  return m_ey;
148 }

◆ getRegions()

const MissingEtRegions * MissingET::getRegions ( ) const
virtual

Definition at line 164 of file MissingET.cxx.

165 {
166  return m_regions.get();
167 }

◆ getSource()

MissingET::Source MissingET::getSource ( ) const
virtual

Definition at line 171 of file MissingET.cxx.

172 {
173  return m_source;
174 }

◆ operator=() [1/2]

MissingET & MissingET::operator= ( const MissingET b)

Definition at line 28 of file MissingET.cxx.

28  {
29  if(this != &b) {
30  m_regions = (b.m_regions ? std::make_unique<MissingEtRegions>(*b.m_regions) : 0);
31  m_source = b.m_source;
32  m_ex = b.m_ex;
33  m_ey = b.m_ey;
34  m_etSum = b.m_etSum;
35  }
36  return *this;
37 }

◆ operator=() [2/2]

MissingET& MissingET::operator= ( MissingET &&  b)
default

◆ phi()

double MissingET::phi ( ) const
virtual

Definition at line 157 of file MissingET.cxx.

158 {
159 
160  return atan2(m_ey,m_ex);
161 }

◆ setEtSum()

void MissingET::setEtSum ( double  theSum)
virtual

Definition at line 104 of file MissingET.cxx.

105 {
106  m_etSum = theEtSum;
107 }

◆ setEx()

void MissingET::setEx ( double  theEx)
virtual

Definition at line 96 of file MissingET.cxx.

97 {
98  m_ex = theEx;
99 }

◆ setEy()

void MissingET::setEy ( double  theEy)
virtual

Definition at line 100 of file MissingET.cxx.

101 {
102  m_ey = theEy;
103 }

◆ sumet()

double MissingET::sumet ( ) const
virtual

Definition at line 149 of file MissingET.cxx.

150 {
151  return m_etSum;
152 }

Member Data Documentation

◆ m_etSum

double MissingET::m_etSum
protected

◆ m_ex

double MissingET::m_ex
protected

◆ m_ey

double MissingET::m_ey
protected

◆ m_regions

std::unique_ptr<MissingEtRegions> MissingET::m_regions
protected

◆ m_source

Source MissingET::m_source
protected

The documentation for this class was generated from the following files:
MissingET::m_source
Source m_source
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingET.h:119
MissingET::m_ey
double m_ey
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingET.h:123
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:189
MissingET::m_ex
double m_ex
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingET.h:122
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
MissingET::m_regions
std::unique_ptr< MissingEtRegions > m_regions
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingET.h:117
MissingET::Unknown
@ Unknown
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingET.h:66
MissingET::m_etSum
double m_etSum
Definition: Reconstruction/MissingETEvent/MissingETEvent/MissingET.h:124