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
maxt@ihep.ac.cn
CEPCSW
Commits
e423b1d7
Commit
e423b1d7
authored
5 years ago
by
lintao@ihep.ac.cn
Browse files
Options
Downloads
Patches
Plain Diff
WIP: Prepare for the plcio output.
parent
eb7d8cfd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Simulation/DetSimAna/CMakeLists.txt
+10
-2
10 additions, 2 deletions
Simulation/DetSimAna/CMakeLists.txt
Simulation/DetSimAna/src/ExampleAnaElemTool.cpp
+4
-0
4 additions, 0 deletions
Simulation/DetSimAna/src/ExampleAnaElemTool.cpp
with
14 additions
and
2 deletions
Simulation/DetSimAna/CMakeLists.txt
+
10
−
2
View file @
e423b1d7
...
...
@@ -9,11 +9,19 @@ find_package(Geant4 REQUIRED ui_all vis_all)
include
(
${
Geant4_USE_FILE
}
)
find_package
(
DD4hep COMPONENTS DDG4 REQUIRED
)
# For EDM & I/O
find_package
(
podio REQUIRED
)
find_package
(
plcio REQUIRED
)
# find_package(LCIO REQUIRED)
set
(
DetSimAna_srcs
src/ExampleAnaElemTool.cpp
)
message
(
"podio_LIBRARIES:
${
podio_LIBRARIES
}
"
)
message
(
"plcio_LIBRARIES:
${
plcio_LIBRARIES
}
"
)
gaudi_add_module
(
DetSimAna
${
DetSimAna_srcs
}
INCLUDE_DIRS DetSimInterface DD4hep GaudiKernel Geant4
INCLUDE_DIRS DetSimInterface DD4hep GaudiKernel Geant4
${
plcio_INCLUDE_DIRS
}
${
podio_INCLUDE_DIRS
}
LINK_LIBRARIES DetSimInterface DD4hep
${
DD4hep_COMPONENT_LIBRARIES
}
GaudiKernel Geant4
${
plcio_LIBRARIES
}
${
podio_LIBRARIES
}
)
This diff is collapsed.
Click to expand it.
Simulation/DetSimAna/src/ExampleAnaElemTool.cpp
+
4
−
0
View file @
e423b1d7
...
...
@@ -59,6 +59,10 @@ ExampleAnaElemTool::EndOfEventAction(const G4Event* anEvent) {
<<
" #"
<<
icol
<<
" has "
<<
nhits
<<
" hits."
<<
endmsg
;
if
(
nhits
==
0
)
{
// just skip this collection.
continue
;
}
// There are different types (new and old)
dd4hep
::
sim
::
Geant4HitCollection
*
coll
=
dynamic_cast
<
dd4hep
::
sim
::
Geant4HitCollection
*>
(
collect
);
...
...
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