CbmRoot
Loading...
Searching...
No Matches
sts/TrackingInterface.cxx
Go to the documentation of this file.
1
/* Copyright (C) 2024 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2
SPDX-License-Identifier: GPL-3.0-only
3
Authors: Sergei Zharko [committer] */
4
9
10
#include "
TrackingInterface.h
"
11
12
#include "
AlgoFairloggerCompat.h
"
13
#include "
CbmStsAddress.h
"
14
15
using
cbm::algo::sts::TrackingInterface
;
16
17
// ---------------------------------------------------------------------------------------------------------------------
18
//
19
void
TrackingInterface::Init
() {
L_
(info) <<
"STS: TrackingInterface initialization"
; }
20
21
// ---------------------------------------------------------------------------------------------------------------------
22
//
23
int
TrackingInterface::GetTrackingStation
(uint32_t address)
const
24
{
25
// NOTE: SZh 30.04.2024:
26
// This returns the valid STS station index at least for mCBM at beamtimes 2022 and 2024. There is no
27
// guarantie, that it will work for other setups, should be cross-checked.
28
return
CbmStsAddress::GetElementId
(address,
kStsUnit
);
29
}
AlgoFairloggerCompat.h
L_
#define L_(level)
Definition
AlgoFairloggerCompat.h:18
CbmStsAddress.h
kStsUnit
@ kStsUnit
Definition
CbmStsAddress.h:26
cbm::algo::sts::TrackingInterface
Definition
sts/TrackingInterface.h:16
cbm::algo::sts::TrackingInterface::Init
void Init()
Initializer function.
Definition
sts/TrackingInterface.cxx:19
cbm::algo::sts::TrackingInterface::GetTrackingStation
int GetTrackingStation(uint32_t address) const
Returns tracking station index by the TOF address.
Definition
sts/TrackingInterface.cxx:23
CbmStsAddress::GetElementId
uint32_t GetElementId(int32_t address, int32_t level)
Get the index of an element.
Definition
CbmStsAddress.cxx:105
TrackingInterface.h
A STS-parameter and geometry interface used for tracking input data initialization (header)
algo
detectors
sts
TrackingInterface.cxx
Generated on Sun Dec 22 2024 23:04:04 for CbmRoot by
1.12.0