BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
16class 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
70};
71
72#endif
int Int_t
double Double32_t
double Double_t
#define ClassDef(name, id)
HitType_o
Definition CbmBaseHit.h:15
Int_t GetIndex() const
Definition BmnHit.h:32
BmnHit()
Default constructor.
Definition BmnHit.cxx:12
void SetTime(Double_t time)
Modifiers.
Definition CbmTofHit.h:61
Int_t fChannel
Channel identifier.
Definition CbmTofHit.h:67
Double32_t fTime
Time since event start [ns].
Definition CbmTofHit.h:66
void SetType(HitType_o type)
Definition CbmTofHit.h:62
Int_t GetPlaneId() const
Inherited from CbmBaseHit.
Definition CbmTofHit.h:52
virtual string ToString() const
Inherited from CbmBaseHit.
Definition CbmTofHit.cxx:50
Int_t GetRefId() const
Definition CbmTofHit.h:54
HitType_o fType
Hit type.
Definition CbmTofHit.h:65
CbmTofHit()
Default constructor.
Definition CbmTofHit.cxx:12
Int_t GetCh() const
Definition CbmTofHit.h:58
Double_t GetTime() const
Accessors.
Definition CbmTofHit.h:57
virtual ~CbmTofHit()
Destructor.
Definition CbmTofHit.cxx:48