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
2fb5d4be
Commit
2fb5d4be
authored
2 years ago
by
Alexandru Bercuci
Committed by
Florian Uhlig
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add GetSize accessor to account for signal count in TRD2D
parent
1cf2ff67
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1102
add geo alignment support for the TRD system
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/data/trd/CbmTrdCluster.cxx
+19
-0
19 additions, 0 deletions
core/data/trd/CbmTrdCluster.cxx
core/data/trd/CbmTrdCluster.h
+1
-0
1 addition, 0 deletions
core/data/trd/CbmTrdCluster.h
with
20 additions
and
0 deletions
core/data/trd/CbmTrdCluster.cxx
+
19
−
0
View file @
2fb5d4be
...
...
@@ -128,6 +128,25 @@ int32_t CbmTrdCluster::IsChannelInRange(int32_t ch) const
return
0
;
}
//____________________________________________________________________
uint16_t
CbmTrdCluster
::
GetSize
()
const
{
uint16_t
size
(
0
);
if
(
HasFaspDigis
())
{
size
=
GetNCols
()
<<
1
;
if
(
HasOpenStart
())
size
--
;
if
(
HasOpenStop
())
size
--
;
if
(
size
<=
0
)
{
LOG
(
warn
)
<<
GetName
()
<<
"::GetSize: Fasp cluster meta-info corrupt."
;
std
::
cout
<<
ToString
();
return
0
;
}
}
else
size
=
GetNCols
();
return
size
;
}
//____________________________________________________________________
bool
CbmTrdCluster
::
Merge
(
CbmTrdCluster
*
second
,
bool
typ
)
{
...
...
This diff is collapsed.
Click to expand it.
core/data/trd/CbmTrdCluster.h
+
1
−
0
View file @
2fb5d4be
...
...
@@ -69,6 +69,7 @@ public:
uint16_t
GetNRows
()
const
{
return
fNRows
&
0x1f
;
}
uint16_t
GetEndCh
()
const
{
return
fStartCh
+
fNCols
-
1
;
}
uint16_t
GetRow
()
const
{
return
GetNRows
();
}
uint16_t
GetSize
()
const
;
uint16_t
GetStartCh
()
const
{
return
fStartCh
;
}
uint32_t
GetStartTime
()
const
{
return
fStartTime
;
}
bool
HasFaspDigis
()
const
{
return
TESTBIT
(
fNRows
,
kFasp
);
}
...
...
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