PandaRoot
PndTrkConformalHit.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 
20 #ifndef PNDTRKCONFORMALHIT_H
21 #define PNDTRKCONFORMALHIT_H 1
22 
23 #include "TVector2.h"
24 #include "PndTrkHit.h"
25 
26 class PndTrkConformalHit : public TObject {
27 
28  public:
30  PndTrkConformalHit(PndTrkHit *hit, double u, double v, double rd);
31  PndTrkConformalHit(PndTrkHit *hit, double u, double v);
33 
34  // inline get
35  inline Int_t GetHitID() { return fHit->GetHitID(); }
36  inline Int_t GetDetectorID() { return fHit->GetDetectorID(); }
37 
38  inline TVector2 GetPosition() { return fPosition; }
39  inline Double_t GetU() { return fPosition.X(); }
40  inline Double_t GetV() { return fPosition.Y(); }
41  inline Double_t GetIsochrone() { return fIsochrone; }
42  inline PndTrkHit *GetHit() { return fHit; }
43 
44  double GetDistanceFromTrack(double fitm, double fitp);
45 
46  void SetPosition(double x, double y) { fPosition.Set(x, y); }
47 
48  // info
49  void Draw(Color_t color);
50  void Print();
51 
52  // variables
54  TVector2 fPosition;
55  Double_t fIsochrone;
56 
58 };
59 
60 #endif
__m128 v
Definition: P4_F32vec4.h:15
Int_t GetHitID()
Definition: PndTrkHit.h:62
Int_t GetDetectorID()
Definition: PndTrkHit.h:63
void Draw(Color_t color)
ClassDef(PndTrkConformalHit, 1)
double GetDistanceFromTrack(double fitm, double fitp)
void SetPosition(double x, double y)