Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nptool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
np
nptool
Commits
124d78e4
Commit
124d78e4
authored
6 years ago
by
Adrien Matta
Browse files
Options
Downloads
Patches
Plain Diff
* Fixing drift electron scorer for digitization case
parent
7cf84094
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NPSimulation/Process/G4IonizationWithDE.cc
+0
-2
0 additions, 2 deletions
NPSimulation/Process/G4IonizationWithDE.cc
NPSimulation/Scorers/DriftElectronScorers.cc
+1
-1
1 addition, 1 deletion
NPSimulation/Scorers/DriftElectronScorers.cc
with
1 addition
and
3 deletions
NPSimulation/Process/G4IonizationWithDE.cc
+
0
−
2
View file @
124d78e4
...
@@ -186,8 +186,6 @@ G4IonizationWithDE::PostStepDoIt(const G4Track& aTrack, const G4Step& aStep)
...
@@ -186,8 +186,6 @@ G4IonizationWithDE::PostStepDoIt(const G4Track& aTrack, const G4Step& aStep)
aParticleChange
.
SetNumberOfSecondaries
(
tracked_electron
);
aParticleChange
.
SetNumberOfSecondaries
(
tracked_electron
);
aParticleChange
.
SetSecondaryWeightByProcess
(
true
);
aParticleChange
.
SetSecondaryWeightByProcess
(
true
);
// Electron follow the field direction
// Electron follow the field direction
// The field direction is taken from the field manager
// The field direction is taken from the field manager
//Everything common to all created DE:
//Everything common to all created DE:
...
...
This diff is collapsed.
Click to expand it.
NPSimulation/Scorers/DriftElectronScorers.cc
+
1
−
1
View file @
124d78e4
...
@@ -143,7 +143,7 @@ G4bool PS_DEDigitizer::ProcessHits(G4Step* aStep, G4TouchableHistory*){
...
@@ -143,7 +143,7 @@ G4bool PS_DEDigitizer::ProcessHits(G4Step* aStep, G4TouchableHistory*){
G4String
PID
=
aStep
->
GetTrack
()
->
GetDefinition
()
->
GetParticleName
();
G4String
PID
=
aStep
->
GetTrack
()
->
GetDefinition
()
->
GetParticleName
();
if
(
PID
==
"driftelectron"
){
if
(
PID
==
"driftelectron"
){
Infos
[
0
]
=
1
;
Infos
[
0
]
=
aStep
->
GetTrack
()
->
GetWeight
()
;
}
}
// Check if the particle has interact before, if yes, add up the number of electron.
// Check if the particle has interact before, if yes, add up the number of electron.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment