Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Geant4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
LHCb
Geant4
Commits
5e4d1993
Commit
5e4d1993
authored
5 years ago
by
Dmitry Popov
Browse files
Options
Downloads
Patches
Plain Diff
switch to opt2 in calo test
parent
463664ec
No related branches found
No related tags found
2 merge requests
!61
Release of v106r2
,
!58
Switch to the stock EMStandardOpt2 physics list
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
LHCbG4Tests/G4SamplingCaloTest/scripts/G4SamplingCaloTest.py
+1
-1
1 addition, 1 deletion
LHCbG4Tests/G4SamplingCaloTest/scripts/G4SamplingCaloTest.py
LHCbG4Tests/G4SamplingCaloTest/src/PhysicsList.cc
+2
-1
2 additions, 1 deletion
LHCbG4Tests/G4SamplingCaloTest/src/PhysicsList.cc
with
3 additions
and
2 deletions
LHCbG4Tests/G4SamplingCaloTest/scripts/G4SamplingCaloTest.py
+
1
−
1
View file @
5e4d1993
...
...
@@ -28,7 +28,7 @@ def create_cfg_file(n_evts=10000, name='G4SamplingCaloTest.mac'):
'
/testem/det/setAbsor 2 Scintillator 4 mm
\n
'
+
'
/testem/det/setSizeYZ 20 cm
\n
'
+
'
#
\n
'
+
'
/testem/phys/addPhysics emstandard_opt
1nocuts
\n
'
+
'
/testem/phys/addPhysics emstandard_opt
2
\n
'
+
'
#
\n
'
+
'
#/gun/particle e-
\n
'
+
'
#/gun/energy 100 GeV
\n
'
+
...
...
This diff is collapsed.
Click to expand it.
LHCbG4Tests/G4SamplingCaloTest/src/PhysicsList.cc
+
2
−
1
View file @
5e4d1993
...
...
@@ -169,6 +169,7 @@ void PhysicsList::AddPhysicsList(const G4String& name)
}
else
if
(
name
==
"emstandard_opt2"
)
{
std
::
cout
<<
"Passed 'emstandard_opt2' in Physicslist.cc"
<<
std
::
endl
;
fEmName
=
name
;
delete
fEmPhysicsList
;
fEmPhysicsList
=
new
G4EmStandardPhysics_option2
();
...
...
@@ -189,7 +190,7 @@ void PhysicsList::AddPhysicsList(const G4String& name)
// LHCb
else
if
(
name
==
"emstandard_opt1nocuts"
)
{
fEmName
=
name
;
std
::
cout
<<
"Passed
if statement
in Physicslist.cc"
<<
std
::
endl
;
std
::
cout
<<
"Passed
'emstandard_opt1nocuts'
in Physicslist.cc"
<<
std
::
endl
;
delete
fEmPhysicsList
;
fEmPhysicsList
=
new
G4EmStandardPhysics_option1NoApplyCuts
();
}
...
...
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