Skip to content
Snippets Groups Projects
Commit 69297a41 authored by Alexander Zinchenko's avatar Alexander Zinchenko
Browse files

Corrected Fill_TRAP

parent af217aa5
No related branches found
No related tags found
No related merge requests found
......@@ -307,6 +307,7 @@ void Mpdshape::Fill_TRAP(Double_t dx11, Double_t dx12, Double_t dy1, Double_t dx
// \_____/ -dy1 \ / |
// 2*dx11 \ /
// \____/ -dy2
/*
o << dx11 << " " << -dy1 << " " << 0. << endl
<< dx12 << " " << dy1 << " " << 0. << endl
<< -dx12 << " " << dy1 << " " << 0. << endl
......@@ -316,6 +317,16 @@ void Mpdshape::Fill_TRAP(Double_t dx11, Double_t dx12, Double_t dy1, Double_t dx
<< dx22 << " " << dy2 << " " << dz << endl
<< -dx22 << " " << dy2 << " " << dz << endl
<< -dx21 << " " << -dy2 << " " << dz;
*/
o << dx11 << " " << 0 << " " << 0. << endl
<< dx12 << " " << 2*dy1 << " " << 0. << endl
<< -dx12 << " " << 2*dy1 << " " << 0. << endl
<< -dx11 << " " << 0 << " " << 0. << endl
<< dx21 << " " << -dy2+dy1 << " " << dz << endl
<< dx22 << " " << dy2+dy1 << " " << dz << endl
<< -dx22 << " " << dy2+dy1 << " " << dz << endl
<< -dx21 << " " << -dy2+dy1 << " " << dz;
fPoints = o.str();
}
......
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