Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
EIC
NPDet
Commits
84801ddf
Commit
84801ddf
authored
Feb 16, 2022
by
Wouter Deconinck
Browse files
More missing energy -> energyDeposit
parent
f6497dff
Pipeline
#27865
passed with stages
in 1 minute and 30 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/detectors/pid/sdet/src/PMTHit.cpp
View file @
84801ddf
...
...
@@ -23,7 +23,7 @@ PMTHit& PMTHit::operator=(const PMTHit& c) {
momentum
=
c
.
momentum
;
length
=
c
.
length
;
truth
=
c
.
truth
;
energy
=
c
.
energy
;
energy
Deposit
=
c
.
energy
Deposit
;
}
return
*
this
;
}
...
...
@@ -32,7 +32,7 @@ PMTHit& PMTHit::operator=(const PMTHit& c) {
PMTHit
&
PMTHit
::
clear
()
{
position
.
SetXYZ
(
0
,
0
,
0
);
momentum
.
SetXYZ
(
0
,
0
,
0
);
energy
=
0.0
;
energy
Deposit
=
0.0
;
length
=
0.0
;
truth
.
clear
();
return
*
this
;
...
...
@@ -51,6 +51,6 @@ PMTHit& PMTHit::storePoint(const G4Step* step, const G4StepPoint* pnt) {
position
.
SetXYZ
(
pos
.
x
(),
pos
.
y
(),
pos
.
z
());
momentum
.
SetXYZ
(
mom
.
x
(),
mom
.
y
(),
mom
.
z
());
length
=
0
;
energy
=
pnt
->
GetTotalEnergy
();
energy
Deposit
=
pnt
->
GetTotalEnergy
();
return
*
this
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment