1 |
loizides |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
bendavid |
1.6 |
// $Id: Vertex.h,v 1.5 2008/10/14 05:27:54 loizides Exp $
|
3 |
loizides |
1.1 |
//
|
4 |
|
|
// Vertex
|
5 |
|
|
//
|
6 |
loizides |
1.5 |
// Vertex class implemented as holding a 3d vector as a point in space with fit information.
|
7 |
loizides |
1.1 |
//
|
8 |
|
|
// Authors: J.Bendavid
|
9 |
|
|
//--------------------------------------------------------------------------------------------------
|
10 |
|
|
|
11 |
loizides |
1.5 |
#ifndef MITANA_DATATREE_VERTEX_H
|
12 |
|
|
#define MITANA_DATATREE_VERTEX_H
|
13 |
loizides |
1.1 |
|
14 |
bendavid |
1.4 |
#include <TMath.h>
|
15 |
bendavid |
1.6 |
#include "MitAna/DataTree/interface/BaseVertex.h"
|
16 |
loizides |
1.1 |
|
17 |
|
|
namespace mithep
|
18 |
|
|
{
|
19 |
bendavid |
1.6 |
class Vertex : public BaseVertex
|
20 |
loizides |
1.1 |
{
|
21 |
|
|
public:
|
22 |
loizides |
1.5 |
Vertex() :
|
23 |
bendavid |
1.6 |
fChi2(0.0), fNdof(0), fNTracks(0) {}
|
24 |
loizides |
1.5 |
Vertex(Double_t x, Double_t y, Double_t z) :
|
25 |
bendavid |
1.6 |
BaseVertex(x,y,z), fChi2(0.0), fNdof(0), fNTracks(0) {}
|
26 |
loizides |
1.5 |
|
27 |
bendavid |
1.4 |
Vertex(Double_t x, Double_t y, Double_t z, Double_t xErr, Double_t yErr, Double_t zErr) :
|
28 |
bendavid |
1.6 |
BaseVertex(x,y,z,xErr,yErr,zErr), fChi2(0.0), fNdof(0), fNTracks(0) {}
|
29 |
bendavid |
1.4 |
Vertex(const ThreeVector &pos) :
|
30 |
bendavid |
1.6 |
BaseVertex(pos), fChi2(0.0), fNdof(0), fNTracks(0) {}
|
31 |
loizides |
1.1 |
~Vertex() {}
|
32 |
|
|
|
33 |
bendavid |
1.4 |
Double_t Chi2() const { return fChi2; }
|
34 |
|
|
UInt_t Ndof() const { return fNdof; }
|
35 |
loizides |
1.5 |
UInt_t NTracks() const { return fNTracks; }
|
36 |
bendavid |
1.4 |
Double_t Prob() const { return TMath::Prob(fChi2,fNdof); }
|
37 |
loizides |
1.5 |
void SetChi2(Double_t chi2) { fChi2 = chi2; }
|
38 |
bendavid |
1.6 |
void SetNdof(UInt_t nDof) { fNdof = nDof; }
|
39 |
loizides |
1.5 |
void SetNTracks(UInt_t ntrks) { fNTracks = ntrks; }
|
40 |
loizides |
1.1 |
|
41 |
|
|
protected:
|
42 |
loizides |
1.5 |
Double32_t fChi2; //chi squared of conversion vertex fit
|
43 |
|
|
UInt_t fNdof; //number of degrees of freedom of conversion vertex fit
|
44 |
|
|
UInt_t fNTracks; //number of tracks used for the fit
|
45 |
loizides |
1.1 |
|
46 |
|
|
ClassDef(Vertex, 1) // Vertex class
|
47 |
|
|
};
|
48 |
|
|
}
|
49 |
|
|
#endif
|