ATLAS Offline Software
Loading...
Searching...
No Matches
TrigMuonEFIsolation.h File Reference
#include "AthenaKernel/CLASS_DEF.h"
#include "AthLinks/ElementLink.h"
#include "TrigMuonEvent/TrigMuonEFInfoContainer.h"
Include dependency graph for TrigMuonEFIsolation.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TrigMuonEFIsolation
 EDM class for holding results of EF muon isolation calculation. More...

Functions

bool operator== (const TrigMuonEFIsolation &a, const TrigMuonEFIsolation &b)
 Operator comparing two TrigMuonEFIsolation objects for equality.
bool operator!= (const TrigMuonEFIsolation &a, const TrigMuonEFIsolation &b)
 Operator comparing two TrigMuonEFIsolation objects for inequality.

Function Documentation

◆ operator!=()

Operator comparing two TrigMuonEFIsolation objects for inequality.

Definition at line 122 of file TrigMuonEFIsolation.h.

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

◆ operator==()

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

Operator comparing two TrigMuonEFIsolation objects for equality.

This operator checks whether two TrigMuonEFIsolation objects are the same based on the private members of the class.

Operator comparing two TrigMuonEFIsolation objects for equality.

Definition at line 151 of file TrigMuonEFIsolation.cxx.

151 {
152 if( std::abs( a.sumTrkPtCone02() - b.sumTrkPtCone02() ) > DELTA )
153 return false;
154 if( std::abs( a.sumTrkPtCone03() - b.sumTrkPtCone03() ) > DELTA )
155 return false;
156 if( std::abs( a.sumEtCone01() - b.sumEtCone01() ) > DELTA )
157 return false;
158 if( std::abs( a.sumEtCone02() - b.sumEtCone02() ) > DELTA )
159 return false;
160 if( std::abs( a.sumEtCone03() - b.sumEtCone03() ) > DELTA )
161 return false;
162 if( std::abs( a.sumEtCone04() - b.sumEtCone04() ) > DELTA )
163 return false;
164 if( a.trackPosition() != b.trackPosition() )
165 return false;
166 if( a.getEFMuonInfoTrack() != b.getEFMuonInfoTrack() )
167 return false;
168
169 return true;
170}
static const double DELTA