Newer
Older
Sergei Zharko
committed
/* Copyright (C) 2024 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
SPDX-License-Identifier: GPL-3.0-only
Authors: Sergei Zharko [committer] */
Sergei Zharko
committed
/// \file TrackingSetup.h
Sergei Zharko
committed
/// \date 19.04.2024
/// \brief A detector setup interface used for tracking input data initialization (source)
/// \author Sergei Zharko <s.zharko@gsi.de>
Sergei Zharko
committed
#include "TrackingSetup.h"
Sergei Zharko
committed
Sergei Zharko
committed
#include "Definitions.h"
using cbm::algo::TrackingSetup;
using fles::Subsystem;
Sergei Zharko
committed
// ---------------------------------------------------------------------------------------------------------------------
//
Sergei Zharko
committed
void TrackingSetup::Init()
Sergei Zharko
committed
{
if (fbUseSts) {
fSts.SetContext(this->GetContext());
fSts.Init();
}
if (fbUseTrd) {
fTrd.SetContext(this->GetContext());
fTrd.Init();
}
if (fbUseTof) {
fTof.SetContext(this->GetContext()); // can be nullptr
Sergei Zharko
committed
fTof.Init();
}