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
Merge requests
!959
New class for event filter and GTestEventFilter
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
New class for event filter and GTestEventFilter
s.roy/cbmroot:evfilterupdt
into
master
Overview
100
Commits
9
Pipelines
27
Changes
8
Merged
Shreya Roy
requested to merge
s.roy/cbmroot:evfilterupdt
into
master
3 years ago
Overview
8
Commits
9
Pipelines
27
Changes
8
0
0
Merge request reports
Compare
master
version 26
1928ee5b
2 years ago
version 25
7445e848
2 years ago
version 24
b796649b
2 years ago
version 23
3d76593c
2 years ago
version 22
9427ab4b
2 years ago
version 21
b9fe15fc
2 years ago
version 20
aa8b2327
2 years ago
version 19
5ab6e368
3 years ago
version 18
f55fbb95
3 years ago
version 17
ea34d541
3 years ago
version 16
86400945
3 years ago
version 15
86d8e132
3 years ago
version 14
b7c5bf47
3 years ago
version 13
bc61043e
3 years ago
version 12
74acaafe
3 years ago
version 11
fa496cfb
3 years ago
version 10
8af74db8
3 years ago
version 9
979154a9
3 years ago
version 8
db7a455e
3 years ago
version 7
5eb55ed2
3 years ago
version 6
53c98f33
3 years ago
version 5
b491593e
3 years ago
version 4
1d76216b
3 years ago
version 3
44bbcaa9
3 years ago
version 2
06a22e3d
3 years ago
version 1
7e1aca51
3 years ago
master (base)
and
latest version
latest version
5e127b0b
9 commits,
2 years ago
version 26
1928ee5b
9 commits,
2 years ago
version 25
7445e848
8 commits,
2 years ago
version 24
b796649b
8 commits,
2 years ago
version 23
3d76593c
8 commits,
2 years ago
version 22
9427ab4b
8 commits,
2 years ago
version 21
b9fe15fc
8 commits,
2 years ago
version 20
aa8b2327
8 commits,
2 years ago
version 19
5ab6e368
8 commits,
3 years ago
version 18
f55fbb95
7 commits,
3 years ago
version 17
ea34d541
6 commits,
3 years ago
version 16
86400945
5 commits,
3 years ago
version 15
86d8e132
5 commits,
3 years ago
version 14
b7c5bf47
5 commits,
3 years ago
version 13
bc61043e
5 commits,
3 years ago
version 12
74acaafe
5 commits,
3 years ago
version 11
fa496cfb
4 commits,
3 years ago
version 10
8af74db8
4 commits,
3 years ago
version 9
979154a9
4 commits,
3 years ago
version 8
db7a455e
4 commits,
3 years ago
version 7
5eb55ed2
4 commits,
3 years ago
version 6
53c98f33
4 commits,
3 years ago
version 5
b491593e
3 commits,
3 years ago
version 4
1d76216b
5 commits,
3 years ago
version 3
44bbcaa9
5 commits,
3 years ago
version 2
06a22e3d
4 commits,
3 years ago
version 1
7e1aca51
3 commits,
3 years ago
8 files
+
346
−
16
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
algo/detectors/tof/TofConfig.h
0 → 100644
+
50
−
0
View file @ 5e127b0b
Edit in single-file editor
Open in Web IDE
/* Copyright (C) 2022 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
SPDX-License-Identifier: GPL-3.0-only
Authors: Dominik Smith [committer] */
#ifndef CBM_ALGO_TOFCONFIG
#define CBM_ALGO_TOFCONFIG 1
#include
<cstdint>
namespace
cbm
::
algo
{
/** @class TofConfig
** @author Dominik Smith <d.smith@gsi.de>
** @since 2022
** @brief
**
**/
class
TofConfig
{
public:
static
uint32_t
GetTofTrackingStation
(
const
uint32_t
smType
,
const
uint32_t
sm
,
const
uint32_t
rpc
)
{
const
uint8_t
numSmTypes
=
10
;
const
uint8_t
numRpc
[
numSmTypes
]
=
{
5
,
3
,
5
,
1
,
1
,
1
,
2
,
2
,
1
,
2
};
const
uint8_t
numSm
[
numSmTypes
]
=
{
5
,
0
,
1
,
0
,
0
,
1
,
1
,
1
,
2
,
1
};
const
uint8_t
trkStation
[
numSmTypes
][
25
]
=
{
{
0
,
0
,
0
,
0
,
0
,
1
,
1
,
1
,
1
,
1
,
3
,
3
,
3
,
3
,
3
,
0
,
0
,
0
,
0
,
0
,
3
,
3
,
3
,
3
,
3
},
{
0
,
0
,
0
,
0
,
0
},
{
2
,
2
,
2
,
2
,
2
},
{
0
,
0
,
0
,
0
,
0
},
{
0
,
0
,
0
,
0
,
0
},
{
0
,
0
,
0
,
0
,
0
},
{
1
,
1
,
0
,
0
,
0
},
{
0
,
0
,
0
,
0
,
0
},
{
0
,
0
,
0
,
0
,
0
},
{
1
,
1
,
2
,
2
,
0
}};
if
(
smType
<
numSmTypes
)
{
if
(
sm
<
numSm
[
smType
]
&&
rpc
<
numRpc
[
smType
])
return
trkStation
[
smType
][
sm
*
numRpc
[
smType
]
+
rpc
];
else
return
0
;
}
else
return
0
;
}
};
}
// namespace cbm::algo
#endif
/* CBM_ALGO_TOFCONFIG */
Loading