BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnNdetCell.h
Go to the documentation of this file.
1
#ifndef BMNNDETCELL_H
2
#define BMNNDETCELL_H
3
4
#include <
BmnNdetAddressMixin.h
>
5
#include <FairHit.h>
6
#include <
TClonesArray.h
>
7
8
class
BmnNdetCell
9
:
public
FairHit
10
,
public
BmnNdetAddressMixin
<BmnNdetCell>
11
{
12
13
public
:
14
enum class
LinkType
15
{
16
MCTrack
,
17
MCPoint
,
18
VacWallPoint
,
19
SurfaceMCTrack
,
20
SurfaceMCTrackV2
,
21
SurfaceMCPoint
,
22
SurfaceMCPointCrossThr
23
};
24
25
BmnNdetCell
();
26
BmnNdetCell
(uint32_t address,
double
time,
double
signal,
TVector3
posHit,
TVector3
posHitErr,
int
pointIndx);
27
BmnNdetCell
(
const
BmnNdetCell
&);
28
BmnNdetCell
(
BmnNdetCell
&&);
29
BmnNdetCell
&
operator=
(
const
BmnNdetCell
&);
30
BmnNdetCell
&
operator=
(
BmnNdetCell
&&);
31
virtual
~BmnNdetCell
();
32
33
virtual
const
char
*
GetClassName
()
const
{
return
"BmnNdetCell"
; }
34
void
ResetTimeEnergy
();
35
void
reset
();
36
virtual
void
Print
(
Option_t
* option =
""
)
const override
;
37
38
// Setters
39
void
SetAddress
(uint32_t address) {
fAddress
= address; }
40
void
SetSignal
(
double
signal) {
fSignal
= signal; }
41
void
SetTime
(
double
time) { FairHit::SetTimeStamp(time); }
42
43
// Getters
44
uint32_t
GetAddress
()
const
{
return
fAddress
; }
45
double
GetSignal
()
const
{
return
fSignal
; }
46
double
GetTime
()
const
{
return
FairHit::GetTimeStamp(); }
47
48
private
:
49
uint32_t
fAddress
;
50
double
fSignal
;
51
52
ClassDefOverride
(
BmnNdetCell
, 5);
53
};
54
55
#endif
/* BMNNDETCELL_H */
Option_t
const char Option_t
ClassDefOverride
#define ClassDefOverride(name, id)
TClonesArray.h
BmnNdetAddressMixin
interface to use the address methods
Definition
BmnNdetAddressMixin.h:16
BmnNdetCell
Definition
BmnNdetCell.h:11
BmnNdetCell::GetAddress
uint32_t GetAddress() const
Definition
BmnNdetCell.h:44
BmnNdetCell::Print
virtual void Print(Option_t *option="") const override
BmnNdetCell::SetAddress
void SetAddress(uint32_t address)
Definition
BmnNdetCell.h:39
BmnNdetCell::SetSignal
void SetSignal(double signal)
Definition
BmnNdetCell.h:40
BmnNdetCell::~BmnNdetCell
virtual ~BmnNdetCell()
BmnNdetCell::GetTime
double GetTime() const
Definition
BmnNdetCell.h:46
BmnNdetCell::operator=
BmnNdetCell & operator=(BmnNdetCell &&)
BmnNdetCell::LinkType
LinkType
Definition
BmnNdetCell.h:15
BmnNdetCell::LinkType::SurfaceMCTrack
@ SurfaceMCTrack
Definition
BmnNdetCell.h:19
BmnNdetCell::LinkType::SurfaceMCPointCrossThr
@ SurfaceMCPointCrossThr
Definition
BmnNdetCell.h:22
BmnNdetCell::LinkType::MCTrack
@ MCTrack
Definition
BmnNdetCell.h:16
BmnNdetCell::LinkType::SurfaceMCPoint
@ SurfaceMCPoint
Definition
BmnNdetCell.h:21
BmnNdetCell::LinkType::SurfaceMCTrackV2
@ SurfaceMCTrackV2
Definition
BmnNdetCell.h:20
BmnNdetCell::LinkType::VacWallPoint
@ VacWallPoint
Definition
BmnNdetCell.h:18
BmnNdetCell::LinkType::MCPoint
@ MCPoint
Definition
BmnNdetCell.h:17
BmnNdetCell::fSignal
double fSignal
Definition
BmnNdetCell.h:50
BmnNdetCell::BmnNdetCell
BmnNdetCell(uint32_t address, double time, double signal, TVector3 posHit, TVector3 posHitErr, int pointIndx)
BmnNdetCell::SetTime
void SetTime(double time)
Definition
BmnNdetCell.h:41
BmnNdetCell::reset
void reset()
BmnNdetCell::BmnNdetCell
BmnNdetCell()
BmnNdetCell::operator=
BmnNdetCell & operator=(const BmnNdetCell &)
BmnNdetCell::fAddress
uint32_t fAddress
Definition
BmnNdetCell.h:49
BmnNdetCell::BmnNdetCell
BmnNdetCell(BmnNdetCell &&)
BmnNdetCell::ResetTimeEnergy
void ResetTimeEnergy()
BmnNdetCell::GetClassName
virtual const char * GetClassName() const
Definition
BmnNdetCell.h:33
BmnNdetCell::BmnNdetCell
BmnNdetCell(const BmnNdetCell &)
BmnNdetCell::GetSignal
double GetSignal() const
Definition
BmnNdetCell.h:45
FairHit
TVector3
BmnNdetAddressMixin.h
install
include
BmnNdetCell.h
Generated on
for BmnRoot by
1.17.0