#include "MSVertexUtils/MSVertex.h"
#include <sstream>
Go to the source code of this file.
◆ operator<<()
◆ operator==()
Definition at line 95 of file MSVertex.cxx.
97 const double DELTA = 1
e-3;
99 if (std::abs(
a.getPosition().x() -
b.getPosition().x()) > DELTA)
return false;
100 if (std::abs(
a.getPosition().y() -
b.getPosition().y()) > DELTA)
return false;
101 if (std::abs(
a.getPosition().z() -
b.getPosition().z()) > DELTA)
return false;
102 if (std::abs(
a.getPosition().eta() -
b.getPosition().eta()) > DELTA)
return false;
103 if (std::abs(
a.getPosition().phi() -
b.getPosition().phi()) > DELTA)
return false;
104 if (std::abs(
a.getChi2Probability() -
b.getChi2Probability()) > DELTA)
return false;
106 if (
a.getAuthor() -
b.getAuthor() != 0)
return false;
107 if (
a.getNTracks() -
b.getNTracks() != 0)
return false;
108 if (
a.getNMDT() -
b.getNMDT() != 0)
return false;
109 if (
a.getNRPC() -
b.getNRPC() != 0)
return false;
110 if (
a.getNTGC() -
b.getNTGC() != 0)
return false;
◆ str()
Definition at line 82 of file MSVertex.cxx.
85 ss <<
"author = " <<
a.getAuthor() <<
"; x = " <<
a.getPosition().x() <<
"; y = " <<
a.getPosition().y()
86 <<
"; z = " <<
a.getPosition().z() <<
"; phi = " <<
a.getPosition().phi() <<
"; eta = " <<
a.getPosition().eta()
87 <<
"; chi2 prob. = " <<
a.getChi2Probability() <<
"; # tracks = " <<
a.getNTracks() <<
"; # MDT hits = " <<
a.getNMDT()
88 <<
"; # RPC hits = " <<
a.getNRPC() <<
"; # TGC hits = " <<
a.getNTGC();