ATLAS Offline Software
Classes | Functions
TrigMuonEFInfoTrack.h File Reference
#include <map>
#include <string>
#include "AthenaKernel/CLASS_DEF.h"
Include dependency graph for TrigMuonEFInfoTrack.h:

Go to the source code of this file.

Classes

class  TrigMuonEFInfoTrack
 

Functions

std::string str (const TrigMuonEFInfoTrack &d)
 
MsgStream & operator<< (MsgStream &m, const TrigMuonEFInfoTrack &d)
 
bool operator== (const TrigMuonEFInfoTrack &a, const TrigMuonEFInfoTrack &b)
 
bool operator!= (const TrigMuonEFInfoTrack &a, const TrigMuonEFInfoTrack &b)
 
void diff (const TrigMuonEFInfoTrack &a, const TrigMuonEFInfoTrack &b, std::map< std::string, double > &variableChange)
 comparison with feedback Function compares two objects and returns "semi verbose" output in the form of map where there are variable names and differences between two objects More...
 

Function Documentation

◆ diff()

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

comparison with feedback Function compares two objects and returns "semi verbose" output in the form of map where there are variable names and differences between two objects

Parameters
variableChange- map to record the differences In case of collections (or objects when the size may be different) that information can also be returned in variableChange

Definition at line 166 of file TrigMuonEFInfoTrack.cxx.

167  {
168  diff( *( a.SpectrometerTrack() ), *( b.SpectrometerTrack() ), variableChange );
169  diff( *( a.ExtrapolatedTrack() ), *( b.ExtrapolatedTrack() ), variableChange );
170  diff( *( a.CombinedTrack() ), *( b.CombinedTrack() ), variableChange );
171  if( a.MuonType() != b.MuonType() ) {
172  variableChange["MuonType"] = a.MuonType() - b.MuonType();
173  }
174  return;
175 }

◆ operator!=()

bool operator!= ( const TrigMuonEFInfoTrack a,
const TrigMuonEFInfoTrack b 
)
inline

Definition at line 82 of file TrigMuonEFInfoTrack.h.

82  {
83  return !( a == b );
84 }

◆ operator<<()

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

Definition at line 148 of file TrigMuonEFInfoTrack.cxx.

148  {
149  return ( m << str( d ) );
150 }

◆ operator==()

bool operator== ( const TrigMuonEFInfoTrack a,
const TrigMuonEFInfoTrack b 
)

Definition at line 152 of file TrigMuonEFInfoTrack.cxx.

152  {
153 
154  if ( *(a.SpectrometerTrack()) != *(b.SpectrometerTrack()))
155  return false;
156  if ( *(a.ExtrapolatedTrack()) != *(b.ExtrapolatedTrack()))
157  return false;
158  if ( *(a.CombinedTrack()) != *(b.CombinedTrack()))
159  return false;
160  if ( a.MuonType() != b.MuonType())
161  return false;
162 
163  return true;
164 }

◆ str()

std::string str ( const TrigMuonEFInfoTrack d)

Definition at line 135 of file TrigMuonEFInfoTrack.cxx.

135  {
136  std::stringstream ss;
137  ss
138  << "; muon type: " << d.MuonType()
139  << "; spectrometer track: " << d.SpectrometerTrack()
140  << "; extrapolated track: " << d.ExtrapolatedTrack()
141  << "; combined track: " << d.CombinedTrack()
142  << "\nspectrometer track: " << *(d.SpectrometerTrack())
143  << "\nextrapolated track: " << *(d.ExtrapolatedTrack())
144  << "\ncombined track: " << *(d.CombinedTrack());
145  return ss.str();
146 }
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 TrigMuonEFInfoTrack &d)
Definition: TrigMuonEFInfoTrack.cxx:135
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
a
TList * a
Definition: liststreamerinfos.cxx:10
diff
void diff(const TrigMuonEFInfoTrack &a, const TrigMuonEFInfoTrack &b, std::map< std::string, double > &variableChange)
comparison with feedback Function compares two objects and returns "semi verbose" output in the form ...
Definition: TrigMuonEFInfoTrack.cxx:166