32static 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";
Exception class for error handling in GENFIT (provides storage for diagnostic information)
GFRaveTrackParameters class Contains a pointer to the original genfit::Track, the weight of the track...
void Print(const Option_t *="") const
void swap(GFRaveVertex &)
TVector3 getPos() const
get Position
TMatrixDSym getCov() const
get 3x3 covariance (error) of position.
unsigned int getNTracks() const
Number of tracks the vertex is made of.
GFRaveVertex & operator=(GFRaveVertex)
GFRaveTrackParameters * getParameters(unsigned int i) const
std::vector< genfit::GFRaveTrackParameters * > smoothedTracks_
void Print(const Option_t *="") const