ATLAS Offline Software
Loading...
Searching...
No Matches
TrigMissingEtComponent.h File Reference
#include "AthenaKernel/CLASS_DEF.h"
#include <string>
Include dependency graph for TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Functions

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.

Function Documentation

◆ operator!=()

bool operator!= ( const TrigMissingEtComponent & a,
const TrigMissingEtComponent & b )
inline

Operator comparing two objects for inequality.

Definition at line 121 of file TrigMissingEtEvent/TrigMissingEtEvent/TrigMissingEtComponent.h.

121 {
122 return !( a == b );
123}
static Double_t a

◆ operator==()

bool operator== ( const TrigMissingEtComponent & a,
const TrigMissingEtComponent & b )

Operator comparing two objects for equality.

Definition at line 57 of file TrigMissingEtComponent.cxx.

57 {
58
59 const double DELTA=1e-3; // distance used to compare floats
60
61 if( a.name() != b.name() )
62 return false;
63 if( a.status() != b.status() )
64 return false;
65 if( a.sumOfSigns() != b.sumOfSigns() )
66 return false;
67 if( a.usedChannels() != b.usedChannels() )
68 return false;
69
70 if( fabsf(a.ex() - b.ex()) > DELTA )
71 return false;
72 if( fabsf(a.ey() - b.ey()) > DELTA )
73 return false;
74 if( fabsf(a.ez() - b.ez()) > DELTA )
75 return false;
76 if( fabsf(a.sumEt() - b.sumEt()) > DELTA )
77 return false;
78 if( fabsf(a.sumE() - b.sumE()) > DELTA )
79 return false;
80 if( fabsf(a.calib0() - b.calib0()) > DELTA )
81 return false;
82 if( fabsf(a.calib1() - b.calib1()) > DELTA )
83 return false;
84
85 return true;
86}
static const double DELTA