BmnRoot
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 */
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::SetAddress
void SetAddress(uint32_t address)
Definition
BmnNdetCell.h:39
BmnNdetCell::SetSignal
void SetSignal(double signal)
Definition
BmnNdetCell.h:40
BmnNdetCell::GetTime
double GetTime() const
Definition
BmnNdetCell.h:46
BmnNdetCell::LinkType
LinkType
Definition
BmnNdetCell.h:15
BmnNdetCell::LinkType::SurfaceMCTrack
@ SurfaceMCTrack
BmnNdetCell::LinkType::SurfaceMCPointCrossThr
@ SurfaceMCPointCrossThr
BmnNdetCell::LinkType::MCTrack
@ MCTrack
BmnNdetCell::LinkType::SurfaceMCPoint
@ SurfaceMCPoint
BmnNdetCell::LinkType::SurfaceMCTrackV2
@ SurfaceMCTrackV2
BmnNdetCell::LinkType::VacWallPoint
@ VacWallPoint
BmnNdetCell::LinkType::MCPoint
@ MCPoint
BmnNdetCell::~BmnNdetCell
virtual ~BmnNdetCell()
Definition
BmnNdetCell.cxx:79
BmnNdetCell::Print
virtual void Print(Option_t *option="") const override
Definition
BmnNdetCell.cxx:81
BmnNdetCell::SetTime
void SetTime(double time)
Definition
BmnNdetCell.h:41
BmnNdetCell::reset
void reset()
Definition
BmnNdetCell.cxx:96
BmnNdetCell::BmnNdetCell
BmnNdetCell()
Definition
BmnNdetCell.cxx:12
BmnNdetCell::operator=
BmnNdetCell & operator=(const BmnNdetCell &)
Definition
BmnNdetCell.cxx:56
BmnNdetCell::ResetTimeEnergy
void ResetTimeEnergy()
Definition
BmnNdetCell.cxx:88
BmnNdetCell::GetClassName
virtual const char * GetClassName() const
Definition
BmnNdetCell.h:33
BmnNdetCell::GetSignal
double GetSignal() const
Definition
BmnNdetCell.h:45
BmnNdetAddressMixin.h
detectors
ndet
BmnNdetCell.h
Generated on Fri May 15 2026 10:40:54 for BmnRoot by
1.9.8