From 69297a414f396d9fbae95f4432fb22a8a4d72873 Mon Sep 17 00:00:00 2001
From: Alexander Zinchenko <Alexander.Zinchenko@jinr.ru>
Date: Thu, 8 Dec 2016 11:28:54 +0400
Subject: [PATCH] Corrected Fill_TRAP

---
 macro/mpd/geometry/mpdshape.class.C | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/macro/mpd/geometry/mpdshape.class.C b/macro/mpd/geometry/mpdshape.class.C
index 386ea2b..0f17f7f 100644
--- a/macro/mpd/geometry/mpdshape.class.C
+++ b/macro/mpd/geometry/mpdshape.class.C
@@ -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();
 }
 
-- 
GitLab