PandaRoot
PndCATarget.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 //-*- Mode: C++ -*-
14 // *****************************************************************************
15 // *
16 // @Autors: I.Kulakov; M.Zyzak; I.Kisel *
17 // @e-mail: I.Kulakov@gsi.de; M.Zyzak@gsi.de; I.Kisel@compeng.uni-frankfurt.de *
18 // *
19 // *****************************************************************************
20 
21 #ifndef PNDCATARGET_H
22 #define PNDCATARGET_H
23 
24 #include "PndCATrackParam.h"
25 #include "PndCAFieldValue.h"
26 
27 class PndCATarget {
28  public:
29  PndCATarget() : fX0(0), fX1(0), fX2(0), fDX1(-1), fDX2(-1), fDQMom(-1), fB(), fNDF(-1){};
30  PndCATarget(float x0, float x1, float x2, float dx1, float dx2, float dqmom, PndCAFieldValue b, int ndf)
31  : fX0(x0), fX1(x1), fX2(x2), fDX1(dx1), fDX2(dx2), fDQMom(dqmom), fB(b), fNDF(ndf){};
32 
33  float SetErrQMom(float v) { return fDQMom = v; }
34 
35  float X0() const { return fX0; }
36  float X1() const { return fX1; }
37  float X2() const { return fX2; }
38 
39  float Err2X1() const { return fDX1 * fDX1; }
40  float Err2X2() const { return fDX2 * fDX2; }
41  float Err2QMom() const { return fDQMom * fDQMom; }
42  float DQMom() const { return fDQMom * fDQMom; }
43  const PndCAFieldValue &B() const { return fB; }
44  int NDF() const { return fNDF; }
45 
46  private:
47  float fX0, fX1, fX2, fDX1, fDX2, fDQMom;
48  PndCAFieldValue fB;
49  int fNDF; // 0 or 2, depends whether we consider target as a measurement
50 };
51 
52 #endif
float X1() const
Definition: PndCATarget.h:36
float Err2X1() const
Definition: PndCATarget.h:39
float X0() const
Definition: PndCATarget.h:35
__m128 v
Definition: P4_F32vec4.h:15
float X2() const
Definition: PndCATarget.h:37
float DQMom() const
Definition: PndCATarget.h:42
const PndCAFieldValue & B() const
Definition: PndCATarget.h:43
PndCATarget(float x0, float x1, float x2, float dx1, float dx2, float dqmom, PndCAFieldValue b, int ndf)
Definition: PndCATarget.h:30
float SetErrQMom(float v)
Definition: PndCATarget.h:33
float Err2X2() const
Definition: PndCATarget.h:40
int NDF() const
Definition: PndCATarget.h:44
float Err2QMom() const
Definition: PndCATarget.h:41