PandaRoot
PndCATarget.h
Go to the documentation of this file.
1 //-*- Mode: C++ -*-
2 // *****************************************************************************
3 // *
4 // @Autors: I.Kulakov; M.Zyzak; I.Kisel *
5 // @e-mail: I.Kulakov@gsi.de; M.Zyzak@gsi.de; I.Kisel@compeng.uni-frankfurt.de *
6 // *
7 // *****************************************************************************
8 
9 #ifndef PNDCATARGET_H
10 #define PNDCATARGET_H
11 
12 #include "PndCATrackParam.h"
13 #include "PndCAFieldValue.h"
14 
15 class PndCATarget {
16  public:
17  PndCATarget() : fX0(0), fX1(0), fX2(0), fDX1(-1), fDX2(-1), fDQMom(-1), fB(), fNDF(-1){};
18  PndCATarget(float x0, float x1, float x2, float dx1, float dx2, float dqmom, PndCAFieldValue b, int ndf)
19  : fX0(x0), fX1(x1), fX2(x2), fDX1(dx1), fDX2(dx2), fDQMom(dqmom), fB(b), fNDF(ndf){};
20 
21  float SetErrQMom(float v) { return fDQMom = v; }
22 
23  float X0() const { return fX0; }
24  float X1() const { return fX1; }
25  float X2() const { return fX2; }
26 
27  float Err2X1() const { return fDX1 * fDX1; }
28  float Err2X2() const { return fDX2 * fDX2; }
29  float Err2QMom() const { return fDQMom * fDQMom; }
30  float DQMom() const { return fDQMom * fDQMom; }
31  const PndCAFieldValue &B() const { return fB; }
32  int NDF() const { return fNDF; }
33 
34  private:
35  float fX0, fX1, fX2, fDX1, fDX2, fDQMom;
36  PndCAFieldValue fB;
37  int fNDF; // 0 or 2, depends whether we consider target as a measurement
38 };
39 
40 #endif
float X1() const
Definition: PndCATarget.h:24
float Err2X1() const
Definition: PndCATarget.h:27
float X0() const
Definition: PndCATarget.h:23
__m128 v
Definition: P4_F32vec4.h:3
float X2() const
Definition: PndCATarget.h:25
float DQMom() const
Definition: PndCATarget.h:30
const PndCAFieldValue & B() const
Definition: PndCATarget.h:31
PndCATarget(float x0, float x1, float x2, float dx1, float dx2, float dqmom, PndCAFieldValue b, int ndf)
Definition: PndCATarget.h:18
float SetErrQMom(float v)
Definition: PndCATarget.h:21
float Err2X2() const
Definition: PndCATarget.h:28
int NDF() const
Definition: PndCATarget.h:32
float Err2QMom() const
Definition: PndCATarget.h:29