ATLAS Offline Software
Functions
TrigMissingEtComponent.cxx File Reference
#include "TrigMissingEtEvent/TrigMissingEtComponent.h"
#include <math.h>
#include <stdio.h>
Include dependency graph for TrigMissingEtComponent.cxx:

Go to the source code of this file.

Functions

bool operator== (const TrigMissingEtComponent &a, const TrigMissingEtComponent &b)
 Operator comparing two objects for equality. More...
 

Function Documentation

◆ 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 }
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
a
TList * a
Definition: liststreamerinfos.cxx:10