Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Commits
b306f53b
Commit
b306f53b
authored
Apr 17, 2024
by
Pierre-Alain Loizeau
Browse files
Options
Downloads
Patches
Plain Diff
[Online] Select STS chan mask files based on run id
parent
de45cae5
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1758
[Online] mSTS 2024 channel masks
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
algo/global/Reco.cxx
+12
-4
12 additions, 4 deletions
algo/global/Reco.cxx
with
12 additions
and
4 deletions
algo/global/Reco.cxx
+
12
−
4
View file @
b306f53b
...
...
@@ -111,12 +111,20 @@ void Reco::Init(const Options& opts)
}
if
(
Opts
().
Has
(
Subsystem
::
STS
)
&&
Opts
().
Has
(
Step
::
Unpack
))
{
fs
::
path
readoutFile
=
2724
<=
Opts
().
RunId
()
?
"StsReadout_mcbm2024.yaml"
:
"StsReadout_mcbm2022.yaml"
;
fs
::
path
readoutFile
=
"StsReadout_mcbm2022.yaml"
;
fs
::
path
chanMaskFile
=
"StsChannelMaskSet_mcbm2022.yaml"
;
fs
::
path
walkFile
=
"StsWalkMap_mcbm2022.yaml"
;
if
(
2724
<=
Opts
().
RunId
())
{
readoutFile
=
"StsReadout_mcbm2024.yaml"
;
chanMaskFile
=
"StsChannelMaskSet_mcbm2024.yaml"
;
walkFile
=
"StsWalkMap_mcbm2024.yaml"
;
}
sts
::
ReadoutSetup
readoutSetup
=
yaml
::
ReadFromFile
<
sts
::
ReadoutSetup
>
(
Opts
().
ParamsDir
()
/
readoutFile
);
auto
chanMask
=
yaml
::
ReadFromFile
<
sts
::
ChannelMaskSet
>
(
Opts
().
ParamsDir
()
/
"StsChannelMaskSet.yaml"
);
sts
::
ReadoutConfig
readout
{
readoutSetup
,
chanMask
};
fs
::
path
walkFile
=
2724
<=
Opts
().
RunId
()
?
"StsWalkMap_mcbm2024.yaml"
:
"StsWalkMap_mcbm2022.yaml"
;
auto
chanMask
=
yaml
::
ReadFromFile
<
sts
::
ChannelMaskSet
>
(
Opts
().
ParamsDir
()
/
chanMaskFile
);
auto
walkMap
=
yaml
::
ReadFromFile
<
sts
::
WalkMap
>
(
Opts
().
ParamsDir
()
/
walkFile
);
sts
::
ReadoutConfig
readout
{
readoutSetup
,
chanMask
};
sts
::
Unpack
::
Config
cfg
{.
readout
=
readout
,
.
walkMap
=
walkMap
};
fStsUnpack
=
std
::
make_unique
<
sts
::
Unpack
>
(
cfg
);
if
(
fSender
!=
nullptr
)
{
...
...
...
...
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
sign in
to comment