Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CEPCSW
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
dhb112358@mail.ustc.edu.cn
CEPCSW
Commits
da5f8cb9
Commit
da5f8cb9
authored
4 years ago
by
lintao@ihep.ac.cn
Browse files
Options
Downloads
Patches
Plain Diff
enable the PAI model.
parent
feb7155e
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
Simulation/DetSimCore/src/DetSimAlg.cpp
+5
-0
5 additions, 0 deletions
Simulation/DetSimCore/src/DetSimAlg.cpp
Simulation/DetSimFastModel/src/DummyFastSimG4Model.cpp
+2
-2
2 additions, 2 deletions
Simulation/DetSimFastModel/src/DummyFastSimG4Model.cpp
with
7 additions
and
2 deletions
Simulation/DetSimCore/src/DetSimAlg.cpp
+
5
−
0
View file @
da5f8cb9
...
...
@@ -10,6 +10,7 @@
#include
"DetectorConstruction.h"
#include
"G4PhysListFactory.hh"
#include
"G4EmParameters.hh"
#include
"G4StepLimiterPhysics.hh"
#include
"G4FastSimulationPhysics.hh"
#include
"PrimaryGeneratorAction.h"
...
...
@@ -59,6 +60,10 @@ DetSimAlg::initialize() {
G4PhysListFactory
*
physListFactory
=
new
G4PhysListFactory
();
G4VModularPhysicsList
*
modularPhysicsList
=
physListFactory
->
GetReferencePhysList
(
m_physics_lists_name
.
value
());
// PAI model
G4EmParameters
::
Instance
()
->
AddPAIModel
(
"all"
,
"DriftChamberRegion"
,
"pai"
);
// G4EmParameters::Instance()->AddPAIModel("all","DriftChamberRegion","pai_photon");
// register addition physics list
modularPhysicsList
->
RegisterPhysics
(
new
G4StepLimiterPhysics
());
...
...
This diff is collapsed.
Click to expand it.
Simulation/DetSimFastModel/src/DummyFastSimG4Model.cpp
+
2
−
2
View file @
da5f8cb9
...
...
@@ -17,7 +17,7 @@ G4bool DummyFastSimG4Model::IsApplicable(const G4ParticleDefinition& aParticle)
}
G4bool
DummyFastSimG4Model
::
ModelTrigger
(
const
G4FastTrack
&
aFastTrack
)
{
G4cout
<<
__FILE__
<<
__LINE__
<<
": ModelTrigger."
<<
G4endl
;
//
G4cout << __FILE__ << __LINE__ << ": ModelTrigger." << G4endl;
bool
istrigged
=
false
;
...
...
@@ -31,7 +31,7 @@ G4bool DummyFastSimG4Model::ModelTrigger(const G4FastTrack& aFastTrack) {
}
void
DummyFastSimG4Model
::
DoIt
(
const
G4FastTrack
&
aFastTrack
,
G4FastStep
&
aFastStep
)
{
G4cout
<<
__FILE__
<<
__LINE__
<<
": DoIt."
<<
G4endl
;
//
G4cout << __FILE__ << __LINE__ << ": DoIt." << G4endl;
aFastStep
.
ProposeTrackStatus
(
fStopAndKill
);
}
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