PandaRoot
PndFtofPoint.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 // ----- PndFtofpoint header file -----
15 // ----- Created by A.Sanchez -----
16 // ------------------------------------------------------------------------
17 
18 #ifndef PNDFTOFPOINT_H
19 #define PNDFTOFPOINT_H
20 
21 #include "TObject.h"
22 #include "TVector3.h"
23 #include "TLorentzVector.h"
24 #include "PndMCPoint.h"
25 #include "TString.h"
26 
27 class PndFtofPoint : public PndMCPoint {
28 
29  public:
31  PndFtofPoint();
32 
47  PndFtofPoint(Int_t trackID, Int_t evtID, Int_t detID, TString detName, TVector3 posin, TVector3 momin, TVector3 posout, TVector3 momout, Double_t tof, Double_t length,
48  Double_t eLoss, Double_t charge, Double_t mass, Int_t pdgCode, Double_t distance, Double_t PLin, Double_t PLout);
49 
51  PndFtofPoint(const PndFtofPoint &point) : PndMCPoint(point) { *this = point; };
52 
54  virtual ~PndFtofPoint();
55 
57  Int_t GetVolumeID() const { return fVolumeID; };
58 
59  Double_t GetPLin() const { return fPLin; };
60  Double_t GetPLout() const { return fPLout; };
61 
62  Double_t Getdist() const { return fdist; };
63  // Double_t Gettheta() const { return ftheta; };
64 
65  TString GetDetName() const { return fDetName; };
66  Double_t GetMass() const { return fmass; };
67 
69  virtual void Print(const Option_t *opt) const;
70 
71  protected:
72  Double32_t fPLin = 0.;
73  Double32_t fPLout = 0.;
74  Double32_t fmass = 0.;
75  Double32_t fcharge = 0.;
76  Double32_t fdist = 0.;
77 
78  TString fDetName;
79 
80  Int_t fVolumeID = -999;
81  Int_t fpdgCode = 0;
82 
84 };
85 
86 #endif
Int_t fpdgCode
Definition: PndFtofPoint.h:81
TString GetDetName() const
Definition: PndFtofPoint.h:65
Double32_t fdist
Definition: PndFtofPoint.h:76
Double32_t fPLout
Definition: PndFtofPoint.h:73
TString fDetName
Definition: PndFtofPoint.h:78
virtual void Print(const Option_t *opt) const
Int_t fVolumeID
Definition: PndFtofPoint.h:80
Double_t GetPLin() const
Definition: PndFtofPoint.h:59
Double_t GetMass() const
Definition: PndFtofPoint.h:66
ClassDef(PndMCPoint, 1)
Double32_t fPLin
Definition: PndFtofPoint.h:72
Double32_t fmass
Definition: PndFtofPoint.h:74
virtual ~PndFtofPoint()
PndFtofPoint(const PndFtofPoint &point)
Definition: PndFtofPoint.h:51
Double32_t fcharge
Definition: PndFtofPoint.h:75
Double_t Getdist() const
Definition: PndFtofPoint.h:62
Int_t GetVolumeID() const
Definition: PndFtofPoint.h:57
Double_t GetPLout() const
Definition: PndFtofPoint.h:60