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
d404180c
Commit
d404180c
authored
Feb 16, 2022
by
Wouter Deconinck
Browse files
Change pmthit.energy into pmthit.energyDeposit, identical to trackerhit
parent
fcadd552
Pipeline
#27860
failed with stages
in 1 minute and 13 seconds
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/dd4pod/dd4hep.yaml
View file @
d404180c
...
...
@@ -107,7 +107,7 @@ datatypes:
-
dd4pod::VectorXYZ momentum // 3-momentum [GeV]
-
double length // length [mm]
-
dd4pod::MonteCarloContrib truth // truth info
-
double energy
// photon energy [GeV]
-
double energy
Deposit
// photon energy [GeV]
dd4pod::TrackerHit:
Description
:
"
Podio
implementation
of
dd4hep's
dd4hep::sim::Geant4Tracker::Hit
class"
...
...
src/dd4pod/plugins/Geant4Output2Podio.cxx
View file @
d404180c
...
...
@@ -360,7 +360,7 @@ namespace dd4hep::sim {
const
int
trackID
=
parts
->
particleID
(
truth
.
trackID
);
ohit
.
truth
({
trackID
,
truth
.
pdgID
,
truth
.
deposit
/
1000.0
,
truth
.
time
,
truth
.
length
,
truth
.
x
,
truth
.
y
,
truth
.
z
});
ohit
.
energy
(
hit
->
energy
/
1000.0
);
ohit
.
energy
Deposit
(
hit
->
energy
Deposit
/
1000.0
);
}
}
else
{
printout
(
WARNING
,
"Geant4Output2Podio"
,
...
...
src/detectors/pid/sdet/include/PMTHit.h
View file @
d404180c
...
...
@@ -55,7 +55,7 @@ namespace npdet {
/// Monte Carlo / Geant4 information
dd4hep
::
sim
::
Geant4HitData
::
MonteCarloContrib
truth
;
/// Energy of photon
double
energy
=
0
;
double
energy
Deposit
=
0
;
public:
/// Default constructor
...
...
src/detectors/pid/sdet/src/PhotoMultiplierSDAction.cpp
View file @
d404180c
...
...
@@ -66,7 +66,7 @@ namespace dd4hep {
PhotoMultiplierSD
::
Hit
*
hit
=
new
PhotoMultiplierSD
::
Hit
(
h
.
trkID
(),
h
.
trkPdgID
(),
h
.
deposit
(),
h
.
track
->
GetGlobalTime
());
Geant4HitData
::
MonteCarloContrib
contrib
=
Geant4HitData
::
extractContribution
(
step
);
hit
->
cellID
=
cellID
(
step
);
hit
->
energy
=
contrib
.
deposit
;
hit
->
energy
Deposit
=
contrib
.
deposit
;
hit
->
position
=
position
;
hit
->
momentum
=
0.5
*
(
h
.
preMom
()
+
h
.
postMom
());
hit
->
length
=
hit_len
;
...
...
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