BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnHodoStrip.cxx
Go to the documentation of this file.
1
#include "
BmnHodoStrip.h
"
2
3
#include "
BmnHodoDigit.h
"
4
5
#include <utility>
6
7
BmnHodoStrip::BmnHodoStrip
()
8
:
FairHit
()
9
,
fStripId
(0)
10
,
fSignal
(0.f)
11
,
fIntegral
(0.f)
12
,
fPileUpStatus
(
PileUp
::No)
13
{}
14
15
BmnHodoStrip::BmnHodoStrip
(
const
BmnHodoStrip
& other)
16
:
FairHit
(other)
17
,
fStripId
(other.
fStripId
)
18
,
fSignal
(other.
fSignal
)
19
,
fIntegral
(other.
fIntegral
)
20
,
fPileUpStatus
(other.
fPileUpStatus
)
21
,
fDigits
(other.
fDigits
)
22
{}
23
24
BmnHodoStrip::BmnHodoStrip
(
BmnHodoStrip
&& other)
25
:
FairHit
(
std
::move(other))
26
,
fStripId
(other.
fStripId
)
27
,
fSignal
(other.
fSignal
)
28
,
fIntegral
(other.
fIntegral
)
29
,
fPileUpStatus
(other.
fPileUpStatus
)
30
,
fDigits
(
std
::move(other.
fDigits
))
31
{}
32
33
BmnHodoStrip
&
BmnHodoStrip::operator=
(
const
BmnHodoStrip
& other)
34
{
35
if
(
this
!= &other) {
36
FairHit::operator=(other);
37
fStripId
= other.
fStripId
;
38
fSignal
= other.
fSignal
;
39
fIntegral
= other.
fIntegral
;
40
fPileUpStatus
= other.
fPileUpStatus
;
41
fDigits
= other.
fDigits
;
42
}
43
return
*
this
;
44
}
45
46
BmnHodoStrip
&
BmnHodoStrip::operator=
(
BmnHodoStrip
&& other)
47
{
48
if
(
this
!= &other) {
49
FairHit::operator=(std::move(other));
50
fStripId
= other.fStripId;
51
fSignal
= other.fSignal;
52
fIntegral
= other.fIntegral;
53
fPileUpStatus
= other.fPileUpStatus;
54
fDigits
= std::move(other.fDigits);
55
}
56
return
*
this
;
57
}
58
59
void
BmnHodoStrip::reset
()
60
{
61
fStripId
= 0;
62
fSignal
= 0.f;
63
fIntegral
= 0.f;
64
fPileUpStatus
=
PileUp::No
;
65
fDigits
.clear();
66
TVector3
zero;
67
SetPosition(zero);
68
SetPositionError(zero);
69
SetRefIndex(-1);
70
}
71
72
void
BmnHodoStrip::clear
()
73
{
74
fSignal
= 0.f;
75
fIntegral
= 0.f;
76
fPileUpStatus
=
PileUp::No
;
77
fDigits
.clear();
78
}
79
80
void
BmnHodoStrip::Print
(
Option_t
* option)
const
{}
Option_t
const char Option_t
BmnHodoStrip::fSignal
float fSignal
Definition
BmnHodoStrip.h:57
BmnHodoStrip::operator=
BmnHodoStrip & operator=(const BmnHodoStrip &)
Definition
BmnHodoStrip.cxx:33
BmnHodoStrip::clear
void clear()
Definition
BmnHodoStrip.cxx:72
BmnHodoStrip::PileUp
PileUp
Definition
BmnHodoStrip.h:15
BmnHodoStrip::PileUp::No
@ No
Definition
BmnHodoStrip.h:16
BmnHodoStrip::fPileUpStatus
PileUp fPileUpStatus
Definition
BmnHodoStrip.h:59
BmnHodoStrip::Print
virtual void Print(Option_t *option="") const
Definition
BmnHodoStrip.cxx:80
BmnHodoStrip::fStripId
uint8_t fStripId
Definition
BmnHodoStrip.h:56
BmnHodoStrip::BmnHodoStrip
BmnHodoStrip()
Definition
BmnHodoStrip.cxx:7
BmnHodoStrip::reset
void reset()
Definition
BmnHodoStrip.cxx:59
BmnHodoStrip::fDigits
std::vector< BmnHodoDigit * > fDigits
Definition
BmnHodoStrip.h:60
BmnHodoStrip::fIntegral
float fIntegral
Definition
BmnHodoStrip.h:58
FairHit
TVector3
BmnHodoDigit.h
BmnHodoStrip.h
std
Definition
json.hpp:4446
detectors
hodo
BmnHodoStrip.cxx
Generated on
for BmnRoot by
1.17.0