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
c807a369
Commit
c807a369
authored
3 years ago
by
Dominik Smith
Committed by
Dominik Smith
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Implemented automated switching between STS unpackers in CbmStsUnpackConfig and run_unpack_tsa.
parent
a3a96fd6
No related branches found
No related tags found
1 merge request
!461
Switchable STS unpacker algos with legacy support for 2020 runs.
Pipeline
#12906
passed
3 years ago
Stage: documentation
Stage: deploy
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
macro/run/run_unpack_tsa.C
+1
-1
1 addition, 1 deletion
macro/run/run_unpack_tsa.C
reco/detectors/sts/unpack/CbmStsUnpackConfig.cxx
+8
-2
8 additions, 2 deletions
reco/detectors/sts/unpack/CbmStsUnpackConfig.cxx
with
9 additions
and
3 deletions
macro/run/run_unpack_tsa.C
+
1
−
1
View file @
c807a369
...
...
@@ -114,7 +114,7 @@ void run_unpack_tsa(std::string infile = "test.tsa", UInt_t runid = 0, const cha
// ---- STS ----
std
::
shared_ptr
<
CbmStsUnpackConfig
>
stsconfig
=
nullptr
;
stsconfig
=
std
::
make_shared
<
CbmStsUnpackConfig
>
(
""
,
runid
);
stsconfig
=
std
::
make_shared
<
CbmStsUnpackConfig
>
(
std
::
string
(
setupName
)
,
runid
);
if
(
stsconfig
)
{
// stsconfig->SetDebugState();
stsconfig
->
SetDoWriteOutput
();
...
...
This diff is collapsed.
Click to expand it.
reco/detectors/sts/unpack/CbmStsUnpackConfig.cxx
+
8
−
2
View file @
c807a369
...
...
@@ -68,11 +68,17 @@ std::shared_ptr<CbmStsUnpackAlgoBase> CbmStsUnpackConfig::chooseAlgo()
{
if
(
fDoLog
)
LOG
(
info
)
<<
fName
<<
"::Init - chooseAlgo"
;
// Non default unpacker selection
// Legacy unpacker for data taken before mcbm 2021
if
(
fGeoSetupTag
.
find
(
"mcbm_beam_2020_03"
)
!=
fGeoSetupTag
.
npos
)
{
auto
algo
=
std
::
make_shared
<
CbmStsUnpackAlgoLegacy
>
();
LOG
(
info
)
<<
fName
<<
"::chooseAlgo() - selected algo = "
<<
algo
->
Class_Name
();
return
algo
;
}
// Default unpacker selection
// Unpacker algo from mcbm 2021 on and hopefully default for a long time.
auto
algo
=
std
::
make_shared
<
CbmStsUnpackAlgo
>
();
//auto algo = std::make_shared<CbmStsUnpackAlgoLegacy>(); // for 2020 runs
LOG
(
info
)
<<
fName
<<
"::chooseAlgo() - selected algo = "
<<
algo
->
Class_Name
();
return
algo
;
...
...
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