![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
23 #include "GaudiKernel/MsgStream.h"
29 static const double DELTA = 0.001;
68 stream <<
"MuonCode: " <<
d.MuonCode()
69 <<
"; RoINum: " <<
d.RoINum()
70 <<
"; eta: " <<
d.eta()
71 <<
"; phi: " <<
d.phi()
73 <<
"; charge: " <<
d.charge();
80 return (
m <<
str(
d ) );
86 if(
a.MuonCode() !=
b.MuonCode() )
88 if( std::abs(
a.charge() -
b.charge() ) > DELTA )
90 if( std::abs(
a.pt() -
b.pt() ) > DELTA )
92 if( std::abs(
a.eta() -
b.eta() ) > DELTA )
94 if( std::abs(
a.phi() -
b.phi() ) > DELTA )
96 if( std::abs(
a.m() -
b.m() ) > DELTA )
103 std::map< std::string, double >& variableChange ) {
105 if(
a.MuonCode() !=
b.MuonCode() ) {
106 variableChange[
"MuonCode" ] =
static_cast< double >(
a.MuonCode() -
b.MuonCode() );
108 if( std::abs(
a.charge() -
b.charge() ) > DELTA ) {
109 variableChange[
"Charge" ] =
a.charge() -
b.charge();
111 if( std::abs(
a.pt() -
b.pt() ) > DELTA ) {
112 variableChange[
"Pt" ] =
a.pt() -
b.pt();
114 if( std::abs(
a.eta() -
b.eta() ) > DELTA ) {
115 variableChange[
"Eta" ] =
a.eta() -
b.eta();
117 if( std::abs(
a.phi() -
b.phi() ) > DELTA ) {
118 variableChange[
"Phi" ] =
a.phi() -
b.phi();
120 if( std::abs(
a.m() -
b.m() ) > DELTA ) {
121 variableChange[
"Mass" ] =
a.m() -
b.m();
bool operator==(const TrigMuonEF &a, const TrigMuonEF &b)
Operator comparing two TrigMuonEF objects for equality.
MsgStream & operator<<(MsgStream &m, const TrigMuonEF &d)
Helper operator for printing the object.
int m_muonCode
what kind of track we are dealing with (Moore, StandAlone, Combined)
void set_RoINum(const std::string &theRoINum)
Set RoINum.
void set_muonCode(int theMuonCode)
Set MuonCode.
std::string str(const TrigMuonEF &d)
Helper function for printing the object.
void diff(const TrigMuonEF &a, const TrigMuonEF &b, std::map< std::string, double > &variableChange)
Comparison with feedback.
void set_Charge(double theCharge)
Set Charge.
TrigMuonEF()
Default constructor.