BmnRoot
Loading...
Searching...
No Matches
CbmTofHit.h
Go to the documentation of this file.
1
10#ifndef CBMTOFHIT_H_
11#define CBMTOFHIT_H_
12
13#include "BmnHit.h"
14#include "CbmBaseHit.h"
15
16class CbmTofHit : public BmnHit
17{
18public:
23
27 CbmTofHit(Int_t address, TVector3 pos, TVector3 dpos, Int_t refIndex, Double_t tof, Int_t flag, Int_t channel);
28
32 CbmTofHit(Int_t address, TVector3 pos, TVector3 dpos, Int_t refIndex, Double_t tof, Int_t flag);
33
37 CbmTofHit(Int_t address, TVector3 pos, TVector3 dpos, Int_t refIndex, Double_t tof);
38
42 virtual ~CbmTofHit();
43
47 virtual string ToString() const;
48
52 Int_t GetPlaneId() const { return 0; }
53
54 Int_t GetRefId() const { return GetIndex(); }
55
57 Double_t GetTime() const { return fTime; }
58 Int_t GetCh() const { return fChannel; }
59
61 void SetTime(Double_t time) { fTime = time; };
62 void SetType(HitType_o type) { fType = type; };
63
64private:
65
66 HitType_o fType;
67 Double32_t fTime;
68 Int_t fChannel;
69
70 ClassDef(CbmTofHit, 3)
71};
72
73#endif
HitType_o
Definition CbmBaseHit.h:14
Int_t GetIndex() const
Definition BmnHit.h:37
void SetTime(Double_t time)
Definition CbmTofHit.h:61
CbmTofHit(Int_t address, TVector3 pos, TVector3 dpos, Int_t refIndex, Double_t tof)
Constructor with hit parameters (2) [not the flag].
virtual string ToString() const
Inherited from CbmBaseHit.
virtual ~CbmTofHit()
Destructor.
CbmTofHit(Int_t address, TVector3 pos, TVector3 dpos, Int_t refIndex, Double_t tof, Int_t flag)
Constructor with hit parameters (1).
void SetType(HitType_o type)
Definition CbmTofHit.h:62
Int_t GetPlaneId() const
Inherited from CbmBaseHit.
Definition CbmTofHit.h:52
Int_t GetRefId() const
Definition CbmTofHit.h:54
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()
Default constructor.
Int_t GetCh() const
Definition CbmTofHit.h:58
Double_t GetTime() const
Definition CbmTofHit.h:57