Skip to content
Snippets Groups Projects

Move STS Gpu Hitfinder into algo namespace.

Merged Felix Weiglhofer requested to merge fweig/cbmroot:online-gpu-hitfinder into master
2 files
+ 30
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -188,6 +188,30 @@ Double_t CbmStsPhysics::LandauWidth(Double_t mostProbableCharge)
}
// -------------------------------------------------------------------------
std::pair<std::vector<double>, double> CbmStsPhysics::GetLandauWidthTable() const
{
std::vector<double> landauTableFlat;
auto landauEntry = fLandauWidth.begin();
landauTableFlat.push_back(landauEntry->second);
auto prevLandauEntry = landauEntry;
landauEntry++;
double stepSize = landauEntry->first - prevLandauEntry->first;
for (; landauEntry != fLandauWidth.end(); landauEntry++) {
LOG_IF(fatal, stepSize != landauEntry->first - prevLandauEntry->first)
<< "StsLandau table doesn't have fixed step size.";
landauTableFlat.push_back(landauEntry->second);
prevLandauEntry = landauEntry;
}
return std::make_pair(std::move(landauTableFlat), stepSize);
}
// ----- Particle charge for PDG PID ----------------------------------
Double_t CbmStsPhysics::ParticleCharge(Int_t pid)
Loading