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
3d61a7c2
Commit
3d61a7c2
authored
1 year ago
by
Dominik Smith
Committed by
Dominik Smith
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Small improvements to cbm::algo::tof::Clusterizer and cbm::algo::tof::Calibrate.
parent
e650950c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1462
Various small optimizations to online TOF code.
Pipeline
#25313
passed
1 year ago
Stage: package
Stage: verify
Stage: documentation
Stage: deploy
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
algo/detectors/tof/Calibrate.cxx
+2
-2
2 additions, 2 deletions
algo/detectors/tof/Calibrate.cxx
algo/detectors/tof/Clusterizer.cxx
+2
-1
2 additions, 1 deletion
algo/detectors/tof/Clusterizer.cxx
with
4 additions
and
3 deletions
algo/detectors/tof/Calibrate.cxx
+
2
−
2
View file @
3d61a7c2
...
...
@@ -63,7 +63,7 @@ namespace cbm::algo::tof
mChannelDeadTime
[
iAddr
]
=
pDigi
.
GetTime
()
+
rpcPar
.
channelDeadtime
;
// Create calibrated digi
CbmTofDigi
pCalDigi
(
pDigi
);
CbmTofDigi
&
pCalDigi
=
calDigiOut
.
emplace_back
(
pDigi
);
// calibrate Digi Time
pCalDigi
.
SetTime
(
pCalDigi
.
GetTime
()
-
chanPar
.
vCPTOff
[
Side
]);
...
...
@@ -93,7 +93,6 @@ namespace cbm::algo::tof
if
(
0
<
iWx
)
{
dWT
-=
dDTot
*
(
walk
[
iWx
-
1
]
-
walk
[
iWx
]);
}
}
pCalDigi
.
SetTime
(
pCalDigi
.
GetTime
()
-
dWT
);
// calibrate Digi Time
calDigiOut
.
push_back
(
pCalDigi
);
}
/// Sort the buffers of hits due to the time offsets applied
...
...
@@ -101,6 +100,7 @@ namespace cbm::algo::tof
[](
const
CbmTofDigi
&
a
,
const
CbmTofDigi
&
b
)
->
bool
{
return
a
.
GetTime
()
<
b
.
GetTime
();
});
monitor
.
fTime
=
xpu
::
pop_timer
();
//L_(info) << MakeReport("CalibrateTime", monitor.fTime);
return
result
;
}
...
...
This diff is collapsed.
Click to expand it.
algo/detectors/tof/Clusterizer.cxx
+
2
−
1
View file @
3d61a7c2
...
...
@@ -144,7 +144,7 @@ namespace cbm::algo::tof
lastChan
=
chan
;
lastPosY
=
pos
.
Y
();
lastTime
=
time
;
if
(
AddNextChan
(
input
,
lastChan
,
cluster
,
clustersOut
,
&
lastChanPos
)
)
{
cluster
.
reset
();
}
AddNextChan
(
input
,
lastChan
,
cluster
,
clustersOut
,
&
lastChanPos
)
;
}
// while( 1 < storDigi.size() )
storDigi
.
clear
();
//D.Smith 11.8.23: In rare cases, a single digi remains and is deleted here.
}
// for( int32_t chan = 0; chan < iNbCh; chan++ )
...
...
@@ -249,6 +249,7 @@ namespace cbm::algo::tof
cluster
.
normalize
(
fParams
.
fTimeRes
);
cluster
.
finalize
(
detcell
,
fParams
);
clustersOut
.
push_back
(
cluster
);
cluster
.
reset
();
return
true
;
}
...
...
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