Skip to content
Snippets Groups Projects
Commit 683b0761 authored by Felix Weiglhofer's avatar Felix Weiglhofer Committed by Felix Weiglhofer
Browse files

STS Hitfinder: Fix division by zero.

parent 7c1b2f19
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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