PandaRoot
PndSttHelixHit.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 // hits recostructed via HELIX FIT in STT
16 //
17 // ======================================
18 #ifndef PNDSTTHELIXHIT_H
19 #define PNDSTTHELIXHIT_H 1
20 
21 #include "TVector3.h"
22 #include "FairHit.h"
23 
24 class PndSttHit;
25 
26 class PndSttHelixHit : public FairHit {
27 
28  public:
31 
44  PndSttHelixHit(Int_t detID, Int_t tubeID, Int_t hitindex, Int_t mcindex, TVector3 &pos, TVector3 &dpos, Double_t isochrone, Double_t isochroneError, Double_t dedx);
45 
46  // void CopyHitToHelixHit(PndSttHit *aHit, Int_t hitindex);
47 
49  virtual ~PndSttHelixHit();
50 
52  virtual void Print(const Option_t *opt = nullptr) const
53  {
54  std::cout << " opt = " << opt << std::endl;
55  return;
56  }
57 
59  void Clear();
60 
62  Int_t GetHitIndex() { return fHitIndex; }
63 
65  Double_t GetIsochrone() const { return fIsochrone; };
66  Double_t GetIsochroneError() const { return fIsochroneError; };
67  Double_t GetdEdx() const { return fdEdx; };
68 
70  void SetHitIndex(Int_t hitindex) { fHitIndex = hitindex; }
71  void SetIsochrone(Double_t isochrone) { fIsochrone = isochrone; };
72  void SetIsochroneError(Double_t isochroneError) { fIsochroneError = isochroneError; };
73  void SetdEdx(Double_t dedx) { fdEdx = dedx; }
74  void Print();
75 
76  // tube ID // CHECK added
77  void SetTubeID(Int_t tubeid) { fTubeID = tubeid; }
78  Int_t GetTubeID() { return fTubeID; }
79 
80  protected:
82  Int_t fHitIndex;
83 
85  Double_t fdEdx;
86 
89 
91  Int_t fTubeID; // CHECK added
92 
94 };
95 
96 #endif
virtual void Print(const Option_t *opt=nullptr) const
Int_t GetHitIndex()
void SetIsochroneError(Double_t isochroneError)
void SetTubeID(Int_t tubeid)
void SetHitIndex(Int_t hitindex)
void SetIsochrone(Double_t isochrone)
Double_t fIsochrone
Double_t GetIsochroneError() const
Double_t GetdEdx() const
ClassDef(PndSttHelixHit, 2)
Double_t fIsochroneError
Double_t GetIsochrone() const
void SetdEdx(Double_t dedx)
virtual ~PndSttHelixHit()