ATLAS Offline Software
Loading...
Searching...
No Matches
TileTrackMuFeature.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TileTrackMuFeature

Functions

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

Function Documentation

◆ diff()

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

Comparison with feedback.

Definition at line 100 of file TileTrackMuFeature.cxx.

101{
102 if( std::abs( a.EtaTR_Trk() - b.EtaTR_Trk() ) > DELTA ) {
103 variableChange[ "EtaTR_Trk" ] = a.EtaTR_Trk() - b.EtaTR_Trk();
104 }
105 if( std::abs( a.PhiTR_Trk() - b.PhiTR_Trk() ) > DELTA ) {
106 variableChange[ "PhiTR_Trk" ] = a.PhiTR_Trk() - b.PhiTR_Trk();
107 }
108 if( std::abs( a.PtTR_Trk() - b.PtTR_Trk() ) > DELTA ) {
109 variableChange[ "PtTR_Trk" ] = a.PtTR_Trk() - b.PtTR_Trk();
110 }
111
112 return;
113}
static const double DELTA
static Double_t a

◆ operator!=()

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

Operator comparing two CombinedMuonFeature objects for inequality.

Definition at line 103 of file TileTrackMuFeature.h.

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

◆ operator<<()

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

Helper operator for printing the object.

Definition at line 86 of file TileTrackMuFeature.cxx.

87{
88 return ( m << str( d ) );
89}

◆ operator==()

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

Operator comparing two CombinedMuonFeature objects for equality.

Definition at line 91 of file TileTrackMuFeature.cxx.

92{
93 if( std::abs( a.EtaTR_Trk() - b.EtaTR_Trk() ) > DELTA ) return false;
94 if( std::abs( a.PhiTR_Trk() - b.PhiTR_Trk() ) > DELTA ) return false;
95 if( std::abs( a.PtTR_Trk() - b.PtTR_Trk() ) > DELTA ) return false;
96
97 return true;
98}

◆ str()

std::string str ( const TileTrackMuFeature & d)

Helper function for printing the object.

Helper function for printing the object.

Definition at line 75 of file TileTrackMuFeature.cxx.

76{
77 std::stringstream ss;
78
79 ss << "EtaTR_Trk: " << d.EtaTR_Trk()
80 << "; PhiTR_Trk: " << d.PhiTR_Trk()
81 << "; PtTR_Trk: " << d.PtTR_Trk();
82
83 return ss.str();
84}
static Double_t ss