ATLAS Offline Software
Functions
TileTrackMuFeature.cxx File Reference
#include "TrigMuonEvent/TileTrackMuFeature.h"
Include dependency graph for TileTrackMuFeature.cxx:

Go to the source code of this file.

Functions

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

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 }

◆ 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 operators.

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 }
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
hist_file_dump.d
d
Definition: hist_file_dump.py:137
str
std::string str(const TileTrackMuFeature &d)
Helper operators.
Definition: TileTrackMuFeature.cxx:75
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
a
TList * a
Definition: liststreamerinfos.cxx:10