StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StVertexT.h
1 #ifndef __StVertexT_h__
2 #define __StVertexT_h__
3 #include "StMuDstVtxT.h"
4 class StVertexT : public StMuDstVtxT {
5 public:
6  StVertexT(Double_t x = 0, Double_t y = 0, Double_t z = 0,
7  Double_t sigma_x = 0, Double_t sigma_y = 0, Double_t sigma_z = 0,
8  Int_t multU = 0, Int_t mult = 0, Int_t multW = 0, Int_t multE = 0, Int_t q = 0, Int_t r = 0,
9  Int_t ndf = 0, Double_t prob = 0, Double_t chi2 = 0,
10  Short_t idTruth = 0, Short_t Qual = 0, Int_t idParentTk = 0) :
11  StMuDstVtxT(x,y,z,sigma_x,sigma_y,sigma_z,multU,mult,multW,multE,q,r,idTruth,Qual,idParentTk),
12  fNDF(ndf), fProb(prob), fChi2(chi2),
13  fiMuDst(0), fChi2MuDst(0), fiKF(0), fChi2KF(0) {}
14  StVertexT(StMuDstVtxT &dst, Int_t ndf = 0, Double_t prob = 0, Double_t chi2 = 0) :
15  StMuDstVtxT(dst), fNDF(ndf), fProb(prob), fChi2(chi2),
16  fiMuDst(0), fChi2MuDst(0), fiKF(0), fChi2KF(0) {}
17  StVertexT(StKFVertex &v) : StMuDstVtxT(v.Vertex().GetX(),
18  v.Vertex().GetY(),
19  v.Vertex().GetZ(),
20  TMath::Sqrt(v.Vertex().GetCovariance(0,0)),
21  TMath::Sqrt(v.Vertex().GetCovariance(1,1)),
22  TMath::Sqrt(v.Vertex().GetCovariance(2,2)),
23  -1, v.NoTracks(), -1, v.MultW(), v.MultE(), v.Q(), 0,
24  v.IdTruth(), v.QaTruth(), v.IdParentTk()),
25  fNDF(v.Vertex().GetNDF()),fProb(TMath::Prob(v.Vertex().GetChi2(),v.Vertex().GetNDF())),
26  fChi2(v.Vertex().GetChi2()),
27  fiMuDst(0), fChi2MuDst(0), fiKF(0), fChi2KF(0) {
28  fTimeMc = v.TimeMc();
29  fXyzMc = v.XyzMc();
30  fNoDaughtersMc = v.NoDaughtersMc();
31  fgePidMc = v.gePidMc();
32  }
33  virtual ~StVertexT() {}
34  void SetMuDst(Int_t i, Double_t p) {fiMuDst = i; fChi2MuDst = p;}
35  void SetKF(Int_t i, Double_t p) {fiKF = i; fChi2KF = p;}
36 private:
37  Int_t fNDF;
38  Double_t fProb;
39  Double_t fChi2;
40  Int_t fiMuDst; // KFVertex best match with MuDst
41  Double_t fChi2MuDst; // chi2 for the above match
42  Int_t fiKF; // KFVertex best match with KFVertex in (x,y)
43  Double_t fChi2KF; // chi2 for the above match
44  ClassDef(StVertexT,1)
45 };
46 #endif