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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Commits
c31d8dbd
Commit
c31d8dbd
authored
Nov 17, 2023
by
Felix Weiglhofer
Browse files
Options
Downloads
Patches
Plain Diff
sts::Hitfinder: Fix Hit copying.
parent
5c7893f5
No related branches found
No related tags found
1 merge request
!1510
sts::Hitfinder: Fix Hit copying.
Pipeline
#25745
passed
Nov 17, 2023
Stage: build
Stage: package
Stage: verify
Changes
3
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
algo/detectors/sts/Hitfinder.cxx
+2
-2
2 additions, 2 deletions
algo/detectors/sts/Hitfinder.cxx
algo/detectors/sts/HitfinderChain.cxx
+2
-1
2 additions, 1 deletion
algo/detectors/sts/HitfinderChain.cxx
services/archive_explorer/lib/Server.cxx
+1
-1
1 addition, 1 deletion
services/archive_explorer/lib/Server.cxx
with
5 additions
and
4 deletions
algo/detectors/sts/Hitfinder.cxx
+
2
−
2
View file @
c31d8dbd
...
...
@@ -788,7 +788,7 @@ XPU_D void sts::Hitfinder::CreateHit(int iModule, float xLocal, float yLocal, fl
.
fX
=
globalX
,
.
fY
=
globalY
,
.
fZ
=
globalZ
,
.
fTime
=
static_cast
<
u
int32_t
>
(
hitTime
),
.
fTime
=
static_cast
<
u
32
>
(
hitTime
),
.
fDx
=
errX
,
.
fDy
=
errY
,
.
fDz
=
errZ
,
...
...
@@ -808,7 +808,7 @@ XPU_D void sts::Hitfinder::CreateHit(int iModule, float xLocal, float yLocal, fl
return
;
}
hitsPerModule
[
iModule
*
maxHits
PerModule
+
idx
]
=
hit
;
hitsPerModule
[
iModule
*
hitsAllocated
PerModule
+
idx
]
=
hit
;
}
XPU_D
float
sts
::
Hitfinder
::
LandauWidth
(
float
charge
)
const
...
...
...
...
This diff is collapsed.
Click to expand it.
algo/detectors/sts/HitfinderChain.cxx
+
2
−
1
View file @
c31d8dbd
...
...
@@ -303,7 +303,7 @@ void sts::HitfinderChain::AllocateStatic()
gpuPars
.
lorentzF
=
module
.
lorentzF
;
gpuPars
.
lorentzB
=
module
.
lorentzB
;
}
xpu
::
copy
(
fHitfinder
.
sensorPars
,
xpu
::
h2d
);
q
.
copy
(
fHitfinder
.
sensorPars
,
xpu
::
h2d
);
// Time errors
fHitfinder
.
maxClusterTimeErrorByModuleSide
.
reset
(
nModuleSides
,
xpu
::
buf_device
);
...
...
@@ -565,6 +565,7 @@ PartitionedSpan<sts::Hit> sts::HitfinderChain::FlattenHits(xpu::queue queue)
// Could do this more efficiently, cache addresses once in the beginning, ...
// doesn't really matter overhead wise
fHitOffsets
.
clear
();
// nModules + 1 entries, first entry is always 0, last entry is total number of hits (required by PartitionedSpan)
fHitOffsets
.
push_back
(
0
);
for
(
int
m
=
0
;
m
<
hfc
.
nModules
;
m
++
)
fHitOffsets
.
push_back
(
fHitOffsets
.
back
()
+
GetNHits
(
nHits
,
m
));
...
...
...
...
This diff is collapsed.
Click to expand it.
services/archive_explorer/lib/Server.cxx
+
1
−
1
View file @
c31d8dbd
...
...
@@ -121,7 +121,7 @@ void Server::CreateHistos()
CreateFolder
(
"/sts/hits"
,
"Hits"
);
CreateHisto
(
fHStsHitsX
,
"/sts/hits"
,
"hStsHitsX"
,
"Sts Hits X"
,
100
,
-
10
,
10
);
CreateHisto
(
fHStsHitsY
,
"/sts/hits"
,
"hStsHitsY"
,
"Sts Hits Y"
,
100
,
-
10
,
10
);
CreateHisto
(
fHStsHitsZ
,
"/sts/hits"
,
"hStsHitsZ"
,
"Sts Hits Z"
,
100
,
-
1
0
,
1
0
);
CreateHisto
(
fHStsHitsZ
,
"/sts/hits"
,
"hStsHitsZ"
,
"Sts Hits Z"
,
100
,
0
,
5
0
);
CreateHisto
(
fHStsHitsTime
,
"/sts/hits"
,
"hStsHitsTime"
,
"Sts Hits Time"
,
1000
,
0
,
128000000
);
CreateHisto
(
fHStsHitsDx
,
"/sts/hits"
,
"hStsHitsDx"
,
"Sts Hits Dx"
,
100
,
0
,
0.1
);
CreateHisto
(
fHStsHitsDy
,
"/sts/hits"
,
"hStsHitsDy"
,
"Sts Hits Dy"
,
100
,
0
,
0.1
);
...
...
...
...
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
sign in
to comment