21 #include "GaudiKernel/MsgStream.h"
27 static const double DELTA = 0.001;
50 if (
this != &mfeature) {
51 I4Momentum::operator=( mfeature );
52 INavigable::operator=( mfeature );
53 INavigable4Momentum::operator=( mfeature );
54 P4PtEtaPhiMBase::operator= ( mfeature );
55 NavigableTerminalNode::operator= ( 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() );