Skip to content
Snippets Groups Projects

CA: remove a quick fix for the mcbm_beam_2021_07_surveyed setup

Merged Sergey Gorbunov requested to merge se.gorbunov/cbmroot:mcbmSurveyed into master

Files

@@ -60,19 +60,8 @@ InitStatus CbmTofTrackingInterface::Init()
int station = fDigiBdfPar->GetTrackingStation(iSmType, iSm, iRpc);
auto* channelInfo = dynamic_cast<CbmTofCell*>(fDigiPar->GetCell(iAddr));
if (nullptr == channelInfo) { break; }
float z = channelInfo->GetZ();
float x = channelInfo->GetX();
//float y = channelInfo->GetY();
if (station < 0) { continue; }
// NOTE: the hack for fixing stations hits in "mcbm_beam_2021_07_surveyed"
if (fIfMissingHits) {
if ((x > 20.) && (z > 270.) && (station == 1)) { station = 2; }
if (z > 400) { continue; }
}
fTofStationZ[station] += z;
fTofStationZ[station] += channelInfo->GetZ();
nTofStationModules[station] += 1;
}
}
@@ -117,13 +106,3 @@ void CbmTofTrackingInterface::SetParContainers()
}
runtimeDb->initContainers(FairRunAna::Instance()->GetRunId());
}
//-------------------------------------------------------------------------------------------------------------------------------------
//
void CbmTofTrackingInterface::FixHitsStationsMismatch()
{
LOG(warn) << "CbmTofTrackingInterface::FixHitsStationsMismatch was invoked (please, be sure that you are running "
<< "the mcbm_beam_2021_07_surveyed setup at the moment)";
fIfMissingHits = true;
this->ReInit();
}
Loading