Skip to content
Snippets Groups Projects
Commit 9c3bdbfd authored by Sergey Gorbunov's avatar Sergey Gorbunov
Browse files

mvd: bugfix in the coordinate transformation

parent a277c317
No related branches found
Tags dev_2023_53
1 merge request!1578mvd: bugfix in the coordinate transformation
Pipeline #26487 failed
......@@ -556,10 +556,8 @@ void CbmMvdSensorFindHitTask::CreateHit(vector<Int_t>* clusterArray, TVector3& p
Int_t indexX, indexY;
//Double_t x,y;
Double_t local[2];
local[0] = pos.X();
local[1] = pos.Y();
Double_t local[3] = {pos.X(), pos.Y(), pos.Z()};
//LOG(debug) << "found center of gravity at: " << local[0] << " , " << local[1];
fSensor->TopToPixel(local, indexX, indexY);
......
......@@ -257,10 +257,8 @@ void CbmMvdSensorHitfinderTask::CreateHit(CbmMvdCluster* cluster, TVector3& pos,
Int_t indexX, indexY;
//Double_t x,y;
Double_t local[2];
local[0] = pos.X();
local[1] = pos.Y();
Double_t local[3] = {pos.X(), pos.Y(), pos.Z()};
//LOG(debug)<< "found center of gravity at: " << local[0] << " , " << local[1];
fSensor->TopToPixel(local, indexX, indexY);
......
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