CbmRoot
Loading...
Searching...
No Matches
TrackingSetup.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 "TrackingSetup.h"
11
12#include "Definitions.h"
13
15using fles::Subsystem;
16
17// ---------------------------------------------------------------------------------------------------------------------
18//
20{
21 if (fbUseSts) {
22 fSts.SetContext(this->GetContext());
23 fSts.Init();
24 }
25 if (fbUseTrd) {
26 fTrd.SetContext(this->GetContext());
27 fTrd.Init();
28 }
29 if (fbUseTof) {
30 fTof.SetContext(this->GetContext()); // can be nullptr
31 fTof.Init();
32 }
33}
A detector setup interface used for tracking input data initialization (source)
const ChainContext * GetContext()
Definition SubChain.h:16
void SetContext(const ChainContext *ctx)
Definition SubChain.h:18
A detector setup interface class for tracking input data initialization.
sts::TrackingInterface fSts
STS tracking interface.
void Init()
Initializer function.
trd::TrackingInterface fTrd
TRD tracking interface.
tof::TrackingInterface fTof
TOF tracking interface.