PandaRoot
PndDskFLGHit.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 // ----- PndDskFLGHit header file -----
15 // ----- Created 25/04/10 by Y. Liang -----
16 // -------------------------------------------------------------------------
17 
18 #ifndef PNDDSKFLGHIT_H
19 #define PNDDSKFLGHIT_H
20 
21 #include "PndMCPoint.h"
22 
23 class PndDskFLGHit : public PndMCPoint {
24 
25  public:
27  PndDskFLGHit();
28 
42  PndDskFLGHit(Int_t trackID, Int_t detectorID, TVector3 position, TVector3 momentum, Double_t time, Int_t pdgCode, TString pdgName, Double_t energy, Int_t motherTrackID,
43  Int_t motherPdgCode, TString motherPdgName, Double_t mass, Double_t angIn, Double_t thetaC, TVector3 mom_cherenkov_photon, Int_t num_light_guide, Int_t num_pixel);
44 
45  PndDskFLGHit(Int_t trackID, Int_t detectorID, TVector3 position, TVector3 momentum, Double_t time, Double_t angIn, Double_t thetaC, TVector3 mom_cherenkov_photon,
46  Int_t num_light_guide, Int_t num_pixel);
47 
49  // PndDskFLGHit(const PndDskFLGHit& particle) { *this = particle; }; // No need
50 
52  virtual ~PndDskFLGHit();
53 
58  virtual void Print(const Option_t *opt) const;
59 
68  void SetFinalValues(TVector3 exitPosition, TVector3 exitMomentum, Double_t exitTime, Double_t exitEnergy);
69 
71  Int_t GetPdgCode() const { return fPdgCode; }
72  TString GetPdgName() const { return fPdgName; }
73  Double_t GetEnergy() const { return fEnergy; }
74  Int_t GetMotherTrackID() const { return fMotherTrackID; }
75  Int_t GetMotherPdgCode() const { return fMotherPdgCode; }
76  TString GetMotherPdgName() const { return fMotherPdgName; }
77  Double_t GetExitTime() const { return fExitTime; }
78  Double_t GetExitEnergy() const { return fExitEnergy; }
79  Double_t GetMass() const { return fMass; };
80 
81  Double_t GetAngIn() const { return fAngIn; };
82  Double_t GetThetaC() const { return fThetaC; };
83  TVector3 GetMomPhoton() const { return fMom_cherenkov_photon; };
84  Int_t GetNumLightGuide() const { return fNum_light_guide; };
85  Int_t GetNumPixel() const { return fNum_pixel; };
86 
88  void SetAngIn(Double_t ang) { fAngIn = ang; };
89  void SetThetaC(Double_t theta) { fThetaC = theta; };
90  void SetNumLightGuide(Int_t i) { fNum_light_guide = i; };
91  void SetNumPixel(Int_t i) { fNum_pixel = i; };
92  void SetMomPhoton(TVector3 mom) { fMom_cherenkov_photon = mom; };
93 
94  protected:
95  Int_t fPdgCode = -1;
96  TString fPdgName;
97  Double_t fEnergy = 0.;
98  Double_t fMass = 0.; // Mass
99 
100  Int_t fMotherTrackID = -1;
101  Int_t fMotherPdgCode = -1;
102  TString fMotherPdgName;
103 
104  Double_t fExitTime = 0.;
105  Double_t fExitEnergy = 0.;
106 
107  Double_t fThetaC = 0.; // Cherenkov Angle
108  Double_t fAngIn = 0.; // Rod number
110  Int_t fNum_light_guide = -1;
111  Int_t fNum_pixel = -1;
112 
114 };
115 
116 #endif // PNDDSKFLGHIT_H
Double_t GetExitEnergy() const
Definition: PndDskFLGHit.h:78
Double_t GetAngIn() const
Definition: PndDskFLGHit.h:81
Int_t fNum_pixel
Definition: PndDskFLGHit.h:111
Double_t GetExitTime() const
Definition: PndDskFLGHit.h:77
Int_t GetMotherTrackID() const
Definition: PndDskFLGHit.h:74
Int_t GetMotherPdgCode() const
Definition: PndDskFLGHit.h:75
Int_t GetNumLightGuide() const
Definition: PndDskFLGHit.h:84
Double_t fExitTime
Time when particle disappears [ns].
Definition: PndDskFLGHit.h:104
Double_t GetEnergy() const
Definition: PndDskFLGHit.h:73
Int_t fMotherTrackID
Track ID of the first mother.
Definition: PndDskFLGHit.h:100
Int_t fNum_light_guide
Definition: PndDskFLGHit.h:110
Double_t fAngIn
Definition: PndDskFLGHit.h:108
Double_t fMass
Definition: PndDskFLGHit.h:98
Double_t fEnergy
Energy [GeV].
Definition: PndDskFLGHit.h:97
Double_t fThetaC
Definition: PndDskFLGHit.h:107
void SetMomPhoton(TVector3 mom)
Definition: PndDskFLGHit.h:92
unsigned int i
Definition: P4_F32vec4.h:33
Int_t GetPdgCode() const
Definition: PndDskFLGHit.h:71
TString fPdgName
PDG name according to fPdgCode.
Definition: PndDskFLGHit.h:96
void SetNumPixel(Int_t i)
Definition: PndDskFLGHit.h:91
Int_t GetNumPixel() const
Definition: PndDskFLGHit.h:85
TString GetPdgName() const
Definition: PndDskFLGHit.h:72
ClassDef(PndMCPoint, 1)
Double_t GetThetaC() const
Definition: PndDskFLGHit.h:82
void SetNumLightGuide(Int_t i)
Definition: PndDskFLGHit.h:90
Int_t fPdgCode
PDG code of particle.
Definition: PndDskFLGHit.h:95
void SetFinalValues(TVector3 exitPosition, TVector3 exitMomentum, Double_t exitTime, Double_t exitEnergy)
TVector3 fMom_cherenkov_photon
Definition: PndDskFLGHit.h:109
virtual ~PndDskFLGHit()
void SetThetaC(Double_t theta)
Definition: PndDskFLGHit.h:89
TString GetMotherPdgName() const
Definition: PndDskFLGHit.h:76
TString fMotherPdgName
PDG name according to fMotherPdgCode.
Definition: PndDskFLGHit.h:102
Double_t fExitEnergy
Energy when particle disappears [GeV].
Definition: PndDskFLGHit.h:105
void SetAngIn(Double_t ang)
Definition: PndDskFLGHit.h:88
virtual void Print(const Option_t *opt) const
TVector3 GetMomPhoton() const
Definition: PndDskFLGHit.h:83
Int_t fMotherPdgCode
PDG code of the particle with fMotherTrackID.
Definition: PndDskFLGHit.h:101
Double_t GetMass() const
Definition: PndDskFLGHit.h:79