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";
GFRaveTrackParameters * getParameters(unsigned int i) const
void swap(GFRaveVertex &)
std::vector< genfit::GFRaveTrackParameters *> smoothedTracks_
TMatrixDSym getCov() const
get 3x3 covariance (error) of position.
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.
TVector3 getPos() const
get Position
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
void Print(const Option_t *="") const
Defines for I/O streams used for error and debug printing.