CbmRoot
Loading...
Searching...
No Matches
CbmKFTrErrMCPoints.h
Go to the documentation of this file.
1/* Copyright (C) 2011-2016 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Maksym Zyzak [committer] */
4
5/*
6 * KF Fit performance
7 */
8
9#ifndef _CbmKFTrErrMCPoints_h_
10#define _CbmKFTrErrMCPoints_h_
11
12#include "TClonesArray.h"
13#include <CbmMvdHit.h>
14#include <CbmMvdPoint.h>
15#include <CbmStsHit.h>
16#include <CbmStsPoint.h>
17#include <CbmTofPoint.h>
18
19#include <FairMCPoint.h>
20
21#include <vector>
22
23class CbmMCTrack;
24
25class CbmKFTrErrMCPoints : public TObject {
26
27 public:
30
31 CbmMvdPoint* GetMvdPoint(Int_t i) { return MvdArray[i]; }
32 CbmStsPoint* GetStsPoint(Int_t i) { return StsArray[i]; }
33 CbmTofPoint* GetTofPoint(Int_t i) { return TofArray[i]; }
34
35 CbmMvdHit* GetMvdHit(Int_t i) { return MvdHitsArray[i]; }
36 CbmStsHit* GetStsHit(Int_t i) { return StsHitsArray[i]; }
37
38 void SetMvdPoint(CbmMvdPoint* mp) { MvdArray.push_back(mp); }
39 void SetStsPoint(CbmStsPoint* sp) { StsArray.push_back(sp); }
40 void SetTofPoint(CbmTofPoint* tp) { TofArray.push_back(tp); }
41
42 int GetNMvdPoints() const { return MvdArray.size(); }
43 int GetNStsPoints() const { return StsArray.size(); }
44 int GetNTofPoints() const { return TofArray.size(); }
45 int GetNMvdHits() const { return MvdHitsArray.size(); }
46 int GetNStsHits() const { return StsHitsArray.size(); }
49 int GetNHitStations();
51 Bool_t IsReconstructable(CbmMCTrack* mcTr, int MinNStations, int PerformanceMode, float MinRecoMom);
52
53 double GetMvdPointX(int i) { return MvdArray[i]->FairMCPoint::GetX(); }
54 double GetMvdPointY(int i) { return MvdArray[i]->FairMCPoint::GetY(); }
55 double GetMvdPointZ(int i) { return MvdArray[i]->GetZ(); }
56 double GetMvdPointPx(int i) { return MvdArray[i]->GetPx(); }
57 double GetMvdPointPy(int i) { return MvdArray[i]->GetPy(); }
58 double GetMvdPointPz(int i) { return MvdArray[i]->GetPz(); }
59
60 double GetStsPointX(int i) { return StsArray[i]->FairMCPoint::GetX(); }
61 double GetStsPointY(int i) { return StsArray[i]->FairMCPoint::GetY(); }
62 double GetStsPointZ(int i) { return StsArray[i]->GetZ(); }
63 double GetStsPointPx(int i) { return StsArray[i]->GetPx(); }
64 double GetStsPointPy(int i) { return StsArray[i]->GetPy(); }
65 double GetStsPointPz(int i) { return StsArray[i]->GetPz(); }
66
67 std::vector<CbmStsPoint*> StsArray;
68 std::vector<CbmMvdPoint*> MvdArray;
69 std::vector<CbmTofPoint*> TofArray;
70
71 std::vector<CbmStsHit*> StsHitsArray;
72 std::vector<CbmMvdHit*> MvdHitsArray;
73
75};
76
77#endif // _CbmKFTrErrMCPoints_h_
Data class for a reconstructed hit in the STS.
CbmTofPoint * GetTofPoint(Int_t i)
double GetStsPointPy(int i)
CbmStsPoint * GetStsPoint(Int_t i)
void SetStsPoint(CbmStsPoint *sp)
ClassDef(CbmKFTrErrMCPoints, 1)
std::vector< CbmMvdHit * > MvdHitsArray
double GetMvdPointZ(int i)
double GetStsPointZ(int i)
void SetTofPoint(CbmTofPoint *tp)
double GetMvdPointPx(int i)
double GetMvdPointPy(int i)
double GetMvdPointX(int i)
double GetMvdPointY(int i)
std::vector< CbmTofPoint * > TofArray
double GetStsPointX(int i)
std::vector< CbmMvdPoint * > MvdArray
CbmStsHit * GetStsHit(Int_t i)
std::vector< CbmStsPoint * > StsArray
double GetStsPointPx(int i)
Bool_t IsReconstructable(CbmMCTrack *mcTr, int MinNStations, int PerformanceMode, float MinRecoMom)
std::vector< CbmStsHit * > StsHitsArray
CbmMvdPoint * GetMvdPoint(Int_t i)
double GetStsPointY(int i)
double GetMvdPointPz(int i)
void SetMvdPoint(CbmMvdPoint *mp)
double GetStsPointPz(int i)
CbmMvdHit * GetMvdHit(Int_t i)
data class for a reconstructed 3-d hit in the STS
Definition CbmStsHit.h:35
Geometric intersection of a MC track with a TOFb detector.
Definition CbmTofPoint.h:44