FairRoot/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 
13 #include "PndCATrackParam.h"
14 #include "PndCAFieldValue.h"
15 
16 class PndCATarget {
17  public:
18  PndCATarget():fX0(0), fX1(0), fX2(0), fDX1(-1), fDX2(-1), fDQMom(-1), fB(), fNDF(-1) {};
19  PndCATarget( float x0, float x1, float x2, float dx1, float dx2, float dqmom, PndCAFieldValue b, int ndf ):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;
37  int fNDF; // 0 or 2, depends whether we consider target as a measurement
38 };
39 
40 #endif
Double_t x0
Definition: checkhelixhit.C:70
const PndCAFieldValue & B() const
Definition: PndCATarget.h:31
TTree * b
int NDF() const
Definition: PndCATarget.h:32
float X2() const
Definition: PndCATarget.h:25
__m128 v
Definition: P4_F32vec4.h:4
float DQMom() const
Definition: PndCATarget.h:30
PndCAFieldValue fB
Definition: PndCATarget.h:36
float X0() const
Definition: PndCATarget.h:23
PndCATarget(float x0, float x1, float x2, float dx1, float dx2, float dqmom, PndCAFieldValue b, int ndf)
Definition: PndCATarget.h:19
float SetErrQMom(float v)
Definition: PndCATarget.h:21
float fDQMom
Definition: PndCATarget.h:35
float fDX2
Definition: PndCATarget.h:35
float fDX1
Definition: PndCATarget.h:35
float Err2QMom() const
Definition: PndCATarget.h:29
float Err2X2() const
Definition: PndCATarget.h:28
float Err2X1() const
Definition: PndCATarget.h:27
float X1() const
Definition: PndCATarget.h:24