23#include "GaudiKernel/MsgStream.h"
29static const double DELTA = 0.001;
62 std::stringstream stream;
63 stream <<
"MuonCode: " << d.MuonCode()
64 <<
"; RoINum: " << d.RoINum()
65 <<
"; eta: " << d.eta()
66 <<
"; phi: " << d.phi()
68 <<
"; charge: " << d.charge();
75 return ( m <<
str( d ) );
81 if(
a.MuonCode() != b.MuonCode() )
83 if( std::abs(
a.charge() - b.charge() ) >
DELTA )
85 if( std::abs(
a.pt() - b.pt() ) >
DELTA )
87 if( std::abs(
a.eta() - b.eta() ) >
DELTA )
89 if( std::abs(
a.phi() - b.phi() ) >
DELTA )
91 if( std::abs(
a.m() - b.m() ) >
DELTA )
98 std::map< std::string, double >& variableChange ) {
100 if(
a.MuonCode() != b.MuonCode() ) {
101 variableChange[
"MuonCode" ] =
static_cast< double >(
a.MuonCode() - b.MuonCode() );
103 if( std::abs(
a.charge() - b.charge() ) >
DELTA ) {
104 variableChange[
"Charge" ] =
a.charge() - b.charge();
106 if( std::abs(
a.pt() - b.pt() ) >
DELTA ) {
107 variableChange[
"Pt" ] =
a.pt() - b.pt();
109 if( std::abs(
a.eta() - b.eta() ) >
DELTA ) {
110 variableChange[
"Eta" ] =
a.eta() - b.eta();
112 if( std::abs(
a.phi() - b.phi() ) >
DELTA ) {
113 variableChange[
"Phi" ] =
a.phi() - b.phi();
115 if( std::abs(
a.m() - b.m() ) >
DELTA ) {
116 variableChange[
"Mass" ] =
a.m() - b.m();
static const double DELTA
bool operator==(const TrigMuonEF &a, const TrigMuonEF &b)
Operator comparing two TrigMuonEF objects for equality.
void diff(const TrigMuonEF &a, const TrigMuonEF &b, std::map< std::string, double > &variableChange)
Comparison with feedback.
MsgStream & operator<<(MsgStream &m, const TrigMuonEF &d)
Helper operator for printing the object.
P4IPtCotThPhiM(const double iPt, const double cotTh, const double phi, const double m)
constructor with all data members
void set_Charge(double theCharge)
Set Charge.
virtual ~TrigMuonEF()
Destructor.
void set_RoINum(const std::string &theRoINum)
Set RoINum.
int m_muonCode
what kind of track we are dealing with (Moore, StandAlone, Combined)
void set_muonCode(int theMuonCode)
Set MuonCode.
TrigMuonEF()=default
Default constructor.