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
291ed3f8
Commit
291ed3f8
authored
2 years ago
by
Sergey Gorbunov
Committed by
Volker Friese
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add CbmLink interfaces to CbmMCEventInfo and CbmMCEventList
parent
002f1ec1
No related branches found
No related tags found
1 merge request
!1066
KF: fixes in KFParticleFinder according to the new TOF geometry
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
core/data/CbmMCEventInfo.h
+7
-1
7 additions, 1 deletion
core/data/CbmMCEventInfo.h
core/data/CbmMCEventList.cxx
+9
-0
9 additions, 0 deletions
core/data/CbmMCEventList.cxx
core/data/CbmMCEventList.h
+4
-0
4 additions, 0 deletions
core/data/CbmMCEventList.h
with
20 additions
and
1 deletion
core/data/CbmMCEventInfo.h
+
7
−
1
View file @
291ed3f8
...
...
@@ -10,7 +10,9 @@
#ifndef CBMMCEVENTINFO_H
#define CBMMCEVENTINFO_H 1
#include
<Rtypes.h>
// for THashConsistencyHolder, ClassDef
#include
"CbmLink.h"
#include
<Rtypes.h>
// for THashConsistencyHolder, ClassDef
#include
<cstdint>
#include
<string>
// for string
...
...
@@ -60,6 +62,10 @@ public:
**/
double
GetTime
()
const
{
return
fTime
;
}
/** @brief Event file and event indices as CbmLink
** @value Event time [ns]
**/
CbmLink
GetCbmLink
()
const
{
return
CbmLink
(
0.
,
-
1
,
fEventId
,
fFileId
);
}
/** Status to string **/
std
::
string
ToString
()
const
;
...
...
This diff is collapsed.
Click to expand it.
core/data/CbmMCEventList.cxx
+
9
−
0
View file @
291ed3f8
...
...
@@ -128,6 +128,15 @@ int32_t CbmMCEventList::GetFileIdByIndex(uint32_t index)
}
// ----------------------------------------------------------------------------
// ----- Get file number for event at index in list -----------------------
CbmLink
CbmMCEventList
::
GetEventLinkByIndex
(
uint32_t
index
)
{
if
(
!
fIsSorted
)
Sort
();
if
(
index
>=
GetNofEvents
())
return
CbmLink
();
return
fEvents
[
index
].
GetCbmLink
();
}
// ----------------------------------------------------------------------------
// ----- Insert an event --------------------------------------------------
bool
CbmMCEventList
::
Insert
(
uint32_t
event
,
uint32_t
file
,
double
time
)
...
...
This diff is collapsed.
Click to expand it.
core/data/CbmMCEventList.h
+
4
−
0
View file @
291ed3f8
...
...
@@ -106,6 +106,10 @@ public:
Int_t
GetEventIndex
(
const
CbmLink
&
link
)
{
return
GetEventIndex
(
link
.
GetEntry
(),
link
.
GetFile
());
}
/** @brief Event file and event indices as CbmLink
**/
CbmLink
GetEventLinkByIndex
(
uint32_t
index
);
/** @brief Number of events in the list
** @value Number of events
**/
...
...
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