BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
CbmTofHit.h
Go to the documentation of this file.
1
/**
2
* \file CbmTofHit.h
3
* \author E. Cordier
4
* Modified by D. Gonzalez-Diaz 06/09/06
5
* Modified by A.Lebedev 26/05/09
6
* Modified by nh 16/12/12
7
* Modified by A.Lebedev 15/05/13
8
**/
9
10
#ifndef CBMTOFHIT_H_
11
#define CBMTOFHIT_H_
12
13
#include "
BmnHit.h
"
14
#include "
CbmBaseHit.h
"
15
16
class
CbmTofHit
:
public
BmnHit
17
{
18
public
:
19
/**
20
* \brief Default constructor.
21
**/
22
CbmTofHit
();
23
24
/**
25
* \brief Constructor with hit parameters (1a).
26
**/
27
CbmTofHit
(
Int_t
address,
TVector3
pos,
TVector3
dpos,
Int_t
refIndex,
Double_t
tof,
Int_t
flag,
Int_t
channel);
28
29
/**
30
* \brief Constructor with hit parameters (1).
31
**/
32
CbmTofHit
(
Int_t
address,
TVector3
pos,
TVector3
dpos,
Int_t
refIndex,
Double_t
tof,
Int_t
flag);
33
34
/**
35
* \brief Constructor with hit parameters (2) [not the flag]
36
**/
37
CbmTofHit
(
Int_t
address,
TVector3
pos,
TVector3
dpos,
Int_t
refIndex,
Double_t
tof);
38
39
/**
40
* \brief Destructor.
41
**/
42
virtual
~CbmTofHit
();
43
44
/**
45
* \brief Inherited from CbmBaseHit.
46
*/
47
virtual
string
ToString
()
const
;
48
49
/**
50
* \brief Inherited from CbmBaseHit.
51
*/
52
Int_t
GetPlaneId
()
const
{
return
0; }
53
54
Int_t
GetRefId
()
const
{
return
GetIndex
(); }
55
56
/** Accessors **/
57
Double_t
GetTime
()
const
{
return
fTime
; }
58
Int_t
GetCh
()
const
{
return
fChannel
; }
59
60
/** Modifiers **/
61
void
SetTime
(
Double_t
time) {
fTime
= time; };
62
void
SetType
(HitType_o type) {
fType
= type; };
63
64
private
:
65
HitType_o
fType
;
///< Hit type
66
Double32_t
fTime
;
///< Time since event start [ns]
67
Int_t
fChannel
;
///< Channel identifier
68
69
ClassDef
(
CbmTofHit
, 3)
70
};
71
72
#endif
Int_t
int Int_t
Double32_t
double Double32_t
Double_t
double Double_t
ClassDef
#define ClassDef(name, id)
HitType_o
HitType_o
Definition
CbmBaseHit.h:15
BmnHit
Definition
BmnHit.h:21
BmnHit::GetIndex
Int_t GetIndex() const
Definition
BmnHit.h:32
CbmTofHit
Definition
CbmTofHit.h:17
CbmTofHit::SetTime
void SetTime(Double_t time)
Modifiers.
Definition
CbmTofHit.h:61
CbmTofHit::CbmTofHit
CbmTofHit(Int_t address, TVector3 pos, TVector3 dpos, Int_t refIndex, Double_t tof)
Constructor with hit parameters (2) [not the flag].
CbmTofHit::ToString
virtual string ToString() const
Inherited from CbmBaseHit.
CbmTofHit::fChannel
Int_t fChannel
Channel identifier.
Definition
CbmTofHit.h:67
CbmTofHit::fTime
Double32_t fTime
Time since event start [ns].
Definition
CbmTofHit.h:66
CbmTofHit::~CbmTofHit
virtual ~CbmTofHit()
Destructor.
CbmTofHit::CbmTofHit
CbmTofHit(Int_t address, TVector3 pos, TVector3 dpos, Int_t refIndex, Double_t tof, Int_t flag)
Constructor with hit parameters (1).
CbmTofHit::SetType
void SetType(HitType_o type)
Definition
CbmTofHit.h:62
CbmTofHit::GetPlaneId
Int_t GetPlaneId() const
Inherited from CbmBaseHit.
Definition
CbmTofHit.h:52
CbmTofHit::GetRefId
Int_t GetRefId() const
Definition
CbmTofHit.h:54
CbmTofHit::fType
HitType_o fType
Hit type.
Definition
CbmTofHit.h:65
CbmTofHit::CbmTofHit
CbmTofHit(Int_t address, TVector3 pos, TVector3 dpos, Int_t refIndex, Double_t tof, Int_t flag, Int_t channel)
Constructor with hit parameters (1a).
CbmTofHit::CbmTofHit
CbmTofHit()
Default constructor.
CbmTofHit::GetCh
Int_t GetCh() const
Definition
CbmTofHit.h:58
CbmTofHit::GetTime
Double_t GetTime() const
Accessors.
Definition
CbmTofHit.h:57
TVector3
BmnHit.h
CbmBaseHit.h
install
include
CbmTofHit.h
Generated on
for BmnRoot by
1.17.0