 |
ATLAS Offline Software
|
Go to the documentation of this file.
21 #include "GaudiKernel/MsgStream.h"
27 static const double DELTA = 0.001;
50 if (
this != &mfeature) {
72 m_eta( feat->getEta() ),
74 m_nroi( feat->getNRoi() ),
75 m_njet( feat->getNJet() ),
76 m_ntrk( feat->getNTRK() )
87 m_eta ( feat.getEta()),
89 m_nroi( feat.getNRoi() ),
90 m_njet( feat.getNJet() ),
91 m_ntrk( feat.getNTRK() ) {}
98 ss <<
" Eta: " <<
d.getEta()
99 <<
"; Phi: " <<
d.getPhi()
100 <<
"; NRoI: " <<
d.getNRoi()
101 <<
"; NJET: " <<
d.getNJet()
102 <<
"; NTRK: " <<
d.getNTRK();
106 return (
m <<
str(
d));
110 if ( std::abs(
a.getEta() -
b.getEta()) > DELTA )
return false;
111 if ( std::abs(
a.getPhi() -
b.getPhi()) > DELTA )
return false;
112 if (
a.getNRoi() !=
b.getNRoi() )
return false;
113 if (
a.getNJet() !=
b.getNJet() )
return false;
114 if (
a.getNTRK() !=
b.getNTRK() )
return false;
119 std::map<std::string, double>& variableChange ) {
121 if( std::abs(
a.getEta() -
b.getEta() ) > DELTA ) {
122 variableChange[
"Eta" ] =
a.getEta() -
b.getEta();
124 if( std::abs(
a.getPhi() -
b.getPhi() ) > DELTA ) {
125 variableChange[
"Phi" ] =
a.getPhi() -
b.getPhi();
127 if(
a.getNRoi() !=
b.getNRoi() ) {
128 variableChange[
"NRoI" ] =
static_cast< double >(
a.getNRoi() -
b.getNRoi() );
130 if(
a.getNJet() !=
b.getNJet() ) {
131 variableChange[
"NJet" ] =
static_cast< double >(
a.getNJet() -
b.getNJet() );
133 if(
a.getNTRK() !=
b.getNTRK() ) {
134 variableChange[
"NTRK" ] =
static_cast< double >(
a.getNTRK() -
b.getNTRK() );
Scalar phi() const
phi method
float getPhi(const xAOD::TrackParticle &p)
Accessor utility function for getting the value of phi.
Scalar eta() const
pseudorapidity method
Dummy type needed fro specialized implementation.
void diff(const TrigMuonClusterFeature &a, const TrigMuonClusterFeature &b, std::map< std::string, double > &variableChange)
comparison with feedback Function compares two objects and returns "semi verbose" output in the form ...
AccessorTemplate & operator=(AccessorTemplate &&that)
std::string str(const TrigMuonClusterFeature &d)
Helper function for printing the object.
MsgStream & operator<<(MsgStream &m, const TrigMuonClusterFeature &d)
Helper operator for printing the object.
bool operator==(const TrigMuonClusterFeature &a, const TrigMuonClusterFeature &b)
Operator comparing two TrigMuonClusterFeature objects for equality.
~TrigMuonClusterFeature()
Destructor.
TrigMuonClusterFeature & operator=(const TrigMuonClusterFeature &mfeature)
Assignement operator.
TrigMuonClusterFeature()
Constructors.