Skip to content
Snippets Groups Projects
Commit 7147c3e6 authored by Sergei Zharko's avatar Sergei Zharko Committed by Sergey Gorbunov
Browse files

CA: flag to enable/disable time measurements in tracking

parent 97569d6d
No related branches found
No related tags found
1 merge request!1407CA: flag to enable/disable time measurements in tracking
Pipeline #24855 passed
......@@ -495,6 +495,8 @@ InitStatus CbmL1::Init()
std::vector<ca::StationInitializer> vStations;
vStations.reserve(100);
bool bDisableTime =
(ca::Framework::TrackingMode::kMcbm == fTrackingMode) ? true : false; /// TMP, move to parameters!
// *** MVD stations info ***
if (fUseMVD) {
......@@ -502,7 +504,7 @@ InitStatus CbmL1::Init()
auto stationInfo = ca::StationInitializer(ca::EDetectorID::kMvd, iSt);
// TODO: SZh 15.08.2022: Replace station type with ca::EDetectorID
stationInfo.SetStationType(1); // MVD
stationInfo.SetTimeInfo(mvdInterface->IsTimeInfoProvided(iSt));
stationInfo.SetTimeInfo(!bDisableTime && mvdInterface->IsTimeInfoProvided(iSt));
stationInfo.SetFieldStatus(fTrackingMode == ca::Framework::TrackingMode::kMcbm ? 0 : 1);
stationInfo.SetZref(mvdInterface->GetZref(iSt));
stationInfo.SetZmin(mvdInterface->GetZmin(iSt));
......@@ -526,8 +528,7 @@ InitStatus CbmL1::Init()
// TODO: SZh 15.08.2022: Replace station type with ca::EDetectorID
stationInfo.SetStationType(0); // STS
stationInfo.SetTimeInfo(stsInterface->IsTimeInfoProvided(iSt));
stationInfo.SetTimeInfo(
ca::Framework::TrackingMode::kMcbm != fTrackingMode ? stsInterface->IsTimeInfoProvided(iSt) : false);
stationInfo.SetTimeInfo(!bDisableTime && stsInterface->IsTimeInfoProvided(iSt));
stationInfo.SetFieldStatus(ca::Framework::TrackingMode::kMcbm == fTrackingMode ? 0 : 1);
stationInfo.SetZref(stsInterface->GetZref(iSt));
stationInfo.SetZmin(stsInterface->GetZmin(iSt));
......@@ -551,9 +552,7 @@ InitStatus CbmL1::Init()
auto stationInfo = ca::StationInitializer(ca::EDetectorID::kMuch, iSt);
// TODO: SZh 15.08.2022: Replace station type with ca::EDetectorID
stationInfo.SetStationType(2); // MuCh
stationInfo.SetTimeInfo(muchInterface->IsTimeInfoProvided(iSt));
stationInfo.SetTimeInfo(
ca::Framework::TrackingMode::kMcbm != fTrackingMode ? stsInterface->IsTimeInfoProvided(iSt) : false);
stationInfo.SetTimeInfo(!bDisableTime && muchInterface->IsTimeInfoProvided(iSt));
stationInfo.SetFieldStatus(0);
stationInfo.SetZref(muchInterface->GetZref(iSt));
stationInfo.SetZmin(muchInterface->GetZmin(iSt));
......@@ -577,9 +576,7 @@ InitStatus CbmL1::Init()
auto stationInfo = ca::StationInitializer(ca::EDetectorID::kTrd, iSt);
// TODO: SZh 15.08.2022: Replace station type with ca::EDetectorID
stationInfo.SetStationType((iSt == 1 || iSt == 3) ? 6 : 3); // MuCh
stationInfo.SetTimeInfo(trdInterface->IsTimeInfoProvided(iSt));
stationInfo.SetTimeInfo(
ca::Framework::TrackingMode::kMcbm != fTrackingMode ? stsInterface->IsTimeInfoProvided(iSt) : false);
stationInfo.SetTimeInfo(!bDisableTime && trdInterface->IsTimeInfoProvided(iSt));
stationInfo.SetFieldStatus(0);
stationInfo.SetZref(trdInterface->GetZref(iSt));
stationInfo.SetZmin(trdInterface->GetZmin(iSt));
......@@ -604,9 +601,7 @@ InitStatus CbmL1::Init()
auto stationInfo = ca::StationInitializer(ca::EDetectorID::kTof, iSt);
// TODO: SZh 15.08.2022: Replace station type with ca::EDetectorID
stationInfo.SetStationType(4);
stationInfo.SetTimeInfo(tofInterface->IsTimeInfoProvided(iSt));
stationInfo.SetTimeInfo(
ca::Framework::TrackingMode::kMcbm != fTrackingMode ? stsInterface->IsTimeInfoProvided(iSt) : false);
stationInfo.SetTimeInfo(!bDisableTime && tofInterface->IsTimeInfoProvided(iSt));
stationInfo.SetFieldStatus(0);
stationInfo.SetZref(tofInterface->GetZref(iSt));
stationInfo.SetZmin(tofInterface->GetZmin(iSt));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment