Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
np
nptool
Commits
d2ba76e7
Commit
d2ba76e7
authored
Oct 12, 2018
by
Elidiano Tronchin
Browse files
* FIxing bug in Calorimeter Scorer
- The Hit Level vector was not cleared at the begining of event
parent
d2618c84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
NPSimulation/Scorers/CalorimeterScorers.cc
NPSimulation/Scorers/CalorimeterScorers.cc
+1
-2
No files found.
NPSimulation/Scorers/CalorimeterScorers.cc
View file @
d2ba76e7
...
...
@@ -61,11 +61,10 @@ G4bool PS_Calorimeter::ProcessHits(G4Step* aStep, G4TouchableHistory*){
static
unsigned
int
mysize
=
m_NestingLevel
.
size
();
t_Energy
=
aStep
->
GetTotalEnergyDeposit
();
t_Time
=
aStep
->
GetPreStepPoint
()
->
GetGlobalTime
();
t_Level
.
clear
();
for
(
unsigned
int
i
=
0
;
i
<
mysize
;
i
++
){
t_Level
.
push_back
(
aStep
->
GetPreStepPoint
()
->
GetTouchableHandle
()
->
GetCopyNumber
(
m_NestingLevel
[
i
]));
}
// Check if the particle has interact before, if yes, add up the energies.
vector
<
CalorimeterData
>::
iterator
it
;
it
=
m_Data
.
find
(
CalorimeterData
::
CalculateIndex
(
t_Level
));
...
...
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