#include <map>
#include <string>
#include "AthenaKernel/CLASS_DEF.h"
Go to the source code of this file.
◆ diff()
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.
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();
◆ operator!=()
◆ operator<<()
◆ operator==()
Definition at line 152 of file TrigMuonEFInfoTrack.cxx.
154 if ( *(
a.SpectrometerTrack()) != *(
b.SpectrometerTrack()))
156 if ( *(
a.ExtrapolatedTrack()) != *(
b.ExtrapolatedTrack()))
158 if ( *(
a.CombinedTrack()) != *(
b.CombinedTrack()))
160 if (
a.MuonType() !=
b.MuonType())
◆ str()
Definition at line 135 of file TrigMuonEFInfoTrack.cxx.
136 std::stringstream
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());
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 ...