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
!78670
Add config file we use in online LAr mon
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add config file we use in online LAr mon
AtlasLArCalibration/athena:addLArSCRawConfig
into
24.0
Overview
16
Commits
4
Pipelines
0
Changes
1
Merged
Ellis Kay
requested to merge
AtlasLArCalibration/athena:addLArSCRawConfig
into
24.0
1 month ago
Overview
12
Commits
4
Pipelines
0
Changes
1
Expand
Config file used to run LAr SC vs cell mon algorithm at p1
0
0
Merge request reports
Compare
24.0
version 3
c18919a8
1 month ago
version 2
3f656e05
1 month ago
version 1
5edf1876
1 month ago
24.0 (base)
and
latest version
latest version
ddb23a47
4 commits,
1 month ago
version 3
c18919a8
3 commits,
1 month ago
version 2
3f656e05
2 commits,
1 month ago
version 1
5edf1876
1 commit,
1 month ago
1 file
+
130
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
LArCalorimeter/LArMonitoring/python/LArSCvsRawChannelMonAlg.py
0 → 100644
+
130
−
0
Options
# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
from
AthenaConfiguration.ComponentFactory
import
CompFactory
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
from
LArByteStream.LArRawDataReadingConfig
import
LArRawDataReadingCfg
from
LArByteStream.LArRawSCDataReadingConfig
import
LArRawSCDataReadingCfg
from
AthenaConfiguration.MainServicesConfig
import
MainServicesCfg
from
LArCabling.LArCablingConfig
import
LArOnOffIdMappingCfg
,
LArOnOffIdMappingSCCfg
def
LArSCvsRawChannelMonAlgCfg
(
flags
):
acc
=
ComponentAccumulator
()
from
LArBadChannelTool.LArBadChannelConfig
import
LArBadChannelCfg
acc
.
merge
(
LArBadChannelCfg
(
flags
))
acc
.
merge
(
LArBadChannelCfg
(
flags
,
isSC
=
True
))
acc
.
merge
(
LArOnOffIdMappingCfg
(
flags
))
acc
.
merge
(
LArOnOffIdMappingSCCfg
(
flags
))
acc
.
merge
(
LArRawSCDataReadingCfg
(
flags
))
from
CaloRec.CaloBCIDAvgAlgConfig
import
CaloBCIDAvgAlgCfg
acc
.
merge
(
CaloBCIDAvgAlgCfg
(
flags
))
if
flags
.
Input
.
isMC
is
False
and
not
flags
.
Common
.
isOnline
:
from
LumiBlockComps.LuminosityCondAlgConfig
import
LuminosityCondAlgCfg
acc
.
merge
(
LuminosityCondAlgCfg
(
flags
))
from
LumiBlockComps.LBDurationCondAlgConfig
import
LBDurationCondAlgCfg
acc
.
merge
(
LBDurationCondAlgCfg
(
flags
))
from
AthenaMonitoring.AthMonitorCfgHelper
import
AthMonitorCfgHelper
helper
=
AthMonitorCfgHelper
(
flags
,
'
LArSuperCellMonAlgCfg
'
)
acc
.
merge
(
LArSCvsRawChannelMonConfigCore
(
helper
,
flags
))
return
acc
def
LArSCvsRawChannelMonConfigCore
(
helper
,
flags
,
algname
=
"
LArSCvsRawChannelMon
"
):
alg
=
helper
.
addAlgorithm
(
CompFactory
.
LArSCvsRawChannelMonAlg
,
algname
)
GroupName
=
"
LArSCvsRawGroup
"
alg
.
MonGroupName
=
GroupName
alg
.
SCEnergyCut
=
90
alg
.
ProblemsToMask
=
[
"
deadReadout
"
,
"
deadPhys
"
]
cellMonGroup
=
helper
.
addGroup
(
alg
,
GroupName
,
'
LArSCvsRawChannelMon
'
)
partGroup
=
helper
.
addArray
([
alg
.
LayerNames
],
alg
,
'
LArSCvsRawChannelMon
'
,
topPath
=
'
LArSCvsRawChannelMon/PerLayer
'
)
from
LArMonitoring.GlobalVariables
import
lArDQGlobals
for
pName
in
alg
.
PartitionNames
:
cellMonGroup
.
defineHistogram
(
f
"
scEne_
{
pName
}
,eneSum_
{
pName
}
;h_SCEne_vs_RawChannelEne_
{
pName
}
"
,
title
=
f
'
Super Cell energy vs sum of RawChannel energies (
{
pName
}
) ;SC [MeV]; Sum [MeV]
'
,
type
=
'
TH2F
'
,
path
=
""
,
xbins
=
100
,
xmin
=
0
,
xmax
=
50000
,
ybins
=
100
,
ymin
=
0
,
ymax
=
50000
)
for
lName
in
alg
.
LayerNames
:
Side
=
lName
[
-
1
]
if
"
HEC
"
in
lName
:
Sampling
=
"
0
"
Part
=
lName
[:
-
1
]
else
:
Sampling
=
lName
[
-
2
]
Part
=
lName
[:
-
2
]
if
Part
==
"
FCAL
"
:
Part
=
"
FCal
"
if
Sampling
==
"
P
"
:
Sampling
=
"
0
"
print
(
lName
,
"
part
"
,
Part
,
"
side
"
,
Side
,
"
sampling
"
,
Sampling
)
partxbins
=
lArDQGlobals
.
SuperCell_Variables
[
"
etaRange
"
][
Part
][
Side
][
Sampling
]
partybins
=
lArDQGlobals
.
SuperCell_Variables
[
"
phiRange
"
][
Part
][
Side
][
Sampling
]
partGroup
.
defineHistogram
(
'
part_eta,part_phi,part_eneFrac; Coverage_SCEne_div_cellEne_coverage_test
'
,
title
=
'
SC energy / sum of cell energy
'
,
type
=
"
TProfile2D
"
,
xbins
=
partxbins
,
ybins
=
partybins
,
path
=
'
Coverage
'
,
pattern
=
[(
lName
)])
partGroup
.
defineHistogram
(
"
part_scEne,part_eneSum;h_SCEne_vs_RawChannelEne
"
,
title
=
f
'
Super Cell energy vs sum of RawChannel energies (
{
lName
}
) ;SC [MeV]; Sum [MeV]
'
,
type
=
'
TH2F
'
,
xbins
=
100
,
xmin
=
0
,
xmax
=
50000
,
ybins
=
100
,
ymin
=
0
,
ymax
=
50000
,
pattern
=
[(
lName
)])
return
helper
.
result
()
if
__name__
==
"
__main__
"
:
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
flags
=
initConfigFlags
()
from
AthenaCommon.Logging
import
log
from
AthenaCommon.Constants
import
DEBUG
log
.
setLevel
(
DEBUG
)
from
AthenaConfiguration.TestDefaults
import
defaultGeometryTags
flags
.
LAr
.
doAlign
=
False
flags
.
Input
.
Files
=
[
"
data24_13p6TeV.00481893.physics_Main.daq.RAW._lb1058._SFO-17._0002.data
"
,]
flags
.
GeoModel
.
AtlasVersion
=
defaultGeometryTags
.
RUN3
flags
.
Output
.
HISTFileName
=
'
LArSuperCellvsRC.root
'
flags
.
Exec
.
FPE
=-
1
flags
.
fillFromArgs
()
flags
.
lock
()
acc
=
MainServicesCfg
(
flags
)
acc
.
merge
(
LArRawDataReadingCfg
(
flags
))
acc
.
merge
(
LArSCvsRawChannelMonAlgCfg
(
flags
))
acc
.
getService
(
"
AvalancheSchedulerSvc
"
).
ShowDataDependencies
=
True
alg
=
acc
.
getEventAlgo
(
"
LArSCvsRawChannelMon
"
)
alg
.
EnableLumi
=
False
alg
.
TrigDecisionTool
=
""
alg
.
WarnOffenders
=
True
acc
.
run
()
Loading