Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
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
Peter Sherwood
athena
Commits
643f253f
Commit
643f253f
authored
6 years ago
by
Daniel Louis Noel
Browse files
Options
Downloads
Patches
Plain Diff
rewritten ActiveSensitveDetectorTool
parent
a8ac2b13
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
LArCalorimeter/LArG4/LArG4SD/python/LArG4SDToolConfig.py
+10
-8
10 additions, 8 deletions
LArCalorimeter/LArG4/LArG4SD/python/LArG4SDToolConfig.py
LArCalorimeter/LArG4/LArG4SD/test/LArG4SDToolConfig_test.py
+5
-1
5 additions, 1 deletion
LArCalorimeter/LArG4/LArG4SD/test/LArG4SDToolConfig_test.py
with
15 additions
and
9 deletions
LArCalorimeter/LArG4/LArG4SD/python/LArG4SDToolConfig.py
+
10
−
8
View file @
643f253f
...
@@ -9,31 +9,33 @@ from LArG4SD.LArG4SDConf import LArG4__FCALSDTool
...
@@ -9,31 +9,33 @@ from LArG4SD.LArG4SDConf import LArG4__FCALSDTool
from
LArG4SD.LArG4SDConf
import
LArG4__HECSDTool
from
LArG4SD.LArG4SDConf
import
LArG4__HECSDTool
from
LArG4SD.LArG4SDConf
import
LArG4__MiniFCALSDTool
from
LArG4SD.LArG4SDConf
import
LArG4__MiniFCALSDTool
from
LArG4SD.LArG4SDConf
import
LArG4__DeadSDTool
from
LArG4SD.LArG4SDConf
import
LArG4__DeadSDTool
from
LArG4SD.LArG4SDConf
import
LArG4__ActiveSDTool
def
getLArActiveSensitiveDetector
(
name
=
"
LArActiveSensitiveDetector
"
,
**
kwargs
):
#todo - investigate old comments in the code
def
LArActiveSensitiveDetectorToolCfg
(
ConfigFlags
,
name
=
"
LArActiveSensitiveDetector
"
,
**
kwargs
):
## Main configuration
## Main configuration
from
G4AtlasApps.SimFlags
import
simFlags
if
ConfigFlags
.
GeoModel
.
AtlasVersion
not
in
[
"
tb_LArH6_2003
"
,
"
tb_LArH6_2002
"
]:
if
simFlags
.
SimLayout
.
get_Value
()
not
in
[
"
tb_LArH6_2003
"
,
"
tb_LArH6_2002
"
]:
kwargs
.
setdefault
(
"
StacVolumes
"
,[
"
LArMgr::LAr::EMB::STAC
"
])
kwargs
.
setdefault
(
"
StacVolumes
"
,[
"
LArMgr::LAr::EMB::STAC
"
])
kwargs
.
setdefault
(
"
PresamplerVolumes
"
,[
"
LArMgr::LAr::Barrel::Presampler::Module
"
])
kwargs
.
setdefault
(
"
PresamplerVolumes
"
,[
"
LArMgr::LAr::Barrel::Presampler::Module
"
])
kwargs
.
setdefault
(
"
NegIWVolumes
"
,[
"
LArMgr::LAr::EMEC::Neg::InnerWheel
"
])
kwargs
.
setdefault
(
"
NegIWVolumes
"
,[
"
LArMgr::LAr::EMEC::Neg::InnerWheel
"
])
kwargs
.
setdefault
(
"
NegOWVolumes
"
,[
"
LArMgr::LAr::EMEC::Neg::OuterWheel
"
])
kwargs
.
setdefault
(
"
NegOWVolumes
"
,[
"
LArMgr::LAr::EMEC::Neg::OuterWheel
"
])
kwargs
.
setdefault
(
"
BOBarretteVolumes
"
,[
"
LArMgr::LAr::EMEC::BackOuterBarrette::Module::Phidiv
"
])
kwargs
.
setdefault
(
"
BOBarretteVolumes
"
,[
"
LArMgr::LAr::EMEC::BackOuterBarrette::Module::Phidiv
"
])
kwargs
.
setdefault
(
"
MiniVolumes
"
,[
"
LArMgr::MiniFCAL::Wafer
"
])
kwargs
.
setdefault
(
"
MiniVolumes
"
,[
"
LArMgr::MiniFCAL::Wafer
"
])
if
simFlags
.
SimLayout
.
get_Value
()
!=
"
tb_LArH6_2003
"
:
if
ConfigFlags
.
GeoModel
.
AtlasVersion
!=
"
tb_LArH6_2003
"
:
kwargs
.
setdefault
(
"
PosIWVolumes
"
,[
"
LArMgr::LAr::EMEC::Pos::InnerWheel
"
])
kwargs
.
setdefault
(
"
PosIWVolumes
"
,[
"
LArMgr::LAr::EMEC::Pos::InnerWheel
"
])
kwargs
.
setdefault
(
"
PosOWVolumes
"
,[
"
LArMgr::LAr::EMEC::Pos::OuterWheel
"
])
kwargs
.
setdefault
(
"
PosOWVolumes
"
,[
"
LArMgr::LAr::EMEC::Pos::OuterWheel
"
])
kwargs
.
setdefault
(
"
PresVolumes
"
,
[
"
LArMgr::LAr::Endcap::Presampler::LiquidArgon
"
])
kwargs
.
setdefault
(
"
PresVolumes
"
,
[
"
LArMgr::LAr::Endcap::Presampler::LiquidArgon
"
])
kwargs
.
setdefault
(
"
SliceVolumes
"
,[
"
LArMgr::LAr::HEC::Module::Depth::Slice
"
])
kwargs
.
setdefault
(
"
SliceVolumes
"
,[
"
LArMgr::LAr::HEC::Module::Depth::Slice
"
])
if
simFlags
.
SimLayout
.
get_Value
()
not
in
[
"
tb_LArH6_2002
"
]:
if
ConfigFlags
.
GeoModel
.
AtlasVersion
not
in
[
"
tb_LArH6_2002
"
]:
kwargs
.
setdefault
(
"
FCAL1Volumes
"
,[
"
LArMgr::LAr::FCAL::Module1::Gap
"
])
kwargs
.
setdefault
(
"
FCAL1Volumes
"
,[
"
LArMgr::LAr::FCAL::Module1::Gap
"
])
kwargs
.
setdefault
(
"
FCAL2Volumes
"
,[
"
LArMgr::LAr::FCAL::Module2::Gap
"
])
kwargs
.
setdefault
(
"
FCAL2Volumes
"
,[
"
LArMgr::LAr::FCAL::Module2::Gap
"
])
kwargs
.
setdefault
(
"
FCAL3Volumes
"
,[
"
LArMgr::LAr::FCAL::Module3::Gap
"
])
kwargs
.
setdefault
(
"
FCAL3Volumes
"
,[
"
LArMgr::LAr::FCAL::Module3::Gap
"
])
# Running PID calibration hits?
# Running PID calibration hits?
kwargs
.
setdefault
(
"
ParticleID
"
,
sim
Flags
.
ParticleID
()
)
kwargs
.
setdefault
(
"
ParticleID
"
,
Config
Flags
.
Sim
.
ParticleID
)
# No effect currently
# No effect currently
kwargs
.
setdefault
(
"
OutputCollectionNames
"
,
[
"
LArCalibrationHitActive
"
])
kwargs
.
setdefault
(
"
OutputCollectionNames
"
,
[
"
LArCalibrationHitActive
"
])
return
CfgMgr
.
LArG4__ActiveSDTool
(
name
,
**
kwargs
)
return
LArG4__ActiveSDTool
(
name
,
**
kwargs
)
def
LArDeadSensitiveDetectorToolCfg
(
ConfigFlags
,
name
=
"
LArDeadSensitiveDetector
"
,
**
kwargs
):
def
LArDeadSensitiveDetectorToolCfg
(
ConfigFlags
,
name
=
"
LArDeadSensitiveDetector
"
,
**
kwargs
):
## Main configuration
## Main configuration
...
...
This diff is collapsed.
Click to expand it.
LArCalorimeter/LArG4/LArG4SD/test/LArG4SDToolConfig_test.py
+
5
−
1
View file @
643f253f
...
@@ -40,7 +40,8 @@ if __name__ == '__main__':
...
@@ -40,7 +40,8 @@ if __name__ == '__main__':
from
LArG4SD.LArG4SDToolConfig
import
LArHECSensitiveDetectorCfg
from
LArG4SD.LArG4SDToolConfig
import
LArHECSensitiveDetectorCfg
from
LArG4SD.LArG4SDToolConfig
import
LArMiniFCALSensitiveDetectorToolCfg
from
LArG4SD.LArG4SDToolConfig
import
LArMiniFCALSensitiveDetectorToolCfg
from
LArG4SD.LArG4SDToolConfig
import
LArDeadSensitiveDetectorToolCfg
from
LArG4SD.LArG4SDToolConfig
import
LArDeadSensitiveDetectorToolCfg
from
LArG4SD.LArG4SDToolConfig
import
LArActiveSensitiveDetectorToolCfg
acc1
,
tool1
=
LArEMBSensitiveDetectorCfg
(
ConfigFlags
)
acc1
,
tool1
=
LArEMBSensitiveDetectorCfg
(
ConfigFlags
)
acc1
.
addPublicTool
(
tool1
)
acc1
.
addPublicTool
(
tool1
)
cfg
.
merge
(
acc1
)
cfg
.
merge
(
acc1
)
...
@@ -63,6 +64,9 @@ if __name__ == '__main__':
...
@@ -63,6 +64,9 @@ if __name__ == '__main__':
toolDeadSensitiveDetector
=
LArDeadSensitiveDetectorToolCfg
(
ConfigFlags
)
toolDeadSensitiveDetector
=
LArDeadSensitiveDetectorToolCfg
(
ConfigFlags
)
cfg
.
addPublicTool
(
toolDeadSensitiveDetector
)
cfg
.
addPublicTool
(
toolDeadSensitiveDetector
)
toolActiveSensitiveDetector
=
LArActiveSensitiveDetectorToolCfg
(
ConfigFlags
)
cfg
.
addPublicTool
(
toolActiveSensitiveDetector
)
...
...
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