PandaRoot
PndCATrackMCPointContainer.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 /*
14  *====================================================================
15  *
16  * CBM KF Track Quality
17  *
18  * Authors: M.Zyzak
19  *
20  * e-mail :
21  *
22  *====================================================================
23  *
24  * KF Fit performance
25  *
26  *====================================================================
27  */
28 
29 #ifndef _PndCATrackMCPointContainer_h_
30 #define _PndCATrackMCPointContainer_h_
31 
32 #include <FairMCPoint.h>
33 
34 #include "TClonesArray.h"
35 #include <vector>
36 
37 #include "PndSttPoint.h"
38 #include "PndSdsMCPoint.h"
39 
40 using std::vector;
41 
42 class PndCATrackMCPointContainer : public TObject {
43 
44  public:
47 
48  PndSdsMCPoint *GetMvdPoint(Int_t i) { return MvdArray[i]; }
49  PndSttPoint *GetSttPoint(Int_t i) { return SttArray[i]; }
50 
51  void SetMvdPoint(PndSdsMCPoint *mp) { MvdArray.push_back(mp); }
52  void SetSttPoint(PndSttPoint *sp) { SttArray.push_back(sp); }
53 
54  int GetNMvdPoints() const { return MvdArray.size(); }
55  int GetNSttPoints() const { return SttArray.size(); }
56 
57  double GetMvdPointX(int i) { return MvdArray[i]->FairMCPoint::GetX(); }
58  double GetMvdPointY(int i) { return MvdArray[i]->FairMCPoint::GetY(); }
59  double GetMvdPointZ(int i) { return MvdArray[i]->GetZ(); }
60  double GetMvdPointPx(int i) { return MvdArray[i]->GetPx(); }
61  double GetMvdPointPy(int i) { return MvdArray[i]->GetPy(); }
62  double GetMvdPointPz(int i) { return MvdArray[i]->GetPz(); }
63 
64  double GetSttPointX(int i) { return SttArray[i]->FairMCPoint::GetX(); }
65  double GetSttPointY(int i) { return SttArray[i]->FairMCPoint::GetY(); }
66  double GetSttPointZ(int i) { return SttArray[i]->GetZ(); }
67  double GetSttPointPx(int i) { return SttArray[i]->GetPx(); }
68  double GetSttPointPy(int i) { return SttArray[i]->GetPy(); }
69  double GetSttPointPz(int i) { return SttArray[i]->GetPz(); }
70 
71  vector<PndSttPoint *> SttArray;
72  vector<PndSdsMCPoint *> MvdArray;
73 
75 };
76 
77 #endif // _PndCATrackMCPointContainer_h_
PndSdsMCPoint * GetMvdPoint(Int_t i)
unsigned int i
Definition: P4_F32vec4.h:33
static const double mp
Definition: mzparameters.h:22
vector< PndSdsMCPoint * > MvdArray
void SetMvdPoint(PndSdsMCPoint *mp)
ClassDef(PndCATrackMCPointContainer, 1)