Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
atlas
athena
Merge requests
!38850
Add SCT_SensorsConfig.py and SCT_SensorsTestAlgConfig.py (
ATLASRECTS-5799
)
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add SCT_SensorsConfig.py and SCT_SensorsTestAlgConfig.py (
ATLASRECTS-5799
)
oda/athena:master-sensor
into
master
Overview
2
Commits
1
Pipelines
1
Changes
3
Merged
Susumu Oda
requested to merge
oda/athena:master-sensor
into
master
4 years ago
Overview
2
Commits
1
Pipelines
1
Changes
3
Expand
Add SCT_SensorsConfig.py for SCT_SensorsTool in the new job configuration
Add SCT_SensorsTestAlgConfig.py for SCT_SensorsTestAlg in the new job configuration
Run SCT_SensorsTestAlg in unit test
https://its.cern.ch/jira/browse/ATLASRECTS-5799
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
6c53ac1b
1 commit,
4 years ago
3 files
+
78
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
InnerDetector/InDetConditions/SCT_ConditionsAlgorithms/python/SCT_SensorsTestAlgConfig.py
0 → 100644
+
45
−
0
Options
"""
Define method to configure and test SCT_SensorsTestAlg
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
"""
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
from
AthenaConfiguration.ComponentFactory
import
CompFactory
def
SCT_MajorityConditionsTestAlgCfg
(
flags
,
name
=
"
SCT_SensorsTestAlg
"
,
**
kwargs
):
"""
Return a configured SCT_SensorsTestAlg
"""
acc
=
ComponentAccumulator
()
from
SCT_ConditionsTools.SCT_SensorsConfig
import
SCT_SensorsCfg
kwargs
.
setdefault
(
"
SCT_SensorsTool
"
,
acc
.
popToolsAndMerge
(
SCT_SensorsCfg
(
flags
,
**
kwargs
)))
acc
.
addEventAlgo
(
CompFactory
.
SCT_SensorsTestAlg
())
return
acc
if
__name__
==
"
__main__
"
:
from
AthenaCommon.Logging
import
log
from
AthenaCommon.Constants
import
INFO
log
.
setLevel
(
INFO
)
from
AthenaCommon.Configurable
import
Configurable
Configurable
.
configurableRun3Behavior
=
1
from
AthenaConfiguration.AllConfigFlags
import
ConfigFlags
ConfigFlags
.
Input
.
isMC
=
False
ConfigFlags
.
Input
.
ProjectName
=
"
data12_8TeV
"
ConfigFlags
.
Input
.
RunNumber
=
142913
ConfigFlags
.
addFlag
(
"
Input.InitialTimeStamp
"
,
1260630000
)
# During run 142913, 12/12/2009 @ 3:00pm (UTC)
ConfigFlags
.
IOVDb
.
GlobalTag
=
"
COMCOND-BLKPA-RUN1-09
"
ConfigFlags
.
GeoModel
.
AtlasVersion
=
"
ATLAS-R1-2012-03-00-00
"
ConfigFlags
.
Detector
.
GeometrySCT
=
True
ConfigFlags
.
lock
()
from
AthenaConfiguration.MainServicesConfig
import
MainServicesCfg
cfg
=
MainServicesCfg
(
ConfigFlags
)
from
McEventSelector.McEventSelectorConfig
import
McEventSelectorCfg
cfg
.
merge
(
McEventSelectorCfg
(
ConfigFlags
))
kwargs
=
{}
kwargs
[
"
folderTag
"
]
=
"
SctSensors-Sep03-14
"
cfg
.
merge
(
SCT_MajorityConditionsTestAlgCfg
(
ConfigFlags
,
**
kwargs
))
cfg
.
run
(
maxEvents
=
20
)
Loading