PandaRoot
PndFtofHit.h
Go to the documentation of this file.
1
// -------------------------------------------------------------------------
2
// ----- Forward tof header file -----
3
// ----- Created 01.04.09 by A. Sanchez -----
4
// -------------------------------------------------------------------------
5
13
#ifndef PNDFTOFHIT_H
14
#define PNDFTOFHIT_H
15
16
#include "TVector3.h"
17
#include "TString.h"
18
#include "FairHit.h"
19
20
class
PndFtofHit
:
public
FairHit {
21
22
public
:
24
PndFtofHit
();
25
35
PndFtofHit
(Int_t trackID, Int_t detID, TString detName, Double_t time, Double_t dt, TVector3 &pos, TVector3 &dpos, Int_t index, Double_t charge);
36
37
// PndFtofHit(PndFtofHit& c);
39
virtual
~PndFtofHit
();
40
43
void
SetTrackID
(Int_t
id
) {
fTrackID
= id; };
44
void
SetDetName
(TString name) {
fDetName
= name; };
45
void
SetCharge
(Double_t charge) {
fCharge
= charge; };
46
void
SetTime
(Double_t time) {
ftime
= time; };
47
// void SetNPixelHits(Int_t pixel){fNPixelHits = pixel;};
48
49
TString
GetDetName
()
const
{
return
fDetName
; }
50
Int_t
GetTrackID
() {
return
fTrackID
; };
51
Double_t
GetCharge
() {
return
fCharge
; };
52
Double_t
GetTime
() {
return
ftime
; };
53
Double_t
GetDt
() {
return
fdt
; };
54
// Int_t GetNPixelHits() const { return fNPixelHits; }
55
TVector3
GetPosition
()
const
{
return
TVector3(fX, fY, fZ); }
56
58
virtual
void
Print
(
const
Option_t *opt =
nullptr
)
const
;
59
60
public
:
61
TString
fDetName
;
// Detector name
62
Int_t
fTrackID
;
63
Double_t
fCharge
,
ftime
,
fdt
;
64
// Int_t fNPixelHits;
65
ClassDef
(
PndFtofHit
, 6);
66
};
67
68
#endif
PndFtofHit::SetTrackID
void SetTrackID(Int_t id)
Definition:
PndFtofHit.h:43
PndFtofHit::GetTime
Double_t GetTime()
Definition:
PndFtofHit.h:52
PndFtofHit::GetTrackID
Int_t GetTrackID()
Definition:
PndFtofHit.h:50
PndFtofHit::~PndFtofHit
virtual ~PndFtofHit()
PndFtofHit::SetTime
void SetTime(Double_t time)
Definition:
PndFtofHit.h:46
PndFtofHit::SetDetName
void SetDetName(TString name)
Definition:
PndFtofHit.h:44
PndFtofHit::fCharge
Double_t fCharge
Definition:
PndFtofHit.h:63
PndFtofHit::fTrackID
Int_t fTrackID
Definition:
PndFtofHit.h:62
PndFtofHit::ClassDef
ClassDef(PndFtofHit, 6)
PndFtofHit::fdt
Double_t fdt
Definition:
PndFtofHit.h:63
PndFtofHit::PndFtofHit
PndFtofHit()
PndFtofHit::GetDetName
TString GetDetName() const
Definition:
PndFtofHit.h:49
PndFtofHit::GetDt
Double_t GetDt()
Definition:
PndFtofHit.h:53
PndFtofHit
Definition:
PndFtofHit.h:20
PndFtofHit::ftime
Double_t ftime
Definition:
PndFtofHit.h:63
PndFtofHit::SetCharge
void SetCharge(Double_t charge)
Definition:
PndFtofHit.h:45
PndFtofHit::GetCharge
Double_t GetCharge()
Definition:
PndFtofHit.h:51
PndFtofHit::GetPosition
TVector3 GetPosition() const
Definition:
PndFtofHit.h:55
PndFtofHit::fDetName
TString fDetName
Definition:
PndFtofHit.h:61
PndFtofHit::Print
virtual void Print(const Option_t *opt=nullptr) const
home
gitlab-runner
builds
LYZoAKaU
0
PandaRootGroup
PandaRoot
detectors
ftof
PndFtofHit.h
Generated on Fri Oct 21 2022 07:03:58 for PandaRoot by
1.8.13