CbmRoot
Loading...
Searching...
No Matches
HalCbmTrack.h
Go to the documentation of this file.
1/* Copyright (C) 2023-2023 Warsaw University of Technology, Warsaw
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Daniel Wielanek [committer] */
4#ifndef NICACBMATRECOTRACK_H_
5#define NICACBMATRECOTRACK_H_
6
7#include "CbmGlobalTrack.h"
8#include "CbmHelix.h"
10
11#include <AnalysisTree/Detector.hpp>
12#include <AnalysisTree/Particle.hpp>
13
14#include <Hal/ExpTrack.h>
15#include <Hal/ToFTrack.h>
16
17class CbmHelix;
18namespace Hal
19{
20 class Track;
21}
23
24
25class HalCbmTrack : public Hal::ExpTrack {
26 Hal::ToFTrack* fTofTrack;
28 Float_t fChi2Vertex;
29 Int_t fMvdHits;
30 Int_t fStsHits;
31 Int_t fTrdHits;
32
33 public:
35 HalCbmTrack(const HalCbmTrack& other);
36 HalCbmTrack& operator=(const HalCbmTrack& other);
37 Hal::ToFTrack* GetTofTrack() { return fTofTrack; };
38 CbmHelix& GetHelix() { return fHelix; };
39 Double_t GetVertexChi2() const { return fChi2Vertex; };
40 Int_t GetNMvdHits() const { return fMvdHits; };
41 Int_t GetNStsHits() const { return fStsHits; }
42 Int_t GetNTrdHits() const { return fTrdHits; }
43 Int_t GetNHits() const { return GetNMvdHits() + GetNStsHits() + GetNTrdHits(); };
44 void SetVertexChi2(Double_t v) { fChi2Vertex = v; };
45 void SetNMvdHits(Int_t h) { fMvdHits = h; };
46 void SetNStsHits(Int_t h) { fStsHits = h; };
47 void SetNTrdHits(Int_t h) { fTrdHits = h; };
48 void BuildHelix();
49 virtual void CopyData(Hal::Track* other);
50 virtual Hal::DetectorTrack* GetDetTrack(const UInt_t detID) const;
51 virtual ~HalCbmTrack();
52 ClassDef(HalCbmTrack, 1)
53};
54#endif /* NICACBMATRECOTRACK_H_ */
fscal v[fmask::Size]
Definition KfSimdPseudo.h:4
Data class with information on a STS local track.
Int_t GetNHits() const
Definition HalCbmTrack.h:43
virtual ~HalCbmTrack()
CbmHelix & GetHelix()
Definition HalCbmTrack.h:38
CbmHelix fHelix
Definition HalCbmTrack.h:27
Float_t fChi2Vertex
Definition HalCbmTrack.h:28
HalCbmTrack & operator=(const HalCbmTrack &other)
Hal::ToFTrack * GetTofTrack()
Definition HalCbmTrack.h:37
Int_t fTrdHits
Definition HalCbmTrack.h:31
virtual Hal::DetectorTrack * GetDetTrack(const UInt_t detID) const
Double_t GetVertexChi2() const
Definition HalCbmTrack.h:39
void SetNMvdHits(Int_t h)
Definition HalCbmTrack.h:45
Int_t fMvdHits
Definition HalCbmTrack.h:29
Int_t GetNTrdHits() const
Definition HalCbmTrack.h:42
void SetVertexChi2(Double_t v)
Definition HalCbmTrack.h:44
virtual void CopyData(Hal::Track *other)
Int_t GetNMvdHits() const
Definition HalCbmTrack.h:40
void SetNTrdHits(Int_t h)
Definition HalCbmTrack.h:47
void BuildHelix()
void SetNStsHits(Int_t h)
Definition HalCbmTrack.h:46
Int_t fStsHits
Definition HalCbmTrack.h:30
Hal::ToFTrack * fTofTrack
Definition HalCbmTrack.h:26
Int_t GetNStsHits() const
Definition HalCbmTrack.h:41