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
172082af
Commit
172082af
authored
1 month ago
by
Sergei Zharko
Browse files
Options
Downloads
Patches
Plain Diff
online: Adding BMON hit-finder to event reconstruction
parent
933f7d54
No related branches found
No related tags found
1 merge request
!2000
Lambda-selector in cbmreco (first iteration)
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
algo/global/Reco.cxx
+26
-15
26 additions, 15 deletions
algo/global/Reco.cxx
algo/global/RecoResults.h
+2
-0
2 additions, 0 deletions
algo/global/RecoResults.h
algo/kfp/KfpV0FinderChain.h
+1
-0
1 addition, 0 deletions
algo/kfp/KfpV0FinderChain.h
with
29 additions
and
15 deletions
algo/global/Reco.cxx
+
26
−
15
View file @
172082af
...
...
@@ -212,21 +212,6 @@ void Reco::Init(const Options& opts)
fStsHitFinder
->
SetParameters
(
hitFinderPars
);
}
// BMON Hitfinder
if
(
Opts
().
Has
(
fles
::
Subsystem
::
BMON
)
&&
Opts
().
Has
(
Step
::
LocalReco
))
{
auto
calibSetup
=
yaml
::
ReadFromFile
<
bmon
::
CalibrateSetup
>
(
opts
.
ParamsDir
()
/
parFiles
.
bmon
.
calibrate
);
fBmonCalibrator
=
std
::
make_unique
<
bmon
::
Calibrate
>
(
calibSetup
);
auto
hitfindSetup
=
yaml
::
ReadFromFile
<
bmon
::
HitfindSetup
>
(
opts
.
ParamsDir
()
/
parFiles
.
bmon
.
hitfinder
);
fBmonHitFinder
=
std
::
make_unique
<
bmon
::
Hitfind
>
(
hitfindSetup
);
if
(
fQaManager
!=
nullptr
&&
Opts
().
Has
(
QaStep
::
RecoBmon
))
{
fBmonHitFinderQa
=
std
::
make_unique
<
bmon
::
HitfindQa
>
(
fQaManager
,
"BmonHitfindEvent"
);
fBmonHitFinderQa
->
InitParameters
(
calibSetup
,
hitfindSetup
);
fBmonHitFinderQa
->
Init
();
}
}
// TOF Hitfinder
if
(
Opts
().
Has
(
fles
::
Subsystem
::
TOF
)
&&
Opts
().
Has
(
Step
::
LocalReco
))
{
auto
calibSetup
=
yaml
::
ReadFromFile
<
tof
::
CalibrateSetup
>
(
opts
.
ParamsDir
()
/
parFiles
.
tof
.
calibrate
);
...
...
@@ -249,6 +234,7 @@ void Reco::Init(const Options& opts)
fbReconstructDigiEvents
&=
Opts
().
Has
(
fles
::
Subsystem
::
STS
);
fbReconstructDigiEvents
&=
Opts
().
Has
(
fles
::
Subsystem
::
TRD
);
fbReconstructDigiEvents
&=
Opts
().
Has
(
fles
::
Subsystem
::
TOF
);
fbReconstructDigiEvents
&=
Opts
().
Has
(
fles
::
Subsystem
::
BMON
);
}
// Tracking
...
...
@@ -267,6 +253,18 @@ void Reco::Init(const Options& opts)
if
(
fbReconstructDigiEvents
)
{
fEvSelectingMonitor
.
Reset
();
// BMON hit finding in event reconstruction
auto
bmonCalSetup
=
yaml
::
ReadFromFile
<
bmon
::
CalibrateSetup
>
(
opts
.
ParamsDir
()
/
parFiles
.
bmon
.
calibrate
);
auto
bmonHitSetup
=
yaml
::
ReadFromFile
<
bmon
::
HitfindSetup
>
(
opts
.
ParamsDir
()
/
parFiles
.
bmon
.
hitfinder
);
fBmonCalibrator
=
std
::
make_unique
<
bmon
::
Calibrate
>
(
bmonCalSetup
);
fBmonHitFinder
=
std
::
make_unique
<
bmon
::
Hitfind
>
(
bmonHitSetup
);
if
(
fQaManager
!=
nullptr
&&
Opts
().
Has
(
QaStep
::
RecoBmon
))
{
fBmonHitFinderQa
=
std
::
make_unique
<
bmon
::
HitfindQa
>
(
fQaManager
,
"BmonHitfindEvent"
);
fBmonHitFinderQa
->
InitParameters
(
bmonCalSetup
,
bmonHitSetup
);
fBmonHitFinderQa
->
Init
();
}
// Tracking in event reconstruction
if
(
fQaManager
!=
nullptr
&&
Opts
().
Has
(
QaStep
::
Tracking
))
{
fTracking
=
std
::
make_unique
<
TrackingChain
>
(
ECbmRecoMode
::
EventByEvent
,
fQaManager
,
"CaEvent"
);
}
...
...
@@ -524,6 +522,19 @@ void Reco::PrintTimings(xpu::timings& timings)
bool
Reco
::
ReconstructEvent
(
const
DigiEvent
&
digiEvent
)
{
RecoResults
recoEvent
;
//* BMON hit reconstruction
{
auto
[
calDigis
,
calMonitor
]
=
(
*
fBmonCalibrator
)(
recoEvent
.
fBmon
);
auto
[
hits
,
hitMonitor
,
digiIndices
]
=
(
*
fBmonHitFinder
)(
calDigis
);
if
(
fBmonHitFinderQa
!=
nullptr
)
{
fBmonHitFinderQa
->
RegisterDigis
(
&
calDigis
);
fBmonHitFinderQa
->
RegisterHits
(
&
hits
);
fBmonHitFinderQa
->
RegisterDigiIndices
(
&
digiIndices
);
fBmonHitFinderQa
->
Exec
();
}
recoEvent
.
bmonHits
=
std
::
move
(
hits
);
}
//* STS hit reconstruction
{
fEvSelectingMonitor
.
StartTimer
(
evselect
::
ETimer
::
StsHitFinder
);
...
...
This diff is collapsed.
Click to expand it.
algo/global/RecoResults.h
+
2
−
0
View file @
172082af
...
...
@@ -12,6 +12,7 @@
#include
"DigiData.h"
#include
"PartitionedSpan.h"
#include
"PartitionedVector.h"
#include
"bmon/Hit.h"
#include
"ca/core/data/CaTrack.h"
#include
"ca/core/utils/CaVector.h"
#include
"sts/Cluster.h"
...
...
@@ -41,6 +42,7 @@ namespace cbm::algo
PartitionedSpan
<
sts
::
Hit
>
stsHits
;
PartitionedVector
<
tof
::
Hit
>
tofHits
;
PartitionedVector
<
trd
::
Hit
>
trdHits
;
PartitionedVector
<
bmon
::
Hit
>
bmonHits
;
ca
::
Vector
<
ca
::
Track
>
tracks
;
ca
::
Vector
<
std
::
vector
<
std
::
pair
<
uint32_t
,
uint32_t
>>>
trackStsHitIndices
;
...
...
This diff is collapsed.
Click to expand it.
algo/kfp/KfpV0FinderChain.h
+
1
−
0
View file @
172082af
...
...
@@ -59,5 +59,6 @@ namespace cbm::algo
private
:
kfp
::
V0Finder
fFinder
;
///< Instance of the V0-finding algorithm
kfp
::
V0FinderMonitor
fMonitorRun
;
///< Monitor per run
uint32_t
fBmonAddress
;
///< Address of selected BMON
};
}
// namespace cbm::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