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
db75d3f1
Commit
db75d3f1
authored
1 year ago
by
Felix Weiglhofer
Committed by
Volker Friese
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
algo::Unpack: Make default detector list a default parameter.
parent
e2e45fd4
No related branches found
No related tags found
1 merge request
!1201
cbmreco: Integrate algo::Unpack
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
algo/unpack/Unpack.cxx
+2
-10
2 additions, 10 deletions
algo/unpack/Unpack.cxx
algo/unpack/Unpack.h
+8
-1
8 additions, 1 deletion
algo/unpack/Unpack.h
with
10 additions
and
11 deletions
algo/unpack/Unpack.cxx
+
2
−
10
View file @
db75d3f1
...
...
@@ -130,17 +130,9 @@ namespace cbm::algo
// ----------------------------------------------------------------------------
// ----- Initialisation ---------------------------------------------------
bool
Unpack
::
Init
(
std
::
optional
<
std
::
vector
<
fles
::
SubsystemIdentifier
>
>
subIds
)
bool
Unpack
::
Init
(
std
::
vector
<
fles
::
SubsystemIdentifier
>
subIds
)
{
if
(
!
subIds
)
{
fSubIds
=
{
fles
::
SubsystemIdentifier
::
STS
,
fles
::
SubsystemIdentifier
::
MUCH
,
fles
::
SubsystemIdentifier
::
RPC
,
fles
::
SubsystemIdentifier
::
T0
,
fles
::
SubsystemIdentifier
::
TRD
,
fles
::
SubsystemIdentifier
::
TRD2D
,
};
}
else
{
fSubIds
=
*
subIds
;
}
fSubIds
=
subIds
;
// --- Common parameters for all components for STS
uint32_t
numChansPerAsicSts
=
128
;
// R/O channels per ASIC for STS
...
...
This diff is collapsed.
Click to expand it.
algo/unpack/Unpack.h
+
8
−
1
View file @
db75d3f1
...
...
@@ -105,7 +105,14 @@ namespace cbm::algo
* @param subIds: vector of subsystem identifiers to unpack, default: all
* @see Init()
**/
bool
Init
(
std
::
optional
<
std
::
vector
<
fles
::
SubsystemIdentifier
>>
subIds
=
{});
bool
Init
(
std
::
vector
<
fles
::
SubsystemIdentifier
>
subIds
=
{
fles
::
SubsystemIdentifier
::
STS
,
fles
::
SubsystemIdentifier
::
MUCH
,
fles
::
SubsystemIdentifier
::
RPC
,
fles
::
SubsystemIdentifier
::
T0
,
fles
::
SubsystemIdentifier
::
TRD
,
fles
::
SubsystemIdentifier
::
TRD2D
,
});
bool
DetectorEnabled
(
fles
::
SubsystemIdentifier
subId
)
{
...
...
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