PandaRoot
PndFtofHit.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
// ----- Forward tof header file -----
15
// ----- Created 01.04.09 by A. Sanchez -----
16
// -------------------------------------------------------------------------
17
25
#ifndef PNDFTOFHIT_H
26
#define PNDFTOFHIT_H
27
28
#include "TVector3.h"
29
#include "TString.h"
30
#include "FairHit.h"
31
32
class
PndFtofHit
:
public
FairHit {
33
34
public
:
36
PndFtofHit
();
37
47
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);
48
49
// PndFtofHit(PndFtofHit& c);
51
virtual
~PndFtofHit
();
52
55
void
SetTrackID
(Int_t
id
) {
fTrackID
= id; };
56
void
SetDetName
(TString name) {
fDetName
= name; };
57
void
SetCharge
(Double_t charge) {
fCharge
= charge; };
58
void
SetTime
(Double_t time) {
ftime
= time; };
59
// void SetNPixelHits(Int_t pixel){fNPixelHits = pixel;};
60
61
TString
GetDetName
()
const
{
return
fDetName
; }
62
Int_t
GetTrackID
() {
return
fTrackID
; };
63
Double_t
GetCharge
() {
return
fCharge
; };
64
Double_t
GetTime
() {
return
ftime
; };
65
Double_t
GetDt
() {
return
fdt
; };
66
// Int_t GetNPixelHits() const { return fNPixelHits; }
67
TVector3
GetPosition
()
const
{
return
TVector3(fX, fY, fZ); }
68
70
virtual
void
Print
(
const
Option_t *opt =
nullptr
)
const
;
71
72
public
:
73
TString
fDetName
;
// Detector name
74
Int_t
fTrackID
;
75
Double_t
fCharge
,
ftime
,
fdt
;
76
// Int_t fNPixelHits;
77
ClassDef
(
PndFtofHit
, 6);
78
};
79
80
#endif
PndFtofHit::SetTrackID
void SetTrackID(Int_t id)
Definition:
PndFtofHit.h:55
PndFtofHit::GetTime
Double_t GetTime()
Definition:
PndFtofHit.h:64
PndFtofHit::GetTrackID
Int_t GetTrackID()
Definition:
PndFtofHit.h:62
PndFtofHit::~PndFtofHit
virtual ~PndFtofHit()
PndFtofHit::SetTime
void SetTime(Double_t time)
Definition:
PndFtofHit.h:58
PndFtofHit::SetDetName
void SetDetName(TString name)
Definition:
PndFtofHit.h:56
PndFtofHit::fCharge
Double_t fCharge
Definition:
PndFtofHit.h:75
PndFtofHit::fTrackID
Int_t fTrackID
Definition:
PndFtofHit.h:74
PndFtofHit::ClassDef
ClassDef(PndFtofHit, 6)
PndFtofHit::fdt
Double_t fdt
Definition:
PndFtofHit.h:75
PndFtofHit::PndFtofHit
PndFtofHit()
PndFtofHit::GetDetName
TString GetDetName() const
Definition:
PndFtofHit.h:61
PndFtofHit::GetDt
Double_t GetDt()
Definition:
PndFtofHit.h:65
PndFtofHit
Definition:
PndFtofHit.h:32
PndFtofHit::ftime
Double_t ftime
Definition:
PndFtofHit.h:75
PndFtofHit::SetCharge
void SetCharge(Double_t charge)
Definition:
PndFtofHit.h:57
PndFtofHit::GetCharge
Double_t GetCharge()
Definition:
PndFtofHit.h:63
PndFtofHit::GetPosition
TVector3 GetPosition() const
Definition:
PndFtofHit.h:67
PndFtofHit::fDetName
TString fDetName
Definition:
PndFtofHit.h:73
PndFtofHit::Print
virtual void Print(const Option_t *opt=nullptr) const
home
gitlab-runner
builds
Vxspf1vo
0
PandaRootGroup
PandaRoot
detectors
ftof
PndFtofHit.h
Generated on Fri Nov 29 2024 06:04:41 for PandaRoot by
1.8.13