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
47796269
Commit
47796269
authored
1 year ago
by
Felix Weiglhofer
Committed by
Pierre-Alain Loizeau
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
cbmreco: Add child-id flag.
parent
5e700d5d
No related branches found
No related tags found
1 merge request
!1257
Rebase branch DC_July23
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
algo/base/Options.cxx
+1
-0
1 addition, 0 deletions
algo/base/Options.cxx
algo/base/Options.h
+2
-0
2 additions, 0 deletions
algo/base/Options.h
algo/global/Reco.cxx
+2
-2
2 additions, 2 deletions
algo/global/Reco.cxx
with
5 additions
and
2 deletions
algo/base/Options.cxx
+
1
−
0
View file @
47796269
...
...
@@ -79,6 +79,7 @@ Options::Options(int argc, char** argv)
"comma seperated list of reconstruction steps (upack, digitrigger, localreco, ...)"
)
(
"systems,s"
,
po
::
value
(
&
fDetectors
)
->
multitoken
()
->
default_value
({
Subsystem
::
STS
,
Subsystem
::
TOF
,
Subsystem
::
BMON
,
Subsystem
::
MUCH
,
Subsystem
::
RICH
})
->
value_name
(
"<detectors>"
),
"comma seperated list of detectors to process (sts, mvd, ...)"
)
(
"child-id,c"
,
po
::
value
(
&
fChildId
)
->
default_value
(
"00"
)
->
value_name
(
"<id>"
),
"online process id on node"
)
(
"num-ts,n"
,
po
::
value
(
&
fNumTimeslices
)
->
default_value
(
-
1
)
->
value_name
(
"<num>"
),
"Stop after <num> timeslices (-1 = all)"
)
(
"skip-ts"
,
po
::
value
(
&
fSkipTimeslices
)
->
default_value
(
0
)
->
value_name
(
"<num>"
),
...
...
This diff is collapsed.
Click to expand it.
algo/base/Options.h
+
2
−
0
View file @
47796269
...
...
@@ -35,6 +35,7 @@ namespace cbm::algo
bool
CollectKernelTimes
()
const
{
return
fCollectKernelTimes
;
}
int
NumTimeslices
()
const
{
return
fNumTimeslices
;
}
int
SkipTimeslices
()
const
{
return
fSkipTimeslices
;
}
const
std
::
string
&
ChildId
()
const
{
return
fChildId
;
}
const
std
::
vector
<
Step
>&
Steps
()
const
{
return
fRecoSteps
;
}
bool
HasStep
(
Step
step
)
const
{
return
std
::
find
(
fRecoSteps
.
begin
(),
fRecoSteps
.
end
(),
step
)
!=
fRecoSteps
.
end
();
}
...
...
@@ -66,6 +67,7 @@ namespace cbm::algo
std
::
vector
<
Step
>
fRecoSteps
;
std
::
vector
<
RecoData
>
fOutputTypes
;
std
::
vector
<
fles
::
Subsystem
>
fDetectors
;
std
::
string
fChildId
=
"00"
;
private
:
// serialization
friend
class
boost
::
serialization
::
access
;
...
...
This diff is collapsed.
Click to expand it.
algo/global/Reco.cxx
+
2
−
2
View file @
47796269
...
...
@@ -185,7 +185,7 @@ void Reco::QueueUnpackerMetrics(const fles::Timeslice& ts, const UnpackMonitorDa
double
totalExpansionFactor
=
static_cast
<
double
>
(
nDigisTotal
)
/
monitor
.
fNumBytes
;
GetMonitor
().
QueueMetric
(
"cbmreco"
,
{{
"hostname"
,
fles
::
system
::
current_hostname
()}},
GetMonitor
().
QueueMetric
(
"cbmreco"
,
{{
"hostname"
,
fles
::
system
::
current_hostname
()}
,
{
"child"
,
Opts
().
ChildId
()}
},
{
{
"unpackTimeTotal"
,
monitor
.
fTimeUnpack
},
{
"unpackBytesInSts"
,
monitor
.
fNumBytesInSts
},
...
...
@@ -220,7 +220,7 @@ void Reco::QueueStsRecoMetrics(const sts::HitfinderMonitor& monitor)
{
if
(
!
HasMonitor
())
return
;
GetMonitor
().
QueueMetric
(
"cbmreco"
,
{{
"hostname"
,
fles
::
system
::
current_hostname
()}},
GetMonitor
().
QueueMetric
(
"cbmreco"
,
{{
"hostname"
,
fles
::
system
::
current_hostname
()}
,
{
"child"
,
Opts
().
ChildId
()}
},
{
{
"stsRecoTimeTotal"
,
monitor
.
fTimeTotal
},
{
"stsRecoNumClusters"
,
monitor
.
fNumClusterTotal
},
...
...
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