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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Commits
cf788e6b
Commit
cf788e6b
authored
1 year ago
by
Pierre-Alain Loizeau
Browse files
Options
Downloads
Patches
Plain Diff
[Online] Select STS walk and TRD setup files based on run id
parent
477c0647
No related branches found
No related tags found
1 merge request
!1732
[Online] Select STS walk and TRD setup files based on run id
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
algo/global/Reco.cxx
+5
-3
5 additions, 3 deletions
algo/global/Reco.cxx
with
5 additions
and
3 deletions
algo/global/Reco.cxx
+
5
−
3
View file @
cf788e6b
...
...
@@ -115,7 +115,8 @@ void Reco::Init(const Options& opts)
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
};
auto
walkMap
=
yaml
::
ReadFromFile
<
sts
::
WalkMap
>
(
Opts
().
ParamsDir
()
/
"StsWalkMap.yaml"
);
fs
::
path
walkFile
=
2724
<=
Opts
().
RunId
()
?
"StsWalkMap_mcbm2024.yaml"
:
"StsWalkMap_mcbm2022.yaml"
;
auto
walkMap
=
yaml
::
ReadFromFile
<
sts
::
WalkMap
>
(
Opts
().
ParamsDir
()
/
walkFile
);
sts
::
Unpack
::
Config
cfg
{.
readout
=
readout
,
.
walkMap
=
walkMap
};
fStsUnpack
=
std
::
make_unique
<
sts
::
Unpack
>
(
cfg
);
if
(
fSender
!=
nullptr
)
{
...
...
@@ -132,8 +133,9 @@ void Reco::Init(const Options& opts)
}
if
(
Opts
().
Has
(
Subsystem
::
TRD
)
&&
Opts
().
Has
(
Step
::
Unpack
))
{
auto
cfg
=
yaml
::
ReadFromFile
<
trd
::
ReadoutConfig
>
(
Opts
().
ParamsDir
()
/
"TrdReadoutSetup.yaml"
);
fTrdUnpack
=
std
::
make_unique
<
trd
::
Unpack
>
(
cfg
);
fs
::
path
readoutFile
=
2724
<=
Opts
().
RunId
()
?
"TrdReadoutSetup_mcbm2024.yaml"
:
"TrdReadoutSetup_mcbm2022.yaml"
;
auto
cfg
=
yaml
::
ReadFromFile
<
trd
::
ReadoutConfig
>
(
Opts
().
ParamsDir
()
/
readoutFile
);
fTrdUnpack
=
std
::
make_unique
<
trd
::
Unpack
>
(
cfg
);
}
if
(
Opts
().
Has
(
Subsystem
::
TRD2D
)
&&
Opts
().
Has
(
Step
::
Unpack
))
{
...
...
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