Commit 683b0761 authored by Felix Weiglhofer's avatar Felix Weiglhofer Committed by Felix Weiglhofer
Browse files

STS Hitfinder: Fix division by zero.

parent 7c1b2f19
......@@ -116,7 +116,7 @@ Long64_t CbmStsAlgoFindHits::Exec(const vector<CbmStsCluster>& clustersF,
fHits->clear();
fTanStereoF = TMath::Tan(fStereoF * TMath::DegToRad());
fTanStereoB = TMath::Tan(fStereoB * TMath::DegToRad());
fErrorFac = 1. / (fTanStereoB - fTanStereoF) / (fTanStereoB - fTanStereoB);
fErrorFac = 1. / (fTanStereoB - fTanStereoF) / (fTanStereoB - fTanStereoF);
fDx = Double_t(fNofStrips) * fPitch;
// Determine the maximum cluster time errors
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment