Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
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
Xinhui Huang
athena
Commits
664eba18
Commit
664eba18
authored
2 years ago
by
Walter Lampl
Browse files
Options
Downloads
Patches
Plain Diff
LArHVCorrMaker: do not rescale, write only flat blob
parent
a8ebeedc
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
LArCalorimeter/LArCalibUtils/LArCalibUtils/LArHVCorrMaker.h
+0
-3
0 additions, 3 deletions
LArCalorimeter/LArCalibUtils/LArCalibUtils/LArHVCorrMaker.h
LArCalorimeter/LArCalibUtils/src/LArHVCorrMaker.cxx
+1
-11
1 addition, 11 deletions
LArCalorimeter/LArCalibUtils/src/LArHVCorrMaker.cxx
with
1 addition
and
14 deletions
LArCalorimeter/LArCalibUtils/LArCalibUtils/LArHVCorrMaker.h
+
0
−
3
View file @
664eba18
...
...
@@ -42,14 +42,11 @@ class LArHVCorrMaker : public AthAlgorithm
private
:
const
LArOnlineID
*
m_lar_on_id
=
nullptr
;
Gaudi
::
Property
<
std
::
string
>
m_keyOutput
{
this
,
"keyOutput"
,
"LArHVScaleCorr"
,
"Output key for LArHVScaleCorr"
};
Gaudi
::
Property
<
std
::
string
>
m_folderName
{
this
,
"folderName"
,
"/LAR/ElecCalibFlat/HVScaleCorr"
,
"Folder to store the CondAttrListCollection containing the HVScale correction"
};
SG
::
ReadCondHandleKey
<
ILArHVScaleCorr
>
m_scaleCorrKey
{
this
,
"LArHVScaleCorr"
,
"LArHVScaleCorrRecomputed"
,
""
};
SG
::
ReadCondHandleKey
<
ILArHVScaleCorr
>
m_onlineScaleCorrKey
{
this
,
"OnlineLArHVScaleCorr"
,
"LArHVScaleCorr"
,
""
};
SG
::
ReadCondHandleKey
<
LArOnOffIdMapping
>
m_cablingKey
{
this
,
"CablingKey"
,
"LArOnOffIdMap"
,
"SG Key of LArOnOffIdMapping object"
};
...
...
This diff is collapsed.
Click to expand it.
LArCalorimeter/LArCalibUtils/src/LArHVCorrMaker.cxx
+
1
−
11
View file @
664eba18
...
...
@@ -27,7 +27,6 @@ StatusCode LArHVCorrMaker::initialize()
ATH_MSG_INFO
(
" in initialize "
);
ATH_CHECK
(
detStore
()
->
retrieve
(
m_lar_on_id
,
"LArOnlineID"
)
);
ATH_CHECK
(
m_scaleCorrKey
.
initialize
()
);
ATH_CHECK
(
m_onlineScaleCorrKey
.
initialize
()
);
ATH_CHECK
(
m_cablingKey
.
initialize
()
);
return
StatusCode
::
SUCCESS
;
}
...
...
@@ -47,7 +46,6 @@ StatusCode LArHVCorrMaker::stop()
const
EventContext
&
ctx
=
Gaudi
::
Hive
::
currentContext
();
SG
::
ReadCondHandle
<
ILArHVScaleCorr
>
scaleCorr
(
m_scaleCorrKey
,
ctx
);
SG
::
ReadCondHandle
<
ILArHVScaleCorr
>
onlineScaleCorr
(
m_onlineScaleCorrKey
,
ctx
);
SG
::
ReadCondHandle
<
LArOnOffIdMapping
>
cabling
(
m_cablingKey
,
ctx
);
const
unsigned
hashMax
=
m_lar_on_id
->
channelHashMax
();
...
...
@@ -69,19 +67,11 @@ StatusCode LArHVCorrMaker::stop()
const
HWIdentifier
hwid
=
cabling
->
createSignalChannelID
(
id
);
ATH_MSG_VERBOSE
(
"Filling value for id "
<<
id
.
get_identifier32
().
get_compact
());
value
=
scaleCorr
->
HVScaleCorr
(
hwid
);
// Scales in scaleCorr have been normalized by online correction.
// Undo to make the scale absolute.
value
*=
onlineScaleCorr
->
HVScaleCorr
(
hwid
);
}
pblob
[
hs
]
=
value
;
}
coll
->
add
(
1
,
attrList
);
//Add as channel 1 to AttrListCollection
auto
flatHVScale
=
std
::
make_unique
<
LArHVScaleCorrFlat
>
(
coll
.
get
());
ATH_CHECK
(
detStore
()
->
record
(
std
::
move
(
coll
),
m_folderName
)
);
ATH_CHECK
(
detStore
()
->
record
(
std
::
move
(
flatHVScale
),
m_keyOutput
)
);
ATH_CHECK
(
detStore
()
->
record
(
std
::
move
(
coll
),
m_folderName
)
);
return
StatusCode
::
SUCCESS
;
}
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