PandaRoot
PndMdtPoint.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 #ifndef PNDMDTPOINT_H
14 #define PNDMDTPOINT_H
15 
16 #include "TObject.h"
17 #include "TLorentzVector.h"
18 #include "TVector3.h"
19 #include "TMath.h"
20 #include "PndMdtID.h"
21 #include "PndMCPoint.h"
22 
23 class PndMdtPoint : public PndMCPoint {
24 
25  public:
27  PndMdtPoint();
28 
42  PndMdtPoint(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, TVector3 pos_in, TVector3 mom_in);
43 
45  // PndMdtPoint(const PndMdtPoint& point) { *this = point; };
46 
48  virtual ~PndMdtPoint();
49 
51  inline TVector3 GetPosIn() const { return GetPosition(); }
52  inline TVector3 GetMomIn() const { return GetMomentum(); }
53  inline TVector3 GetPosOut() const { return GetPositionOut(); }
54  inline TVector3 GetMomOut() const { return GetMomentumOut(); }
55 
56  Short_t GetModule() const { return PndMdtID::Module(GetDetectorID()); }
57  Short_t GetSector() const { return PndMdtID::Sector(GetDetectorID()); }
58  Short_t GetLayerID() const { return PndMdtID::Layer(GetDetectorID()); }
59  Short_t GetBox() const { return PndMdtID::Box(GetDetectorID()); }
60  Short_t GetWire() const { return PndMdtID::Wire(GetDetectorID()); }
61 
65  virtual void Print(const Option_t *opt) const;
66 
68 };
69 
70 #endif /* !PNDMDTPOINT_H */
Short_t GetSector() const
Definition: PndMdtPoint.h:57
static Short_t Box(Int_t detID)
Definition: PndMdtID.h:31
TVector3 GetMomentumOut() const
Definition: PndMCPoint.h:47
static Short_t Module(Int_t detID)
Definition: PndMdtID.h:28
static Short_t Layer(Int_t detID)
Definition: PndMdtID.h:30
TVector3 GetPosOut() const
Definition: PndMdtPoint.h:53
virtual void Print(const Option_t *opt) const
Short_t GetModule() const
Definition: PndMdtPoint.h:56
TVector3 GetMomentum() const
Definition: PndMCPoint.h:46
static Short_t Sector(Int_t detID)
Definition: PndMdtID.h:29
Short_t GetLayerID() const
Definition: PndMdtPoint.h:58
ClassDef(PndMCPoint, 1)
Short_t GetBox() const
Definition: PndMdtPoint.h:59
TVector3 GetPositionOut() const
Definition: PndMCPoint.h:42
TVector3 GetPosition() const
Definition: PndMCPoint.h:41
TVector3 GetPosIn() const
Definition: PndMdtPoint.h:51
virtual ~PndMdtPoint()
static Short_t Wire(Int_t detID)
Definition: PndMdtID.h:32
Short_t GetWire() const
Definition: PndMdtPoint.h:60
TVector3 GetMomIn() const
Definition: PndMdtPoint.h:52
TVector3 GetMomOut() const
Definition: PndMdtPoint.h:54