32 static int instCount(0);
42 std::cerr <<
"GFRaveVertex::GFRaveVertex() - Number of objects: " << ++instCount << std::endl;
48 const std::vector < GFRaveTrackParameters* > & smoothedTracks,
49 double ndf,
double chi2,
int id) :
55 smoothedTracks_(smoothedTracks)
57 if (
cov_.GetNrows()!=3 ||
cov_.GetNcols()!=3) {
58 Exception exc(
"GFRaveVertex ==> Covariance is not 3x3!",__LINE__,__FILE__);
63 std::cerr <<
"GFRaveVertex::GFRaveVertex(...) - Number of objects: " << ++instCount << std::endl;
78 for (
unsigned int i=0; i<nPar; ++i) {
83 std::cerr <<
"GFRaveVertex::GFRaveVertex(GFRaveVertex) - Number of objects: " << ++instCount << std::endl;
100 std::swap(this->
id_, other.
id_);
107 for (
unsigned int i=0; i<nPar; ++i) {
112 std::cerr <<
"GFRaveVertex::~GFRaveVertex() - Number of objects: " << --instCount << std::endl;
119 std::cout <<
"GFRaveVertex\n";
120 std::cout <<
"Position: ";
getPos().Print();
121 std::cout <<
"Covariance: ";
getCov().Print();
122 std::cout <<
"Ndf: " <<
getNdf() <<
", Chi2: " <<
getChi2() <<
", Id: " <<
getId() <<
"\n";
123 std::cout <<
"Number of tracks: " <<
getNTracks() <<
"\n";
TVector3 getPos() const
get Position
void swap(GFRaveVertex &)
void Print(const Option_t *="") const
std::vector< genfit::GFRaveTrackParameters * > smoothedTracks_
void Print(const Option_t *="") const
GFRaveTrackParameters class Contains a pointer to the original genfit::Track, the weight of the track...
GFRaveVertex & operator=(GFRaveVertex)
unsigned int getNTracks() const
Number of tracks the vertex is made of.
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
TMatrixDSym getCov() const
get 3x3 covariance (error) of position.
GFRaveTrackParameters * getParameters(unsigned int i) const
Defines for I/O streams used for error and debug printing.