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

Go to the source code of this file.

Classes

class  TileMuFeature

Functions

std::string str (const TileMuFeature &d)
 Helper function for printing the object.
MsgStream & operator<< (MsgStream &m, const TileMuFeature &d)
 Helper operator for printing the object.
bool operator== (const TileMuFeature &a, const TileMuFeature &b)
 Operator comparing two CombinedMuonFeature objects for equality.
bool operator!= (const TileMuFeature &a, const TileMuFeature &b)
 Operator comparing two CombinedMuonFeature objects for inequality.
void diff (const TileMuFeature &a, const TileMuFeature &b, std::map< std::string, double > &variableChange)
 Comparison with feedback.

Function Documentation

◆ diff()

void diff ( const TileMuFeature & a,
const TileMuFeature & b,
std::map< std::string, double > & variableChange )

Comparison with feedback.

Definition at line 125 of file TileMuFeature.cxx.

126{
127 if( std::abs( a.eta() - b.eta() ) > DELTA ) {
128 variableChange[ "eta" ] = a.eta() - b.eta();
129 }
130 if( std::abs( a.phi() - b.phi() ) > DELTA ) {
131 variableChange[ "phi" ] = a.phi() - b.phi();
132 }
133 if( ( a.quality() - b.quality() ) > DELTA ) {
134 variableChange[ "quality" ] = a.quality() - b.quality();
135 }
136
137 return;
138}
static const double DELTA
static Double_t a

◆ operator!=()

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

Operator comparing two CombinedMuonFeature objects for inequality.

Definition at line 103 of file TileMuFeature.h.

104{
105 return !( a == b );
106}

◆ operator<<()

MsgStream & operator<< ( MsgStream & m,
const TileMuFeature & d )

Helper operator for printing the object.

Definition at line 111 of file TileMuFeature.cxx.

112{
113 return ( m << str( d ) );
114}

◆ operator==()

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

Operator comparing two CombinedMuonFeature objects for equality.

Definition at line 116 of file TileMuFeature.cxx.

117{
118 if( std::abs( a.eta() - b.eta() ) > DELTA ) return false;
119 if( std::abs( a.phi() - b.phi() ) > DELTA ) return false;
120 if( std::abs( a.quality() - b.quality() ) > DELTA ) return false;
121
122 return true;
123}

◆ str()

std::string str ( const TileMuFeature & d)

Helper function for printing the object.

Helper function for printing the object.

Definition at line 100 of file TileMuFeature.cxx.

101{
102 std::stringstream ss;
103
104 ss << "eta: " << d.eta()
105 << "; phi: " << d.phi()
106 << "; quality: " << d.quality();
107
108 return ss.str();
109}
static Double_t ss