bae82199c09a1a0be642eed7f06a53da1d288ca8
[u/mrichter/AliRoot.git] / ITS / AliITSvPPRasymm.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15
16 /*
17 $Log$
18 Revision 1.15  2001/02/19 19:44:00  barbera
19 Air density parameter corrected
20
21 Revision 1.14  2001/02/13 16:53:35  nilsen
22 Fixed a but when trying to use GEANT4. Needed to replace
23 if(!((TGeant3*)gMC)) with if(!(dynamic_casst<TGeant3*>(gMC)))
24 because just casting gMC to be TGeant3* even when it realy is a TGeant3 pointer
25 did not result in a zero value. For AliITSv5asymm and AliITSv5symm, needed
26 to fix a bug in the initilizers and a bug in BuildGeometry. This is now done
27 in the same way as in AliITSv5.cxx.
28
29 Revision 1.13  2001/02/09 20:06:26  nilsen
30 Fixed bug in distructor. Can't distroy fixxed length arrays. Thanks Peter.
31
32 Revision 1.12  2001/02/09 13:53:38  barbera
33 Int_t redefinition avoided
34
35 Revision 1.11  2001/02/09 06:55:38  barbera
36 SPD option re-set to B. It was A by mistake
37
38 Revision 1.10  2001/02/09 00:05:31  nilsen
39 Added fMajor/MinorVersion variables and made other changes to better make
40 use of the new code changes in AliITSgeom related classes.
41
42
43 Revision 1.9  2001/02/08 16:00:37  barbera
44 New thicknesses (300+300 um) added for SPD chips and detectors and set as default. Many other refinements.
45
46 Revision 1.8  2001/02/06 08:03:44  barbera
47 Material redefinition in SDD
48
49 Revision 1.7  2001/02/05 13:34:57  barbera
50 Updated version of the ITS detailed geometry
51
52 Revision 1.5  2001/01/30 09:23:13  hristov
53 Streamers removed (R.Brun)
54
55 Revision 1.4  2001/01/23 20:08:03  barbera
56 Option B for pixels implemented and set as default
57
58 Revision 1.3  2001/01/17 08:08:20  barbera
59 Some media parameters modified
60
61 Revision 1.1.2.1  2001/01/15 13:38:08  barbera
62 New ITS detailed geometry to be used for the PPR
63
64 */
65
66 ///////////////////////////////////////////////////////////////////////////////
67 //                                                                           //
68 //  Inner Traking System version PPR  asymmetric                             //
69 //  This class contains the base procedures for the Inner Tracking System    //
70 //                                                                           //
71 // Authors: R. Barbera                                                       //
72 // version 8.                                                                //
73 // Created  January 15 2001.                                                 //
74 //                                                                           //
75 //  NOTE: THIS IS THE  ASYMMETRIC PPR geometry of the ITS.                   //
76 //                                                                           //
77 ///////////////////////////////////////////////////////////////////////////////
78
79 // See AliITSvPPRasymm::StepManager().
80 #include <iostream.h>
81 #include <iomanip.h>
82 #include <stdio.h>
83 #include <stdlib.h>
84 #include <TMath.h>
85 #include <TGeometry.h>
86 #include <TNode.h>
87 #include <TTUBE.h>
88 #include <TFile.h>    // only required for Tracking function?
89 #include <TCanvas.h>
90 #include <TObjArray.h>
91 #include <TLorentzVector.h>
92 #include <TObjString.h>
93 #include <TClonesArray.h>
94 #include <TBRIK.h>
95 #include <TSystem.h>
96
97 #include "AliMC.h"
98 #include "AliRun.h"
99 #include "AliMagF.h"
100 #include "AliConst.h"
101 #include "../TGeant3/TGeant3.h"
102 #include "AliITSGeant3Geometry.h"
103 #include "AliITShit.h"
104 #include "AliITS.h"
105 #include "AliITSvPPRasymm.h"
106 #include "AliITSgeom.h"
107 #include "AliITSgeomSPD.h"
108 #include "AliITSgeomSDD.h"
109 #include "AliITSgeomSSD.h"
110
111
112 ClassImp(AliITSvPPRasymm)
113  
114 //_____________________________________________________________________________
115 AliITSvPPRasymm::AliITSvPPRasymm() {
116 ////////////////////////////////////////////////////////////////////////
117 //    Standard default constructor for the ITS version 8.
118 ////////////////////////////////////////////////////////////////////////
119     Int_t i;
120
121     fIdN          = 0;
122     fIdName       = 0;
123     fIdSens       = 0;
124     fEuclidOut    = kFALSE; // Don't write Euclide file
125     fGeomDetOut   = kFALSE; // Don't write .det file
126     fGeomDetIn    = kTRUE; // Read .det file
127     fMajorVersion = IsVersion();
128     fMinorVersion = -1;
129     for(i=0;i<60;i++) fRead[i] = '\0';
130     for(i=0;i<60;i++) fWrite[i] = '\0';
131     for(i=0;i<60;i++) fEuclidGeomDet[i] = '\0';
132 }
133 //_____________________________________________________________________________
134 AliITSvPPRasymm::AliITSvPPRasymm(const char *name, const char *title) : AliITS(name, title){
135 ////////////////////////////////////////////////////////////////////////
136 //    Standard constructor for the ITS version 8.
137 ////////////////////////////////////////////////////////////////////////
138     Int_t i;
139
140     fIdN = 6;
141     fIdName = new TString[fIdN];
142     fIdName[0] = "ITS1";
143     fIdName[1] = "ITS2";
144     fIdName[2] = "ITS3";
145     fIdName[3] = "ITS4";
146     fIdName[4] = "ITS5";
147     fIdName[5] = "ITS6";
148     fIdSens    = new Int_t[fIdN];
149     for(i=0;i<fIdN;i++) fIdSens[i] = 0;
150     fMajorVersion = IsVersion();
151     fMinorVersion = 22;
152     fEuclidOut    = kFALSE; // Don't write Euclide file
153     fGeomDetOut   = kFALSE; // Don't write .det file
154     fGeomDetIn    = kTRUE; // Read .det file
155
156     fEuclidGeometry="$ALICE_ROOT/ITS/ITSgeometry_vPPRasymm22.euc";
157     strncpy(fEuclidGeomDet,"$ALICE_ROOT/ITS/ITSgeometry_vPPRasymm22.det",60);
158     strncpy(fRead,fEuclidGeomDet,60);
159     strncpy(fWrite,fEuclidGeomDet,60);
160 }
161 //____________________________________________________________________________
162 AliITSvPPRasymm::AliITSvPPRasymm(const AliITSvPPRasymm &source){
163 ////////////////////////////////////////////////////////////////////////
164 //     Copy Constructor for ITS version 8.
165 ////////////////////////////////////////////////////////////////////////
166     if(&source == this) return;
167     Warning("Copy Constructor","Not allowed to copy AliITSvPPRasymm");
168     return;
169 }
170 //_____________________________________________________________________________
171 AliITSvPPRasymm& AliITSvPPRasymm::operator=(const AliITSvPPRasymm &source){
172 ////////////////////////////////////////////////////////////////////////
173 //    Assignment operator for the ITS version 8.
174 ////////////////////////////////////////////////////////////////////////
175     if(&source == this) return *this;
176     Warning("= operator","Not allowed to copy AliITSvPPRasymm");
177     return *this;
178 }
179 //_____________________________________________________________________________
180 AliITSvPPRasymm::~AliITSvPPRasymm() {
181 ////////////////////////////////////////////////////////////////////////
182 //    Standard destructor for the ITS version 8.
183 ////////////////////////////////////////////////////////////////////////
184 }
185 //__________________________________________________________________________
186 void AliITSvPPRasymm::BuildGeometry(){
187 ////////////////////////////////////////////////////////////////////////
188 //    Geometry builder for the ITS version 8.
189 ////////////////////////////////////////////////////////////////////////
190     TNode *node, *top;
191     const int kColorITS=kYellow;
192     //
193     top = gAlice->GetGeometry()->GetNode("alice");
194
195     new TTUBE("S_layer1","Layer1 of ITS","void",3.95,3.95+0.05475,12.25);
196     top->cd();
197     node = new TNode("Layer1","Layer1","S_layer1",0,0,0,"");
198     node->SetLineColor(kColorITS);
199     fNodes->Add(node);
200
201     new TTUBE("S_layer2","Layer2 of ITS","void",7.,7.+0.05475,16.3);
202     top->cd();
203     node = new TNode("Layer2","Layer2","S_layer2",0,0,0,"");
204     node->SetLineColor(kColorITS);
205     fNodes->Add(node);
206
207     new TTUBE("S_layer3","Layer3 of ITS","void",15.,15.+0.05288,21.1);
208     top->cd();
209     node = new TNode("Layer3","Layer3","S_layer3",0,0,0,"");
210     node->SetLineColor(kColorITS);
211     fNodes->Add(node);
212
213     new TTUBE("S_layer4","Layer4 of ITS","void",24,24+0.05288,29.6);
214     top->cd();
215     node = new TNode("Layer4","Layer4","S_layer4",0,0,0,"");
216     node->SetLineColor(kColorITS);
217     fNodes->Add(node);
218
219     new TTUBE("S_layer5","Layer5 of ITS","void",40,40+0.05382,45.1);
220     top->cd();
221     node = new TNode("Layer5","Layer5","S_layer5",0,0,0,"");
222     node->SetLineColor(kColorITS);
223     fNodes->Add(node);
224
225     new TTUBE("S_layer6","Layer6 of ITS","void",45,45+0.05382,50.4);
226     top->cd();
227     node = new TNode("Layer6","Layer6","S_layer6",0,0,0,"");
228     node->SetLineColor(kColorITS);
229     fNodes->Add(node);
230 }
231 //_____________________________________________________________________________
232 void AliITSvPPRasymm::CreateGeometry(){
233 ////////////////////////////////////////////////////////////////////////
234 //    This routine defines and Creates the geometry for version 6 of the ITS.
235 ////////////////////////////////////////////////////////////////////////
236   
237   //INNER RADII OF THE SILICON LAYERS 
238   // Float_t rl[6]    = { 3.8095,7.,15.,24.,38.1,43.5765 };   
239   //THICKNESSES OF LAYERS (in % radiation length)
240   Float_t drl[6]   = { 1.03,1.03,0.94,0.95,0.91,0.87 };   
241   //HALF LENGTHS OF LAYERS  
242   // Float_t dzl[6]   = { 14.35,14.35,25.1,32.1,49.405,55.27 };
243   //LENGTHS OF END-LADDER BOXES (ALL INCLUDED)
244   // Float_t dzb[6]   = { 12.4,12.4,13.5,15.,7.5,7.5 };   
245   //THICKNESSES OF END-LADDER BOXES (ALL INCLUDED)
246   // Float_t drb[6]   = { rl[1]-rl[0],0.2,5.,5.,4.,4. };        
247
248  
249   Float_t dits[50], rlim, zmax;
250   // Float_t zpos;
251   // Float_t pcits[50]
252   Float_t xltpc;
253   Int_t idrotm[1999], i;
254   Float_t dgh[50];
255
256
257   // Default values
258   
259   Int_t thickness=2;  // detector thickness = 300 um - chip thickness = 300 um
260   Int_t option=2;     // option 'b' for det/chip/bus stacking
261   
262   // These values are NOT the default ones so leave them commented !
263
264 //  Int_t thickness=1; // detector thickness = 100 um - chip thickness = 150 um
265 //  Int_t option=1;    // option 'a' for det/chip/bus stacking
266
267   thickness = fMinorVersion/10;
268   option    = fMinorVersion - 10*thickness;
269   
270   Int_t *idtmed = fIdtmed->GetArray()-199;
271
272   
273   // Rotation matrices
274   
275   // SPD - option 'a' (this is NOT the default so leave commented)
276   
277   
278   if (option == 1) {
279   
280      AliMatrix(idrotm[201],90.0,90.0,90.0,180.0,0.0,0.0);
281      AliMatrix(idrotm[202],90.0,90.0,90.0,0.0,0.0,0.0);
282      AliMatrix(idrotm[203],90.0,350.0,90.0,260.0,0.0,0.0);
283      AliMatrix(idrotm[204],90.0,170.0,90.0,80.0,0.0,0.0);
284      AliMatrix(idrotm[205],90.0,10.0,90.0,100.0,0.0,0.0);
285      AliMatrix(idrotm[206],90.0,190.0,90.0,280.0,0.0,0.0);
286      AliMatrix(idrotm[207],90.0,342.0,90.0,72.0,0.0,0.0);
287      AliMatrix(idrotm[208],90.0,156.999893,90.0,246.999893,0.0,0.0);
288      AliMatrix(idrotm[209],90.0,147.999802,90.0,237.999893,0.0,0.0);
289      AliMatrix(idrotm[210],90.0,138.999802,90.0,228.999802,0.0,0.0);
290      AliMatrix(idrotm[211],90.0,129.999802,90.0,219.999802,0.0,0.0);
291      AliMatrix(idrotm[212],90.0,36.7896,90.0,126.789597,0.0,0.0);
292      AliMatrix(idrotm[213],90.0,343.579712,90.0,73.579697,0.0,0.0);
293      AliMatrix(idrotm[214],90.0,95.413696,90.0,185.413696,0.0,0.0);
294      AliMatrix(idrotm[215],90.0,5.4141,90.0,95.414101,0.0,0.0);
295      AliMatrix(idrotm[216],90.0,318.296906,90.0,48.296902,0.0,0.0);
296      AliMatrix(idrotm[217],90.0,67.000099,90.0,157.000107,0.0,0.0);
297      AliMatrix(idrotm[218],90.0,337.003998,90.0,67.003998,0.0,0.0);
298      AliMatrix(idrotm[219],90.0,247.000305,90.0,337.000305,0.0,0.0);
299      AliMatrix(idrotm[220],90.0,305.633514,90.0,35.633499,0.0,0.0);
300      AliMatrix(idrotm[221],90.0,58.000198,90.0,148.000198,0.0,0.0);
301      AliMatrix(idrotm[222],90.0,327.997101,90.0,57.997101,0.0,0.0 );
302      AliMatrix(idrotm[223],90.0,237.994202,90.0,327.994202,0.0,0.0);
303      AliMatrix(idrotm[224],90.0,296.627502,90.0,26.627399,0.0,0.0);
304      AliMatrix(idrotm[225],90.0,48.994099,90.0,138.994095,0.0,0.0);
305      AliMatrix(idrotm[226],90.0,318.990997,90.0,48.991001,0.0,0.0);
306      AliMatrix(idrotm[227],90.0,228.988205,90.0,318.98819,0.0,0.0);
307      AliMatrix(idrotm[228],90.0,287.621399,90.0,17.621401,0.0,0.0);
308      AliMatrix(idrotm[229],90.0,39.988098,90.0,129.988098,0.0,0.0);
309      AliMatrix(idrotm[230],90.0,309.984985,90.0,39.985001,0.0,0.0);
310      AliMatrix(idrotm[231],90.0,327.2612,90.0,57.2612,0.0,0.0);
311      AliMatrix(idrotm[232],90.0,237.261398,90.0,327.261414,0.0,0.0);
312      AliMatrix(idrotm[233],90.0,252.000504,90.0,342.000488,0.0,0.0 );
313      AliMatrix(idrotm[234],90.0,71.9991,90.0,161.9991,0.0,0.0);
314      AliMatrix(idrotm[235],90.0,270.0,90.0,0.0,0.0,0.0);
315      AliMatrix(idrotm[236],90.0,180.013702,90.0,270.013702,0.0,0.0);
316      AliMatrix(idrotm[237],90.0,0.0,90.0,90.0,180.0,0.0);
317      AliMatrix(idrotm[238],90.0,144.0,90.0,234.0,0.0,0.0);
318      AliMatrix(idrotm[239],90.0,216.0,90.0,306.0,0.0,0.0);
319      AliMatrix(idrotm[240],90.0,288.0,90.0,18.0,0.0,0.0);
320      AliMatrix(idrotm[241],90.0,324.0,90.0,54.0,0.0,0.0);
321      AliMatrix(idrotm[242],90.0,36.0,90.0,126.0,0.0,0.0);
322      AliMatrix(idrotm[243],90.0,108.0,90.0,198.0,0.0,0.0);
323      AliMatrix(idrotm[244],90.0,0.0,90.0,270.0,180.0,0.0);
324      AliMatrix(idrotm[245],90.0,342.0,90.0,252.0,180.0,0.0);
325      AliMatrix(idrotm[246],90.0,130.0,90.0,40.0,180.0,0.0);
326      AliMatrix(idrotm[247],90.0,139.0,90.0,49.0,180.0,0.0);
327      AliMatrix(idrotm[248],90.0,148.0,90.0,58.0,180.0,0.0);
328      AliMatrix(idrotm[249],90.0,157.0,90.0,67.0,180.0,0.0);
329      AliMatrix(idrotm[1003],90.0,73.5,90.0,163.5,0.0,0.0);
330      AliMatrix(idrotm[1011],90.0,342.0,90.0,72.0,0.0,0.0);
331      AliMatrix(idrotm[1039],90.0,72.0,90.0,162.0,0.0,0.0);
332      AliMatrix(idrotm[1043],90.0,66.91,90.0,156.91,0.0,0.0);
333      AliMatrix(idrotm[1065],90.0,144.0,90.0,234.0,0.0,0.0);
334      AliMatrix(idrotm[1078],90.0,180.0,90.0,270.0,0.0,0.0);
335      AliMatrix(idrotm[1088],90.0,57.41,90.0,147.41,0.0,0.0);
336      AliMatrix(idrotm[1089],90.0,333.0,90.0,63.0,0.0,0.0);
337      AliMatrix(idrotm[1090],90.0,351.0,90.0,81.0,0.0,0.0);
338      AliMatrix(idrotm[1091],90.0,216.0,90.0,306.0,0.0,0.0);
339      AliMatrix(idrotm[1092],90.0,27.0,90.0,117.0,0.0,0.0);
340      AliMatrix(idrotm[1093],90.0,18.0,90.0,108.0,0.0,0.0);
341      AliMatrix(idrotm[1094],90.0,9.0,90.0,99.0,0.0,0.0);
342      AliMatrix(idrotm[1104],90.0,252.0,90.0,342.0,0.0,0.0);
343      AliMatrix(idrotm[1106],90.0,36.0,90.0,126.0,0.0,0.0);
344      AliMatrix(idrotm[1107],90.0,108.0,90.0,198.0,0.0,0.0);
345      AliMatrix(idrotm[1108],90.0,324.0,90.0,54.0,180.0,0.0);
346      AliMatrix(idrotm[1109],90.0,0.0,90.0,90.0,180.0,0.0);
347      AliMatrix(idrotm[1110],90.0,36.0,90.0,126.0,180.0,0.0);
348      AliMatrix(idrotm[1111],90.0,72.0,90.0,162.0,180.0,0.0);
349      AliMatrix(idrotm[1112],90.0,108.0,90.0,198.0,180.0,0.0);
350      AliMatrix(idrotm[1113],90.0,144.0,90.0,234.0,180.0,0.0);
351      AliMatrix(idrotm[1114],90.0,180.0,90.0,270.0,180.0,0.0);
352      AliMatrix(idrotm[1115],90.0,216.0,90.0,306.0,180.0,0.0);
353      AliMatrix(idrotm[1116],90.0,252.0,90.0,342.0,180.0,0.0);
354      AliMatrix(idrotm[1117],90.0,288.0,90.0,18.0,0.0,0.0);
355      AliMatrix(idrotm[1118],90.0,288.0,90.0,18.0,180.0,0.0);
356      AliMatrix(idrotm[1130],90.0,324.0,90.0,54.0,0.0,0.0);  
357
358   }
359   
360   // SPD - option 'b' (this is the default)  
361     
362   if (option == 2) {
363
364      AliMatrix(idrotm[201],90.0,0.0,90.0,90.0,180.0,0.0);
365      AliMatrix(idrotm[202],90.0,90.0,90.0,0.0,0.0,0.0);
366      AliMatrix(idrotm[203],90.0,350.0,90.0,260.0,0.0,0.0);
367      AliMatrix(idrotm[204],90.0,170.0,90.0,80.0,0.0,0.0);
368      AliMatrix(idrotm[205],90.0,10.0,90.0,100.0,0.0,0.0);
369      AliMatrix(idrotm[206],90.0,190.0,90.0,280.0,0.0,0.0);
370      AliMatrix(idrotm[207],90.0,342.0,90.0,72.0,0.0,0.0);
371      AliMatrix(idrotm[208],90.0,156.999893,90.0,246.999893,0.0,0.0);
372      AliMatrix(idrotm[209],90.0,147.999802,90.0,237.999893,0.0,0.0);
373      AliMatrix(idrotm[210],90.0,138.999802,90.0,228.999802,0.0,0.0);
374      AliMatrix(idrotm[211],90.0,129.999802,90.0,219.999802,0.0,0.0);
375      AliMatrix(idrotm[212],90.0,36.7896,90.0,126.789597,0.0,0.0);
376      AliMatrix(idrotm[213],90.0,343.579712,90.0,73.579697,0.0,0.0);
377      AliMatrix(idrotm[214],90.0,95.413696,90.0,185.413696,0.0,0.0);
378      AliMatrix(idrotm[215],90.0,5.4141,90.0,95.414101,0.0,0.0);
379      AliMatrix(idrotm[216],90.0,318.296906,90.0,48.296902,0.0,0.0);
380      AliMatrix(idrotm[217],90.0,67.000099,90.0,157.000107,0.0,0.0);
381      AliMatrix(idrotm[218],90.0,337.003998,90.0,67.003998,0.0,0.0);
382      AliMatrix(idrotm[219],90.0,247.000305,90.0,337.000305,0.0,0.0);
383      AliMatrix(idrotm[220],90.0,305.633514,90.0,35.633499,0.0,0.0);
384      AliMatrix(idrotm[221],90.0,58.000198,90.0,148.000198,0.0,0.0);
385      AliMatrix(idrotm[222],90.0,327.997101,90.0,57.997101,0.0,0.0);
386      AliMatrix(idrotm[223],90.0,237.994202,90.0,327.994202,0.0,0.0);
387      AliMatrix(idrotm[224],90.0,296.627502,90.0,26.627399,0.0,0.0);
388      AliMatrix(idrotm[225],90.0,48.994099,90.0,138.994095,0.0,0.0);
389      AliMatrix(idrotm[226],90.0,318.990997,90.0,48.991001,0.0,0.0);
390      AliMatrix(idrotm[227],90.0,228.988205,90.0,318.98819,0.0,0.0);
391      AliMatrix(idrotm[228],90.0,287.621399,90.0,17.621401,0.0,0.0);
392      AliMatrix(idrotm[229],90.0,39.988098,90.0,129.988098,0.0,0.0);
393      AliMatrix(idrotm[230],90.0,309.984985,90.0,39.985001,0.0,0.0);
394      AliMatrix(idrotm[231],90.0,327.2612,90.0,57.2612,0.0,0.0);
395      AliMatrix(idrotm[232],90.0,237.261398,90.0,327.261414,0.0,0.0);
396      AliMatrix(idrotm[233],90.0,252.000504,90.0,342.000488,0.0,0.0);
397      AliMatrix(idrotm[234],90.0,71.9991,90.0,161.9991,0.0,0.0);
398      AliMatrix(idrotm[235],90.0,270.0,90.0,0.0,0.0,0.0);
399      AliMatrix(idrotm[236],90.0,180.013702,90.0,270.013702,0.0,0.0);
400      AliMatrix(idrotm[237],90.0,90.0,90.0,180.0,0.0,0.0);
401      AliMatrix(idrotm[238],90.0,0.0,90.0,270.0,180.0,0.0);
402      AliMatrix(idrotm[239],90.0,342.0,90.0,252.0,180.0,0.0);
403      AliMatrix(idrotm[240],90.0,130.0,90.0,40.0,180.0,0.0);
404      AliMatrix(idrotm[241],90.0,139.0,90.0,49.0,180.0,0.0);
405      AliMatrix(idrotm[242],90.0,148.0,90.0,58.0,180.0,0.0);
406      AliMatrix(idrotm[243],90.0,157.0,90.0,67.0,180.0,0.0);
407      AliMatrix(idrotm[244],90.0,216.0,90.0,306.0,0.0,0.0);
408      AliMatrix(idrotm[245],90.0,36.0,90.0,126.0,0.0,0.0);
409      AliMatrix(idrotm[246],90.0,108.0,90.0,198.0,0.0,0.0);
410      AliMatrix(idrotm[247],90.0,144.0,90.0,234.0,0.0,0.0);
411      AliMatrix(idrotm[248],90.0,288.0,90.0,18.0,0.0,0.0);
412      AliMatrix(idrotm[249],90.0,324.0,90.0,54.0,0.0,0.0);  
413      AliMatrix(idrotm[1003],90.0,73.5,90.0,163.5,0.0,0.0);
414      AliMatrix(idrotm[1011],90.0,342.0,90.0,72.0,0.0,0.0);
415      AliMatrix(idrotm[1039],90.0,72.0,90.0,162.0,0.0,0.0);
416      AliMatrix(idrotm[1043],90.0,66.91,90.0,156.91,0.0,0.0);
417      AliMatrix(idrotm[1065],90.0,144.0,90.0,234.0,0.0,0.0);
418      AliMatrix(idrotm[1078],90.0,180.0,90.0,270.0,0.0,0.0);
419      AliMatrix(idrotm[1088],90.0,57.41,90.0,147.41,0.0,0.0);
420      AliMatrix(idrotm[1089],90.0,333.0,90.0,63.0,0.0,0.0);
421      AliMatrix(idrotm[1090],90.0,351.0,90.0,81.0,0.0,0.0);
422      AliMatrix(idrotm[1091],90.0,216.0,90.0,306.0,0.0,0.0);
423      AliMatrix(idrotm[1092],90.0,27.0,90.0,117.0,0.0,0.0);
424      AliMatrix(idrotm[1093],90.0,18.0,90.0,108.0,0.0,0.0);
425      AliMatrix(idrotm[1094],90.0,9.0,90.0,99.0,0.0,0.0);
426      AliMatrix(idrotm[1104],90.0,252.0,90.0,342.0,0.0,0.0);
427      AliMatrix(idrotm[1106],90.0,36.0,90.0,126.0,0.0,0.0);
428      AliMatrix(idrotm[1107],90.0,108.0,90.0,198.0,0.0,0.0);
429      AliMatrix(idrotm[1108],90.0,324.0,90.0,54.0,180.0,0.0);
430      AliMatrix(idrotm[1109],90.0,0.0,90.0,90.0,180.0,0.0);
431      AliMatrix(idrotm[1110],90.0,36.0,90.0,126.0,180.0,0.0);
432      AliMatrix(idrotm[1111],90.0,72.0,90.0,162.0,180.0,0.0);
433      AliMatrix(idrotm[1112],90.0,108.0,90.0,198.0,180.0,0.0);
434      AliMatrix(idrotm[1113],90.0,144.0,90.0,234.0,180.0,0.0);
435      AliMatrix(idrotm[1114],90.0,180.0,90.0,270.0,180.0,0.0);
436      AliMatrix(idrotm[1115],90.0,216.0,90.0,306.0,180.0,0.0);
437      AliMatrix(idrotm[1116],90.0,252.0,90.0,342.0,180.0,0.0);
438      AliMatrix(idrotm[1117],90.0,288.0,90.0,18.0,0.0,0.0);
439      AliMatrix(idrotm[1118],90.0,288.0,90.0,18.0,180.0,0.0);
440      AliMatrix(idrotm[1130],90.0,324.0,90.0,54.0,0.0,0.0);  
441
442   }
443     
444   // SDD
445   
446   AliMatrix(idrotm[301],0.0,0.0,90.0,90.0,90.0,180.0);  
447   AliMatrix(idrotm[302],0.0,0.0,90.0,90.0,90.0,0.0);
448   AliMatrix(idrotm[303],180.0,0.0,90.0,90.0,90.0,0.0); 
449   AliMatrix(idrotm[304],180.0,0.0,90.0,90.0,90.0,180.0); 
450   AliMatrix(idrotm[305],90.0,347.14,90.0,77.14,0.0,0.0); 
451   AliMatrix(idrotm[306],90.0,321.43,90.0,51.43,0.0,0.0); 
452   AliMatrix(idrotm[307],90.0,295.71,90.0,25.71,0.0,0.0);
453   AliMatrix(idrotm[308],90.0,244.29,90.0,334.29,0.0,0.0);
454   AliMatrix(idrotm[309],90.0,218.57,90.0,308.57,0.0,0.0);
455   AliMatrix(idrotm[310],90.0,167.14,90.0,257.14,0.0,0.0);
456   AliMatrix(idrotm[311],90.0,141.43,90.0,231.43,0.0,0.0);  
457   AliMatrix(idrotm[312],90.0,0.0,0.0,0.0,90.0,270.0);
458   AliMatrix(idrotm[313],90.0,115.71,90.0,205.71,0.0,0.0); 
459   AliMatrix(idrotm[314],90.0,335.45,90.0,65.45,0.0,0.0); 
460   AliMatrix(idrotm[315],90.0,319.09,90.0,49.09,0.0,0.0); 
461   AliMatrix(idrotm[316],90.0,302.73,90.0,32.73,0.0,0.0); 
462   AliMatrix(idrotm[317],90.0,286.36,90.0,16.36,0.0,0.0);
463   AliMatrix(idrotm[318],90.0,270.0,90.0,360.0,0.0,0.0);
464   AliMatrix(idrotm[319],90.0,253.64,90.0,343.64,0.0,0.0);
465   AliMatrix(idrotm[320],90.0,237.27,90.0,327.27,0.0,0.0);
466   AliMatrix(idrotm[321],90.0,12.86,90.0,102.86,0.0,0.0);  
467   AliMatrix(idrotm[322],90.0,220.91,90.0,310.91,0.0,0.0);
468   AliMatrix(idrotm[323],90.0,204.55,90.0,294.55,0.0,0.0); 
469   AliMatrix(idrotm[324],90.0,188.18,90.0,278.18,0.0,0.0); 
470   AliMatrix(idrotm[325],90.0,171.82,90.0,261.82,0.0,0.0); 
471   AliMatrix(idrotm[326],90.0,155.45,90.0,245.45,0.0,0.0); 
472   AliMatrix(idrotm[327],90.0,139.09,90.0,229.09,0.0,0.0);
473   AliMatrix(idrotm[328],90.0,122.73,90.0,212.73,0.0,0.0);
474   AliMatrix(idrotm[329],90.0,106.36,90.0,196.36,0.0,0.0);
475   AliMatrix(idrotm[330],90.0,73.64,90.0,163.64,0.0,0.0);    
476   AliMatrix(idrotm[331],90.0,40.91,90.0,130.91,0.0,0.0);  
477   AliMatrix(idrotm[332],90.0,24.55,90.0,114.55,0.0,0.0);
478   AliMatrix(idrotm[333],90.0,38.57,90.0,128.57,0.0,0.0); 
479   AliMatrix(idrotm[334],90.0,351.82,90.0,81.82,0.0,0.0); 
480   AliMatrix(idrotm[335],90.0,8.18,90.0,98.18,0.0,0.0); 
481   AliMatrix(idrotm[336],90.0,64.29,90.0,154.29,0.0,0.0); 
482   AliMatrix(idrotm[337],111.0,300.0,21.0,300.0,90.0,30.0);
483   AliMatrix(idrotm[338],69.0,240.0,159.0,240.0,90.0,150.0);
484   AliMatrix(idrotm[339],111.0,240.0,21.0,240.0,90.0,150.0);
485   AliMatrix(idrotm[340],69.0,300.0,159.0,300.0,90.0,30.0);  
486   AliMatrix(idrotm[341],128.0,0.0,38.0,0.0,90.0,270.0);  
487   AliMatrix(idrotm[342],90.0,240.0,180.0,0.0,90.0,330.);
488   AliMatrix(idrotm[343],90.0,120.0,180.0,0.0,90.0,210.0); 
489   AliMatrix(idrotm[344],90.0,0.0,180.0,0.0,90.0,90.0); 
490   AliMatrix(idrotm[345],90.0,180.0,90.0,90.0,0.0,0.0); 
491   AliMatrix(idrotm[346],90.0,300.0,90.0,30.0,0.0,0.0); 
492   AliMatrix(idrotm[347],90.0,240.0,90.0,150.0,0.0,0.0);
493   AliMatrix(idrotm[348],90.0,180.0,0.0,0.0,90.0,270.0);
494   AliMatrix(idrotm[349],90.0,235.0,90.0,145.0,0.0,0.0);
495   AliMatrix(idrotm[350],90.0,90.0,90.0,180.0,0.0,0.0);  
496   AliMatrix(idrotm[351],90.0,305.0,90.0,35.0,0.0,0.0);  
497   AliMatrix(idrotm[352],0.0,0.0,90.0,0.0,90.0,90.0);
498   AliMatrix(idrotm[353],90.0,60.0,90.0,150.0,0.0,0.0); 
499   AliMatrix(idrotm[354],90.0,120.0,90.0,30.0,0.0,0.0); 
500   AliMatrix(idrotm[355],90.0,180.0,90.0,90.0,180.0,0.0); 
501   AliMatrix(idrotm[356],90.0,270.0,90.0,0.0,0.0,0.0); 
502   AliMatrix(idrotm[366],90.0,57.27,90.0,147.27,0.0,0.0); 
503   AliMatrix(idrotm[386],90.0,192.86,90.0,282.86,0.0,0.0);  
504    
505   // SSD
506   
507   AliMatrix(idrotm[501],90.0,148.24,90.0,238.24,0.0,0.0);
508   AliMatrix(idrotm[503],90.0,137.65,90.0,227.65,0.0,0.0); 
509   AliMatrix(idrotm[504],90.0,127.06,90.0,217.06,0.0,0.0);  
510   AliMatrix(idrotm[505],90.0,116.47,90.0,206.47,0.0,0.0);  
511   AliMatrix(idrotm[506],90.0,105.88,90.0,195.88,0.0,0.0);  
512   AliMatrix(idrotm[507],90.0,95.29,90.0,185.29,0.0,0.0);  
513   AliMatrix(idrotm[508],90.0,84.71,90.0,174.71,0.0,0.0);
514   AliMatrix(idrotm[509],90.0,74.12,90.0,164.12,0.0,0.0);
515   AliMatrix(idrotm[510],90.0,63.53,90.0,153.53,0.0,0.0);  
516   AliMatrix(idrotm[511],90.0,52.94,90.0,142.94,0.0,0.0);
517   AliMatrix(idrotm[512],90.0,42.35,90.0,132.35,0.0,0.0);
518   AliMatrix(idrotm[513],90.0,31.76,90.0,121.76,0.0,0.0); 
519   AliMatrix(idrotm[514],90.0,10.59,90.0,100.59,0.0,0.0);  
520   AliMatrix(idrotm[515],90.0,349.41,90.0,79.41,0.0,0.0);  
521   AliMatrix(idrotm[516],90.0,338.82,90.0,68.82,0.0,0.0);  
522   AliMatrix(idrotm[517],90.0,328.24,90.0,58.24,0.0,0.0);  
523   AliMatrix(idrotm[518],90.0,317.65,90.0,47.65,0.0,0.0);
524   AliMatrix(idrotm[519],90.0,307.06,90.0,37.06,0.0,0.0);
525   AliMatrix(idrotm[520],90.0,296.47,90.0,26.47,0.0,0.0);  
526   AliMatrix(idrotm[521],90.0,285.88,90.0,15.88,0.0,0.0);
527   AliMatrix(idrotm[522],90.0,275.29,90.0,5.29,0.0,0.0);
528   AliMatrix(idrotm[523],90.0,264.71,90.0,354.71,0.0,0.0); 
529   AliMatrix(idrotm[524],90.0,254.12,90.0,344.12,0.0,0.0);  
530   AliMatrix(idrotm[525],90.0,243.53,90.0,333.53,0.0,0.0);  
531   AliMatrix(idrotm[526],90.0,232.94,90.0,322.94,0.0,0.0);  
532   AliMatrix(idrotm[527],90.0,222.35,90.0,312.35,0.0,0.0);  
533   AliMatrix(idrotm[528],90.0,211.76,90.0,301.76,0.0,0.0);
534   AliMatrix(idrotm[529],90.0,190.59,90.0,280.59,0.0,0.0);
535   AliMatrix(idrotm[530],90.0,169.41,90.0,259.41,0.0,0.0);  
536   AliMatrix(idrotm[531],90.0,158.82,90.0,248.82,0.0,0.0);
537   AliMatrix(idrotm[532],90.0,360.0,90.0,90.0,0.0,0.0);
538   AliMatrix(idrotm[533],90.0,180.0,90.0,270.0,0.0,0.0); 
539   AliMatrix(idrotm[534],90.0,189.47,90.0,279.47,0.0,0.0);  
540   AliMatrix(idrotm[535],90.0,198.95,90.0,288.95,0.0,0.0);  
541   AliMatrix(idrotm[537],90.0,217.89,90.0,307.89,0.0,0.0);  
542   AliMatrix(idrotm[538],90.0,227.37,90.0,317.37,0.0,0.0);
543   AliMatrix(idrotm[539],90.0,236.84,90.0,326.84,0.0,0.0);
544   AliMatrix(idrotm[540],90.0,246.32,90.0,336.32,0.0,0.0);  
545   AliMatrix(idrotm[541],90.0,255.79,90.0,345.79,0.0,0.0);
546   AliMatrix(idrotm[542],90.0,265.26,90.0,355.26,0.0,0.0);
547   AliMatrix(idrotm[543],90.0,274.74,90.0,4.74,0.0,0.0); 
548   AliMatrix(idrotm[544],90.0,284.21,90.0,14.21,0.0,0.0);  
549   AliMatrix(idrotm[545],90.0,293.68,90.0,23.68,0.0,0.0);  
550   AliMatrix(idrotm[546],90.0,303.16,90.0,33.16,0.0,0.0);  
551   AliMatrix(idrotm[547],90.0,312.63,90.0,42.63,0.0,0.0);  
552   AliMatrix(idrotm[548],90.0,322.11,90.0,52.11,0.0,0.0);
553   AliMatrix(idrotm[549],90.0,331.58,90.0,61.58,0.0,0.0);
554   AliMatrix(idrotm[550],90.0,341.05,90.0,71.05,0.0,0.0);  
555   AliMatrix(idrotm[551],90.0,350.53,90.0,80.53,0.0,0.0);
556   AliMatrix(idrotm[552],90.0,9.47,90.0,99.47,0.0,0.0);
557   AliMatrix(idrotm[553],90.0,18.95,90.0,108.95,0.0,0.0); 
558   AliMatrix(idrotm[555],90.0,37.89,90.0,127.89,0.0,0.0);  
559   AliMatrix(idrotm[556],90.0,47.37,90.0,137.37,0.0,0.0);  
560   AliMatrix(idrotm[557],90.0,56.84,90.0,146.84,0.0,0.0);  
561   AliMatrix(idrotm[558],90.0,66.32,90.0,156.32,0.0,0.0);
562   AliMatrix(idrotm[559],90.0,75.79,90.0,165.79,0.0,0.0);
563   AliMatrix(idrotm[560],90.0,85.26,90.0,175.26,0.0,0.0);  
564   AliMatrix(idrotm[561],90.0,94.74,90.0,184.74,0.0,0.0);
565   AliMatrix(idrotm[562],90.0,104.21,90.0,194.21,0.0,0.0);
566   AliMatrix(idrotm[563],90.0,113.68,90.0,203.68,0.0,0.0); 
567   AliMatrix(idrotm[564],90.0,123.16,90.0,213.16,0.0,0.0);  
568   AliMatrix(idrotm[565],90.0,132.63,90.0,222.63,0.0,0.0);  
569   AliMatrix(idrotm[566],90.0,142.11,90.0,232.11,0.0,0.0);  
570   AliMatrix(idrotm[567],90.0,151.58,90.0,241.58,0.0,0.0);  
571   AliMatrix(idrotm[568],90.0,161.05,90.0,251.05,0.0,0.0);
572   AliMatrix(idrotm[569],90.0,170.53,90.0,260.53,0.0,0.0);
573   AliMatrix(idrotm[570],90.0,180.0,90.0,90.0,180.0,0.0);  
574   AliMatrix(idrotm[571],90.0,0.0,0.0,0.0,90.0,270.0);
575   AliMatrix(idrotm[572],90.0,180.0,0.0,0.0,90.0,270.0);
576   AliMatrix(idrotm[573],90.0,180.0,90.0,90.0,0.0,0.0); 
577   AliMatrix(idrotm[575],90.0,120.0,180.0,0.0,90.0,210.0);  
578   AliMatrix(idrotm[576],65.71,300.0,90.0,30.0,24.29,120.0);  
579   AliMatrix(idrotm[577],114.29,300.0,90.0,30.0,155.71,120.0);  
580   AliMatrix(idrotm[579],65.71,240.0,90.0,150.0,24.29,60.0);
581   AliMatrix(idrotm[580],114.29,240.0,90.0,150.0,155.71,60.0);  
582   AliMatrix(idrotm[581],90.0,240.0,180.0,0.0,90.0,330.0);
583   AliMatrix(idrotm[583],90.0,0.0,180.0,0.0,90.0,90.0); 
584   AliMatrix(idrotm[584],90.0,180.0,180.0,0.0,90.0,90.0);  
585   AliMatrix(idrotm[586],180.0,0.0,90.0,90.0,90.0,0.0);  
586   AliMatrix(idrotm[618],90.0,201.18,90.0,291.18,0.0,0.0);
587   AliMatrix(idrotm[620],90.0,28.42,90.0,118.42,0.0,0.0);  
588   AliMatrix(idrotm[623],90.0,208.42,90.0,298.42,0.0,0.0);
589   AliMatrix(idrotm[633],132.46,0.0,90.0,90.0,42.46,360.0);
590   AliMatrix(idrotm[653],90.0,21.18,90.0,111.18,0.0,0.0); 
591
592   
593   // SDD cone
594
595   AliMatrix(idrotm[846],90.0,300.0,90.0,30.0,0.0,0.0);
596   AliMatrix(idrotm[851],90.0,305.0,90.0,35.0,0.0,0.0);
597   AliMatrix(idrotm[853],90.0,60.0,90.0,150.0,0.0,0.0);
598   AliMatrix(idrotm[856],90.0,0.0,90.0,90.0,180.0,0.0);
599   AliMatrix(idrotm[857],90.0,5.0,90.0,95.0,180.0,0.0);
600   AliMatrix(idrotm[858],90.0,65.0,90.0,155.0,180.0,0.0);
601   AliMatrix(idrotm[859],90.0,305.0,90.0,35.0,180.0,0.0);
602   AliMatrix(idrotm[860],90.0,245.0,90.0,335.0,180.0,0.0);
603   AliMatrix(idrotm[861],90.0,185.0,90.0,275.0,180.0,0.0);
604   AliMatrix(idrotm[862],90.0,125.0,90.0,215.0,180.0,0.0);
605   AliMatrix(idrotm[863],90.0,257.5,90.0,347.5,180.0,0.0);
606   AliMatrix(idrotm[864],90.0,227.5,90.0,317.5,180.0,0.0);
607   AliMatrix(idrotm[865],90.0,197.5,90.0,287.5,180.0,0.0);
608   AliMatrix(idrotm[867],90.0,167.5,90.0,257.5,180.0,0.0);
609   AliMatrix(idrotm[868],90.0,287.5,90.0,17.5,0.0,0.0);  
610   AliMatrix(idrotm[869],90.0,137.5,90.0,227.5,180.0,0.0);
611   AliMatrix(idrotm[870],90.0,107.5,90.0,197.5,180.0,0.0);
612   AliMatrix(idrotm[871],90.0,77.5,90.0,167.5,180.0,0.0);
613   AliMatrix(idrotm[872],90.0,47.5,90.0,137.5,180.0,0.0);
614   AliMatrix(idrotm[873],90.0,17.5,90.0,107.5,180.0,0.0);
615   AliMatrix(idrotm[874],90.0,347.5,90.0,77.5,180.0,0.0);
616   AliMatrix(idrotm[875],90.0,317.5,90.0,47.5,180.0,0.0);
617   AliMatrix(idrotm[876],90.0,287.5,90.0,17.5,180.0,0.0);
618   AliMatrix(idrotm[877],90.0,185.0,90.0,275.0,0.0,0.0);
619   AliMatrix(idrotm[878],90.0,180.0,90.0,270.0,0.0,0.0);  
620   AliMatrix(idrotm[879],90.0,125.0,90.0,215.0,0.0,0.0);
621   AliMatrix(idrotm[880],90.0,65.0,90.0,155.0,0.0,0.0);
622   AliMatrix(idrotm[881],90.0,5.0,90.0,95.0,0.0,0.0);
623   AliMatrix(idrotm[882],90.0,245.0,90.0,335.0,0.0,0.0);
624   AliMatrix(idrotm[883],90.0,47.5,90.0,137.5,0.0,0.0);
625   AliMatrix(idrotm[884],90.0,77.5,90.0,167.5,0.0,0.0);
626   AliMatrix(idrotm[885],90.0,107.5,90.0,197.5,0.0,0.0);
627   AliMatrix(idrotm[887],90.0,137.5,90.0,227.5,0.0,0.0);
628   AliMatrix(idrotm[888],90.0,167.5,90.0,257.5,0.0,0.0);
629   AliMatrix(idrotm[889],90.0,197.5,90.0,287.5,0.0,0.0);
630   AliMatrix(idrotm[890],90.0,227.5,90.0,317.5,0.0,0.0);
631   AliMatrix(idrotm[891],90.0,347.5,90.0,77.5,0.0,0.0);
632   AliMatrix(idrotm[892],90.0,317.5,90.0,47.5,0.0,0.0);
633   AliMatrix(idrotm[893],90.0,257.5,90.0,347.5,0.0,0.0);
634   AliMatrix(idrotm[894],90.0,270.0,0.0,0.0,90.0,180.0);
635   AliMatrix(idrotm[895],90.0,286.36,0.0,0.0,90.0,196.36);
636   AliMatrix(idrotm[896],90.0,302.73,0.0,0.0,90.0,212.73);
637   AliMatrix(idrotm[897],90.0,319.09,0.0,0.0,90.0,229.09);
638   AliMatrix(idrotm[898],90.0,17.5,90.0,107.5,0.0,0.0);
639   AliMatrix(idrotm[899],90.0,335.45,0.0,0.0,90.0,245.45);
640   AliMatrix(idrotm[900],90.0,351.82,0.0,0.0,90.0,261.82);
641   AliMatrix(idrotm[901],90.0,8.18,0.0,0.0,90.0,278.18);
642   AliMatrix(idrotm[902],90.0,24.55,0.0,0.0,90.0,294.55);
643   AliMatrix(idrotm[903],90.0,40.91,0.0,0.0,90.0,310.91);
644   AliMatrix(idrotm[904],90.0,57.27,0.0,0.0,90.0,327.27);
645   AliMatrix(idrotm[905],90.0,73.64,0.0,0.0,90.0,343.64);
646   AliMatrix(idrotm[906],90.0,90.0,0.0,0.0,90.0,360.0);
647   AliMatrix(idrotm[907],90.0,106.36,0.0,0.0,90.0,16.36);
648   AliMatrix(idrotm[908],90.0,122.73,0.0,0.0,90.0,32.73);
649   AliMatrix(idrotm[909],90.0,139.09,0.0,0.0,90.0,49.09);
650   AliMatrix(idrotm[910],90.0,155.45,0.0,0.0,90.0,65.45);
651   AliMatrix(idrotm[911],90.0,171.82,0.0,0.0,90.0,81.82);
652   AliMatrix(idrotm[912],90.0,188.18,0.0,0.0,90.0,98.18);
653   AliMatrix(idrotm[913],90.0,204.55,0.0,0.0,90.0,114.55);
654   AliMatrix(idrotm[914],90.0,220.91,0.0,0.0,90.0,130.91);
655   AliMatrix(idrotm[915],90.0,237.27,0.0,0.0,90.0,147.27);
656   AliMatrix(idrotm[916],90.0,253.64,0.0,0.0,90.0,163.64);
657   AliMatrix(idrotm[917],90.0,295.71,0.0,0.0,90.0,205.71);
658   AliMatrix(idrotm[918],90.0,321.43,0.0,0.0,90.0,231.43);
659   AliMatrix(idrotm[919],90.0,347.14,0.0,0.0,90.0,257.14);
660   AliMatrix(idrotm[920],90.0,12.86,0.0,0.0,90.0,282.86);
661   AliMatrix(idrotm[921],90.0,38.57,0.0,0.0,90.0,308.57);
662   AliMatrix(idrotm[922],90.0,64.29,0.0,0.0,90.0,334.29);
663   AliMatrix(idrotm[923],90.0,115.71,0.0,0.0,90.0,25.71);
664   AliMatrix(idrotm[924],90.0,141.43,0.0,0.0,90.0,51.43);
665   AliMatrix(idrotm[925],90.0,167.14,0.0,0.0,90.0,77.14);
666   AliMatrix(idrotm[926],90.0,192.86,0.0,0.0,90.0,102.86);
667   AliMatrix(idrotm[927],90.0,218.57,0.0,0.0,90.0,128.57);
668   AliMatrix(idrotm[928],90.0,244.29,0.0,0.0,90.0,154.29);
669   AliMatrix(idrotm[929],90.0,120.0,90.0,210.0,0.0,0.0);
670   AliMatrix(idrotm[930],90.0,240.0,90.0,330.0,0.0,0.0);
671   AliMatrix(idrotm[931],90.0,60.0,90.0,150.0,180.0,0.0);
672   AliMatrix(idrotm[932],90.0,120.0,90.0,210.0,180.0,0.0);
673   AliMatrix(idrotm[933],90.0,180.0,90.0,270.0,180.0,0.0);
674   AliMatrix(idrotm[934],90.0,240.0,90.0,330.0,180.0,0.0);
675   AliMatrix(idrotm[935],90.0,300.0,90.0,30.0,180.0,0.0);
676
677   // SSD cone
678
679   AliMatrix(idrotm[701],90.0,0.0,90.0,90.0,180.0,0.0);
680   AliMatrix(idrotm[702],90.0,347.5,90.0,77.5,180.0,0.0);
681   AliMatrix(idrotm[703],90.0,17.5,90.0,107.5,180.0,0.0);
682   AliMatrix(idrotm[704],90.0,47.5,90.0,137.5,180.0,0.0);
683   AliMatrix(idrotm[705],90.0,77.5,90.0,167.5,180.0,0.0);
684   AliMatrix(idrotm[706],90.0,107.5,90.0,197.5,180.0,0.0);
685   AliMatrix(idrotm[707],90.0,137.5,90.0,227.5,180.0,0.0);
686   AliMatrix(idrotm[708],90.0,167.5,90.0,257.5,180.0,0.0);
687   AliMatrix(idrotm[709],90.0,197.5,90.0,287.5,180.0,0.0);
688   AliMatrix(idrotm[710],90.0,227.5,90.0,317.5,180.0,0.0);
689   AliMatrix(idrotm[711],90.0,257.5,90.0,347.5,180.0,0.0);
690   AliMatrix(idrotm[712],90.0,287.5,90.0,17.5,180.0,0.0);
691   AliMatrix(idrotm[713],90.0,317.5,90.0,47.5,180.0,0.0);
692   AliMatrix(idrotm[714],90.0,328.4,90.0,58.4,180.0,0.0);
693   AliMatrix(idrotm[715],90.0,28.4,90.0,118.4,180.0,0.0);
694   AliMatrix(idrotm[716],90.0,88.4,90.0,178.4,180.0,0.0);
695   AliMatrix(idrotm[717],90.0,148.4,90.0,238.4,180.0,0.0);
696   AliMatrix(idrotm[718],90.0,208.4,90.0,298.4,180.0,0.0);
697   AliMatrix(idrotm[719],90.0,268.4,90.0,358.4,180.0,0.0);
698   AliMatrix(idrotm[720],90.0,28.4,90.0,118.4,0.0,0.0);
699   AliMatrix(idrotm[721],90.0,88.4,90.0,178.4,0.0,0.0);
700   AliMatrix(idrotm[722],90.0,148.4,90.0,238.4,0.0,0.0);
701   AliMatrix(idrotm[723],90.0,208.4,90.0,298.4,0.0,0.0);
702   AliMatrix(idrotm[724],90.0,268.4,90.0,358.4,0.0,0.0);
703   AliMatrix(idrotm[725],90.0,328.4,90.0,58.4,0.0,0.0);
704   AliMatrix(idrotm[726],90.0,77.5,90.0,167.5,0.0,0.0);
705   AliMatrix(idrotm[727],90.0,107.5,90.0,197.5,0.0,0.0);
706   AliMatrix(idrotm[728],90.0,137.5,90.0,227.5,0.0,0.0);
707   AliMatrix(idrotm[729],90.0,167.5,90.0,257.5,0.0,0.0);
708   AliMatrix(idrotm[730],90.0,227.5,90.0,317.5,0.0,0.0);
709   AliMatrix(idrotm[731],90.0,257.5,90.0,347.5,0.0,0.0);
710   AliMatrix(idrotm[732],90.0,317.5,90.0,47.5,0.0,0.0);  
711   AliMatrix(idrotm[733],90.0,197.5,90.0,287.5,0.0,0.0);
712   AliMatrix(idrotm[734],90.0,347.5,90.0,77.5,0.0,0.0);
713   AliMatrix(idrotm[735],90.0,47.5,90.0,137.5,0.0,0.0);
714   AliMatrix(idrotm[768],90.0,287.5,90.0,17.5,0.0,0.0);
715   AliMatrix(idrotm[798],90.0,17.5,90.0,107.5,0.0,0.0);
716
717   // Services
718     
719   AliMatrix(idrotm[200], 90., 0., 90., 90., 180., 0.);  
720
721
722   //     CONVERT INTO CM (RL(SI)=9.36 CM) 
723   
724   for (i = 0; i < 6; ++i) {
725     drl[i] = drl[i] / 100. * 9.36;
726   }
727     
728   //     FIELD CAGE HALF LENGTH 
729   
730   rlim  = 56.;
731   zmax  = 76.708;
732   xltpc = 284.;
733   
734   // --- Define ghost volume containing the whole ITS (including services) 
735   //     and fill it with air 
736   
737   dgh[0] = 0.;
738   dgh[1] = 360.;
739   dgh[2] = 12.;
740   dgh[3] = -xltpc-5.-0.1;
741   dgh[4] = 44.9;
742   dgh[5] = 85.;
743   dgh[6] = -xltpc;
744   dgh[7] = 44.9;
745   dgh[8] = 85.;
746   dgh[9] = -xltpc;
747   dgh[10] = 44.9;
748   dgh[11] = 56.1;
749   dgh[12] = -100.7;
750   dgh[13] = 44.9;
751   dgh[14] = 56.1;
752   dgh[15] = -77.2;
753   dgh[16] = 44.9;
754   dgh[17] = 56.1;
755   dgh[18] = -40.;
756   dgh[19] = 3.295;
757   dgh[20] = 56.1; 
758   dgh[21] = 40.;
759   dgh[22] = 3.295;
760   dgh[23] = 56.1;
761   dgh[24] = 77.2;
762   dgh[25] = 44.9;
763   dgh[26] = 56.1;
764   dgh[27] = 100.7;
765   dgh[28] = 44.9;
766   dgh[29] = 56.1;
767   dgh[30] = xltpc;
768   dgh[31] = 61.5;
769   dgh[32] = 61.5+4.;
770   dgh[33] = xltpc;
771   dgh[34] = 61.5;
772   dgh[35] = 85.;
773   dgh[36] = xltpc+4.+0.1;
774   dgh[37] = 62.4;
775   dgh[38] = 85.;
776
777   gMC->Gsvolu("ITSV", "PCON", idtmed[205], dgh, 39);
778   
779   // --- Place the ghost volume in its mother volume (ALIC) and make it 
780   //     invisible 
781   
782   gMC->Gspos("ITSV", 1, "ALIC", 0., 0., 0., 0, "ONLY");
783   //gMC->Gsatt("ITSV", "SEEN", 0); 
784
785
786   // --- Define ghost volume containing the six layers and fill it with air 
787   
788   dgh[0] = 0.;
789   dgh[1] = 360.;
790   dgh[2] = 4.;
791   dgh[3] = -77.2;
792   dgh[4] = 45.;
793   dgh[5] = 56.;
794   dgh[6] = -40.;     
795   dgh[7] = 3.3;
796   dgh[8] = 56.;
797   dgh[9] = 40.;
798   dgh[10] = 3.3;
799   dgh[11] = 56.;
800   dgh[12] = 77.2;
801   dgh[13] = 45.;
802   dgh[14] = 56.;
803   gMC->Gsvolu("ITSD", "PCON", idtmed[205], dgh, 15);
804   
805   // --- Place the ghost volume in its mother volume (ITSV) and make it 
806   //     invisible 
807   
808   gMC->Gspos("ITSD", 1, "ITSV", 0., 0., 0., 0, "ONLY");
809   //gMC->Gsatt("ITSD", "SEEN", 0);
810
811
812
813   // --- Define SPD (option 'a') volumes ----------------------------
814   
815   // SPD - option 'a' 
816   // detector thickness = 100 microns
817   // chip thickness = 150 microns
818   // (this is NOT the default)
819
820   if (option == 1 && thickness == 1) {
821
822      dits[0] = 3.7;
823      dits[1] = 7.75;
824      dits[2] = 24;
825      gMC->Gsvolu("IT12", "TUBE", idtmed[254], dits, 3);   
826
827      dits[0] = 3.7;
828      dits[1] = 7.7;
829      dits[2] = 24;
830      dits[3] = 57;
831      dits[4] = 100;
832      gMC->Gsvolu("I12A", "TUBS", idtmed[254], dits, 5); 
833
834      dits[0] = 0.843;
835      dits[1] = 0.025;
836      dits[2] = 19.344;
837      gMC->Gsvolu("I10A", "BOX ", idtmed[254], dits, 3);  
838
839      dits[0] = 0.843;
840      dits[1] = 0.025;
841      dits[2] = 19.344;
842      gMC->Gsvolu("I20A", "BOX ", idtmed[254], dits, 3);  
843
844      dits[0] = 1.3673;
845      dits[1] = 0.01;
846      dits[2] = 24;
847      gMC->Gsvolu("I123", "BOX ", idtmed[253], dits, 3);
848
849      dits[0] = 0.06;
850      dits[1] = 0.08;
851      dits[2] = 24;
852      dits[3] = -36.79;
853      dits[4] = 21.834;
854      gMC->Gsvolu("I121", "TUBS", idtmed[253], dits, 5);  
855
856      dits[0] = 0.1253;
857      dits[1] = 0.01;
858      dits[2] = 24;
859      gMC->Gsvolu("I122", "BOX ", idtmed[253], dits, 3);  
860
861      dits[0] = 0.04;
862      dits[1] = 0.06 ;
863      dits[2] = 24;
864      dits[3] = 126.79;
865      dits[4] = 270;
866      gMC->Gsvolu("I120", "TUBS", idtmed[253], dits, 5);  
867
868      dits[0] = 0.1134;
869      dits[1] = 0.01;
870      dits[2] = 24;
871      gMC->Gsvolu("I144", "BOX ", idtmed[253], dits, 3);  
872
873      dits[0] = 0.25;
874      dits[1] = 0.06;
875      dits[2] = 24;
876      gMC->Gsvolu("I113", "BOX ", idtmed[254], dits, 3);  
877
878      dits[0] = 0.077;
879      dits[1] = 0.01;
880      dits[2] = 24;
881      gMC->Gsvolu("I143", "BOX ", idtmed[253], dits, 3);   
882
883      dits[0] = 0.04;
884      dits[1] = 0.06;
885      dits[2] = 24;
886      dits[3] = 0;
887      dits[4] = 90;
888      gMC->Gsvolu("I142", "TUBS", idtmed[253], dits, 5); 
889
890      dits[0] = 0.0695;
891      dits[1] = 0.01;
892      dits[2] = 24;
893      gMC->Gsvolu("I141", "BOX ", idtmed[253], dits, 3);  
894
895      dits[0] = 0.06;
896      dits[1] = 0.08;
897      dits[2] = 24;
898      dits[3] = 0;
899      dits[4] = 108;
900      gMC->Gsvolu("I140", "TUBS", idtmed[253], dits, 5);  
901
902      dits[0] = 0.1835;
903      dits[1] = 0.01;
904      dits[2] = 24;
905      gMC->Gsvolu("I139", "BOX ", idtmed[253], dits, 3);
906
907      dits[0] = 0.1894 ;
908      dits[1] = 0.01;
909      dits[2] = 24;
910      gMC->Gsvolu("I138", "BOX ", idtmed[253], dits, 3);  
911
912      dits[0] = 0.04;
913      dits[1] = 0.06;
914      dits[2] = 24;
915      dits[3] = 0;
916      dits[4] = 75.261;
917      gMC->Gsvolu("I137", "TUBS", idtmed[253], dits, 5);  
918
919      dits[0] = 1.3401;
920      dits[1] = 0.01;
921      dits[2] = 24;
922      gMC->Gsvolu("I136", "BOX ", idtmed[253], dits, 3);  
923
924      dits[0] = 0.05;
925      dits[1] = 0.07;
926      dits[2] = 24;
927      dits[3] = 0;
928      dits[4] = 72.739;
929      gMC->Gsvolu("I135", "TUBS", idtmed[253], dits, 5);  
930
931      dits[0] = 0.1193;
932      dits[1] = 0.01;
933      dits[2] = 24;
934      gMC->Gsvolu("I134", "BOX ", idtmed[253], dits, 3);    
935
936      dits[0] = 0.163;
937      dits[1] = 0.01;
938      dits[2] = 24;
939      gMC->Gsvolu("I133", "BOX ", idtmed[253], dits, 3);   
940
941      dits[0] = 0.04;
942      dits[1] = 0.06;
943      dits[2] = 24;
944      dits[3] = 0;
945      dits[4] = 157.633;
946      gMC->Gsvolu("I132", "TUBS", idtmed[253], dits, 5); 
947
948      dits[0] = 0.2497;
949      dits[1] = 0.01;
950      dits[2] = 24;
951      gMC->Gsvolu("I131", "BOX ", idtmed[253], dits, 3); 
952
953      dits[0] = 0.06;
954      dits[1] = 0.08;
955      dits[2] = 24;
956      dits[3] = 0;
957      dits[4] = 148.633;
958      gMC->Gsvolu("I130", "TUBS", idtmed[253], dits, 5); 
959
960      dits[0] = 0.292;
961      dits[1] = 0.01;
962      dits[2] = 24;
963      gMC->Gsvolu("I129", "BOX ", idtmed[253], dits, 3);  
964
965      dits[0] = 0.163;
966      dits[1] = 0.01;
967      dits[2] = 24;
968      gMC->Gsvolu("I128", "BOX ", idtmed[253], dits, 3);  
969
970      dits[0] = 0.04;
971      dits[1] = 0.06;
972      dits[2] = 24;
973      dits[3] = 0;
974      dits[4] = 161.297;
975      gMC->Gsvolu("I126", "TUBS", idtmed[253], dits, 5);
976
977      dits[0] = 0.2433;
978      dits[1] = 0.01;
979      dits[2] = 24;
980      gMC->Gsvolu("I125", "BOX ", idtmed[253], dits, 3);  
981
982      dits[0] = 0.06;
983      dits[1] = 0.08;
984      dits[2] = 24;
985      dits[3] = 0;
986      dits[4] = 42.883;
987      gMC->Gsvolu("I124", "TUBS", idtmed[253], dits, 5);  
988
989      dits[0] = 0.793;
990      dits[1] = 0.0125;
991      dits[2] = 3.536;
992      gMC->Gsvolu("I103", "BOX ", idtmed[254], dits, 3);  
993
994      dits[0] = 0.793;
995      dits[1] = 0.015 ;
996      dits[2] = 2.5;
997      gMC->Gsvolu("I105", "BOX ", idtmed[201], dits, 3);  
998
999      dits[0] = 0.843;
1000      dits[1] = 0.01;
1001      dits[2] = 14.344;
1002      gMC->Gsvolu("I104", "BOX ", idtmed[275], dits, 3);  // bus
1003
1004      dits[0] = 0.793;
1005      dits[1] = 0.0125;
1006      dits[2] = 3.536;
1007      gMC->Gsvolu("I1D3", "BOX ", idtmed[254], dits, 3);
1008
1009      dits[0] = 0.06;
1010      dits[1] = 0.08;
1011      dits[2] = 24;
1012      dits[3] = 0;
1013      dits[4] = 80;
1014      gMC->Gsvolu("I112", "TUBS", idtmed[253], dits, 5);  
1015
1016      dits[0] = 0.04;
1017      dits[1] = 0.06;
1018      dits[2] = 24;
1019      dits[3] = 0;
1020      dits[4] = 80;
1021      gMC->Gsvolu("I111", "TUBS", idtmed[253], dits, 5);  
1022
1023      dits[0] = 0.15;
1024      dits[1] = 0.0146;
1025      dits[2] = 24;
1026      gMC->Gsvolu("I118", "BOX ", idtmed[273], dits, 3);  
1027
1028      dits[0] = 0.1315;
1029      dits[1] = 0.01;
1030      dits[2] = 24;
1031      gMC->Gsvolu("I110", "BOX ", idtmed[253], dits, 3);  
1032
1033      dits[0] = 0.025;
1034      dits[1] = 0.035;
1035      dits[2] = 24;
1036      dits[3] = 0;
1037      dits[4] = 180;
1038      gMC->Gsvolu("I114", "TUBS", idtmed[264], dits, 5);  
1039
1040      dits[0] = 0;
1041      dits[1] = 0.025;
1042      dits[2] = 24;
1043      dits[3] = 0;
1044      dits[4] = 180;
1045      gMC->Gsvolu("I115", "TUBS", idtmed[211], dits, 5);   
1046
1047      dits[0] = 0.063;
1048      dits[1] = 0.035;
1049      dits[2] = 24;
1050      gMC->Gsvolu("I116", "BOX ", idtmed[264], dits, 3); 
1051
1052      dits[0] = 0.705;
1053      dits[1] = 0.005;
1054      dits[2] = 3.536;
1055      gMC->Gsvolu("I101", "BOX ", idtmed[250], dits, 3);  
1056
1057      dits[0] = 0.793;
1058      dits[1] = 0.0075;
1059      dits[2] = 0.68;
1060      gMC->Gsvolu("I102", "BOX ", idtmed[201], dits, 3);   // chip
1061
1062      dits[0] = 0.705;
1063      dits[1] = 0.005;
1064      dits[2] = 3.536;
1065      gMC->Gsvolu("I1D1", "BOX ", idtmed[250], dits, 3);
1066
1067      dits[0] = 0.063;
1068      dits[1] = 0.025;
1069      dits[2] = 24;
1070      gMC->Gsvolu("I117", "BOX ", idtmed[211], dits, 3);  
1071
1072      dits[0] = 0.64;
1073      dits[1] = 0.005;
1074      dits[2] = 3.48;
1075      gMC->Gsvolu("ITS1", "BOX ", idtmed[200], dits, 3);   // detector
1076
1077      dits[0] = 0.64;
1078      dits[1] = 0.005;
1079      dits[2] = 3.48;
1080      gMC->Gsvolu("ITS2", "BOX ", idtmed[200], dits, 3);   // detector  
1081
1082      dits[0] = 3.701;
1083      dits[1] = 7.699;
1084      dits[2] = 4;
1085      dits[3] = 57.1;
1086      dits[4] = 99.9;  
1087      gMC->Gsvolu("I650", "TUBS", idtmed[254], dits, 5);  // was I150 in old geom.
1088
1089      dits[0] = 0;
1090      dits[1] = 0.5;
1091      dits[2] = 1.5;
1092      gMC->Gsvolu("I676", "TUBE", idtmed[274], dits, 3); // was I176 in old geom.
1093
1094      dits[0] = 0;
1095      dits[1] = 0.18;
1096      dits[2] = 0.8;
1097      gMC->Gsvolu("I673", "TUBE", idtmed[274], dits, 3); // was I173 in old geom.
1098
1099      dits[0] = 0;
1100      dits[1] = 0.18;
1101      dits[2] = 3;
1102      gMC->Gsvolu("I671", "TUBE", idtmed[274], dits, 3); // was I171 in old geom.
1103
1104      dits[0] = 0;
1105      dits[1] = 0.075;
1106      dits[2] = 0.8;
1107      gMC->Gsvolu("I669", "TUBE", idtmed[264], dits, 3); // was I169 in old geom.
1108
1109      dits[0] = 3.5;
1110      dits[1] = 5.6;
1111      dits[2] = 0.55;
1112      dits[3] = 0;
1113      dits[4] = 38;
1114      gMC->Gsvolu("I667", "TUBS", idtmed[263], dits, 5); // was I167 in old geom.
1115
1116      dits[0] = 6.6;
1117      dits[1] = 7.6;
1118      dits[2] = 0.5;
1119      dits[3] = 0;
1120      dits[4] = 9;
1121      gMC->Gsvolu("I666", "TUBS", idtmed[263], dits, 5); // was I166 in old geom.
1122
1123      dits[0] = 0.26;
1124      dits[1] = 0.32;
1125      dits[2] = 0.55;
1126      gMC->Gsvolu("I678", "TUBE", idtmed[263], dits, 3); // was I178 in old geom.
1127
1128      dits[0] = 0;
1129      dits[1] = 0.3;
1130      dits[2] = 1.5;
1131      gMC->Gsvolu("I677", "TUBE", idtmed[211], dits, 3); // was I177 in old geom.
1132
1133      dits[0] = 0.07;
1134      dits[1] = 0.125;
1135      dits[2] = 0.3;
1136      gMC->Gsvolu("I675", "TUBE", idtmed[263], dits, 3); // was I175 in old geom.
1137
1138      dits[0] = 0;
1139      dits[1] = 0.1;
1140      dits[2] = 0.8;
1141      gMC->Gsvolu("I674", "TUBE", idtmed[211], dits, 3); // was I174 in old geom.
1142
1143      dits[0] = 0;
1144      dits[1] = 0.1;
1145      dits[2] = 3;
1146      gMC->Gsvolu("I672", "TUBE", idtmed[211], dits, 3); // was I172 in old geom.
1147
1148      dits[0] = 0;
1149      dits[1] = 0.0746;
1150      dits[2] = 0.8;
1151      gMC->Gsvolu("I670", "TUBE", idtmed[211], dits, 3); // was I170 in old geom.
1152
1153      dits[0] = 3.7;
1154      dits[1] = 5.4;
1155      dits[2] = 0.35;
1156      dits[3] = 2;
1157      dits[4] = 36;
1158      gMC->Gsvolu("I668", "TUBS", idtmed[211], dits, 5); // was I168 in old geom.
1159
1160   }
1161
1162
1163   // --- Define SPD (option 'b') volumes ----------------------------
1164   
1165   // SPD - option 'b' 
1166   // detector thickness = 100 microns
1167   // chip thickness = 150 microns
1168   // (this is NOT the default)
1169
1170   if (option == 2 && thickness == 1) {
1171
1172      dits[0] = 3.7;
1173      dits[1] = 7.75;
1174      dits[2] = 24;
1175      gMC->Gsvolu("IT12", "TUBE", idtmed[254], dits, 3);   
1176
1177      dits[0] = 3.7;
1178      dits[1] = 7.7;
1179      dits[2] = 24;
1180      dits[3] = 57;
1181      dits[4] = 100;
1182      gMC->Gsvolu("I12B", "TUBS", idtmed[254], dits, 5); 
1183
1184      dits[0] = 0.843;
1185      dits[1] = 0.025;
1186      dits[2] = 19.344;
1187      gMC->Gsvolu("I10B", "BOX ", idtmed[254], dits, 3);  
1188
1189      dits[0] = 0.843;
1190      dits[1] = 0.025;
1191      dits[2] = 19.344;
1192      gMC->Gsvolu("I20B", "BOX ", idtmed[254], dits, 3);  
1193
1194      dits[0] = 1.3673;
1195      dits[1] = 0.01;
1196      dits[2] = 24;
1197      gMC->Gsvolu("I123", "BOX ", idtmed[253], dits, 3);
1198
1199      dits[0] = 0.06;
1200      dits[1] = 0.08;
1201      dits[2] = 24;
1202      dits[3] = -36.79;
1203      dits[4] = 21.834;
1204      gMC->Gsvolu("I121", "TUBS", idtmed[253], dits, 5);  
1205
1206      dits[0] = 0.1253;
1207      dits[1] = 0.01;
1208      dits[2] = 24;
1209      gMC->Gsvolu("I122", "BOX ", idtmed[253], dits, 3);  
1210
1211      dits[0] = 0.04;
1212      dits[1] = 0.06 ;
1213      dits[2] = 24;
1214      dits[3] = 126.79;
1215      dits[4] = 270;
1216      gMC->Gsvolu("I120", "TUBS", idtmed[253], dits, 5);  
1217
1218      dits[0] = 0.1134;
1219      dits[1] = 0.01;
1220      dits[2] = 24;
1221      gMC->Gsvolu("I144", "BOX ", idtmed[253], dits, 3);  
1222
1223      dits[0] = 0.25;
1224      dits[1] = 0.06;
1225      dits[2] = 24;
1226      gMC->Gsvolu("I113", "BOX ", idtmed[254], dits, 3);  
1227
1228      dits[0] = 0.077;
1229      dits[1] = 0.01;
1230      dits[2] = 24;
1231      gMC->Gsvolu("I143", "BOX ", idtmed[253], dits, 3);   
1232
1233      dits[0] = 0.04;
1234      dits[1] = 0.06;
1235      dits[2] = 24;
1236      dits[3] = 0;
1237      dits[4] = 90;
1238      gMC->Gsvolu("I142", "TUBS", idtmed[253], dits, 5); 
1239
1240      dits[0] = 0.0695;
1241      dits[1] = 0.01;
1242      dits[2] = 24;
1243      gMC->Gsvolu("I141", "BOX ", idtmed[253], dits, 3);  
1244
1245      dits[0] = 0.06;
1246      dits[1] = 0.08;
1247      dits[2] = 24;
1248      dits[3] = 0;
1249      dits[4] = 108;
1250      gMC->Gsvolu("I140", "TUBS", idtmed[253], dits, 5);  
1251
1252      dits[0] = 0.1835;
1253      dits[1] = 0.01;
1254      dits[2] = 24;
1255      gMC->Gsvolu("I139", "BOX ", idtmed[253], dits, 3);
1256
1257      dits[0] = 0.1894 ;
1258      dits[1] = 0.01;
1259      dits[2] = 24;
1260      gMC->Gsvolu("I138", "BOX ", idtmed[253], dits, 3);  
1261
1262      dits[0] = 0.04;
1263      dits[1] = 0.06;
1264      dits[2] = 24;
1265      dits[3] = 0;
1266      dits[4] = 75.261;
1267      gMC->Gsvolu("I137", "TUBS", idtmed[253], dits, 5);  
1268
1269      dits[0] = 1.3401;
1270      dits[1] = 0.01;
1271      dits[2] = 24;
1272      gMC->Gsvolu("I136", "BOX ", idtmed[253], dits, 3);  
1273
1274      dits[0] = 0.05;
1275      dits[1] = 0.07;
1276      dits[2] = 24;
1277      dits[3] = 0;
1278      dits[4] = 72.739;
1279      gMC->Gsvolu("I135", "TUBS", idtmed[253], dits, 5);  
1280
1281      dits[0] = 0.1193;
1282      dits[1] = 0.01;
1283      dits[2] = 24;
1284      gMC->Gsvolu("I134", "BOX ", idtmed[253], dits, 3);    
1285
1286      dits[0] = 0.163;
1287      dits[1] = 0.01;
1288      dits[2] = 24;
1289      gMC->Gsvolu("I133", "BOX ", idtmed[253], dits, 3);   
1290
1291      dits[0] = 0.04;
1292      dits[1] = 0.06;
1293      dits[2] = 24;
1294      dits[3] = 0;
1295      dits[4] = 157.633;
1296      gMC->Gsvolu("I132", "TUBS", idtmed[253], dits, 5); 
1297
1298      dits[0] = 0.2497;
1299      dits[1] = 0.01;
1300      dits[2] = 24;
1301      gMC->Gsvolu("I131", "BOX ", idtmed[253], dits, 3); 
1302
1303      dits[0] = 0.06;
1304      dits[1] = 0.08;
1305      dits[2] = 24;
1306      dits[3] = 0;
1307      dits[4] = 148.633;
1308      gMC->Gsvolu("I130", "TUBS", idtmed[253], dits, 5); 
1309
1310      dits[0] = 0.292;
1311      dits[1] = 0.01;
1312      dits[2] = 24;
1313      gMC->Gsvolu("I129", "BOX ", idtmed[253], dits, 3);  
1314
1315      dits[0] = 0.163;
1316      dits[1] = 0.01;
1317      dits[2] = 24;
1318      gMC->Gsvolu("I128", "BOX ", idtmed[253], dits, 3);  
1319
1320      dits[0] = 0.04;
1321      dits[1] = 0.06;
1322      dits[2] = 24;
1323      dits[3] = 0;
1324      dits[4] = 161.297;
1325      gMC->Gsvolu("I126", "TUBS", idtmed[253], dits, 5);
1326
1327      dits[0] = 0.2433;
1328      dits[1] = 0.01;
1329      dits[2] = 24;
1330      gMC->Gsvolu("I125", "BOX ", idtmed[253], dits, 3);  
1331
1332      dits[0] = 0.06;
1333      dits[1] = 0.08;
1334      dits[2] = 24;
1335      dits[3] = 0;
1336      dits[4] = 42.883;
1337      gMC->Gsvolu("I124", "TUBS", idtmed[253], dits, 5);  
1338
1339      dits[0] = 0.793;
1340      dits[1] = 0.015 ;
1341      dits[2] = 2.5;
1342      gMC->Gsvolu("I105", "BOX ", idtmed[201], dits, 3);  
1343
1344      dits[0] = 0.793;
1345      dits[1] = 0.0125;
1346      dits[2] = 3.536;
1347      gMC->Gsvolu("I107", "BOX ", idtmed[254], dits, 3);    
1348
1349      dits[0] = 0.705;
1350      dits[1] = 0.01;
1351      dits[2] = 2.5;
1352      gMC->Gsvolu("I109", "BOX ", idtmed[275], dits, 3);  
1353
1354      dits[0] = 0.705;
1355      dits[1] = 0.01;
1356      dits[2] = 14.344;
1357      gMC->Gsvolu("I108", "BOX ", idtmed[275], dits, 3);    // bus
1358
1359      dits[0] = 0.7975;
1360      dits[1] = 0.0125;
1361      dits[2] = 3.536;
1362      gMC->Gsvolu("I1D7", "BOX ", idtmed[254], dits, 3);
1363
1364      dits[0] = 0.06;
1365      dits[1] = 0.08;
1366      dits[2] = 24;
1367      dits[3] = 0;
1368      dits[4] = 80;
1369      gMC->Gsvolu("I112", "TUBS", idtmed[253], dits, 5);  
1370
1371      dits[0] = 0.04;
1372      dits[1] = 0.06;
1373      dits[2] = 24;
1374      dits[3] = 0;
1375      dits[4] = 80;
1376      gMC->Gsvolu("I111", "TUBS", idtmed[253], dits, 5);  
1377
1378      dits[0] = 0.15;
1379      dits[1] = 0.0146;
1380      dits[2] = 24;
1381      gMC->Gsvolu("I118", "BOX ", idtmed[273], dits, 3);  
1382
1383      dits[0] = 0.1315;
1384      dits[1] = 0.01;
1385      dits[2] = 24;
1386      gMC->Gsvolu("I110", "BOX ", idtmed[253], dits, 3);  
1387
1388      dits[0] = 0.025;
1389      dits[1] = 0.035;
1390      dits[2] = 24;
1391      dits[3] = 0;
1392      dits[4] = 180;
1393      gMC->Gsvolu("I114", "TUBS", idtmed[264], dits, 5);  
1394
1395      dits[0] = 0;
1396      dits[1] = 0.025;
1397      dits[2] = 24;
1398      dits[3] = 0;
1399      dits[4] = 180;
1400      gMC->Gsvolu("I115", "TUBS", idtmed[211], dits, 5);   
1401
1402      dits[0] = 0.063;
1403      dits[1] = 0.035;
1404      dits[2] = 24;
1405      gMC->Gsvolu("I116", "BOX ", idtmed[264], dits, 3); 
1406
1407      dits[0] = 0.7975;
1408      dits[1] = 0.0075;
1409      dits[2] = 0.68;
1410      gMC->Gsvolu("I106", "BOX ", idtmed[203], dits, 3);   // chip
1411
1412      dits[0] = 0.705;
1413      dits[1] = 0.005;
1414      dits[2] = 3.536;
1415      gMC->Gsvolu("I101", "BOX ", idtmed[250], dits, 3);  
1416
1417      dits[0] = 0.705;
1418      dits[1] = 0.005;
1419      dits[2] = 3.536;
1420      gMC->Gsvolu("I1D1", "BOX ", idtmed[250], dits, 3);    
1421
1422      dits[0] = 0.063;
1423      dits[1] = 0.025;
1424      dits[2] = 24;
1425      gMC->Gsvolu("I117", "BOX ", idtmed[211], dits, 3);  
1426
1427      dits[0] = 0.64;
1428      dits[1] = 0.005;
1429      dits[2] = 3.48;
1430      gMC->Gsvolu("ITS1", "BOX ", idtmed[200], dits, 3);   // detector
1431
1432      dits[0] = 0.64;
1433      dits[1] = 0.005;
1434      dits[2] = 3.48;
1435      gMC->Gsvolu("ITS2", "BOX ", idtmed[200], dits, 3);   // detector 
1436
1437      dits[0] = 3.701;
1438      dits[1] = 7.699;
1439      dits[2] = 4;
1440      dits[3] = 57.1;
1441      dits[4] = 99.9;  
1442      gMC->Gsvolu("I650", "TUBS", idtmed[254], dits, 5);  // was I150 in old geom.
1443
1444      dits[0] = 0;
1445      dits[1] = 0.5;
1446      dits[2] = 1.5;
1447      gMC->Gsvolu("I676", "TUBE", idtmed[274], dits, 3); // was I176 in old geom.
1448
1449      dits[0] = 0;
1450      dits[1] = 0.18;
1451      dits[2] = 0.8;
1452      gMC->Gsvolu("I673", "TUBE", idtmed[274], dits, 3); // was I173 in old geom.
1453
1454      dits[0] = 0;
1455      dits[1] = 0.18;
1456      dits[2] = 3;
1457      gMC->Gsvolu("I671", "TUBE", idtmed[274], dits, 3); // was I171 in old geom.
1458
1459      dits[0] = 0;
1460      dits[1] = 0.075;
1461      dits[2] = 0.8;
1462      gMC->Gsvolu("I669", "TUBE", idtmed[264], dits, 3); // was I169 in old geom.
1463
1464      dits[0] = 3.5;
1465      dits[1] = 5.6;
1466      dits[2] = 0.55;
1467      dits[3] = 0;
1468      dits[4] = 38;
1469      gMC->Gsvolu("I667", "TUBS", idtmed[263], dits, 5); // was I167 in old geom.
1470
1471      dits[0] = 6.6;
1472      dits[1] = 7.6;
1473      dits[2] = 0.5;
1474      dits[3] = 0;
1475      dits[4] = 9;
1476      gMC->Gsvolu("I666", "TUBS", idtmed[263], dits, 5); // was I166 in old geom.
1477
1478      dits[0] = 0.26;
1479      dits[1] = 0.32;
1480      dits[2] = 0.55;
1481      gMC->Gsvolu("I678", "TUBE", idtmed[263], dits, 3); // was I178 in old geom.
1482
1483      dits[0] = 0;
1484      dits[1] = 0.3;
1485      dits[2] = 1.5;
1486      gMC->Gsvolu("I677", "TUBE", idtmed[211], dits, 3); // was I177 in old geom.
1487
1488      dits[0] = 0.07;
1489      dits[1] = 0.125;
1490      dits[2] = 0.3;
1491      gMC->Gsvolu("I675", "TUBE", idtmed[263], dits, 3); // was I175 in old geom.
1492
1493      dits[0] = 0;
1494      dits[1] = 0.1;
1495      dits[2] = 0.8;
1496      gMC->Gsvolu("I674", "TUBE", idtmed[211], dits, 3); // was I174 in old geom.
1497
1498      dits[0] = 0;
1499      dits[1] = 0.1;
1500      dits[2] = 3;
1501      gMC->Gsvolu("I672", "TUBE", idtmed[211], dits, 3); // was I172 in old geom.
1502
1503      dits[0] = 0;
1504      dits[1] = 0.0746;
1505      dits[2] = 0.8;
1506      gMC->Gsvolu("I670", "TUBE", idtmed[211], dits, 3); // was I170 in old geom.
1507
1508      dits[0] = 3.7;
1509      dits[1] = 5.4;
1510      dits[2] = 0.35;
1511      dits[3] = 2;
1512      dits[4] = 36;
1513      gMC->Gsvolu("I668", "TUBS", idtmed[211], dits, 5); // was I168 in old geom.
1514
1515   }
1516
1517   // --- Define SPD (option 'a') volumes ----------------------------
1518   
1519   // SPD - option 'a' 
1520   // detector thickness = 300 microns
1521   // chip thickness = 300 microns
1522   // (this is NOT the default)
1523
1524   if (option == 1 && thickness == 2) {
1525   
1526      dits[0] = 3.7;
1527      dits[1] = 7.75;
1528      dits[2] = 24;
1529      gMC->Gsvolu("IT12", "TUBE", idtmed[254], dits, 3);   
1530
1531      dits[0] = 3.7;
1532      dits[1] = 7.7;
1533      dits[2] = 24;
1534      dits[3] = 57;
1535      dits[4] = 100;
1536      gMC->Gsvolu("I12A", "TUBS", idtmed[254], dits, 5);    // sector
1537
1538      dits[0] = 0.843;
1539      dits[1] = 0.0425;
1540      dits[2] = 19.344;
1541      gMC->Gsvolu("I10A", "BOX ", idtmed[254], dits, 3);    // lower ladder
1542
1543      dits[0] = 0.843;
1544      dits[1] = 0.0425;
1545      dits[2] = 19.344;
1546      gMC->Gsvolu("I20A", "BOX ", idtmed[254], dits, 3);    // upper ladder
1547
1548      dits[0] = 1.3673;
1549      dits[1] = 0.01;
1550      dits[2] = 24;
1551      gMC->Gsvolu("I123", "BOX ", idtmed[253], dits, 3);
1552
1553      dits[0] = 0.06;
1554      dits[1] = 0.08;
1555      dits[2] = 24;
1556      dits[3] = -36.79;
1557      dits[4] = 21.834;
1558      gMC->Gsvolu("I121", "TUBS", idtmed[253], dits, 5);  
1559
1560      dits[0] = 0.1253;
1561      dits[1] = 0.01;
1562      dits[2] = 24;
1563      gMC->Gsvolu("I122", "BOX ", idtmed[253], dits, 3);  
1564
1565      dits[0] = 0.04;
1566      dits[1] = 0.06 ;
1567      dits[2] = 24;
1568      dits[3] = 126.79;
1569      dits[4] = 270;
1570      gMC->Gsvolu("I120", "TUBS", idtmed[253], dits, 5);  
1571
1572      dits[0] = 0.1134;
1573      dits[1] = 0.01;
1574      dits[2] = 24;
1575      gMC->Gsvolu("I144", "BOX ", idtmed[253], dits, 3);  
1576
1577      dits[0] = 0.25;
1578      dits[1] = 0.06;
1579      dits[2] = 24;
1580      gMC->Gsvolu("I113", "BOX ", idtmed[254], dits, 3);  
1581
1582      dits[0] = 0.077;
1583      dits[1] = 0.01;
1584      dits[2] = 24;
1585      gMC->Gsvolu("I143", "BOX ", idtmed[253], dits, 3);   
1586
1587      dits[0] = 0.04;
1588      dits[1] = 0.06;
1589      dits[2] = 24;
1590      dits[3] = 0;
1591      dits[4] = 90;
1592      gMC->Gsvolu("I142", "TUBS", idtmed[253], dits, 5); 
1593
1594      dits[0] = 0.0695;
1595      dits[1] = 0.01;
1596      dits[2] = 24;
1597      gMC->Gsvolu("I141", "BOX ", idtmed[253], dits, 3);  
1598
1599      dits[0] = 0.06;
1600      dits[1] = 0.08;
1601      dits[2] = 24;
1602      dits[3] = 0;
1603      dits[4] = 108;
1604      gMC->Gsvolu("I140", "TUBS", idtmed[253], dits, 5);  
1605
1606      dits[0] = 0.1835;
1607      dits[1] = 0.01;
1608      dits[2] = 24;
1609      gMC->Gsvolu("I139", "BOX ", idtmed[253], dits, 3);
1610
1611      dits[0] = 0.1894 ;
1612      dits[1] = 0.01;
1613      dits[2] = 24;
1614      gMC->Gsvolu("I138", "BOX ", idtmed[253], dits, 3);  
1615
1616      dits[0] = 0.04;
1617      dits[1] = 0.06;
1618      dits[2] = 24;
1619      dits[3] = 0;
1620      dits[4] = 75.261;
1621      gMC->Gsvolu("I137", "TUBS", idtmed[253], dits, 5);  
1622
1623      dits[0] = 1.3401;
1624      dits[1] = 0.01;
1625      dits[2] = 24;
1626      gMC->Gsvolu("I136", "BOX ", idtmed[253], dits, 3);  
1627
1628      dits[0] = 0.05;
1629      dits[1] = 0.07;
1630      dits[2] = 24;
1631      dits[3] = 0;
1632      dits[4] = 72.739;
1633      gMC->Gsvolu("I135", "TUBS", idtmed[253], dits, 5);  
1634
1635      dits[0] = 0.1193;
1636      dits[1] = 0.01;
1637      dits[2] = 24;
1638      gMC->Gsvolu("I134", "BOX ", idtmed[253], dits, 3);    
1639
1640      dits[0] = 0.163;
1641      dits[1] = 0.01;
1642      dits[2] = 24;
1643      gMC->Gsvolu("I133", "BOX ", idtmed[253], dits, 3);   
1644
1645      dits[0] = 0.04;
1646      dits[1] = 0.06;
1647      dits[2] = 24;
1648      dits[3] = 0;
1649      dits[4] = 157.633;
1650      gMC->Gsvolu("I132", "TUBS", idtmed[253], dits, 5); 
1651
1652      dits[0] = 0.2497;
1653      dits[1] = 0.01;
1654      dits[2] = 24;
1655      gMC->Gsvolu("I131", "BOX ", idtmed[253], dits, 3); 
1656
1657      dits[0] = 0.06;
1658      dits[1] = 0.08;
1659      dits[2] = 24;
1660      dits[3] = 0;
1661      dits[4] = 148.633;
1662      gMC->Gsvolu("I130", "TUBS", idtmed[253], dits, 5); 
1663
1664      dits[0] = 0.292;
1665      dits[1] = 0.01;
1666      dits[2] = 24;
1667      gMC->Gsvolu("I129", "BOX ", idtmed[253], dits, 3);  
1668
1669      dits[0] = 0.163;
1670      dits[1] = 0.01;
1671      dits[2] = 24;
1672      gMC->Gsvolu("I128", "BOX ", idtmed[253], dits, 3);  
1673
1674      dits[0] = 0.04;
1675      dits[1] = 0.06;
1676      dits[2] = 24;
1677      dits[3] = 0;
1678      dits[4] = 161.297;
1679      gMC->Gsvolu("I126", "TUBS", idtmed[253], dits, 5);
1680
1681      dits[0] = 0.2433;
1682      dits[1] = 0.01;
1683      dits[2] = 24;
1684      gMC->Gsvolu("I125", "BOX ", idtmed[253], dits, 3);  
1685
1686      dits[0] = 0.06;
1687      dits[1] = 0.08;
1688      dits[2] = 24;
1689      dits[3] = 0;
1690      dits[4] = 42.883;
1691      gMC->Gsvolu("I124", "TUBS", idtmed[253], dits, 5);  
1692
1693      dits[0] = 0.793;
1694      dits[1] = 0.03;
1695      dits[2] = 3.536;
1696      gMC->Gsvolu("I103", "BOX ", idtmed[254], dits, 3); // contains det and chip  
1697
1698      dits[0] = 0.793;
1699      dits[1] = 0.015;
1700      dits[2] = 2.5;
1701      gMC->Gsvolu("I105", "BOX ", idtmed[201], dits, 3);  
1702
1703      dits[0] = 0.843;
1704      dits[1] = 0.01;
1705      dits[2] = 14.344;
1706      gMC->Gsvolu("I104", "BOX ", idtmed[275], dits, 3);  // bus
1707
1708      dits[0] = 0.793;
1709      dits[1] = 0.03;
1710      dits[2] = 3.536;
1711      gMC->Gsvolu("I1D3", "BOX ", idtmed[254], dits, 3); // contains det and chip
1712
1713      dits[0] = 0.06;
1714      dits[1] = 0.08;
1715      dits[2] = 24;
1716      dits[3] = 0;
1717      dits[4] = 80;
1718      gMC->Gsvolu("I112", "TUBS", idtmed[253], dits, 5);  
1719
1720      dits[0] = 0.04;
1721      dits[1] = 0.06;
1722      dits[2] = 24;
1723      dits[3] = 0;
1724      dits[4] = 80;
1725      gMC->Gsvolu("I111", "TUBS", idtmed[253], dits, 5);  
1726
1727      dits[0] = 0.15;
1728      dits[1] = 0.0146;
1729      dits[2] = 24;
1730      gMC->Gsvolu("I118", "BOX ", idtmed[273], dits, 3);  
1731
1732      dits[0] = 0.1315;
1733      dits[1] = 0.01;
1734      dits[2] = 24;
1735      gMC->Gsvolu("I110", "BOX ", idtmed[253], dits, 3);  
1736
1737      dits[0] = 0.025;
1738      dits[1] = 0.035;
1739      dits[2] = 24;
1740      dits[3] = 0;
1741      dits[4] = 180;
1742      gMC->Gsvolu("I114", "TUBS", idtmed[264], dits, 5);  
1743
1744      dits[0] = 0;
1745      dits[1] = 0.025;
1746      dits[2] = 24;
1747      dits[3] = 0;
1748      dits[4] = 180;
1749      gMC->Gsvolu("I115", "TUBS", idtmed[211], dits, 5);   
1750
1751      dits[0] = 0.063;
1752      dits[1] = 0.035;
1753      dits[2] = 24;
1754      gMC->Gsvolu("I116", "BOX ", idtmed[264], dits, 3); 
1755
1756      dits[0] = 0.705;
1757      dits[1] = 0.015;
1758      dits[2] = 3.536;
1759      gMC->Gsvolu("I101", "BOX ", idtmed[250], dits, 3);   // contains detector 
1760
1761      dits[0] = 0.793;
1762      dits[1] = 0.015;
1763      dits[2] = 0.68;
1764      gMC->Gsvolu("I102", "BOX ", idtmed[201], dits, 3);   // chip
1765
1766      dits[0] = 0.705;
1767      dits[1] = 0.015;
1768      dits[2] = 3.536;
1769      gMC->Gsvolu("I1D1", "BOX ", idtmed[250], dits, 3);   // contains detector 
1770
1771      dits[0] = 0.063;
1772      dits[1] = 0.025;
1773      dits[2] = 24;
1774      gMC->Gsvolu("I117", "BOX ", idtmed[211], dits, 3);  
1775
1776      dits[0] = 0.64;
1777      dits[1] = 0.015;
1778      dits[2] = 3.48;
1779      gMC->Gsvolu("ITS1", "BOX ", idtmed[200], dits, 3);   // detector
1780
1781      dits[0] = 0.64;
1782      dits[1] = 0.015;
1783      dits[2] = 3.48;
1784      gMC->Gsvolu("ITS2", "BOX ", idtmed[200], dits, 3);   // detector  
1785
1786      dits[0] = 3.701;
1787      dits[1] = 7.699;
1788      dits[2] = 4;
1789      dits[3] = 57.1;
1790      dits[4] = 99.9;  
1791      gMC->Gsvolu("I650", "TUBS", idtmed[254], dits, 5);  // was I150 in old geom.
1792
1793      dits[0] = 0;
1794      dits[1] = 0.5;
1795      dits[2] = 1.5;
1796      gMC->Gsvolu("I676", "TUBE", idtmed[274], dits, 3); // was I176 in old geom.
1797
1798      dits[0] = 0;
1799      dits[1] = 0.18;
1800      dits[2] = 0.8;
1801      gMC->Gsvolu("I673", "TUBE", idtmed[274], dits, 3); // was I173 in old geom.
1802
1803      dits[0] = 0;
1804      dits[1] = 0.18;
1805      dits[2] = 3;
1806      gMC->Gsvolu("I671", "TUBE", idtmed[274], dits, 3); // was I171 in old geom.
1807
1808      dits[0] = 0;
1809      dits[1] = 0.075;
1810      dits[2] = 0.8;
1811      gMC->Gsvolu("I669", "TUBE", idtmed[264], dits, 3); // was I169 in old geom.
1812
1813      dits[0] = 3.5;
1814      dits[1] = 5.6;
1815      dits[2] = 0.55;
1816      dits[3] = 0;
1817      dits[4] = 38;
1818      gMC->Gsvolu("I667", "TUBS", idtmed[263], dits, 5); // was I167 in old geom.
1819
1820      dits[0] = 6.6;
1821      dits[1] = 7.6;
1822      dits[2] = 0.5;
1823      dits[3] = 0;
1824      dits[4] = 9;
1825      gMC->Gsvolu("I666", "TUBS", idtmed[263], dits, 5); // was I166 in old geom.
1826
1827      dits[0] = 0.26;
1828      dits[1] = 0.32;
1829      dits[2] = 0.55;
1830      gMC->Gsvolu("I678", "TUBE", idtmed[263], dits, 3); // was I178 in old geom.
1831
1832      dits[0] = 0;
1833      dits[1] = 0.3;
1834      dits[2] = 1.5;
1835      gMC->Gsvolu("I677", "TUBE", idtmed[211], dits, 3); // was I177 in old geom.
1836
1837      dits[0] = 0.07;
1838      dits[1] = 0.125;
1839      dits[2] = 0.3;
1840      gMC->Gsvolu("I675", "TUBE", idtmed[263], dits, 3); // was I175 in old geom.
1841
1842      dits[0] = 0;
1843      dits[1] = 0.1;
1844      dits[2] = 0.8;
1845      gMC->Gsvolu("I674", "TUBE", idtmed[211], dits, 3); // was I174 in old geom.
1846
1847      dits[0] = 0;
1848      dits[1] = 0.1;
1849      dits[2] = 3;
1850      gMC->Gsvolu("I672", "TUBE", idtmed[211], dits, 3); // was I172 in old geom.
1851
1852      dits[0] = 0;
1853      dits[1] = 0.0746;
1854      dits[2] = 0.8;
1855      gMC->Gsvolu("I670", "TUBE", idtmed[211], dits, 3); // was I170 in old geom.
1856
1857      dits[0] = 3.7;
1858      dits[1] = 5.4;
1859      dits[2] = 0.35;
1860      dits[3] = 2;
1861      dits[4] = 36;
1862      gMC->Gsvolu("I668", "TUBS", idtmed[211], dits, 5); // was I168 in old geom.
1863
1864   }
1865
1866   // --- Define SPD (option 'b') volumes ----------------------------
1867   
1868   // SPD - option 'b' 
1869   // detector thickness = 300 microns
1870   // chip thickness = 300 microns
1871   // (this is the default)
1872
1873   if (option == 2 && thickness == 2) {
1874   
1875      dits[0] = 3.7;
1876      dits[1] = 7.75;
1877      dits[2] = 24;
1878      gMC->Gsvolu("IT12", "TUBE", idtmed[254], dits, 3);   
1879
1880      dits[0] = 3.7;
1881      dits[1] = 7.7;
1882      dits[2] = 24;
1883      dits[3] = 57;
1884      dits[4] = 100;
1885      gMC->Gsvolu("I12B", "TUBS", idtmed[254], dits, 5);   // sector
1886
1887      dits[0] = 0.843;
1888      dits[1] = 0.0425;
1889      dits[2] = 19.344;
1890      gMC->Gsvolu("I10B", "BOX ", idtmed[254], dits, 3);   // lower ladder
1891
1892      dits[0] = 0.843;
1893      dits[1] = 0.0425;   
1894      dits[2] = 19.344;
1895      gMC->Gsvolu("I20B", "BOX ", idtmed[254], dits, 3);   // upper ladder
1896
1897      dits[0] = 1.3673;
1898      dits[1] = 0.01;
1899      dits[2] = 24;
1900      gMC->Gsvolu("I123", "BOX ", idtmed[253], dits, 3);
1901
1902      dits[0] = 0.06;
1903      dits[1] = 0.08;
1904      dits[2] = 24;
1905      dits[3] = -36.79;
1906      dits[4] = 21.834;
1907      gMC->Gsvolu("I121", "TUBS", idtmed[253], dits, 5);  
1908
1909      dits[0] = 0.1253;
1910      dits[1] = 0.01;
1911      dits[2] = 24;
1912      gMC->Gsvolu("I122", "BOX ", idtmed[253], dits, 3);  
1913
1914      dits[0] = 0.04;
1915      dits[1] = 0.06 ;
1916      dits[2] = 24;
1917      dits[3] = 126.79;
1918      dits[4] = 270;
1919      gMC->Gsvolu("I120", "TUBS", idtmed[253], dits, 5);  
1920
1921      dits[0] = 0.1134;
1922      dits[1] = 0.01;
1923      dits[2] = 24;
1924      gMC->Gsvolu("I144", "BOX ", idtmed[253], dits, 3);  
1925
1926      dits[0] = 0.25;
1927      dits[1] = 0.06;
1928      dits[2] = 24;
1929      gMC->Gsvolu("I113", "BOX ", idtmed[254], dits, 3);  
1930
1931      dits[0] = 0.077;
1932      dits[1] = 0.01;
1933      dits[2] = 24;
1934      gMC->Gsvolu("I143", "BOX ", idtmed[253], dits, 3);   
1935
1936      dits[0] = 0.04;
1937      dits[1] = 0.06;
1938      dits[2] = 24;
1939      dits[3] = 0;
1940      dits[4] = 90;
1941      gMC->Gsvolu("I142", "TUBS", idtmed[253], dits, 5); 
1942
1943      dits[0] = 0.0695;
1944      dits[1] = 0.01;
1945      dits[2] = 24;
1946      gMC->Gsvolu("I141", "BOX ", idtmed[253], dits, 3);  
1947
1948      dits[0] = 0.06;
1949      dits[1] = 0.08;
1950      dits[2] = 24;
1951      dits[3] = 0;
1952      dits[4] = 108;
1953      gMC->Gsvolu("I140", "TUBS", idtmed[253], dits, 5);  
1954
1955      dits[0] = 0.1835;
1956      dits[1] = 0.01;
1957      dits[2] = 24;
1958      gMC->Gsvolu("I139", "BOX ", idtmed[253], dits, 3);
1959
1960      dits[0] = 0.1894 ;
1961      dits[1] = 0.01;
1962      dits[2] = 24;
1963      gMC->Gsvolu("I138", "BOX ", idtmed[253], dits, 3);  
1964
1965      dits[0] = 0.04;
1966      dits[1] = 0.06;
1967      dits[2] = 24;
1968      dits[3] = 0;
1969      dits[4] = 75.261;
1970      gMC->Gsvolu("I137", "TUBS", idtmed[253], dits, 5);  
1971
1972      dits[0] = 1.3401;
1973      dits[1] = 0.01;
1974      dits[2] = 24;
1975      gMC->Gsvolu("I136", "BOX ", idtmed[253], dits, 3);  
1976
1977      dits[0] = 0.05;
1978      dits[1] = 0.07;
1979      dits[2] = 24;
1980      dits[3] = 0;
1981      dits[4] = 72.739;
1982      gMC->Gsvolu("I135", "TUBS", idtmed[253], dits, 5);  
1983
1984      dits[0] = 0.1193;
1985      dits[1] = 0.01;
1986      dits[2] = 24;
1987      gMC->Gsvolu("I134", "BOX ", idtmed[253], dits, 3);    
1988
1989      dits[0] = 0.163;
1990      dits[1] = 0.01;
1991      dits[2] = 24;
1992      gMC->Gsvolu("I133", "BOX ", idtmed[253], dits, 3);   
1993
1994      dits[0] = 0.04;
1995      dits[1] = 0.06;
1996      dits[2] = 24;
1997      dits[3] = 0;
1998      dits[4] = 157.633;
1999      gMC->Gsvolu("I132", "TUBS", idtmed[253], dits, 5); 
2000
2001      dits[0] = 0.2497;
2002      dits[1] = 0.01;
2003      dits[2] = 24;
2004      gMC->Gsvolu("I131", "BOX ", idtmed[253], dits, 3); 
2005
2006      dits[0] = 0.06;
2007      dits[1] = 0.08;
2008      dits[2] = 24;
2009      dits[3] = 0;
2010      dits[4] = 148.633;
2011      gMC->Gsvolu("I130", "TUBS", idtmed[253], dits, 5); 
2012
2013      dits[0] = 0.292;
2014      dits[1] = 0.01;
2015      dits[2] = 24;
2016      gMC->Gsvolu("I129", "BOX ", idtmed[253], dits, 3);  
2017
2018      dits[0] = 0.163;
2019      dits[1] = 0.01;
2020      dits[2] = 24;
2021      gMC->Gsvolu("I128", "BOX ", idtmed[253], dits, 3);  
2022
2023      dits[0] = 0.04;
2024      dits[1] = 0.06;
2025      dits[2] = 24;
2026      dits[3] = 0;
2027      dits[4] = 161.297;
2028      gMC->Gsvolu("I126", "TUBS", idtmed[253], dits, 5);
2029
2030      dits[0] = 0.2433;
2031      dits[1] = 0.01;
2032      dits[2] = 24;
2033      gMC->Gsvolu("I125", "BOX ", idtmed[253], dits, 3);  
2034
2035      dits[0] = 0.06;
2036      dits[1] = 0.08;
2037      dits[2] = 24;
2038      dits[3] = 0;
2039      dits[4] = 42.883;
2040      gMC->Gsvolu("I124", "TUBS", idtmed[253], dits, 5);  
2041
2042      dits[0] = 0.793;
2043      dits[1] = 0.015 ;
2044      dits[2] = 2.5;
2045      gMC->Gsvolu("I105", "BOX ", idtmed[201], dits, 3);  
2046
2047      dits[0] = 0.793;
2048      dits[1] = 0.03;
2049      dits[2] = 3.536;
2050      gMC->Gsvolu("I107", "BOX ", idtmed[254], dits, 3); // contains det and chip   
2051
2052      dits[0] = 0.705;
2053      dits[1] = 0.01;
2054      dits[2] = 2.5;
2055      gMC->Gsvolu("I109", "BOX ", idtmed[275], dits, 3);  
2056
2057      dits[0] = 0.705;
2058      dits[1] = 0.01;
2059      dits[2] = 14.344;
2060      gMC->Gsvolu("I108", "BOX ", idtmed[275], dits, 3); // bus 
2061
2062      dits[0] = 0.7975;
2063      dits[1] = 0.03;   
2064      dits[2] = 3.536;
2065      gMC->Gsvolu("I1D7", "BOX ", idtmed[254], dits, 3); // contains det and chip
2066
2067      dits[0] = 0.06;
2068      dits[1] = 0.08;
2069      dits[2] = 24;
2070      dits[3] = 0;
2071      dits[4] = 80;
2072      gMC->Gsvolu("I112", "TUBS", idtmed[253], dits, 5);  
2073
2074      dits[0] = 0.04;
2075      dits[1] = 0.06;
2076      dits[2] = 24;
2077      dits[3] = 0;
2078      dits[4] = 80;
2079      gMC->Gsvolu("I111", "TUBS", idtmed[253], dits, 5);  
2080
2081      dits[0] = 0.15;
2082      dits[1] = 0.0146;
2083      dits[2] = 24;
2084      gMC->Gsvolu("I118", "BOX ", idtmed[273], dits, 3);  
2085
2086      dits[0] = 0.1315;
2087      dits[1] = 0.01;
2088      dits[2] = 24;
2089      gMC->Gsvolu("I110", "BOX ", idtmed[253], dits, 3);  
2090
2091      dits[0] = 0.025;
2092      dits[1] = 0.035;
2093      dits[2] = 24;
2094      dits[3] = 0;
2095      dits[4] = 180;
2096      gMC->Gsvolu("I114", "TUBS", idtmed[264], dits, 5);  
2097
2098      dits[0] = 0;
2099      dits[1] = 0.025;
2100      dits[2] = 24;
2101      dits[3] = 0;
2102      dits[4] = 180;
2103      gMC->Gsvolu("I115", "TUBS", idtmed[211], dits, 5);   
2104
2105      dits[0] = 0.063;
2106      dits[1] = 0.035;
2107      dits[2] = 24;
2108      gMC->Gsvolu("I116", "BOX ", idtmed[264], dits, 3); 
2109
2110      dits[0] = 0.7975;
2111      dits[1] = 0.015;   
2112      dits[2] = 0.68;
2113      gMC->Gsvolu("I106", "BOX ", idtmed[203], dits, 3);   // chip
2114
2115      dits[0] = 0.705;
2116      dits[1] = 0.015;
2117      dits[2] = 3.536;
2118      gMC->Gsvolu("I101", "BOX ", idtmed[250], dits, 3);  // contains detector  
2119
2120      dits[0] = 0.705;
2121      dits[1] = 0.015;   
2122      dits[2] = 3.536;
2123      gMC->Gsvolu("I1D1", "BOX ", idtmed[250], dits, 3);  // contains detector  
2124
2125      dits[0] = 0.063;
2126      dits[1] = 0.025;
2127      dits[2] = 24;
2128      gMC->Gsvolu("I117", "BOX ", idtmed[211], dits, 3);  
2129
2130      dits[0] = 0.64;
2131      dits[1] = 0.015;
2132      dits[2] = 3.48;
2133      gMC->Gsvolu("ITS1", "BOX ", idtmed[200], dits, 3);   // detector
2134
2135      dits[0] = 0.64;
2136      dits[1] = 0.015;  
2137      dits[2] = 3.48;
2138      gMC->Gsvolu("ITS2", "BOX ", idtmed[200], dits, 3);   // detector 
2139
2140      dits[0] = 3.701;
2141      dits[1] = 7.699;
2142      dits[2] = 4;
2143      dits[3] = 57.1;
2144      dits[4] = 99.9;  
2145      gMC->Gsvolu("I650", "TUBS", idtmed[254], dits, 5);  // was I150 in old geom.
2146
2147      dits[0] = 0;
2148      dits[1] = 0.5;
2149      dits[2] = 1.5;
2150      gMC->Gsvolu("I676", "TUBE", idtmed[274], dits, 3); // was I176 in old geom.
2151
2152      dits[0] = 0;
2153      dits[1] = 0.18;
2154      dits[2] = 0.8;
2155      gMC->Gsvolu("I673", "TUBE", idtmed[274], dits, 3); // was I173 in old geom.
2156
2157      dits[0] = 0;
2158      dits[1] = 0.18;
2159      dits[2] = 3;
2160      gMC->Gsvolu("I671", "TUBE", idtmed[274], dits, 3); // was I171 in old geom.
2161
2162      dits[0] = 0;
2163      dits[1] = 0.075;
2164      dits[2] = 0.8;
2165      gMC->Gsvolu("I669", "TUBE", idtmed[264], dits, 3); // was I169 in old geom.
2166
2167      dits[0] = 3.5;
2168      dits[1] = 5.6;
2169      dits[2] = 0.55;
2170      dits[3] = 0;
2171      dits[4] = 38;
2172      gMC->Gsvolu("I667", "TUBS", idtmed[263], dits, 5); // was I167 in old geom.
2173
2174      dits[0] = 6.6;
2175      dits[1] = 7.6;
2176      dits[2] = 0.5;
2177      dits[3] = 0;
2178      dits[4] = 9;
2179      gMC->Gsvolu("I666", "TUBS", idtmed[263], dits, 5); // was I166 in old geom.
2180
2181      dits[0] = 0.26;
2182      dits[1] = 0.32;
2183      dits[2] = 0.55;
2184      gMC->Gsvolu("I678", "TUBE", idtmed[263], dits, 3); // was I178 in old geom.
2185
2186      dits[0] = 0;
2187      dits[1] = 0.3;
2188      dits[2] = 1.5;
2189      gMC->Gsvolu("I677", "TUBE", idtmed[211], dits, 3); // was I177 in old geom.
2190
2191      dits[0] = 0.07;
2192      dits[1] = 0.125;
2193      dits[2] = 0.3;
2194      gMC->Gsvolu("I675", "TUBE", idtmed[263], dits, 3); // was I175 in old geom.
2195
2196      dits[0] = 0;
2197      dits[1] = 0.1;
2198      dits[2] = 0.8;
2199      gMC->Gsvolu("I674", "TUBE", idtmed[211], dits, 3); // was I174 in old geom.
2200
2201      dits[0] = 0;
2202      dits[1] = 0.1;
2203      dits[2] = 3;
2204      gMC->Gsvolu("I672", "TUBE", idtmed[211], dits, 3); // was I172 in old geom.
2205
2206      dits[0] = 0;
2207      dits[1] = 0.0746;
2208      dits[2] = 0.8;
2209      gMC->Gsvolu("I670", "TUBE", idtmed[211], dits, 3); // was I170 in old geom.
2210
2211      dits[0] = 3.7;
2212      dits[1] = 5.4;
2213      dits[2] = 0.35;
2214      dits[3] = 2;
2215      dits[4] = 36;
2216      gMC->Gsvolu("I668", "TUBS", idtmed[211], dits, 5); // was I168 in old geom.
2217
2218   }
2219
2220   // --- Define SDD volumes ------------------------------------------
2221
2222   
2223   dits[0] = 0;
2224   dits[1] = 360;
2225   dits[2] = 6;
2226   dits[3] = -34.6;
2227   dits[4] = 23.495;
2228   dits[5] = 28.5;
2229   dits[6] = -27.35; 
2230   dits[7] = 23.495;
2231   dits[8] = 28.5;
2232   dits[9] = -27.35;  
2233   dits[10] = 14.595; 
2234   dits[11] = 28.5;
2235   dits[12] = 27.35;   
2236   dits[13] = 14.595;
2237   dits[14] = 28.5;
2238   dits[15] = 27.35;    
2239   dits[16] = 23.495;
2240   dits[17] = 28.5;
2241   dits[18] = 34.65;
2242   dits[19] = 23.495;
2243   dits[20] = 28.5;
2244   gMC->Gsvolu("IT34", "PCON", idtmed[209], dits, 21);  
2245
2246   dits[0] = 3.2;
2247   dits[1] = 2;
2248   dits[2] = 34.65;
2249   gMC->Gsvolu("I048", "BOX ", idtmed[209], dits, 3);  
2250
2251   dits[0] = 3.63;
2252   dits[1] = 0.135;
2253   dits[2] = 30.385;
2254   gMC->Gsvolu("I005", "BOX ", idtmed[209], dits, 3);  
2255
2256   dits[0] = 3.2;
2257   dits[1] = 2;
2258   dits[2] = 27.35; 
2259   gMC->Gsvolu("I047", "BOX ", idtmed[209], dits, 3);  
2260
2261   dits[0] = 3.63;
2262   dits[1] = 0.135;
2263   dits[2] = 23.05;
2264   gMC->Gsvolu("I004", "BOX ", idtmed[209], dits, 3);  
2265
2266   dits[0] = 3.2;
2267   dits[1] = 2;
2268   dits[2] = 2.725;
2269   gMC->Gsvolu("I024", "BOX ", idtmed[209], dits, 3);  
2270
2271   dits[0] = 3.2;
2272   dits[1] = 2;
2273   dits[2] = 3.65;
2274   gMC->Gsvolu("I018", "BOX ", idtmed[209], dits, 3);  
2275
2276   dits[0] = 3.625;
2277   dits[1] = 0.015;
2278   dits[2] = 4.382;
2279   gMC->Gsvolu("I302", "BOX ", idtmed[206], dits, 3);  
2280
2281   dits[0] = 3.625;
2282   dits[1] = 0.015;
2283   dits[2] = 4.382;
2284   gMC->Gsvolu("I402", "BOX ", idtmed[206], dits, 3);  
2285
2286   dits[0] = 0.2;
2287   dits[1] = 0.1815;
2288   dits[2] = 2.725;
2289   dits[3] = 0.015;
2290   gMC->Gsvolu("I025", "TRD1", idtmed[208], dits, 4);  
2291
2292   dits[0] = 0.183;
2293   dits[1] = 0.165;
2294   dits[2] = 2.725;
2295   dits[3] = 0.015;
2296   gMC->Gsvolu("I026", "TRD1", idtmed[208], dits, 4);  
2297
2298   dits[0] = 2.23;
2299   dits[1] = 2.1;
2300   dits[2] = 0.05;
2301   dits[3] = 0.03;
2302   gMC->Gsvolu("I021", "TRD1", idtmed[208], dits, 4);  
2303
2304   dits[0] = 2.615;
2305   dits[1] = 2.465;
2306   dits[2] = 0.06;
2307   dits[3] = 0.04;
2308   gMC->Gsvolu("I023", "TRD1", idtmed[208], dits, 4);  
2309
2310   dits[0] = 2.1;
2311   dits[1] = 2;
2312   dits[2] = 0.06;
2313   dits[3] = 0.04;
2314   gMC->Gsvolu("I022", "TRD1", idtmed[208], dits, 4);  
2315
2316   dits[0] = 2.15;
2317   dits[1] = 0.2;
2318   dits[2] = 0.85;
2319   gMC->Gsvolu("I028", "BOX ", idtmed[263], dits, 3);  
2320
2321   dits[0] = 1.25;
2322   dits[1] = 0.6;
2323   dits[2] = 0.075;
2324   gMC->Gsvolu("I029", "BOX ", idtmed[263], dits, 3);  
2325
2326   dits[0] = 1.25;
2327   dits[1] = 0.1;
2328   dits[2] = 0.075;
2329   dits[3] = 1;
2330   gMC->Gsvolu("I030", "TRD1", idtmed[263], dits, 4);  
2331
2332   dits[0] = 1.6;
2333   dits[1] = 7;
2334   dits[2] = 0;
2335   dits[3] = 0.075;
2336   dits[4] = 0.775;
2337   dits[5] = 0.775;
2338   dits[6] = 0;
2339   dits[7] = 0.075;
2340   dits[8] = 0.376;
2341   dits[9] = 0.376;
2342   dits[10] = 0;
2343   gMC->Gsvolu("I027", "TRAP", idtmed[263], dits, 11);  
2344
2345   dits[0] = 0;
2346   dits[1] = 0.093;
2347   dits[2] = 2.725;
2348   gMC->Gsvolu("I032", "TUBE", idtmed[211], dits, 3);  
2349
2350   dits[0] = 0.093;
2351   dits[1] = 0.1;
2352   dits[2] = 2.725;
2353   gMC->Gsvolu("I031", "TUBE", idtmed[264], dits, 3);  
2354
2355   dits[0] = 0.7;
2356   dits[1] = 0.002;
2357   dits[2] = 2.725;
2358   gMC->Gsvolu("I046", "BOX ", idtmed[269], dits, 3);  
2359
2360   dits[0] = 0.2;
2361   dits[1] = 0.182;
2362   dits[2] = 3.65;
2363   dits[3] = 0.015;
2364   gMC->Gsvolu("I019", "TRD1", idtmed[208], dits, 4);  
2365
2366   dits[0] = 0.183;
2367   dits[1] = 0.165;
2368   dits[2] = 3.65;
2369   dits[3] = 0.015;
2370   gMC->Gsvolu("I020", "TRD1", idtmed[208], dits, 4);  
2371
2372   dits[0] = 0.3;
2373   dits[1] = 0.05;
2374   dits[2] = 0.15;
2375   gMC->Gsvolu("I033", "BOX ", idtmed[208], dits, 3);  
2376
2377   dits[0] = 0.2;
2378   dits[1] = 0.01;
2379   dits[2] = 0.05;
2380   gMC->Gsvolu("I036", "BOX ", idtmed[208], dits, 3);  
2381
2382   dits[0] = 0;
2383   dits[1] = 0.05;
2384   dits[2] = 0.225;
2385   gMC->Gsvolu("I034", "TUBE", idtmed[208], dits, 3);  
2386
2387   dits[0] = 0.1;
2388   dits[1] = 0.15;
2389   dits[2] = 0.2;
2390   gMC->Gsvolu("I035", "TUBE", idtmed[208], dits, 3);
2391
2392   dits[0] = 0.7;
2393   dits[1] = 0.002;
2394   dits[2] = 3.65;
2395   gMC->Gsvolu("I045", "BOX ", idtmed[269], dits, 3);  
2396
2397   dits[0] = 0;
2398   dits[1] = 0.093;
2399   dits[2] = 3.65;
2400   gMC->Gsvolu("I038", "TUBE", idtmed[211], dits, 3);  
2401
2402   dits[0] = 0.093;
2403   dits[1] = 0.1;
2404   dits[2] = 3.65;
2405   gMC->Gsvolu("I037", "TUBE", idtmed[264], dits, 3);
2406   
2407   dits[0] = 1;
2408   dits[1] = 0.01;
2409   dits[2] = 3.6;
2410   gMC->Gsvolu("I039", "BOX ", idtmed[268], dits, 3);  
2411
2412   dits[0] = 0.25;
2413   dits[1] = 0.01;
2414   dits[2] = 3.4;
2415   gMC->Gsvolu("I040", "BOX ", idtmed[268], dits, 3);  
2416
2417   dits[0] = 0.1;
2418   dits[1] = 0.12;
2419   dits[2] = 3.4;
2420   dits[3] = 90;
2421   dits[4] = 320;
2422   gMC->Gsvolu("I041", "TUBS", idtmed[268], dits, 5);  
2423
2424   dits[0] = 0.4;
2425   dits[1] = 0.015;
2426   dits[2] = 0.4;
2427   gMC->Gsvolu("I042", "BOX ", idtmed[206], dits, 3);  
2428
2429   dits[0] = 0.25;
2430   dits[1] = 0.015;
2431   dits[2] = 0.25;
2432   gMC->Gsvolu("I043", "BOX ", idtmed[206], dits, 3);  
2433
2434   dits[0] = 0.75;
2435   dits[1] = 0.002;
2436   dits[2] = 3.4;
2437   gMC->Gsvolu("I044", "BOX ", idtmed[269], dits, 3);  
2438
2439   dits[0] = 1.8125;
2440   dits[1] = 3.81;
2441   dits[2] = 0;
2442   dits[3] = 0.015;
2443   dits[4] = 0.242;
2444   dits[5] = 0.242;
2445   dits[6] = 0;
2446   dits[7] = 0.015;
2447   dits[8] = 1E-03;
2448   dits[9] = 1E-03;
2449   dits[10] = 0;
2450   gMC->Gsvolu("I303", "TRAP", idtmed[206], dits, 11);  
2451
2452   dits[0] = 1.8125;
2453   dits[1] = 3.81;
2454   dits[2] = 0;
2455   dits[3] = 0.015;
2456   dits[4] = 0.242;
2457   dits[5] = 0.242;
2458   dits[6] = 0;
2459   dits[7] = 0.015;
2460   dits[8] = 1E-03;
2461   dits[9] = 1E-03;
2462   dits[10] = 0;
2463   gMC->Gsvolu("I403", "TRAP", idtmed[206], dits, 11);  
2464
2465   dits[0] = 3.5;
2466   dits[1] = 0.01499; // not 0.015 because it is included into I302 which is 0.015
2467   dits[2] = 3.763;
2468   gMC->Gsvolu("ITS3", "BOX ", idtmed[200], dits, 3);  
2469
2470   dits[0] = 3.5;
2471   dits[1] = 0.01499; // not 0.015 because it is included into I402 which is 0.015
2472   dits[2] = 3.763;
2473   gMC->Gsvolu("ITS4", "BOX ", idtmed[200], dits, 3);  
2474
2475
2476   // --- Define SSD volumes ------------------------------------------
2477
2478     
2479   dits[0] = 0;
2480   dits[1] = 360;
2481   dits[2] = 6;
2482   dits[3] = -57.5;
2483   dits[4] = 43.5;
2484   dits[5] = 48;  
2485   dits[6] = -47.2; 
2486   dits[7] = 43.5;
2487   dits[8] = 48;  
2488   dits[9] = -47.2;  
2489   dits[10] = 36.7;
2490   dits[11] = 48;  
2491   dits[12] = 47.2;  
2492   dits[13] = 36.7;
2493   dits[14] = 48;  
2494   dits[15] = 47.2;  
2495   dits[16] = 43.5;
2496   dits[17] = 48;  
2497   dits[18] = 56.96;
2498   dits[19] = 43.5;
2499   dits[20] = 48;   
2500   gMC->Gsvolu("IT56", "PCON", idtmed[220], dits, 21);   
2501   
2502   dits[0] =  3.4;
2503   dits[1] = 1.955;
2504   dits[2] = 56.5; 
2505   gMC->Gsvolu("I570", "BOX ", idtmed[204], dits, 3);  
2506   
2507   dits[0] = 3.75;
2508   dits[1] = 0.045;
2509   dits[2] = 50.975;
2510   gMC->Gsvolu("I569", "BOX ", idtmed[204], dits, 3);  
2511   
2512   dits[0] = 3.4;
2513   dits[1] = 1.955;
2514   dits[2] = 47; 
2515   gMC->Gsvolu("I571", "BOX ", idtmed[204], dits, 3);  
2516   
2517   dits[0] = 3.75;
2518   dits[1] = 0.045;
2519   dits[2] = 43.3;  
2520   gMC->Gsvolu("I565", "BOX ", idtmed[204], dits, 3);  
2521   
2522   dits[0] = 3.4;
2523   dits[1] = 1.955;
2524   dits[2] = 3.15;
2525   gMC->Gsvolu("I553", "BOX ", idtmed[204], dits, 3);  
2526   
2527   dits[0] = 3.405;
2528   dits[1] = 1.955;
2529   dits[2] = 1.955;
2530   gMC->Gsvolu("I523", "BOX ", idtmed[204], dits, 3);  
2531   
2532   dits[0] = 3.75;
2533   dits[1] = 0.015;
2534   dits[2] = 2.1;
2535   gMC->Gsvolu("I566", "BOX ", idtmed[206], dits, 3); 
2536   
2537   dits[0] = 3.4;
2538   dits[1] = 1.955;
2539   dits[2] = 3.15;
2540   gMC->Gsvolu("I544", "BOX ", idtmed[204], dits, 3);  
2541   
2542   dits[0] = 3.41;
2543   dits[1] = 1.955;
2544   dits[2] = 1.955;
2545   gMC->Gsvolu("I516", "BOX ", idtmed[204], dits, 3);  
2546   
2547   dits[0] = 3.75;
2548   dits[1] = 0.015;
2549   dits[2] = 2.1;
2550   gMC->Gsvolu("I562", "BOX ", idtmed[206], dits, 3);   
2551   
2552   dits[0] = 0;
2553   dits[1] = 0.07;
2554   dits[2] = 3.15;
2555   gMC->Gsvolu("I559", "TUBE", idtmed[211], dits, 3);  
2556   
2557   dits[0] = 0.07;
2558   dits[1] = 0.1;
2559   dits[2] = 3.15;
2560   gMC->Gsvolu("I560", "TUBE", idtmed[210], dits, 3);  
2561   
2562   dits[0] = 0.225;
2563   dits[1] = 0.195;
2564   dits[2] = 3.15;
2565   dits[3] = 0.025;
2566   gMC->Gsvolu("I558", "TRD1", idtmed[203], dits, 4);  
2567   
2568   dits[0] = 0.25;
2569   dits[1] = 0.22;
2570   dits[2] = 3.15;
2571   dits[3] = 0.025;
2572   gMC->Gsvolu("I557", "TRD1", idtmed[203], dits, 4);  
2573   
2574   dits[0] = 2.17;
2575   dits[1] = 0.035;
2576   dits[2] = 0.05;
2577   gMC->Gsvolu("I556", "BOX ", idtmed[203], dits, 3);  
2578   
2579   dits[0] = 2 ;
2580   dits[1] = 0.035;
2581   dits[2] = 0.05;
2582   gMC->Gsvolu("I554", "BOX ", idtmed[203], dits, 3);  
2583   
2584   dits[0] = 2.675;
2585   dits[1] = 0.035;
2586   dits[2] = 0.05;
2587   gMC->Gsvolu("I555", "BOX ", idtmed[203], dits, 3); 
2588   
2589   dits[0] = 0.3;
2590   dits[1] = 0.15;
2591   dits[2] = 0.15;
2592   gMC->Gsvolu("I561", "BOX ", idtmed[203], dits, 3);  
2593   
2594   dits[0] = 0.025;
2595   dits[1] = 0.025;
2596   dits[2] = 0.05;
2597   gMC->Gsvolu("I519", "BOX ", idtmed[214], dits, 3);  
2598   
2599   dits[0] = 0.304;
2600   dits[1] = 0.0275;
2601   dits[2] = 0.432;
2602   gMC->Gsvolu("I521", "BOX ", idtmed[206], dits, 3);   
2603   
2604   dits[0] = 0.16;
2605   dits[1] = 0.08;
2606   dits[2] = 0.08;
2607   gMC->Gsvolu("I520", "BOX ", idtmed[214], dits, 3);  
2608   
2609   dits[0] = 3.4;
2610   dits[1] = 0.015;
2611   dits[2] = 0.525;
2612   gMC->Gsvolu("I518", "BOX ", idtmed[203], dits, 3);  
2613   
2614   dits[0] = 0.15;
2615   dits[1] = 0.105;
2616   dits[2] = 0.29;
2617   dits[3] = 0.08;
2618   gMC->Gsvolu("I522", "TRD1", idtmed[203], dits, 4);  
2619   
2620   dits[0] = 0.07;
2621   dits[1] = 0.1;
2622   dits[2] = 1.955;
2623   gMC->Gsvolu("I542", "TUBE", idtmed[210], dits, 3);  
2624   
2625   dits[0] = 0;
2626   dits[1] = 0.07;
2627   dits[2] = 1.955;
2628   gMC->Gsvolu("I541", "TUBE", idtmed[211], dits, 3);  
2629   
2630   dits[0] = 0.3;
2631   dits[1] = 0.15;
2632   dits[2] = 0.15;
2633   gMC->Gsvolu("I543", "BOX ", idtmed[203], dits, 3);  
2634   
2635   dits[0] = 0.25;
2636   dits[1] = 0.22;
2637   dits[2] = 1.955;
2638   dits[3] = 0.025;
2639   gMC->Gsvolu("I537", "TRD1", idtmed[203], dits, 4); 
2640   
2641   dits[0] = 0.225;
2642   dits[1] = 0.195;
2643   dits[2] = 1.955;
2644   dits[4] = 0.025;
2645   gMC->Gsvolu("I538", "TRD1", idtmed[203], dits, 4);  
2646   
2647   dits[0] = 2.17;
2648   dits[1] = 0.035;
2649   dits[2] = 0.05;
2650   gMC->Gsvolu("I536", "BOX ", idtmed[203], dits, 3);  
2651   
2652   dits[0] = 2.675;
2653   dits[1] = 0.035;
2654   dits[2] = 0.05;
2655   gMC->Gsvolu("I535", "BOX ", idtmed[203], dits, 3);   
2656   
2657   dits[0] = 2;
2658   dits[1] = 0.035;
2659   dits[2] = 0.05;
2660   gMC->Gsvolu("I534", "BOX ", idtmed[203], dits, 3);  
2661   
2662   dits[0] = 0;
2663   dits[1] = 0.05;
2664   dits[2] = 0.17;
2665   gMC->Gsvolu("I540", "TUBE", idtmed[203], dits, 3);  
2666   
2667   dits[0] = 0;
2668   dits[1] = 0.05;
2669   dits[2] = 0.205;
2670   gMC->Gsvolu("I539", "TUBE", idtmed[203], dits, 3);  
2671   
2672   dits[0] = 3.65;
2673   dits[1] = 0.015;
2674   dits[2] = 2;
2675   gMC->Gsvolu("ITS6", "BOX ", idtmed[200], dits, 3);  
2676   
2677   dits[0] = 0;
2678   dits[1] = 0.07;
2679   dits[2] = 3.15;
2680   gMC->Gsvolu("I550", "TUBE", idtmed[211], dits, 3);  
2681   
2682   dits[0] = 0.07;
2683   dits[1] = 0.1;
2684   dits[2] = 3.15;
2685   gMC->Gsvolu("I551", "TUBE", idtmed[210], dits, 3);  
2686   
2687   dits[0] = 0.225;
2688   dits[1] = 0.195;
2689   dits[2] = 3.15;
2690   dits[3] = 0.025;
2691   gMC->Gsvolu("I549", "TRD1", idtmed[203], dits, 4); 
2692   
2693   dits[0] = 0.25;
2694   dits[1] = 0.22;
2695   dits[2] = 3.15;
2696   dits[3] = 0.025;
2697   gMC->Gsvolu("I548", "TRD1", idtmed[203], dits, 4);  
2698   
2699   dits[0] = 2.17;
2700   dits[1] = 0.035;
2701   dits[2] = 0.05;
2702   gMC->Gsvolu("I547", "BOX ", idtmed[203], dits, 3);  
2703   
2704   dits[0] = 2;
2705   dits[1] = 0.035;
2706   dits[2] = 0.05;
2707   gMC->Gsvolu("I545", "BOX ", idtmed[203], dits, 3);   
2708   
2709   dits[0] = 2.675;
2710   dits[1] = 0.035;
2711   dits[2] = 0.05;
2712   gMC->Gsvolu("I546", "BOX ", idtmed[203], dits, 3);  
2713   
2714   dits[0] = 0.3;
2715   dits[1] = 0.15;
2716   dits[2] = 0.15;
2717   gMC->Gsvolu("I552", "BOX ", idtmed[203], dits, 3);  
2718   
2719   dits[0] = 0.304;
2720   dits[1] = 0.0275;
2721   dits[2] = 0.4322;
2722   gMC->Gsvolu("I515", "BOX ", idtmed[206], dits, 3);  
2723   
2724   dits[0] = 0.025;
2725   dits[1] = 0.025;
2726   dits[2] = 0.05;
2727   gMC->Gsvolu("I513", "BOX ", idtmed[214], dits, 3);  
2728   
2729   dits[0] = 0.16;
2730   dits[1] = 0.08;
2731   dits[2] = 0.08;
2732   gMC->Gsvolu("I514", "BOX ", idtmed[214], dits, 3);  
2733   
2734   dits[0] = 3.4;
2735   dits[1] = 0.015;
2736   dits[2] = 0.525;
2737   gMC->Gsvolu("I512", "BOX ", idtmed[203], dits, 3);  
2738   
2739   dits[0] = 0.225;
2740   dits[1] = 0.195;
2741   dits[2] = 1.955;
2742   dits[3] = 0.025;
2743   gMC->Gsvolu("I528", "TRD1", idtmed[203], dits, 4); 
2744   
2745   dits[0] = 0.25;
2746   dits[1] = 0.22;
2747   dits[2] = 1.955;
2748   dits[3] = 0.025;
2749   gMC->Gsvolu("I527", "TRD1", idtmed[203], dits, 4);  
2750   
2751   dits[0] = 2.17;
2752   dits[1] = 0.035;
2753   dits[2] = 0.05;
2754   gMC->Gsvolu("I526", "BOX ", idtmed[203], dits, 3);  
2755   
2756   dits[0] = 2.675;
2757   dits[1] = 0.035;
2758   dits[2] = 0.05;
2759   gMC->Gsvolu("I525", "BOX ", idtmed[203], dits, 3);  
2760    
2761   dits[0] = 2;
2762   dits[1] = 0.035;
2763   dits[2] = 0.05;
2764   gMC->Gsvolu("I524", "BOX ", idtmed[203], dits, 3);  
2765    
2766   dits[0] = 0;
2767   dits[1] = 0.05;
2768   dits[2] = 0.205;
2769   gMC->Gsvolu("I529", "TUBE", idtmed[203], dits, 3);  
2770    
2771   dits[0] = 0;
2772   dits[1] = 0.05;
2773   dits[2] = 0.17;
2774   gMC->Gsvolu("I530", "TUBE", idtmed[203], dits, 3);  
2775    
2776   dits[0] = 0.15;
2777   dits[1] = 0.105;
2778   dits[2] = 0.29;
2779   dits[3] = 0.08;
2780   gMC->Gsvolu("I517", "TRD1", idtmed[203], dits, 4);  
2781   
2782   dits[0] = 0;
2783   dits[1] = 0.07;
2784   dits[2] = 1.955;
2785   gMC->Gsvolu("I531", "TUBE", idtmed[211], dits, 3);  
2786      
2787   dits[0] = 0.07;
2788   dits[1] = 0.1;
2789   dits[2] = 1.955;
2790   gMC->Gsvolu("I532", "TUBE", idtmed[210], dits, 3);  
2791  
2792   dits[0] = 0.3;
2793   dits[1] = 0.15;
2794   dits[2] = 0.15;
2795   gMC->Gsvolu("I533", "BOX ", idtmed[203], dits, 3);  
2796   
2797   dits[0] = 3.65;
2798   dits[1] = 0.015;
2799   dits[2] = 2;
2800   gMC->Gsvolu("ITS5", "BOX ", idtmed[200], dits, 3);  
2801
2802
2803   // --- Define volumes of shield between SPD and SDD ----------------
2804
2805
2806   dits[0] = 8.37;
2807   dits[1] = 9.93;
2808   dits[2] = 25;
2809   gMC->Gsvolu("IC01", "TUBE", idtmed[289], dits, 3);   
2810
2811   dits[0] = 8.3;
2812   dits[1] = 10;
2813   dits[2] = 17.5/2.;
2814   gMC->Gsvolu("IC02", "TUBE", idtmed[289], dits, 3);    
2815   
2816  
2817    // --- Define volumes of cylinder between SDD and SSD --------------
2818   
2819   
2820   dits[0] = (59.5-0.13/2.)/2.;
2821   dits[1] = (59.5+0.13/2.)/2.;
2822   dits[2] = 56.2;
2823   gMC->Gsvolu("ICY2", "TUBE", idtmed[225], dits, 3);
2824          
2825
2826
2827   // --- Define volumes of SDD cone ---------------------------------- 
2828
2829   dits[0] = 0;
2830   dits[1] = 360;
2831   dits[2] = 12;
2832   dits[3] = -59.7;
2833   dits[4] = 27;
2834   dits[5] = 28;
2835   dits[6] = -42.7;
2836   dits[7] = 10;
2837   dits[8] = 28;
2838   dits[9] = -34.65;
2839   dits[10] = 10;
2840   dits[11] = 28;
2841   dits[12] = -34.65;
2842   dits[13] = 10;
2843   dits[14] = 23.495;
2844   dits[15] = -23.7;
2845   dits[16] = 10;
2846   dits[17] = 23.495;
2847   dits[18] = -23.7;
2848   dits[19] = 10;
2849   dits[20] = 14.595;
2850   dits[21] = 23.7;
2851   dits[22] = 10;
2852   dits[23] = 14.595;
2853   dits[24] = 23.7;
2854   dits[25] = 10;
2855   dits[26] = 23.495;
2856   dits[27] = 34.65;
2857   dits[28] = 10;
2858   dits[29] = 23.495;
2859   dits[30] = 34.65;
2860   dits[31] = 10;
2861   dits[32] = 28;
2862   dits[33] = 42.6263;
2863   dits[34] = 10;
2864   dits[35] = 28;
2865   dits[36] = 59.7;
2866   dits[37] = 27.2637;
2867   dits[38] = 28;             
2868   gMC->Gsvolu("IS02", "PCON", idtmed[204], dits, 39);
2869   
2870   dits[0] = 0;
2871   dits[1] = 360;
2872   dits[2] = 6;
2873   dits[3] = 39.4;
2874   dits[4] = 10.065;
2875   dits[5] = 12.7;
2876   dits[6] = 40.66;
2877   dits[7] = 10.065;
2878   dits[8] = 13.96;
2879   dits[9] = 40.66;
2880   dits[10] = 12.1781;
2881   dits[11] = 13.96;
2882   dits[12] = 54.7;
2883   dits[13] = 26.2181;
2884   dits[14] = 28;
2885   dits[15] = 55.2219;
2886   dits[16] = 26.74;
2887   dits[17] = 28;
2888   dits[18] = 57.4;
2889   dits[19] = 26.74;
2890   dits[20] = 28;
2891   gMC->Gsvolu("I093", "PCON", idtmed[272], dits, 21);  // SDD cone
2892
2893   dits[0] = 0;
2894   dits[1] = 50;
2895   dits[2] = 3;
2896   dits[3] = 27.35;  // 23.7
2897   dits[4] = 14;
2898   dits[5] = 18.75;
2899   dits[6] = 46.7-3;
2900   dits[7] = 14;
2901   dits[8] = 18.75;
2902   dits[9] = 51.45-3;
2903   dits[10] = 18.75;
2904   dits[11] = 18.75;
2905   gMC->Gsvolu("I099", "PCON", idtmed[292], dits, 12); // SDD 3 end-ladder elect.
2906
2907   dits[0] = 0;
2908   dits[1] = 25;
2909   dits[2] = 3;
2910   dits[3] = 34.65;
2911   dits[4] = 23.4;
2912   dits[5] = 26.4;
2913   dits[6] = 56.1-3;
2914   dits[7] = 23.4;
2915   dits[8] = 26.4;
2916   dits[9] = 59.1-3;
2917   dits[10] = 26.4;
2918   dits[11] = 26.4;
2919   gMC->Gsvolu("I200", "PCON", idtmed[292], dits, 12); // SDD 4 end-ladder elect.
2920
2921   dits[0] = 10.065;
2922   dits[1] = 11;
2923   dits[2] = 0.25;
2924   gMC->Gsvolu("I090", "TUBE", idtmed[208], dits, 3);
2925
2926   dits[0] = 10.001;
2927   dits[1] = 10.065;
2928   dits[2] = 40;
2929   gMC->Gsvolu("I089", "TUBE", idtmed[208], dits, 3);
2930
2931   dits[0] = 21.95;
2932   dits[1] = 24.2;
2933   dits[2] = 1;
2934   gMC->Gsvolu("I098", "TUBE", idtmed[204], dits, 3);
2935
2936   dits[0] = 13.1;
2937   dits[1] = 15.4;
2938   dits[2] = 1;
2939   gMC->Gsvolu("I097", "TUBE", idtmed[204], dits, 3);
2940
2941   dits[0] = 1;
2942   dits[1] = 1;
2943   dits[2] = 7.74;
2944   gMC->Gsvolu("I202", "BOX ", idtmed[272], dits, 3);
2945
2946   dits[0] = 1;
2947   dits[1] = 1;
2948   dits[2] = 9.14;
2949   gMC->Gsvolu("I203", "BOX ", idtmed[272], dits, 3);
2950
2951   dits[0] = 21.95;
2952   dits[1] = 22.95;
2953   dits[2] = 1;
2954   gMC->Gsvolu("I095", "TUBE", idtmed[224], dits, 3);
2955
2956   dits[0] = 3;
2957   dits[1] = 2.7;
2958   dits[2] = 1;
2959   dits[3] = 0.63;
2960   gMC->Gsvolu("I096", "TRD1", idtmed[264], dits, 4);
2961
2962   dits[0] = 13.1;
2963   dits[1] = 14.1;
2964   dits[2] = 1;
2965   gMC->Gsvolu("I094", "TUBE", idtmed[224], dits, 3);
2966   
2967   
2968   // --- Define volumes of SSD cone ----------------------------------    
2969             
2970
2971   dits[0] = 0;
2972   dits[1] = 360;
2973   dits[2] = 12;
2974   dits[3] = -77.2;
2975   dits[4] = 44.9;
2976   dits[5] = 47;
2977   dits[6] = -61.2;
2978   dits[7] = 28.5;
2979   dits[8] = 47;
2980   dits[9] = -57.5;
2981   dits[10] = 28.5;
2982   dits[11] = 47;
2983   dits[12] = -57.5;
2984   dits[13] = 28.5;
2985   dits[14] = 43.5;
2986   dits[15] = -51.365;
2987   dits[16] = 28.5;
2988   dits[17] = 43.5;
2989   dits[18] = -51.365;
2990   dits[19] = 28.5;
2991   dits[20] = 36.69;
2992   dits[21] = 51.3651;
2993   dits[22] = 28.5;
2994   dits[23] = 36.69;
2995   dits[24] = 51.3651;
2996   dits[25] = 28.5;
2997   dits[26] = 43.5;
2998   dits[27] = 56.96;
2999   dits[28] = 28.5;
3000   dits[29] = 43.5;
3001   dits[30] = 56.96;
3002   dits[31] = 28.5;
3003   dits[32] = 47;
3004   dits[33] = 60.66;
3005   dits[34] = 28.5;
3006   dits[35] = 47;
3007   dits[36] = 77.2;
3008   dits[37] = 44.9;
3009   dits[38] = 47;  
3010   gMC->Gsvolu("IS01", "PCON", idtmed[204], dits, 39);
3011   
3012   dits[0] = 0;
3013   dits[1] = 360;
3014   dits[2] = 6;
3015   dits[3] = -77.2;
3016   dits[4] = 45; 
3017   dits[5] = 47.5;   
3018   dits[6] = -73.5;
3019   dits[7] = 45;  
3020   dits[8] = 47.5;   
3021   dits[9] = -72.7819;
3022   dits[10] = 45;   
3023   dits[11] = 46.2819;
3024   dits[12] = -59.5;
3025   dits[13] = 31.2181;
3026   dits[14] = 33;
3027   dits[15] = -59.5;
3028   dits[16] = 28;
3029   dits[17] = 33;
3030   dits[18] = -57;
3031   dits[19] = 28;
3032   dits[20] = 30.5;
3033   gMC->Gsvolu("I212", "PCON", idtmed[272], dits, 21);  // SSD cone
3034   
3035   dits[0] = 28;
3036   dits[1] = 29.82;
3037   dits[2] = 0.5;
3038   gMC->Gsvolu("I211", "TUBE", idtmed[219], dits, 3);
3039   
3040   dits[0] = 37.35;
3041   dits[1] = 38.25;
3042   dits[2] = 1;
3043   gMC->Gsvolu("I217", "TUBE", idtmed[224], dits, 3);
3044   
3045   dits[0] = 38.25;
3046   dits[1] = 39.08;
3047   dits[2] = 1;
3048   gMC->Gsvolu("I218", "TUBE", idtmed[264], dits, 3);
3049   
3050   dits[0] = 41.85;
3051   dits[1] = 42.75;
3052   dits[2] = 1;
3053   gMC->Gsvolu("I219", "TUBE", idtmed[224], dits, 3);
3054   
3055   dits[0] = 42.75;
3056   dits[1] = 43.58;
3057   dits[2] = 1;
3058   gMC->Gsvolu("I220", "TUBE", idtmed[264], dits, 3);
3059       
3060   dits[0] = 42.1;
3061   dits[1] = 42.5;
3062   dits[2] = 1.25;
3063   gMC->Gsvolu("I214", "TUBE", idtmed[224], dits, 3);
3064     
3065   dits[0] = 37.1;
3066   dits[1] = 37.5;
3067   dits[2] = 1.25;
3068   gMC->Gsvolu("I213", "TUBE", idtmed[224], dits, 3);
3069         
3070   dits[0] = 0;
3071   dits[1] = 25;
3072   dits[2] = 5;
3073   dits[3] = -77.2+3;
3074   dits[4] = 44.5;
3075   dits[5] = 44.5;
3076   dits[6] = -69.7+3;
3077   dits[7] = 37;
3078   dits[8] = 44.5;
3079   dits[9] = -68.5+3;
3080   dits[10] = 37;
3081   dits[11] = 44.5;
3082   dits[12] = -68.5+4.8;  
3083   dits[13] = 37;
3084   dits[14] = 44.5; 
3085   dits[15] = -63.5+4.8;
3086   dits[16] = 37;
3087   dits[17] = 44.5;   
3088   gMC->Gsvolu("I215", "PCON", idtmed[294], dits, 18);  // SSD end-ladder elect.  
3089  
3090   dits[0] = 0;
3091   dits[1] = 3.2;
3092   dits[2] = 9;
3093   dits[3] = -16.45;
3094   dits[4] = 30.5;
3095   dits[5] = 33.5;
3096   dits[6] = -7.85;
3097   dits[7] = 30.5;
3098   dits[8] = 33.5;
3099   dits[9] = -7.85;
3100   dits[10] = 30.5;
3101   dits[11] = 41.85;
3102   dits[12] = -5.85;
3103   dits[13] = 30.5;
3104   dits[14] = 41.85;
3105   dits[15] = -5.85;
3106   dits[16] = 30.5;
3107   dits[17] = 36.5;
3108   dits[18] = -5;
3109   dits[19] = 30.5;
3110   dits[20] = 36.5;
3111   dits[21] = -2;
3112   dits[22] = 33.0173;
3113   dits[23] = 36.5;
3114   dits[24] = -2;
3115   dits[25] = 33.0173;
3116   dits[26] = 37.35;
3117   dits[27] = 0;
3118   dits[28] = 34.6955;
3119   dits[29] = 37.35;
3120   gMC->Gsvolu("I216", "PCON", idtmed[272], dits, 30);
3121        
3122        
3123   // --- Place SPD (option 'a') volumes into their mother volume IT12
3124   
3125   // SPD - option 'a' 
3126   // detector thickness = 100 microns
3127   // chip thickness = 150 microns
3128   // (this is NOT the default)
3129
3130   if (option == 1 && thickness == 1) {
3131   
3132      gMC->Gspos("I12A",5,"IT12",0.0,0.0,0.0,idrotm[238],"MANY");
3133      gMC->Gspos("I12A",6,"IT12",0.0,0.0,0.0,idrotm[236],"MANY");
3134      gMC->Gspos("I12A",7,"IT12",0.0,0.0,0.0,idrotm[239],"MANY");
3135      gMC->Gspos("I12A",8,"IT12",0.0,0.0,0.0,idrotm[233],"MANY");
3136      gMC->Gspos("I12A",9,"IT12",0.0,0.0,0.0,idrotm[240],"MANY");
3137      gMC->Gspos("I12A",10,"IT12",0.0,0.0,0.0,idrotm[241],"MANY");
3138      gMC->Gspos("I12A",2,"IT12",0.0,0.0,0.0,idrotm[242],"MANY");
3139      gMC->Gspos("I12A",3,"IT12",0.0,0.0,0.0,idrotm[234],"MANY");
3140      gMC->Gspos("I12A",4,"IT12",0.0,0.0,0.0,idrotm[243],"MANY");
3141      gMC->Gspos("I12A",1,"IT12",0.0,0.0,0.0,0,"MANY");
3142      gMC->Gspos("I10A",2,"I12A",0.203,3.8206,0.0,idrotm[244],"ONLY");
3143      gMC->Gspos("I10A",1,"I12A",1.4531,3.8152,0.0,idrotm[245],"ONLY");
3144      gMC->Gspos("I20A",1,"I12A",3.0174,6.5143,0.0,idrotm[246],"ONLY");
3145      gMC->Gspos("I20A",2,"I12A",1.9612,6.9062,0.0,idrotm[247],"ONLY");
3146      gMC->Gspos("I20A",3,"I12A",0.8567,7.1279,0.0,idrotm[248],"ONLY");
3147      gMC->Gspos("I20A",4,"I12A",-0.2689,7.1742,0.0,idrotm[249],"ONLY");
3148      gMC->Gspos("I123",2,"I12A",-0.2978,5.5196,0.0,idrotm[214],"ONLY");
3149      gMC->Gspos("I121",2,"I12A",-0.2385,4.1518,0.0,idrotm[213],"ONLY");
3150      gMC->Gspos("I122",2,"I12A",-0.2968,4.0207,0.0,idrotm[212],"ONLY");
3151      gMC->Gspos("I120",2,"I12A",-0.3672,3.9056,0.0,0,"ONLY");
3152      gMC->Gspos("I144",1,"I12A",-0.2538,3.8556,0.0,0,"ONLY");
3153      gMC->Gspos("I113",3,"I12A",0.1095,3.9056,0.0,0,"ONLY");
3154      gMC->Gspos("I143",1,"I12A",0.4365,3.8556,0.0,idrotm[236],"ONLY");
3155      gMC->Gspos("I142",1,"I12A",0.5136,3.9056,0.0,idrotm[235],"ONLY");
3156      gMC->Gspos("I141",1,"I12A",0.5636,3.9752,0.0,idrotm[201],"ONLY");
3157      gMC->Gspos("I140",1,"I12A",0.6336,4.0447,0.0,idrotm[234],"ONLY");
3158      gMC->Gspos("I139",1,"I12A",0.8297,4.0545,0.0,idrotm[207],"ONLY");
3159      gMC->Gspos("I113",5,"I12A",1.2575,3.9681,0.0,idrotm[207],"ONLY");
3160      gMC->Gspos("I138",1,"I12A",1.66,3.7848,0.0,idrotm[207],"ONLY");
3161      gMC->Gspos("I137",1,"I12A",1.8556,3.7738,0.0,idrotm[233],"ONLY");
3162      gMC->Gspos("I136",1,"I12A",2.6224,4.874,0.0,idrotm[232],"ONLY");
3163      gMC->Gspos("I135",1,"I12A",3.2967,6.0337,0.0,idrotm[231],"ONLY");
3164      gMC->Gspos("I134",1,"I12A",3.266,6.1636,0.0,idrotm[230],"ONLY");
3165      gMC->Gspos("I113",1,"I12A",2.9903,6.4144,0.0,idrotm[211],"ONLY");
3166      gMC->Gspos("I133",3,"I12A",2.7631,6.7627,0.0,idrotm[230],"ONLY");
3167      gMC->Gspos("I132",3,"I12A",2.62,6.8555,0.0,idrotm[229],"ONLY");
3168      gMC->Gspos("I131",3,"I12A",2.648,6.6023,0.0,idrotm[228],"ONLY");
3169      gMC->Gspos("I130",3,"I12A",2.6569,6.3431,0.0,idrotm[227],"ONLY");
3170      gMC->Gspos("I129",3,"I12A",2.3906,6.4819,0.0,idrotm[226],"ONLY");
3171      gMC->Gspos("I113",2,"I12A",1.9488,6.7998,0.0,idrotm[210],"ONLY");
3172      gMC->Gspos("I133",2,"I12A",1.6699,7.1085,0.0,idrotm[226],"ONLY");
3173      gMC->Gspos("I132",2,"I12A",1.5142,7.1777,0.0,idrotm[225],"ONLY");
3174      gMC->Gspos("I131",2,"I12A",1.5814,6.932,0.0,idrotm[224],"ONLY");
3175      gMC->Gspos("I130",2,"I12A",1.6308,6.6774,0.0,idrotm[223],"ONLY");
3176      gMC->Gspos("I129",2,"I12A",1.346,6.7728,0.0,idrotm[222],"ONLY");
3177      gMC->Gspos("I113",6,"I12A",0.8599,7.0176,0.0,idrotm[209],"ONLY");
3178      gMC->Gspos("I133",1,"I12A",0.5362,7.2789,0.0,idrotm[222],"ONLY");
3179      gMC->Gspos("I132",1,"I12A",0.3715,7.3228,0.0,idrotm[221],"ONLY");
3180      gMC->Gspos("I131",1,"I12A",0.4763,7.0907,0.0,idrotm[220],"ONLY");
3181      gMC->Gspos("I130",1,"I12A",0.5649,6.8469,0.0,idrotm[219],"ONLY");
3182      gMC->Gspos("I129",1,"I12A",0.2688,6.8966,0.0,idrotm[218],"ONLY");
3183      gMC->Gspos("I113",4,"I12A",-0.2497,7.0624,0.0,idrotm[208],"ONLY");
3184      gMC->Gspos("I128",1,"I12A",-0.6103,7.2698,0.0,idrotm[218],"ONLY");
3185      gMC->Gspos("I126",2,"I12A",-0.7799,7.2874,0.0,idrotm[217],"ONLY");
3186      gMC->Gspos("I125",2,"I12A",-0.6315,7.0883,0.0,idrotm[216],"ONLY");
3187      gMC->Gspos("I124",2,"I12A",-0.4965,6.8742,0.0,idrotm[215],"ONLY");
3188      gMC->Gspos("I103",3,"I10A",-0.05,0.0075,-3.536,idrotm[237],"ONLY");
3189      gMC->Gspos("I103",4,"I10A",-0.05,0.0075,-10.708,idrotm[237],"ONLY");
3190      gMC->Gspos("I103",1,"I10A",-0.05,0.0075,10.708,0,"ONLY");
3191      gMC->Gspos("I103",2,"I10A",-0.05,0.0075,3.536,0,"ONLY");
3192      gMC->Gspos("I105",1,"I10A",-0.05,0.01,-16.844,idrotm[237],"ONLY");
3193      gMC->Gspos("I105",2,"I10A",-0.05,0.01,16.844,0,"ONLY");
3194      gMC->Gspos("I104",1,"I10A",0.0,-0.015,0.0,0,"ONLY");
3195      gMC->Gspos("I1D3",3,"I20A",-0.05,0.0075,-3.536,idrotm[237],"ONLY");
3196      gMC->Gspos("I1D3",4,"I20A",-0.05,0.0075,-10.708,idrotm[237],"ONLY");
3197      gMC->Gspos("I1D3",1,"I20A",-0.05,0.0075,10.708,0,"ONLY");
3198      gMC->Gspos("I1D3",2,"I20A",-0.05,0.0075,3.536,0,"ONLY");
3199      gMC->Gspos("I105",3,"I20A",-0.05,0.01,-16.844,idrotm[237],"ONLY");
3200      gMC->Gspos("I105",4,"I20A",-0.05,0.01,16.844,0,"ONLY");
3201      gMC->Gspos("I104",2,"I20A",0.0,-0.015,0.0,0,"ONLY");
3202      gMC->Gspos("I112",2,"I113",0.25,0.02,0.0,idrotm[206],"ONLY");
3203      gMC->Gspos("I111",2,"I113",0.1318,-0.0008,0.0,idrotm[205],"ONLY");
3204      gMC->Gspos("I118",1,"I113",0.0,-0.0454,0.0,0,"ONLY");
3205      gMC->Gspos("I110",1,"I113",0.0,0.0492,0.0,0,"ONLY");
3206      gMC->Gspos("I114",1,"I113",0.063,0.0042,0.0,idrotm[202],"ONLY");
3207      gMC->Gspos("I115",1,"I113",0.063,0.0042,0.0,idrotm[202],"ONLY");
3208      gMC->Gspos("I115",2,"I113",-0.063,0.0042,0.0,idrotm[201],"ONLY");
3209      gMC->Gspos("I114",2,"I113",-0.063,0.0042,0.0,idrotm[201],"ONLY");
3210      gMC->Gspos("I116",1,"I113",0.0,0.0042,0.0,0,"ONLY");
3211      gMC->Gspos("I111",1,"I113",-0.1318,-0.0008,0.0,idrotm[204],"ONLY");
3212      gMC->Gspos("I112",1,"I113",-0.25,0.02,0.0,idrotm[203],"ONLY");
3213      gMC->Gspos("I101",1,"I103",-0.088,0.0075,0.0,0,"ONLY");
3214      gMC->Gspos("I102",1,"I103",0.0,-0.005,-2.8,0,"ONLY");
3215      gMC->Gspos("I102",2,"I103",0.0,-0.005,-1.4,0,"ONLY");
3216      gMC->Gspos("I102",3,"I103",0.0,-0.005,0.0,0,"ONLY");
3217      gMC->Gspos("I102",4,"I103",0.0,-0.005,1.4,0,"ONLY");
3218      gMC->Gspos("I102",5,"I103",0.0,-0.005,2.8,0,"ONLY");
3219      gMC->Gspos("I1D1",1,"I1D3",-0.088,0.0075,0.0,0,"ONLY");
3220      gMC->Gspos("I102",6,"I1D3",0.0,-0.005,-2.8,0,"ONLY");
3221      gMC->Gspos("I102",7,"I1D3",0.0,-0.005,-1.4,0,"ONLY");
3222      gMC->Gspos("I102",8,"I1D3",0.0,-0.005,0.0,0,"ONLY");
3223      gMC->Gspos("I102",9,"I1D3",0.0,-0.005,1.4,0,"ONLY");
3224      gMC->Gspos("I102",10,"I1D3",0.0,-0.005,2.8,0,"ONLY");
3225      gMC->Gspos("I117",1,"I116",0.0,0.0,0.0,0,"ONLY");
3226      gMC->Gspos("ITS1",1,"I101",0.0,0.0,0.0,0,"ONLY");
3227      gMC->Gspos("ITS2",1,"I1D1",0.0,0.0,0.0,0,"ONLY");
3228      gMC->Gspos("I650",16,"IT12",0.0,0.0,22.0,idrotm[1104],"MANY");
3229      gMC->Gspos("I650",20,"IT12",0.0,0.0,22.0,idrotm[1130],"MANY");
3230      gMC->Gspos("I650",18,"IT12",0.0,0.0,22.0,idrotm[1117],"MANY");
3231      gMC->Gspos("I650",1,"IT12",0.0,0.0,22.0,0,"MANY");
3232      gMC->Gspos("I650",4,"IT12",0.0,0.0,22.0,idrotm[1106],"MANY");
3233      gMC->Gspos("I650",6,"IT12",0.0,0.0,22.0,idrotm[1039],"MANY");
3234      gMC->Gspos("I650",8,"IT12",0.0,0.0,22.0,idrotm[1107],"MANY");
3235      gMC->Gspos("I650",10,"IT12",0.0,0.0,22.0,idrotm[1065],"MANY");
3236      gMC->Gspos("I650",12,"IT12",0.0,0.0,22.0,idrotm[1078],"MANY");
3237      gMC->Gspos("I650",14,"IT12",0.0,0.0,22.0,idrotm[1091],"MANY");
3238      gMC->Gspos("I650",19,"IT12",0.0,0.0,-22.0,idrotm[1108],"MANY");
3239      gMC->Gspos("I650",2,"IT12",0.0,0.0,-22.0,idrotm[1109],"MANY");
3240      gMC->Gspos("I650",3,"IT12",0.0,0.0,-22.0,idrotm[1110],"MANY");
3241      gMC->Gspos("I650",5,"IT12",0.0,0.0,-22.0,idrotm[1111],"MANY");
3242      gMC->Gspos("I650",7,"IT12",0.0,0.0,-22.0,idrotm[1112],"MANY");
3243      gMC->Gspos("I650",9,"IT12",0.0,0.0,-22.0,idrotm[1113],"MANY");
3244      gMC->Gspos("I650",11,"IT12",0.0,0.0,-22.0,idrotm[1114],"MANY");
3245      gMC->Gspos("I650",13,"IT12",0.0,0.0,-22.0,idrotm[1115],"MANY");
3246      gMC->Gspos("I650",15,"IT12",0.0,0.0,-22.0,idrotm[1116],"MANY");
3247      gMC->Gspos("I650",17,"IT12",0.0,0.0,-22.0,idrotm[1118],"MANY");
3248      gMC->Gspos("I666",1,"I650",0.0,0.0,0.25,idrotm[1003],"MANY");
3249      gMC->Gspos("I667",1,"I650",0.1102,0.9945,0.45,idrotm[1088],"ONLY");
3250      gMC->Gspos("I669",3,"I650",0.1883,4.0372,-3.2,0,"ONLY");
3251      gMC->Gspos("I671",3,"I650",0.1883,4.0372,0.6,0,"ONLY");
3252      gMC->Gspos("I669",2,"I650",1.3343,4.0609,-3.2,0,"ONLY");
3253      gMC->Gspos("I671",2,"I650",1.3343,4.0609,0.6,0,"ONLY");
3254      gMC->Gspos("I669",6,"I650",2.9567,6.1959,-3.2,idrotm[1089],"ONLY");
3255      gMC->Gspos("I671",6,"I650",2.9567,6.1959,0.6,idrotm[1089],"ONLY");
3256      gMC->Gspos("I669",5,"I650",1.9511,6.5822,-3.2,idrotm[1011],"ONLY");
3257      gMC->Gspos("I671",5,"I650",1.9511,6.5822,0.6,idrotm[1011],"ONLY");
3258      gMC->Gspos("I669",4,"I650",0.8974,6.8064,-3.2,idrotm[1090],"ONLY");
3259      gMC->Gspos("I671",4,"I650",0.8974,6.8064,0.6,idrotm[1090],"ONLY");
3260      gMC->Gspos("I669",1,"I650",-0.1784,6.863,-3.2,0,"ONLY");
3261      gMC->Gspos("I671",1,"I650",-0.1784,6.863,0.6,0,"ONLY");
3262      gMC->Gspos("I673",1,"I650",0.2173,4.8037,1.8,0,"ONLY");
3263      gMC->Gspos("I673",6,"I650",1.5093,4.5605,1.8,0,"ONLY");
3264      gMC->Gspos("I673",4,"I650",-0.173,6.2531,1.8,idrotm[1092],"ONLY");
3265      gMC->Gspos("I673",3,"I650",0.8073,6.2032,1.8,idrotm[1093],"ONLY");
3266      gMC->Gspos("I673",2,"I650",1.7678,6.0005,1.8,idrotm[1094],"ONLY");
3267      gMC->Gspos("I673",5,"I650",2.6847,5.6501,1.8,0,"ONLY");
3268      gMC->Gspos("I676",2,"I650",1.7618,5.2269,2.5,0,"ONLY");
3269      gMC->Gspos("I676",1,"I650",0.4018,5.5869,2.5,0,"ONLY");
3270      gMC->Gspos("I668",1,"I667",0.0,0.0,0.0,0,"ONLY");
3271      gMC->Gspos("I670",1,"I669",0.0,0.0,0.0,0,"ONLY");
3272      gMC->Gspos("I672",1,"I671",0.0,0.0,0.0,0,"ONLY");
3273      gMC->Gspos("I674",1,"I673",0.0,0.0,0.0,0,"MANY");
3274      gMC->Gspos("I675",1,"I673",0.0,0.0,-0.5,0,"ONLY");
3275      gMC->Gspos("I677",1,"I676",0.0,0.0,0.0,0,"MANY");
3276      gMC->Gspos("I678",1,"I676",0.0,0.0,-0.95,0,"ONLY");  
3277
3278   }
3279
3280
3281   // --- Place SPD (option 'b') volumes into their mother volume IT12
3282   
3283   // SPD - option 'b' 
3284   // detector thickness = 100 microns
3285   // chip thickness = 150 microns
3286   // (this is NOT the default)
3287
3288   if (option == 2 && thickness == 1) {
3289   
3290      gMC->Gspos("I12B",1,"IT12",0.0,0.0,0.0,0,"MANY");
3291      gMC->Gspos("I12B",8,"IT12",0.0,0.0,0.0,idrotm[233],"MANY");
3292      gMC->Gspos("I12B",7,"IT12",0.0,0.0,0.0,idrotm[244],"MANY");
3293      gMC->Gspos("I12B",6,"IT12",0.0,0.0,0.0,idrotm[236],"MANY");
3294      gMC->Gspos("I12B",2,"IT12",0.0,0.0,0.0,idrotm[245],"MANY");
3295      gMC->Gspos("I12B",3,"IT12",0.0,0.0,0.0,idrotm[234],"MANY");
3296      gMC->Gspos("I12B",4,"IT12",0.0,0.0,0.0,idrotm[246],"MANY");
3297      gMC->Gspos("I12B",5,"IT12",0.0,0.0,0.0,idrotm[247],"MANY");
3298      gMC->Gspos("I12B",9,"IT12",0.0,0.0,0.0,idrotm[248],"MANY");
3299      gMC->Gspos("I12B",10,"IT12",0.0,0.0,0.0,idrotm[249],"MANY");
3300      gMC->Gspos("I10B",2,"I12B",0.203,3.8206,0.0,idrotm[238],"ONLY");
3301      gMC->Gspos("I10B",1,"I12B",1.4531,3.8152,0.0,idrotm[239],"ONLY");
3302      gMC->Gspos("I20B",1,"I12B",3.0174,6.5143,0.0,idrotm[240],"ONLY");
3303      gMC->Gspos("I20B",2,"I12B",1.9612,6.9062,0.0,idrotm[241],"ONLY");
3304      gMC->Gspos("I20B",3,"I12B",0.8567,7.1279,0.0,idrotm[242],"ONLY");
3305      gMC->Gspos("I20B",4,"I12B",-0.2689,7.1742,0.0,idrotm[243],"ONLY");
3306      gMC->Gspos("I123",1,"I12B",-0.2978,5.5196,0.0,idrotm[214],"ONLY");
3307      gMC->Gspos("I121",1,"I12B",-0.2385,4.1518,0.0,idrotm[213],"ONLY");
3308      gMC->Gspos("I122",1,"I12B",-0.2968,4.0207,0.0,idrotm[212],"ONLY");
3309      gMC->Gspos("I120",1,"I12B",-0.3672,3.9056,0.0,0,"ONLY");
3310      gMC->Gspos("I144",1,"I12B",-0.2538,3.8556,0.0,0,"ONLY");
3311      gMC->Gspos("I113",3,"I12B",0.1095,3.9056,0.0,0,"ONLY");
3312      gMC->Gspos("I143",1,"I12B",0.4365,3.8556,0.0,idrotm[236],"ONLY");
3313      gMC->Gspos("I142",1,"I12B",0.5136,3.9056,0.0,idrotm[235],"ONLY");
3314      gMC->Gspos("I141",1,"I12B",0.5636,3.9752,0.0,idrotm[237],"ONLY");
3315      gMC->Gspos("I140",1,"I12B",0.6336,4.0447,0.0,idrotm[234],"ONLY");
3316      gMC->Gspos("I139",1,"I12B",0.8297,4.0545,0.0,idrotm[207],"ONLY");
3317      gMC->Gspos("I113",5,"I12B",1.2575,3.9681,0.0,idrotm[207],"ONLY");
3318      gMC->Gspos("I138",1,"I12B",1.66,3.7848,0.0,idrotm[207],"ONLY");
3319      gMC->Gspos("I137",1,"I12B",1.8556,3.7738,0.0,idrotm[233],"ONLY");
3320      gMC->Gspos("I136",1,"I12B",2.6224,4.874,0.0,idrotm[232],"ONLY");
3321      gMC->Gspos("I135",1,"I12B",3.2967,6.0337,0.0,idrotm[231],"ONLY");
3322      gMC->Gspos("I134",1,"I12B",3.266,6.1636,0.0,idrotm[230],"ONLY");
3323      gMC->Gspos("I113",1,"I12B",2.9903,6.4144,0.0,idrotm[211],"ONLY");
3324      gMC->Gspos("I133",3,"I12B",2.7631,6.7627,0.0,idrotm[230],"ONLY");
3325      gMC->Gspos("I132",3,"I12B",2.62,6.8555,0.0,idrotm[229],"ONLY");
3326      gMC->Gspos("I131",3,"I12B",2.648,6.6023,0.0,idrotm[228],"ONLY");
3327      gMC->Gspos("I130",3,"I12B",2.6569,6.3431,0.0,idrotm[227],"ONLY");
3328      gMC->Gspos("I129",3,"I12B",2.3906,6.4819,0.0,idrotm[226],"ONLY");
3329      gMC->Gspos("I113",2,"I12B",1.9488,6.7998,0.0,idrotm[210],"ONLY");
3330      gMC->Gspos("I133",2,"I12B",1.6699,7.1085,0.0,idrotm[226],"ONLY");
3331      gMC->Gspos("I132",2,"I12B",1.5142,7.1777,0.0,idrotm[225],"ONLY");
3332      gMC->Gspos("I131",2,"I12B",1.5814,6.932,0.0,idrotm[224],"ONLY");
3333      gMC->Gspos("I130",2,"I12B",1.6308,6.6774,0.0,idrotm[223],"ONLY");
3334      gMC->Gspos("I129",2,"I12B",1.346,6.7728,0.0,idrotm[222],"ONLY");
3335      gMC->Gspos("I113",6,"I12B",0.8599,7.0176,0.0,idrotm[209],"ONLY");
3336      gMC->Gspos("I133",1,"I12B",0.5362,7.2789,0.0,idrotm[222],"ONLY");
3337      gMC->Gspos("I132",1,"I12B",0.3715,7.3228,0.0,idrotm[221],"ONLY");
3338      gMC->Gspos("I131",1,"I12B",0.4763,7.0907,0.0,idrotm[220],"ONLY");
3339      gMC->Gspos("I130",1,"I12B",0.5649,6.8469,0.0,idrotm[219],"ONLY");
3340      gMC->Gspos("I129",1,"I12B",0.2688,6.8966,0.0,idrotm[218],"ONLY");
3341      gMC->Gspos("I113",4,"I12B",-0.2497,7.0624,0.0,idrotm[208],"ONLY");
3342      gMC->Gspos("I128",1,"I12B",-0.6103,7.2698,0.0,idrotm[218],"ONLY");
3343      gMC->Gspos("I126",1,"I12B",-0.7799,7.2874,0.0,idrotm[217],"ONLY");
3344      gMC->Gspos("I125",1,"I12B",-0.6315,7.0883,0.0,idrotm[216],"ONLY");
3345      gMC->Gspos("I124",1,"I12B",-0.4965,6.8742,0.0,idrotm[215],"ONLY");
3346      gMC->Gspos("I105",3,"I10B",-0.05,-0.01,-16.844,idrotm[201],"ONLY");
3347      gMC->Gspos("I105",4,"I10B",-0.05,-0.01,16.844,0,"ONLY");
3348      gMC->Gspos("I107",2,"I10B",-0.0455,-0.0125,3.536,0,"ONLY");
3349      gMC->Gspos("I107",1,"I10B",-0.0455,-0.0125,10.708,0,"ONLY");
3350      gMC->Gspos("I107",4,"I10B",-0.0455,-0.0125,-10.708,idrotm[201],"ONLY");
3351      gMC->Gspos("I107",3,"I10B",-0.0455,-0.0125,-3.536,idrotm[201],"ONLY");
3352      gMC->Gspos("I109",1,"I10B",-0.138,0.015,-16.844,idrotm[201],"ONLY");
3353      gMC->Gspos("I109",2,"I10B",-0.138,0.015,16.844,0,"ONLY");
3354      gMC->Gspos("I108",1,"I10B",-0.138,0.01,0.0,0,"ONLY");
3355      gMC->Gspos("I105",1,"I20B",-0.05,-0.01,-16.844,idrotm[201],"ONLY");
3356      gMC->Gspos("I105",2,"I20B",-0.05,-0.01,16.844,0,"ONLY");
3357      gMC->Gspos("I1D7",2,"I20B",-0.0455,-0.0125,3.536,0,"ONLY");
3358      gMC->Gspos("I1D7",1,"I20B",-0.0455,-0.0125,10.708,0,"ONLY");
3359      gMC->Gspos("I1D7",4,"I20B",-0.0455,-0.0125,-10.708,idrotm[201],"ONLY");
3360      gMC->Gspos("I1D7",3,"I20B",-0.0455,-0.0125,-3.536,idrotm[201],"ONLY");
3361      gMC->Gspos("I109",3,"I20B",-0.138,0.015,-16.844,idrotm[201],"ONLY");
3362      gMC->Gspos("I109",4,"I20B",-0.138,0.015,16.844,0,"ONLY");
3363      gMC->Gspos("I108",2,"I20B",-0.138,0.01,0.0,0,"ONLY");
3364      gMC->Gspos("I112",2,"I113",0.25,0.02,0.0,idrotm[206],"ONLY");
3365      gMC->Gspos("I111",2,"I113",0.1318,-0.0008,0.0,idrotm[205],"ONLY");
3366      gMC->Gspos("I118",1,"I113",0.0,-0.0454,0.0,0,"ONLY");
3367      gMC->Gspos("I110",1,"I113",0.0,0.0492,0.0,0,"ONLY");
3368      gMC->Gspos("I114",1,"I113",0.063,0.0042,0.0,idrotm[202],"ONLY");
3369      gMC->Gspos("I115",1,"I113",0.063,0.0042,0.0,idrotm[202],"ONLY");
3370      gMC->Gspos("I115",2,"I113",-0.063,0.0042,0.0,idrotm[237],"ONLY");
3371      gMC->Gspos("I114",2,"I113",-0.063,0.0042,0.0,idrotm[237],"ONLY");
3372      gMC->Gspos("I116",1,"I113",0.0,0.0042,0.0,0,"ONLY");
3373      gMC->Gspos("I111",1,"I113",-0.1318,-0.0008,0.0,idrotm[204],"ONLY");
3374      gMC->Gspos("I112",1,"I113",-0.25,0.02,0.0,idrotm[203],"ONLY");
3375      gMC->Gspos("I106",1,"I107",0.0,-0.005,-1.4,0,"ONLY");
3376      gMC->Gspos("I106",2,"I107",0.0,-0.005,0.0,0,"ONLY");
3377      gMC->Gspos("I106",3,"I107",0.0,-0.005,1.4,0,"ONLY");
3378      gMC->Gspos("I106",4,"I107",0.0,-0.005,2.8,0,"ONLY");
3379      gMC->Gspos("I106",5,"I107",0.0,-0.005,-2.8,0,"ONLY");
3380      gMC->Gspos("I101",1,"I107",0.0,0.0075,0.0,0,"ONLY");
3381      gMC->Gspos("I106",6,"I1D7",0.0,-0.005,-1.4,0,"ONLY");
3382      gMC->Gspos("I106",7,"I1D7",0.0,-0.005,0.0,0,"ONLY");
3383      gMC->Gspos("I106",8,"I1D7",0.0,-0.005,1.4,0,"ONLY");
3384      gMC->Gspos("I106",9,"I1D7",0.0,-0.005,2.8,0,"ONLY");
3385      gMC->Gspos("I106",10,"I1D7",0.0,-0.005,-2.8,0,"ONLY");
3386      gMC->Gspos("I1D1",1,"I1D7",0.0,0.0075,0.0,0,"ONLY");
3387      gMC->Gspos("I117",1,"I116",0.0,0.0,0.0,0,"ONLY");
3388      gMC->Gspos("ITS1",1,"I101",0.0,0.0,0.0,0,"ONLY");
3389      gMC->Gspos("ITS2",1,"I1D1",0.0,0.0,0.0,0,"ONLY");
3390      gMC->Gspos("I650",16,"IT12",0.0,0.0,22.0,idrotm[1104],"MANY");
3391      gMC->Gspos("I650",20,"IT12",0.0,0.0,22.0,idrotm[1130],"MANY");
3392      gMC->Gspos("I650",18,"IT12",0.0,0.0,22.0,idrotm[1117],"MANY");
3393      gMC->Gspos("I650",1,"IT12",0.0,0.0,22.0,0,"MANY");
3394      gMC->Gspos("I650",4,"IT12",0.0,0.0,22.0,idrotm[1106],"MANY");
3395      gMC->Gspos("I650",6,"IT12",0.0,0.0,22.0,idrotm[1039],"MANY");
3396      gMC->Gspos("I650",8,"IT12",0.0,0.0,22.0,idrotm[1107],"MANY");
3397      gMC->Gspos("I650",10,"IT12",0.0,0.0,22.0,idrotm[1065],"MANY");
3398      gMC->Gspos("I650",12,"IT12",0.0,0.0,22.0,idrotm[1078],"MANY");
3399      gMC->Gspos("I650",14,"IT12",0.0,0.0,22.0,idrotm[1091],"MANY");
3400      gMC->Gspos("I650",19,"IT12",0.0,0.0,-22.0,idrotm[1108],"MANY");
3401      gMC->Gspos("I650",2,"IT12",0.0,0.0,-22.0,idrotm[1109],"MANY");
3402      gMC->Gspos("I650",3,"IT12",0.0,0.0,-22.0,idrotm[1110],"MANY");
3403      gMC->Gspos("I650",5,"IT12",0.0,0.0,-22.0,idrotm[1111],"MANY");
3404      gMC->Gspos("I650",7,"IT12",0.0,0.0,-22.0,idrotm[1112],"MANY");
3405      gMC->Gspos("I650",9,"IT12",0.0,0.0,-22.0,idrotm[1113],"MANY");
3406      gMC->Gspos("I650",11,"IT12",0.0,0.0,-22.0,idrotm[1114],"MANY");
3407      gMC->Gspos("I650",13,"IT12",0.0,0.0,-22.0,idrotm[1115],"MANY");
3408      gMC->Gspos("I650",15,"IT12",0.0,0.0,-22.0,idrotm[1116],"MANY");
3409      gMC->Gspos("I650",17,"IT12",0.0,0.0,-22.0,idrotm[1118],"MANY");
3410      gMC->Gspos("I666",1,"I650",0.0,0.0,0.25,idrotm[1003],"MANY");
3411      gMC->Gspos("I667",1,"I650",0.1102,0.9945,0.45,idrotm[1088],"ONLY");
3412      gMC->Gspos("I669",3,"I650",0.1883,4.0372,-3.2,0,"ONLY");
3413      gMC->Gspos("I671",3,"I650",0.1883,4.0372,0.6,0,"ONLY");
3414      gMC->Gspos("I669",2,"I650",1.3343,4.0609,-3.2,0,"ONLY");
3415      gMC->Gspos("I671",2,"I650",1.3343,4.0609,0.6,0,"ONLY");
3416      gMC->Gspos("I669",6,"I650",2.9567,6.1959,-3.2,idrotm[1089],"ONLY");
3417      gMC->Gspos("I671",6,"I650",2.9567,6.1959,0.6,idrotm[1089],"ONLY");
3418      gMC->Gspos("I669",5,"I650",1.9511,6.5822,-3.2,idrotm[1011],"ONLY");
3419      gMC->Gspos("I671",5,"I650",1.9511,6.5822,0.6,idrotm[1011],"ONLY");
3420      gMC->Gspos("I669",4,"I650",0.8974,6.8064,-3.2,idrotm[1090],"ONLY");
3421      gMC->Gspos("I671",4,"I650",0.8974,6.8064,0.6,idrotm[1090],"ONLY");
3422      gMC->Gspos("I669",1,"I650",-0.1784,6.863,-3.2,0,"ONLY");
3423      gMC->Gspos("I671",1,"I650",-0.1784,6.863,0.6,0,"ONLY");
3424      gMC->Gspos("I673",1,"I650",0.2173,4.8037,1.8,0,"ONLY");
3425      gMC->Gspos("I673",6,"I650",1.5093,4.5605,1.8,0,"ONLY");
3426      gMC->Gspos("I673",4,"I650",-0.173,6.2531,1.8,idrotm[1092],"ONLY");
3427      gMC->Gspos("I673",3,"I650",0.8073,6.2032,1.8,idrotm[1093],"ONLY");
3428      gMC->Gspos("I673",2,"I650",1.7678,6.0005,1.8,idrotm[1094],"ONLY");
3429      gMC->Gspos("I673",5,"I650",2.6847,5.6501,1.8,0,"ONLY");
3430      gMC->Gspos("I676",2,"I650",1.7618,5.2269,2.5,0,"ONLY");
3431      gMC->Gspos("I676",1,"I650",0.4018,5.5869,2.5,0,"ONLY");
3432      gMC->Gspos("I668",1,"I667",0.0,0.0,0.0,0,"ONLY");
3433      gMC->Gspos("I670",1,"I669",0.0,0.0,0.0,0,"ONLY");
3434      gMC->Gspos("I672",1,"I671",0.0,0.0,0.0,0,"ONLY");
3435      gMC->Gspos("I674",1,"I673",0.0,0.0,0.0,0,"MANY");
3436      gMC->Gspos("I675",1,"I673",0.0,0.0,-0.5,0,"ONLY");
3437      gMC->Gspos("I677",1,"I676",0.0,0.0,0.0,0,"MANY");
3438      gMC->Gspos("I678",1,"I676",0.0,0.0,-0.95,0,"ONLY");  
3439
3440   }
3441
3442   // SPD - option 'a' 
3443   // detector thickness = 300 microns
3444   // chip thickness = 300 microns
3445   // (this is NOT the default)
3446
3447   if (option == 1 && thickness == 2) {
3448
3449      gMC->Gspos("I12A",5,"IT12",0.0,0.0,0.0,idrotm[238],"MANY");
3450      gMC->Gspos("I12A",6,"IT12",0.0,0.0,0.0,idrotm[236],"MANY");
3451      gMC->Gspos("I12A",7,"IT12",0.0,0.0,0.0,idrotm[239],"MANY");
3452      gMC->Gspos("I12A",8,"IT12",0.0,0.0,0.0,idrotm[233],"MANY");
3453      gMC->Gspos("I12A",9,"IT12",0.0,0.0,0.0,idrotm[240],"MANY");
3454      gMC->Gspos("I12A",10,"IT12",0.0,0.0,0.0,idrotm[241],"MANY");
3455      gMC->Gspos("I12A",2,"IT12",0.0,0.0,0.0,idrotm[242],"MANY");
3456      gMC->Gspos("I12A",3,"IT12",0.0,0.0,0.0,idrotm[234],"MANY");
3457      gMC->Gspos("I12A",4,"IT12",0.0,0.0,0.0,idrotm[243],"MANY");
3458      gMC->Gspos("I12A",1,"IT12",0.0,0.0,0.0,0,"MANY");
3459      gMC->Gspos("I10A",2,"I12A",0.203-0.0009,3.8206-0.0175,0.0,idrotm[244],"ONLY");
3460      gMC->Gspos("I10A",1,"I12A",1.4531-0.0063,3.8152-0.0164,0.0,idrotm[245],"ONLY");
3461      gMC->Gspos("I20A",1,"I12A",3.0174+0.0074,6.5143+0.0159,0.0,idrotm[246],"ONLY");
3462      gMC->Gspos("I20A",2,"I12A",1.9612+0.0048,6.9062+0.0168,0.0,idrotm[247],"ONLY");
3463      gMC->Gspos("I20A",3,"I12A",0.8567+0.0021,7.1279+0.0174,0.0,idrotm[248],"ONLY");
3464      gMC->Gspos("I20A",4,"I12A",-0.2689-0.0006,7.1742+0.0175,0.0,idrotm[249],"ONLY");
3465      gMC->Gspos("I123",2,"I12A",-0.2978,5.5196,0.0,idrotm[214],"ONLY");
3466      gMC->Gspos("I121",2,"I12A",-0.2385,4.1518,0.0,idrotm[213],"ONLY");
3467      gMC->Gspos("I122",2,"I12A",-0.2968,4.0207,0.0,idrotm[212],"ONLY");
3468      gMC->Gspos("I120",2,"I12A",-0.3672,3.9056,0.0,0,"ONLY");
3469      gMC->Gspos("I144",1,"I12A",-0.2538,3.8556,0.0,0,"ONLY");
3470      gMC->Gspos("I113",3,"I12A",0.1095,3.9056,0.0,0,"ONLY");
3471      gMC->Gspos("I143",1,"I12A",0.4365,3.8556,0.0,idrotm[236],"ONLY");
3472      gMC->Gspos("I142",1,"I12A",0.5136,3.9056,0.0,idrotm[235],"ONLY");
3473      gMC->Gspos("I141",1,"I12A",0.5636,3.9752,0.0,idrotm[201],"ONLY");
3474      gMC->Gspos("I140",1,"I12A",0.6336,4.0447,0.0,idrotm[234],"ONLY");
3475      gMC->Gspos("I139",1,"I12A",0.8297,4.0545,0.0,idrotm[207],"ONLY");
3476      gMC->Gspos("I113",5,"I12A",1.2575,3.9681,0.0,idrotm[207],"ONLY");
3477      gMC->Gspos("I138",1,"I12A",1.66,3.7848,0.0,idrotm[207],"ONLY");
3478      gMC->Gspos("I137",1,"I12A",1.8556,3.7738,0.0,idrotm[233],"ONLY");
3479      gMC->Gspos("I136",1,"I12A",2.6224,4.874,0.0,idrotm[232],"ONLY");
3480      gMC->Gspos("I135",1,"I12A",3.2967,6.0337,0.0,idrotm[231],"ONLY");
3481      gMC->Gspos("I134",1,"I12A",3.266,6.1636,0.0,idrotm[230],"ONLY");
3482      gMC->Gspos("I113",1,"I12A",2.9903,6.4144,0.0,idrotm[211],"ONLY");
3483      gMC->Gspos("I133",3,"I12A",2.7631,6.7627,0.0,idrotm[230],"ONLY");
3484      gMC->Gspos("I132",3,"I12A",2.62,6.8555,0.0,idrotm[229],"ONLY");
3485      gMC->Gspos("I131",3,"I12A",2.648,6.6023,0.0,idrotm[228],"ONLY");
3486      gMC->Gspos("I130",3,"I12A",2.6569,6.3431,0.0,idrotm[227],"ONLY");
3487      gMC->Gspos("I129",3,"I12A",2.3906,6.4819,0.0,idrotm[226],"ONLY");
3488      gMC->Gspos("I113",2,"I12A",1.9488,6.7998,0.0,idrotm[210],"ONLY");
3489      gMC->Gspos("I133",2,"I12A",1.6699,7.1085,0.0,idrotm[226],"ONLY");
3490      gMC->Gspos("I132",2,"I12A",1.5142,7.1777,0.0,idrotm[225],"ONLY");
3491      gMC->Gspos("I131",2,"I12A",1.5814,6.932,0.0,idrotm[224],"ONLY");
3492      gMC->Gspos("I130",2,"I12A",1.6308,6.6774,0.0,idrotm[223],"ONLY");
3493      gMC->Gspos("I129",2,"I12A",1.346,6.7728,0.0,idrotm[222],"ONLY");
3494      gMC->Gspos("I113",6,"I12A",0.8599,7.0176,0.0,idrotm[209],"ONLY");
3495      gMC->Gspos("I133",1,"I12A",0.5362,7.2789,0.0,idrotm[222],"ONLY");
3496      gMC->Gspos("I132",1,"I12A",0.3715,7.3228,0.0,idrotm[221],"ONLY");
3497      gMC->Gspos("I131",1,"I12A",0.4763,7.0907,0.0,idrotm[220],"ONLY");
3498      gMC->Gspos("I130",1,"I12A",0.5649,6.8469,0.0,idrotm[219],"ONLY");
3499      gMC->Gspos("I129",1,"I12A",0.2688,6.8966,0.0,idrotm[218],"ONLY");
3500      gMC->Gspos("I113",4,"I12A",-0.2497,7.0624,0.0,idrotm[208],"ONLY");
3501      gMC->Gspos("I128",1,"I12A",-0.6103,7.2698,0.0,idrotm[218],"ONLY");
3502      gMC->Gspos("I126",2,"I12A",-0.7799,7.2874,0.0,idrotm[217],"ONLY");
3503      gMC->Gspos("I125",2,"I12A",-0.6315,7.0883,0.0,idrotm[216],"ONLY");
3504      gMC->Gspos("I124",2,"I12A",-0.4965,6.8742,0.0,idrotm[215],"ONLY");
3505      gMC->Gspos("I103",3,"I10A",-0.05,0.0075,-3.536,idrotm[237],"ONLY");
3506      gMC->Gspos("I103",4,"I10A",-0.05,0.0075,-10.708,idrotm[237],"ONLY");
3507      gMC->Gspos("I103",1,"I10A",-0.05,0.0075,10.708,0,"ONLY");
3508      gMC->Gspos("I103",2,"I10A",-0.05,0.0075,3.536,0,"ONLY");
3509      gMC->Gspos("I105",1,"I10A",-0.05,0.01,-16.844,idrotm[237],"ONLY");
3510      gMC->Gspos("I105",2,"I10A",-0.05,0.01,16.844,0,"ONLY");
3511      gMC->Gspos("I104",1,"I10A",0.0,-0.015-0.0175,0.0,0,"ONLY");
3512      gMC->Gspos("I1D3",3,"I20A",-0.05,0.0075,-3.536,idrotm[237],"ONLY");
3513      gMC->Gspos("I1D3",4,"I20A",-0.05,0.0075,-10.708,idrotm[237],"ONLY");
3514      gMC->Gspos("I1D3",1,"I20A",-0.05,0.0075,10.708,0,"ONLY");
3515      gMC->Gspos("I1D3",2,"I20A",-0.05,0.0075,3.536,0,"ONLY");
3516      gMC->Gspos("I105",3,"I20A",-0.05,0.01,-16.844,idrotm[237],"ONLY");
3517      gMC->Gspos("I105",4,"I20A",-0.05,0.01,16.844,0,"ONLY");
3518      gMC->Gspos("I104",2,"I20A",0.0,-0.015-0.0175,0.0,0,"ONLY");
3519      gMC->Gspos("I112",2,"I113",0.25,0.02,0.0,idrotm[206],"ONLY");
3520      gMC->Gspos("I111",2,"I113",0.1318,-0.0008,0.0,idrotm[205],"ONLY");
3521      gMC->Gspos("I118",1,"I113",0.0,-0.0454,0.0,0,"ONLY");
3522      gMC->Gspos("I110",1,"I113",0.0,0.0492,0.0,0,"ONLY");
3523      gMC->Gspos("I114",1,"I113",0.063,0.0042,0.0,idrotm[202],"ONLY");
3524      gMC->Gspos("I115",1,"I113",0.063,0.0042,0.0,idrotm[202],"ONLY");
3525      gMC->Gspos("I115",2,"I113",-0.063,0.0042,0.0,idrotm[201],"ONLY");
3526      gMC->Gspos("I114",2,"I113",-0.063,0.0042,0.0,idrotm[201],"ONLY");
3527      gMC->Gspos("I116",1,"I113",0.0,0.0042,0.0,0,"ONLY");
3528      gMC->Gspos("I111",1,"I113",-0.1318,-0.0008,0.0,idrotm[204],"ONLY");
3529      gMC->Gspos("I112",1,"I113",-0.25,0.02,0.0,idrotm[203],"ONLY");
3530      gMC->Gspos("I101",1,"I103",-0.088,0.0075+0.0075,0.0,0,"ONLY");
3531      gMC->Gspos("I102",1,"I103",0.0,-0.005-0.01,-2.8,0,"ONLY");
3532      gMC->Gspos("I102",2,"I103",0.0,-0.005-0.01,-1.4,0,"ONLY");
3533      gMC->Gspos("I102",3,"I103",0.0,-0.005-0.01,0.0,0,"ONLY");
3534      gMC->Gspos("I102",4,"I103",0.0,-0.005-0.01,1.4,0,"ONLY");
3535      gMC->Gspos("I102",5,"I103",0.0,-0.005-0.01,2.8,0,"ONLY");
3536      gMC->Gspos("I1D1",1,"I1D3",-0.088,0.0075+0.0075,0.0,0,"ONLY");
3537      gMC->Gspos("I102",6,"I1D3",0.0,-0.005-0.01,-2.8,0,"ONLY");
3538      gMC->Gspos("I102",7,"I1D3",0.0,-0.005-0.01,-1.4,0,"ONLY");
3539      gMC->Gspos("I102",8,"I1D3",0.0,-0.005-0.01,0.0,0,"ONLY");
3540      gMC->Gspos("I102",9,"I1D3",0.0,-0.005-0.01,1.4,0,"ONLY");
3541      gMC->Gspos("I102",10,"I1D3",0.0,-0.005-0.01,2.8,0,"ONLY");
3542      gMC->Gspos("I117",1,"I116",0.0,0.0,0.0,0,"ONLY");
3543      gMC->Gspos("ITS1",1,"I101",0.0,0.0,0.0,0,"ONLY");
3544      gMC->Gspos("ITS2",1,"I1D1",0.0,0.0,0.0,0,"ONLY");
3545      gMC->Gspos("I650",16,"IT12",0.0,0.0,22.0,idrotm[1104],"MANY");
3546      gMC->Gspos("I650",20,"IT12",0.0,0.0,22.0,idrotm[1130],"MANY");
3547      gMC->Gspos("I650",18,"IT12",0.0,0.0,22.0,idrotm[1117],"MANY");
3548      gMC->Gspos("I650",1,"IT12",0.0,0.0,22.0,0,"MANY");
3549      gMC->Gspos("I650",4,"IT12",0.0,0.0,22.0,idrotm[1106],"MANY");
3550      gMC->Gspos("I650",6,"IT12",0.0,0.0,22.0,idrotm[1039],"MANY");
3551      gMC->Gspos("I650",8,"IT12",0.0,0.0,22.0,idrotm[1107],"MANY");
3552      gMC->Gspos("I650",10,"IT12",0.0,0.0,22.0,idrotm[1065],"MANY");
3553      gMC->Gspos("I650",12,"IT12",0.0,0.0,22.0,idrotm[1078],"MANY");
3554      gMC->Gspos("I650",14,"IT12",0.0,0.0,22.0,idrotm[1091],"MANY");
3555      gMC->Gspos("I650",19,"IT12",0.0,0.0,-22.0,idrotm[1108],"MANY");
3556      gMC->Gspos("I650",2,"IT12",0.0,0.0,-22.0,idrotm[1109],"MANY");
3557      gMC->Gspos("I650",3,"IT12",0.0,0.0,-22.0,idrotm[1110],"MANY");
3558      gMC->Gspos("I650",5,"IT12",0.0,0.0,-22.0,idrotm[1111],"MANY");
3559      gMC->Gspos("I650",7,"IT12",0.0,0.0,-22.0,idrotm[1112],"MANY");
3560      gMC->Gspos("I650",9,"IT12",0.0,0.0,-22.0,idrotm[1113],"MANY");
3561      gMC->Gspos("I650",11,"IT12",0.0,0.0,-22.0,idrotm[1114],"MANY");
3562      gMC->Gspos("I650",13,"IT12",0.0,0.0,-22.0,idrotm[1115],"MANY");
3563      gMC->Gspos("I650",15,"IT12",0.0,0.0,-22.0,idrotm[1116],"MANY");
3564      gMC->Gspos("I650",17,"IT12",0.0,0.0,-22.0,idrotm[1118],"MANY");
3565      gMC->Gspos("I666",1,"I650",0.0,0.0,0.25,idrotm[1003],"MANY");
3566      gMC->Gspos("I667",1,"I650",0.1102,0.9945,0.45,idrotm[1088],"ONLY");
3567      gMC->Gspos("I669",3,"I650",0.1883,4.0372,-3.2,0,"ONLY");
3568      gMC->Gspos("I671",3,"I650",0.1883,4.0372,0.6,0,"ONLY");
3569      gMC->Gspos("I669",2,"I650",1.3343,4.0609,-3.2,0,"ONLY");
3570      gMC->Gspos("I671",2,"I650",1.3343,4.0609,0.6,0,"ONLY");
3571      gMC->Gspos("I669",6,"I650",2.9567,6.1959,-3.2,idrotm[1089],"ONLY");
3572      gMC->Gspos("I671",6,"I650",2.9567,6.1959,0.6,idrotm[1089],"ONLY");
3573      gMC->Gspos("I669",5,"I650",1.9511,6.5822,-3.2,idrotm[1011],"ONLY");
3574      gMC->Gspos("I671",5,"I650",1.9511,6.5822,0.6,idrotm[1011],"ONLY");
3575      gMC->Gspos("I669",4,"I650",0.8974,6.8064,-3.2,idrotm[1090],"ONLY");
3576      gMC->Gspos("I671",4,"I650",0.8974,6.8064,0.6,idrotm[1090],"ONLY");
3577      gMC->Gspos("I669",1,"I650",-0.1784,6.863,-3.2,0,"ONLY");
3578      gMC->Gspos("I671",1,"I650",-0.1784,6.863,0.6,0,"ONLY");
3579      gMC->Gspos("I673",1,"I650",0.2173,4.8037,1.8,0,"ONLY");
3580      gMC->Gspos("I673",6,"I650",1.5093,4.5605,1.8,0,"ONLY");
3581      gMC->Gspos("I673",4,"I650",-0.173,6.2531,1.8,idrotm[1092],"ONLY");
3582      gMC->Gspos("I673",3,"I650",0.8073,6.2032,1.8,idrotm[1093],"ONLY");
3583      gMC->Gspos("I673",2,"I650",1.7678,6.0005,1.8,idrotm[1094],"ONLY");
3584      gMC->Gspos("I673",5,"I650",2.6847,5.6501,1.8,0,"ONLY");
3585      gMC->Gspos("I676",2,"I650",1.7618,5.2269,2.5,0,"ONLY");
3586      gMC->Gspos("I676",1,"I650",0.4018,5.5869,2.5,0,"ONLY");
3587      gMC->Gspos("I668",1,"I667",0.0,0.0,0.0,0,"ONLY");
3588      gMC->Gspos("I670",1,"I669",0.0,0.0,0.0,0,"ONLY");
3589      gMC->Gspos("I672",1,"I671",0.0,0.0,0.0,0,"ONLY");
3590      gMC->Gspos("I674",1,"I673",0.0,0.0,0.0,0,"MANY");
3591      gMC->Gspos("I675",1,"I673",0.0,0.0,-0.5,0,"ONLY");
3592      gMC->Gspos("I677",1,"I676",0.0,0.0,0.0,0,"MANY");
3593      gMC->Gspos("I678",1,"I676",0.0,0.0,-0.95,0,"ONLY");    
3594
3595   }
3596
3597
3598   // --- Place SPD (option 'b') volumes into their mother volume IT12
3599   
3600   // SPD - option 'b' 
3601   // detector thickness = 300 microns
3602   // chip thickness = 300 microns
3603   // (this is the default)
3604
3605   if (option == 2 && thickness == 2) {
3606
3607      gMC->Gspos("I12B",1,"IT12",0.0,0.0,0.0,0,"MANY");
3608      gMC->Gspos("I12B",8,"IT12",0.0,0.0,0.0,idrotm[233],"MANY");
3609      gMC->Gspos("I12B",7,"IT12",0.0,0.0,0.0,idrotm[244],"MANY");
3610      gMC->Gspos("I12B",6,"IT12",0.0,0.0,0.0,idrotm[236],"MANY");
3611      gMC->Gspos("I12B",2,"IT12",0.0,0.0,0.0,idrotm[245],"MANY");
3612      gMC->Gspos("I12B",3,"IT12",0.0,0.0,0.0,idrotm[234],"MANY");
3613      gMC->Gspos("I12B",4,"IT12",0.0,0.0,0.0,idrotm[246],"MANY");
3614      gMC->Gspos("I12B",5,"IT12",0.0,0.0,0.0,idrotm[247],"MANY");
3615      gMC->Gspos("I12B",9,"IT12",0.0,0.0,0.0,idrotm[248],"MANY");
3616      gMC->Gspos("I12B",10,"IT12",0.0,0.0,0.0,idrotm[249],"MANY");
3617      gMC->Gspos("I10B",2,"I12B",0.203-0.0009,3.8206-0.0175,0.0,idrotm[238],"ONLY");
3618      gMC->Gspos("I10B",1,"I12B",1.4531-0.0063,3.8152-0.0164,0.0,idrotm[239],"ONLY");
3619      gMC->Gspos("I20B",1,"I12B",3.0174+0.0074,6.5143+0.0159,0.0,idrotm[240],"ONLY");
3620      gMC->Gspos("I20B",2,"I12B",1.9612+0.0048,6.9062+0.0168,0.0,idrotm[241],"ONLY");
3621      gMC->Gspos("I20B",3,"I12B",0.8567+0.0021,7.1279+0.0174,0.0,idrotm[242],"ONLY");
3622      gMC->Gspos("I20B",4,"I12B",-0.2689-0.0006,7.1742+0.0175,0.0,idrotm[243],"ONLY");
3623      gMC->Gspos("I123",1,"I12B",-0.2978,5.5196,0.0,idrotm[214],"ONLY");
3624      gMC->Gspos("I121",1,"I12B",-0.2385,4.1518,0.0,idrotm[213],"ONLY");
3625      gMC->Gspos("I122",1,"I12B",-0.2968,4.0207,0.0,idrotm[212],"ONLY");
3626      gMC->Gspos("I120",1,"I12B",-0.3672,3.9056,0.0,0,"ONLY");
3627      gMC->Gspos("I144",1,"I12B",-0.2538,3.8556,0.0,0,"ONLY");
3628      gMC->Gspos("I113",3,"I12B",0.1095,3.9056,0.0,0,"ONLY");
3629      gMC->Gspos("I143",1,"I12B",0.4365,3.8556,0.0,idrotm[236],"ONLY");
3630      gMC->Gspos("I142",1,"I12B",0.5136,3.9056,0.0,idrotm[235],"ONLY");
3631      gMC->Gspos("I141",1,"I12B",0.5636,3.9752,0.0,idrotm[237],"ONLY");
3632      gMC->Gspos("I140",1,"I12B",0.6336,4.0447,0.0,idrotm[234],"ONLY");
3633      gMC->Gspos("I139",1,"I12B",0.8297,4.0545,0.0,idrotm[207],"ONLY");
3634      gMC->Gspos("I113",5,"I12B",1.2575,3.9681,0.0,idrotm[207],"ONLY");
3635      gMC->Gspos("I138",1,"I12B",1.66,3.7848,0.0,idrotm[207],"ONLY");
3636      gMC->Gspos("I137",1,"I12B",1.8556,3.7738,0.0,idrotm[233],"ONLY");
3637      gMC->Gspos("I136",1,"I12B",2.6224,4.874,0.0,idrotm[232],"ONLY");
3638      gMC->Gspos("I135",1,"I12B",3.2967,6.0337,0.0,idrotm[231],"ONLY");
3639      gMC->Gspos("I134",1,"I12B",3.266,6.1636,0.0,idrotm[230],"ONLY");
3640      gMC->Gspos("I113",1,"I12B",2.9903,6.4144,0.0,idrotm[211],"ONLY");
3641      gMC->Gspos("I133",3,"I12B",2.7631,6.7627,0.0,idrotm[230],"ONLY");
3642      gMC->Gspos("I132",3,"I12B",2.62,6.8555,0.0,idrotm[229],"ONLY");
3643      gMC->Gspos("I131",3,"I12B",2.648,6.6023,0.0,idrotm[228],"ONLY");
3644      gMC->Gspos("I130",3,"I12B",2.6569,6.3431,0.0,idrotm[227],"ONLY");
3645      gMC->Gspos("I129",3,"I12B",2.3906,6.4819,0.0,idrotm[226],"ONLY");
3646      gMC->Gspos("I113",2,"I12B",1.9488,6.7998,0.0,idrotm[210],"ONLY");
3647      gMC->Gspos("I133",2,"I12B",1.6699,7.1085,0.0,idrotm[226],"ONLY");
3648      gMC->Gspos("I132",2,"I12B",1.5142,7.1777,0.0,idrotm[225],"ONLY");
3649      gMC->Gspos("I131",2,"I12B",1.5814,6.932,0.0,idrotm[224],"ONLY");
3650      gMC->Gspos("I130",2,"I12B",1.6308,6.6774,0.0,idrotm[223],"ONLY");
3651      gMC->Gspos("I129",2,"I12B",1.346,6.7728,0.0,idrotm[222],"ONLY");
3652      gMC->Gspos("I113",6,"I12B",0.8599,7.0176,0.0,idrotm[209],"ONLY");
3653      gMC->Gspos("I133",1,"I12B",0.5362,7.2789,0.0,idrotm[222],"ONLY");
3654      gMC->Gspos("I132",1,"I12B",0.3715,7.3228,0.0,idrotm[221],"ONLY");
3655      gMC->Gspos("I131",1,"I12B",0.4763,7.0907,0.0,idrotm[220],"ONLY");
3656      gMC->Gspos("I130",1,"I12B",0.5649,6.8469,0.0,idrotm[219],"ONLY");
3657      gMC->Gspos("I129",1,"I12B",0.2688,6.8966,0.0,idrotm[218],"ONLY");
3658      gMC->Gspos("I113",4,"I12B",-0.2497,7.0624,0.0,idrotm[208],"ONLY");
3659      gMC->Gspos("I128",1,"I12B",-0.6103,7.2698,0.0,idrotm[218],"ONLY");
3660      gMC->Gspos("I126",1,"I12B",-0.7799,7.2874,0.0,idrotm[217],"ONLY");
3661      gMC->Gspos("I125",1,"I12B",-0.6315,7.0883,0.0,idrotm[216],"ONLY");
3662      gMC->Gspos("I124",1,"I12B",-0.4965,6.8742,0.0,idrotm[215],"ONLY");
3663      gMC->Gspos("I105",3,"I10B",-0.05,-0.01,-16.844,idrotm[201],"ONLY");
3664      gMC->Gspos("I105",4,"I10B",-0.05,-0.01,16.844,0,"ONLY");
3665      gMC->Gspos("I107",2,"I10B",-0.0455,-0.0125,3.536,0,"ONLY");
3666      gMC->Gspos("I107",1,"I10B",-0.0455,-0.0125,10.708,0,"ONLY");
3667      gMC->Gspos("I107",4,"I10B",-0.0455,-0.0125,-10.708,idrotm[201],"ONLY");
3668      gMC->Gspos("I107",3,"I10B",-0.0455,-0.0125,-3.536,idrotm[201],"ONLY");
3669      gMC->Gspos("I109",1,"I10B",-0.138,0.015,-16.844,idrotm[201],"ONLY");
3670      gMC->Gspos("I109",2,"I10B",-0.138,0.015,16.844,0,"ONLY");
3671      gMC->Gspos("I108",1,"I10B",-0.138,0.01+0.0175,0.0,0,"ONLY");
3672      gMC->Gspos("I105",1,"I20B",-0.05,-0.01,-16.844,idrotm[201],"ONLY");
3673      gMC->Gspos("I105",2,"I20B",-0.05,-0.01,16.844,0,"ONLY");
3674      gMC->Gspos("I1D7",2,"I20B",-0.0455,-0.0125,3.536,0,"ONLY");
3675      gMC->Gspos("I1D7",1,"I20B",-0.0455,-0.0125,10.708,0,"ONLY");
3676      gMC->Gspos("I1D7",4,"I20B",-0.0455,-0.0125,-10.708,idrotm[201],"ONLY");
3677      gMC->Gspos("I1D7",3,"I20B",-0.0455,-0.0125,-3.536,idrotm[201],"ONLY");
3678      gMC->Gspos("I109",3,"I20B",-0.138,0.015,-16.844,idrotm[201],"ONLY");
3679      gMC->Gspos("I109",4,"I20B",-0.138,0.015,16.844,0,"ONLY");
3680      gMC->Gspos("I108",2,"I20B",-0.138,0.01+0.0175,0.0,0,"ONLY");
3681      gMC->Gspos("I112",2,"I113",0.25,0.02,0.0,idrotm[206],"ONLY");
3682      gMC->Gspos("I111",2,"I113",0.1318,-0.0008,0.0,idrotm[205],"ONLY");
3683      gMC->Gspos("I118",1,"I113",0.0,-0.0454,0.0,0,"ONLY");
3684      gMC->Gspos("I110",1,"I113",0.0,0.0492,0.0,0,"ONLY");
3685      gMC->Gspos("I114",1,"I113",0.063,0.0042,0.0,idrotm[202],"ONLY");
3686      gMC->Gspos("I115",1,"I113",0.063,0.0042,0.0,idrotm[202],"ONLY");
3687      gMC->Gspos("I115",2,"I113",-0.063,0.0042,0.0,idrotm[237],"ONLY");
3688      gMC->Gspos("I114",2,"I113",-0.063,0.0042,0.0,idrotm[237],"ONLY");
3689      gMC->Gspos("I116",1,"I113",0.0,0.0042,0.0,0,"ONLY");
3690      gMC->Gspos("I111",1,"I113",-0.1318,-0.0008,0.0,idrotm[204],"ONLY");
3691      gMC->Gspos("I112",1,"I113",-0.25,0.02,0.0,idrotm[203],"ONLY");
3692      gMC->Gspos("I106",1,"I107",0.0,-0.005-0.01,-1.4,0,"ONLY");
3693      gMC->Gspos("I106",2,"I107",0.0,-0.005-0.01,0.0,0,"ONLY");
3694      gMC->Gspos("I106",3,"I107",0.0,-0.005-0.01,1.4,0,"ONLY");
3695      gMC->Gspos("I106",4,"I107",0.0,-0.005-0.01,2.8,0,"ONLY");
3696      gMC->Gspos("I106",5,"I107",0.0,-0.005-0.01,-2.8,0,"ONLY");
3697      gMC->Gspos("I101",1,"I107",0.0,0.0075+0.0075,0.0,0,"ONLY");
3698      gMC->Gspos("I106",6,"I1D7",0.0,-0.005-0.01,-1.4,0,"ONLY");
3699      gMC->Gspos("I106",7,"I1D7",0.0,-0.005-0.01,0.0,0,"ONLY");
3700      gMC->Gspos("I106",8,"I1D7",0.0,-0.005-0.01,1.4,0,"ONLY");
3701      gMC->Gspos("I106",9,"I1D7",0.0,-0.005-0.01,2.8,0,"ONLY");
3702      gMC->Gspos("I106",10,"I1D7",0.0,-0.005-0.01,-2.8,0,"ONLY");
3703      gMC->Gspos("I1D1",1,"I1D7",0.0,0.0075+0.0075,0.0,0,"ONLY");
3704      gMC->Gspos("I117",1,"I116",0.0,0.0,0.0,0,"ONLY");
3705      gMC->Gspos("ITS1",1,"I101",0.0,0.0,0.0,0,"ONLY");
3706      gMC->Gspos("ITS2",1,"I1D1",0.0,0.0,0.0,0,"ONLY");
3707      gMC->Gspos("I650",16,"IT12",0.0,0.0,22.0,idrotm[1104],"MANY");
3708      gMC->Gspos("I650",20,"IT12",0.0,0.0,22.0,idrotm[1130],"MANY");
3709      gMC->Gspos("I650",18,"IT12",0.0,0.0,22.0,idrotm[1117],"MANY");
3710      gMC->Gspos("I650",1,"IT12",0.0,0.0,22.0,0,"MANY");
3711      gMC->Gspos("I650",4,"IT12",0.0,0.0,22.0,idrotm[1106],"MANY");
3712      gMC->Gspos("I650",6,"IT12",0.0,0.0,22.0,idrotm[1039],"MANY");
3713      gMC->Gspos("I650",8,"IT12",0.0,0.0,22.0,idrotm[1107],"MANY");
3714      gMC->Gspos("I650",10,"IT12",0.0,0.0,22.0,idrotm[1065],"MANY");
3715      gMC->Gspos("I650",12,"IT12",0.0,0.0,22.0,idrotm[1078],"MANY");
3716      gMC->Gspos("I650",14,"IT12",0.0,0.0,22.0,idrotm[1091],"MANY");
3717      gMC->Gspos("I650",19,"IT12",0.0,0.0,-22.0,idrotm[1108],"MANY");
3718      gMC->Gspos("I650",2,"IT12",0.0,0.0,-22.0,idrotm[1109],"MANY");
3719      gMC->Gspos("I650",3,"IT12",0.0,0.0,-22.0,idrotm[1110],"MANY");
3720      gMC->Gspos("I650",5,"IT12",0.0,0.0,-22.0,idrotm[1111],"MANY");
3721      gMC->Gspos("I650",7,"IT12",0.0,0.0,-22.0,idrotm[1112],"MANY");
3722      gMC->Gspos("I650",9,"IT12",0.0,0.0,-22.0,idrotm[1113],"MANY");
3723      gMC->Gspos("I650",11,"IT12",0.0,0.0,-22.0,idrotm[1114],"MANY");
3724      gMC->Gspos("I650",13,"IT12",0.0,0.0,-22.0,idrotm[1115],"MANY");
3725      gMC->Gspos("I650",15,"IT12",0.0,0.0,-22.0,idrotm[1116],"MANY");
3726      gMC->Gspos("I650",17,"IT12",0.0,0.0,-22.0,idrotm[1118],"MANY");
3727      gMC->Gspos("I666",1,"I650",0.0,0.0,0.25,idrotm[1003],"MANY");
3728      gMC->Gspos("I667",1,"I650",0.1102,0.9945,0.45,idrotm[1088],"ONLY");
3729      gMC->Gspos("I669",3,"I650",0.1883,4.0372,-3.2,0,"ONLY");
3730      gMC->Gspos("I671",3,"I650",0.1883,4.0372,0.6,0,"ONLY");
3731      gMC->Gspos("I669",2,"I650",1.3343,4.0609,-3.2,0,"ONLY");
3732      gMC->Gspos("I671",2,"I650",1.3343,4.0609,0.6,0,"ONLY");
3733      gMC->Gspos("I669",6,"I650",2.9567,6.1959,-3.2,idrotm[1089],"ONLY");
3734      gMC->Gspos("I671",6,"I650",2.9567,6.1959,0.6,idrotm[1089],"ONLY");
3735      gMC->Gspos("I669",5,"I650",1.9511,6.5822,-3.2,idrotm[1011],"ONLY");
3736      gMC->Gspos("I671",5,"I650",1.9511,6.5822,0.6,idrotm[1011],"ONLY");
3737      gMC->Gspos("I669",4,"I650",0.8974,6.8064,-3.2,idrotm[1090],"ONLY");
3738      gMC->Gspos("I671",4,"I650",0.8974,6.8064,0.6,idrotm[1090],"ONLY");
3739      gMC->Gspos("I669",1,"I650",-0.1784,6.863,-3.2,0,"ONLY");
3740      gMC->Gspos("I671",1,"I650",-0.1784,6.863,0.6,0,"ONLY");
3741      gMC->Gspos("I673",1,"I650",0.2173,4.8037,1.8,0,"ONLY");
3742      gMC->Gspos("I673",6,"I650",1.5093,4.5605,1.8,0,"ONLY");
3743      gMC->Gspos("I673",4,"I650",-0.173,6.2531,1.8,idrotm[1092],"ONLY");
3744      gMC->Gspos("I673",3,"I650",0.8073,6.2032,1.8,idrotm[1093],"ONLY");
3745      gMC->Gspos("I673",2,"I650",1.7678,6.0005,1.8,idrotm[1094],"ONLY");
3746      gMC->Gspos("I673",5,"I650",2.6847,5.6501,1.8,0,"ONLY");
3747      gMC->Gspos("I676",2,"I650",1.7618,5.2269,2.5,0,"ONLY");
3748      gMC->Gspos("I676",1,"I650",0.4018,5.5869,2.5,0,"ONLY");
3749      gMC->Gspos("I668",1,"I667",0.0,0.0,0.0,0,"ONLY");
3750      gMC->Gspos("I670",1,"I669",0.0,0.0,0.0,0,"ONLY");
3751      gMC->Gspos("I672",1,"I671",0.0,0.0,0.0,0,"ONLY");
3752      gMC->Gspos("I674",1,"I673",0.0,0.0,0.0,0,"MANY");
3753      gMC->Gspos("I675",1,"I673",0.0,0.0,-0.5,0,"ONLY");
3754      gMC->Gspos("I677",1,"I676",0.0,0.0,0.0,0,"MANY");
3755      gMC->Gspos("I678",1,"I676",0.0,0.0,-0.95,0,"ONLY");  
3756
3757   }
3758     
3759   // --- Place SDD volumes into their mother volume IT34
3760
3761   
3762   gMC->Gspos("I048",8,"IT34",-22.1376,-14.227,0.0,idrotm[328],"ONLY");
3763   gMC->Gspos("I048",7,"IT34",-24.7213,-7.2588,0.0,idrotm[329],"ONLY");
3764   gMC->Gspos("I048",6,"IT34",-26.315,0.0,0.0,idrotm[350],"ONLY");
3765   gMC->Gspos("I048",5,"IT34",-24.7213,7.2588,0.0,idrotm[330],"ONLY");
3766   gMC->Gspos("I048",4,"IT34",-22.1376,14.227,0.0,idrotm[366],"ONLY");
3767   gMC->Gspos("I048",3,"IT34",-16.8725,19.4719,0.0,idrotm[331],"ONLY");
3768   gMC->Gspos("I048",2,"IT34",-10.9317,23.937,0.0,idrotm[332],"ONLY");
3769   gMC->Gspos("I048",1,"IT34",-3.6667,25.5027,0.0,idrotm[335],"ONLY");
3770   gMC->Gspos("I048",22,"IT34",3.745,26.0472,0.0,idrotm[334],"ONLY");
3771   gMC->Gspos("I048",21,"IT34",10.7032,23.4367,0.0,idrotm[314],"ONLY");
3772   gMC->Gspos("I048",20,"IT34",17.2327,19.8876,0.0,idrotm[315],"ONLY");
3773   gMC->Gspos("I048",19,"IT34",21.6749,13.9296,0.0,idrotm[316],"ONLY");
3774   gMC->Gspos("I048",18,"IT34",25.2491,7.4138,0.0,idrotm[317],"ONLY");
3775   gMC->Gspos("I048",17,"IT34",25.765,0.0,0.0,idrotm[318],"ONLY");
3776   gMC->Gspos("I048",16,"IT34",25.2491,-7.4138,0.0,idrotm[319],"ONLY");
3777   gMC->Gspos("I048",15,"IT34",21.6749,-13.9296,0.0,idrotm[320],"ONLY");
3778   gMC->Gspos("I048",14,"IT34",17.2327,-19.8876,0.0,idrotm[322],"ONLY");
3779   gMC->Gspos("I048",13,"IT34",10.7032,-23.4367,0.0,idrotm[323],"ONLY");
3780   gMC->Gspos("I048",12,"IT34",3.745,-26.0472,0.0,idrotm[324],"ONLY");
3781   gMC->Gspos("I048",11,"IT34",-3.6667,-25.5027,0.0,idrotm[325],"ONLY");
3782   gMC->Gspos("I048",10,"IT34",-10.9316,-23.937,0.0,idrotm[326],"ONLY");
3783   gMC->Gspos("I048",9,"IT34",-16.8725,-19.4719,0.0,idrotm[327],"ONLY");
3784   gMC->Gspos("I005",9,"IT34",-15.4744,-17.8584,-0.15,idrotm[327],"ONLY");
3785   gMC->Gspos("I005",8,"IT34",-20.3415,-13.0727,-0.15,idrotm[328],"ONLY");
3786   gMC->Gspos("I005",7,"IT34",-22.6728,-6.6573,-0.15,idrotm[329],"ONLY");
3787   gMC->Gspos("I005",6,"IT34",-24.18,0.0,-0.15,idrotm[350],"ONLY");
3788   gMC->Gspos("I005",5,"IT34",-22.6728,6.6573,-0.15,idrotm[330],"ONLY");
3789   gMC->Gspos("I005",4,"IT34",-20.3415,13.0727,-0.15,idrotm[366],"ONLY");
3790   gMC->Gspos("I005",3,"IT34",-15.4744,17.8584,-0.15,idrotm[331],"ONLY");
3791   gMC->Gspos("I005",2,"IT34",-10.0447,21.9949,-0.15,idrotm[332],"ONLY");
3792   gMC->Gspos("I005",1,"IT34",-3.3629,23.3895,-0.15,idrotm[335],"ONLY");
3793   gMC->Gspos("I005",22,"IT34",3.4412,23.9339,-0.15,idrotm[334],"ONLY");
3794   gMC->Gspos("I005",21,"IT34",9.8163,21.4946,-0.15,idrotm[314],"ONLY");
3795   gMC->Gspos("I005",20,"IT34",15.8345,18.274,-0.15,idrotm[315],"ONLY");
3796   gMC->Gspos("I005",19,"IT34",19.8788,12.7753,-0.15,idrotm[316],"ONLY");
3797   gMC->Gspos("I005",18,"IT34",23.2005,6.8123,-0.15,idrotm[317],"ONLY");
3798   gMC->Gspos("I005",17,"IT34",23.63,0.0,-0.15,idrotm[318],"ONLY");
3799   gMC->Gspos("I005",16,"IT34",23.2005,-6.8123,-0.15,idrotm[319],"ONLY");
3800   gMC->Gspos("I005",15,"IT34",19.8788,-12.7753,-0.15,idrotm[320],"ONLY");
3801   gMC->Gspos("I005",14,"IT34",15.8345,-18.274,-0.15,idrotm[322],"ONLY");
3802   gMC->Gspos("I005",13,"IT34",9.8163,-21.4946,-0.15,idrotm[323],"ONLY");
3803   gMC->Gspos("I005",12,"IT34",3.4412,-23.9339,-0.15,idrotm[324],"ONLY");
3804   gMC->Gspos("I005",11,"IT34",-3.3629,-23.3895,-0.15,idrotm[325],"ONLY");
3805   gMC->Gspos("I005",10,"IT34",-10.0447,-21.9949,-0.15,idrotm[326],"ONLY");
3806   gMC->Gspos("I047",6,"IT34",-10.8893,-13.6547,0.0,idrotm[311],"ONLY");
3807   gMC->Gspos("I047",5,"IT34",-15.1948,-7.3174,0.0,idrotm[313],"ONLY");
3808   gMC->Gspos("I047",4,"IT34",-17.465,0.0,0.0,idrotm[350],"ONLY");
3809   gMC->Gspos("I047",3,"IT34",-15.1948,7.3175,0.0,idrotm[336],"ONLY");
3810   gMC->Gspos("I047",2,"IT34",-10.8892,13.6547,0.0,idrotm[333],"ONLY");
3811   gMC->Gspos("I047",1,"IT34",-3.7528,16.4422,0.0,idrotm[321],"ONLY");
3812   gMC->Gspos("I047",14,"IT34",3.8863,17.0271,0.0,idrotm[305],"ONLY");
3813   gMC->Gspos("I047",13,"IT34",10.5152,13.1856,0.0,idrotm[306],"ONLY");
3814   gMC->Gspos("I047",12,"IT34",15.7354,7.5778,0.0,idrotm[307],"ONLY");
3815   gMC->Gspos("I047",11,"IT34",16.865,0.0,0.0,idrotm[356],"ONLY");
3816   gMC->Gspos("I047",10,"IT34",15.7354,-7.5778,0.0,idrotm[308],"ONLY");
3817   gMC->Gspos("I047",9,"IT34",10.5152,-13.1856,0.0,idrotm[309],"ONLY");
3818   gMC->Gspos("I047",8,"IT34",3.8863,-17.0271,0.0,idrotm[386],"ONLY");
3819   gMC->Gspos("I047",7,"IT34",-3.7528,-16.4422,0.0,idrotm[310],"ONLY");
3820   gMC->Gspos("I004",6,"IT34",-9.5581,-11.9855,0.0,idrotm[311],"ONLY");
3821   gMC->Gspos("I004",5,"IT34",-13.2713,-6.3911,0.0,idrotm[313],"ONLY");
3822   gMC->Gspos("I004",4,"IT34",-15.33,0.0,0.0,idrotm[350],"ONLY");
3823   gMC->Gspos("I004",3,"IT34",-13.2713,6.3911,0.0,idrotm[336],"ONLY");
3824   gMC->Gspos("I004",2,"IT34",-9.5581,11.9855,0.0,idrotm[333],"ONLY");
3825   gMC->Gspos("I004",1,"IT34",-3.2777,14.3607,0.0,idrotm[321],"ONLY");
3826   gMC->Gspos("I004",14,"IT34",3.4113,14.9456,0.0,idrotm[305],"ONLY");
3827   gMC->Gspos("I004",13,"IT34",9.184,11.5164,0.0,idrotm[306],"ONLY");
3828   gMC->Gspos("I004",12,"IT34",13.8119,6.6514,0.0,idrotm[307],"ONLY");
3829   gMC->Gspos("I004",11,"IT34",14.73,0.0,0.0,idrotm[356],"ONLY");
3830   gMC->Gspos("I004",10,"IT34",13.8119,-6.6514,0.0,idrotm[308],"ONLY");
3831   gMC->Gspos("I004",9,"IT34",9.184,-11.5164,0.0,idrotm[309],"ONLY");
3832   gMC->Gspos("I004",8,"IT34",3.4112,-14.9456,0.0,idrotm[386],"ONLY");
3833   gMC->Gspos("I004",7,"IT34",-3.2777,-14.3607,0.0,idrotm[310],"ONLY");
3834   gMC->Gspos("I024",3,"I048",-0.0001,0.0,31.925,0,"ONLY");
3835   gMC->Gspos("I024",4,"I048",-0.0001,0.0,-31.925,idrotm[355],"ONLY");
3836   gMC->Gspos("I018",14,"I048",-0.0001,0.0,-25.55,0,"ONLY");
3837   gMC->Gspos("I018",13,"I048",-0.0001,0.0,-18.25,0,"ONLY");
3838   gMC->Gspos("I018",12,"I048",-0.0001,0.0,-10.95,0,"ONLY");
3839   gMC->Gspos("I018",11,"I048",-0.0001,0.0,25.55,0,"ONLY");
3840   gMC->Gspos("I018",10,"I048",-0.0001,0.0,18.25,0,"ONLY");
3841   gMC->Gspos("I018",9,"I048",-0.0001,0.0,10.95,0,"ONLY");
3842   gMC->Gspos("I018",8,"I048",-0.0001,0.0,3.65,0,"ONLY");
3843   gMC->Gspos("I018",7,"I048",-0.0001,0.0,-3.65,0,"ONLY");
3844   gMC->Gspos("I402",5,"I005",0.0,-0.115,-3.55,0,"ONLY");
3845   gMC->Gspos("I402",4,"I005",0.0,0.115,3.85,0,"ONLY");
3846   gMC->Gspos("I402",2,"I005",0.0,0.115,18.75,0,"ONLY");
3847   gMC->Gspos("I402",3,"I005",0.0,-0.115,11.15,0,"ONLY");
3848   gMC->Gspos("I402",1,"I005",0.0,-0.115,25.9,0,"ONLY");
3849   gMC->Gspos("I402",6,"I005",0.0,0.115,-11.05,0,"ONLY");
3850   gMC->Gspos("I402",7,"I005",0.0,-0.115,-18.3,0,"ONLY");
3851   gMC->Gspos("I402",8,"I005",0.0,0.115,-25.9,0,"ONLY");  
3852   gMC->Gspos("I024",1,"I047",0.0,0.0,24.625,0,"ONLY");  
3853   gMC->Gspos("I018",4,"I047",0.0,0.0,-3.65,0,"ONLY");
3854   gMC->Gspos("I018",5,"I047",0.0,0.0,-10.95,0,"ONLY");
3855   gMC->Gspos("I018",6,"I047",0.0,0.0,-18.25,0,"ONLY");
3856   gMC->Gspos("I018",1,"I047",0.0,0.0,3.65,0,"ONLY");
3857   gMC->Gspos("I018",2,"I047",0.0,0.0,10.95,0,"ONLY");
3858   gMC->Gspos("I018",3,"I047",0.0,0.0,18.25,0,"ONLY");
3859   gMC->Gspos("I024",2,"I047",0.0,0.0,-24.625,idrotm[355],"ONLY");
3860   gMC->Gspos("I302",4,"I004",0.0,-0.115,-3.7,0,"ONLY");
3861   gMC->Gspos("I302",3,"I004",0.0,0.115,3.7,0,"ONLY");
3862   gMC->Gspos("I302",6,"I004",0.0,-0.115,-18.35,0,"ONLY");
3863   gMC->Gspos("I302",5,"I004",0.0,0.115,-11.2,0,"ONLY");
3864   gMC->Gspos("I302",2,"I004",0.0,-0.115,10.95,0,"ONLY");
3865   gMC->Gspos("I302",1,"I004",0.0,0.115,18.55,0,"ONLY");
3866   gMC->Gspos("I025",2,"I024",1.987,-1.5842,0.0,idrotm[343],"ONLY");
3867   gMC->Gspos("I026",2,"I024",1.8824,-1.7349,0.0,idrotm[344],"ONLY");
3868   gMC->Gspos("I025",1,"I024",-1.9,-1.7349,0.0,idrotm[344],"ONLY");
3869   gMC->Gspos("I026",1,"I024",-1.9782,-1.5689,0.0,idrotm[342],"ONLY");
3870   gMC->Gspos("I026",3,"I024",0.0958,1.6914,0.0,idrotm[343],"ONLY");
3871   gMC->Gspos("I025",3,"I024",-0.087,1.7067,0.0,idrotm[342],"ONLY");
3872   gMC->Gspos("I021",10,"I024",1.0761,0.0836,1.7742,idrotm[337],"ONLY");
3873   gMC->Gspos("I021",9,"I024",-1.0761,0.0836,1.7742,idrotm[339],"ONLY");
3874   gMC->Gspos("I021",12,"I024",1.0761,0.0836,-0.1242,idrotm[340],"ONLY");
3875   gMC->Gspos("I021",11,"I024",-1.0761,0.0836,-0.1242,idrotm[338],"ONLY");
3876   gMC->Gspos("I021",13,"I024",-1.0761,0.0836,-1.8758,idrotm[339],"ONLY");
3877   gMC->Gspos("I021",14,"I024",1.0761,0.0836,-1.8758,idrotm[337],"ONLY");
3878   gMC->Gspos("I023",3,"I024",0.0,-1.7899,-1.0,idrotm[341],"ONLY");
3879   gMC->Gspos("I022",3,"I024",0.0,-1.7899,0.825,idrotm[312],"ONLY");
3880   gMC->Gspos("I028",1,"I024",0.0,-1.7999,1.875,0,"MANY");
3881   gMC->Gspos("I029",1,"I024",0.0,-0.9999,2.65,0,"ONLY");
3882   gMC->Gspos("I030",1,"I024",0.0,0.6001,2.65,idrotm[344],"ONLY");
3883   gMC->Gspos("I027",1,"I024",0.0,0.0001,1.9965,idrotm[352],"ONLY");
3884   gMC->Gspos("I032",1,"I024",1.7,-0.4999,0.0,0,"ONLY");
3885   gMC->Gspos("I031",1,"I024",1.7,-0.4999,0.0,0,"ONLY");
3886   gMC->Gspos("I031",2,"I024",-1.7,-0.4999,0.0,0,"ONLY");
3887   gMC->Gspos("I032",2,"I024",-1.7,-0.4999,0.0,0,"ONLY");
3888   gMC->Gspos("I046",6,"I024",-0.616,1.1702,0.0,idrotm[353],"ONLY");
3889   gMC->Gspos("I046",5,"I024",-0.566,1.1702,0.0,idrotm[353],"ONLY");
3890   gMC->Gspos("I046",4,"I024",0.616,1.1702,0.0,idrotm[354],"ONLY");
3891   gMC->Gspos("I046",3,"I024",0.566,1.1702,0.0,idrotm[354],"ONLY");
3892   gMC->Gspos("I046",2,"I024",0.516,1.1702,0.0,idrotm[354],"ONLY");
3893   gMC->Gspos("I046",1,"I024",-0.516,1.1702,0.0,idrotm[353],"ONLY");
3894   gMC->Gspos("I022",2,"I018",0.0,-1.79,-0.1,idrotm[312],"ONLY");
3895   gMC->Gspos("I021",8,"I018",1.0761,0.0835,0.8492,idrotm[337],"ONLY");
3896   gMC->Gspos("I021",7,"I018",-1.0761,0.0835,2.6008,idrotm[338],"ONLY");
3897   gMC->Gspos("I021",6,"I018",-1.0761,0.0835,0.8492,idrotm[339],"ONLY");
3898   gMC->Gspos("I021",5,"I018",1.0761,0.0835,-1.0492,idrotm[340],"ONLY");
3899   gMC->Gspos("I021",4,"I018",1.0761,0.0835,-2.8008,idrotm[337],"ONLY");
3900   gMC->Gspos("I021",3,"I018",-1.0761,0.0835,-1.0492,idrotm[338],"ONLY");
3901   gMC->Gspos("I021",2,"I018",-1.0761,0.0835,-2.8008,idrotm[339],"ONLY");
3902   gMC->Gspos("I023",2,"I018",0.0,-1.79,-1.925,idrotm[341],"ONLY");
3903   gMC->Gspos("I019",3,"I018",-0.087,1.7066,0.0,idrotm[342],"ONLY");
3904   gMC->Gspos("I020",3,"I018",0.0958,1.6913,0.0,idrotm[343],"ONLY");
3905   gMC->Gspos("I019",2,"I018",1.987,-1.5843,0.0,idrotm[343],"ONLY");
3906   gMC->Gspos("I020",2,"I018",1.8824,-1.735,0.0,idrotm[344],"ONLY");
3907   gMC->Gspos("I022",1,"I018",0.0,-1.79,3.55,idrotm[312],"ONLY");
3908   gMC->Gspos("I021",1,"I018",1.0761,0.0835,2.6008,idrotm[340],"ONLY");
3909   gMC->Gspos("I023",1,"I018",0.0,-1.79,1.725,idrotm[341],"ONLY");
3910   gMC->Gspos("I019",1,"I018",-1.9,-1.735,0.0,idrotm[344],"ONLY");
3911   gMC->Gspos("I020",1,"I018",-1.9782,-1.569,0.0,idrotm[342],"ONLY");
3912   gMC->Gspos("I033",1,"I018",1.8,-1.75,1.35,0,"MANY");
3913   gMC->Gspos("I033",4,"I018",1.8,-1.75,-2.65,0,"MANY");
3914   gMC->Gspos("I033",2,"I018",-1.8,-1.75,-2.65,idrotm[345],"MANY");
3915   gMC->Gspos("I033",3,"I018",-1.8,-1.75,1.35,idrotm[345],"MANY");
3916   gMC->Gspos("I036",1,"I018",0.3087,1.7191,3.56,idrotm[346],"ONLY");
3917   gMC->Gspos("I036",4,"I018",-0.3087,1.7191,3.56,idrotm[347],"ONLY");
3918   gMC->Gspos("I036",2,"I018",0.3087,1.7191,-0.11,idrotm[346],"ONLY");
3919   gMC->Gspos("I036",3,"I018",-0.3087,1.7191,-0.11,idrotm[347],"ONLY");
3920   gMC->Gspos("I034",1,"I018",1.6,-1.775,1.35,idrotm[312],"ONLY");
3921   gMC->Gspos("I034",4,"I018",1.6,-1.775,-2.65,idrotm[312],"ONLY");
3922   gMC->Gspos("I034",2,"I018",-1.6,-1.775,-2.65,idrotm[348],"ONLY");
3923   gMC->Gspos("I034",3,"I018",-1.6,-1.775,1.35,idrotm[348],"ONLY");
3924   gMC->Gspos("I035",2,"I018",-1.7,-0.55,2.8581,idrotm[345],"MANY");
3925   gMC->Gspos("I035",1,"I018",1.7,-0.55,2.8581,0,"MANY");
3926   gMC->Gspos("I045",1,"I018",0.7483,0.9337,0.0,idrotm[346],"ONLY");
3927   gMC->Gspos("I045",2,"I018",0.7065,0.9337,0.0,idrotm[346],"ONLY");
3928   gMC->Gspos("I045",3,"I018",-0.7483,0.9337,0.0,idrotm[347],"ONLY");
3929   gMC->Gspos("I045",4,"I018",-0.7065,0.9337,0.0,idrotm[347],"ONLY");
3930   gMC->Gspos("I038",1,"I018",1.7,-0.55,0.0,idrotm[346],"ONLY");
3931   gMC->Gspos("I037",1,"I018",1.7,-0.55,0.0,idrotm[346],"ONLY");
3932   gMC->Gspos("I037",2,"I018",-1.7,-0.55,0.0,idrotm[347],"ONLY");
3933   gMC->Gspos("I038",2,"I018",-1.7,-0.55,0.0,idrotm[347],"ONLY");
3934   gMC->Gspos("I039",1,"I018",1.8126,-0.485,0.0,idrotm[346],"ONLY");
3935   gMC->Gspos("I040",1,"I018",1.9204,-0.7118,0.0,idrotm[346],"ONLY");
3936   gMC->Gspos("I041",1,"I018",1.7,-0.55,0.0,idrotm[346],"ONLY");
3937   gMC->Gspos("I042",1,"I018",2.0342,-0.8189,3.12,idrotm[346],"ONLY");
3938   gMC->Gspos("I042",2,"I018",2.0342,-0.8189,2.28,idrotm[346],"ONLY");
3939   gMC->Gspos("I042",3,"I018",2.0342,-0.8189,1.38,idrotm[346],"ONLY");
3940   gMC->Gspos("I042",4,"I018",2.0342,-0.8189,0.48,idrotm[346],"ONLY");
3941   gMC->Gspos("I042",5,"I018",2.0342,-0.8189,-0.42,idrotm[346],"ONLY");
3942   gMC->Gspos("I042",6,"I018",2.0342,-0.8189,-1.32,idrotm[346],"ONLY");
3943   gMC->Gspos("I042",7,"I018",2.0342,-0.8189,-2.22,idrotm[346],"ONLY");
3944   gMC->Gspos("I042",8,"I018",2.0342,-0.8189,-3.12,idrotm[346],"ONLY");
3945   gMC->Gspos("I043",8,"I018",1.5592,0.0038,-3.15,idrotm[346],"ONLY");
3946   gMC->Gspos("I043",7,"I018",1.5592,0.0038,-2.25,idrotm[346],"ONLY");
3947   gMC->Gspos("I043",6,"I018",1.5592,0.0038,-1.35,idrotm[346],"ONLY");
3948   gMC->Gspos("I043",5,"I018",1.5592,0.0038,-0.45,idrotm[346],"ONLY");
3949   gMC->Gspos("I043",4,"I018",1.5592,0.0038,0.45,idrotm[346],"ONLY");
3950   gMC->Gspos("I043",3,"I018",1.5592,0.0038,1.35,idrotm[346],"ONLY");
3951   gMC->Gspos("I043",2,"I018",1.5592,0.0038,2.25,idrotm[346],"ONLY");
3952   gMC->Gspos("I043",1,"I018",1.5592,0.0038,3.15,idrotm[346],"ONLY");
3953   gMC->Gspos("I039",2,"I018",-1.8126,-0.485,0.0,idrotm[347],"ONLY");
3954   gMC->Gspos("I041",2,"I018",-1.7,-0.55,0.0,idrotm[347],"ONLY");
3955   gMC->Gspos("I040",2,"I018",-1.9204,-0.7118,0.0,idrotm[347],"ONLY");
3956   gMC->Gspos("I043",16,"I018",-1.5592,0.0038,-3.15,idrotm[347],"ONLY");
3957   gMC->Gspos("I042",9,"I018",-2.0342,-0.8189,-3.12,idrotm[347],"ONLY");
3958   gMC->Gspos("I043",15,"I018",-1.5592,0.0038,-2.25,idrotm[347],"ONLY");
3959   gMC->Gspos("I042",10,"I018",-2.0342,-0.8189,-2.22,idrotm[347],"ONLY");
3960   gMC->Gspos("I042",11,"I018",-2.0342,-0.8189,-1.32,idrotm[347],"ONLY");
3961   gMC->Gspos("I043",14,"I018",-1.5592,0.0038,-1.35,idrotm[347],"ONLY");
3962   gMC->Gspos("I042",12,"I018",-2.0342,-0.8189,-0.42,idrotm[347],"ONLY");
3963   gMC->Gspos("I043",13,"I018",-1.5592,0.0038,-0.45,idrotm[347],"ONLY");
3964   gMC->Gspos("I043",12,"I018",-1.5592,0.0038,0.45,idrotm[347],"ONLY");
3965   gMC->Gspos("I043",11,"I018",-1.5592,0.0038,1.35,idrotm[347],"ONLY");
3966   gMC->Gspos("I043",10,"I018",-1.5592,0.0038,2.25,idrotm[347],"ONLY");
3967   gMC->Gspos("I043",9,"I018",-1.5592,0.0038,3.15,idrotm[347],"ONLY");
3968   gMC->Gspos("I042",16,"I018",-2.0342,-0.8189,3.12,idrotm[347],"ONLY");
3969   gMC->Gspos("I042",15,"I018",-2.0342,-0.8189,2.28,idrotm[347],"ONLY");
3970   gMC->Gspos("I042",14,"I018",-2.0342,-0.8189,1.38,idrotm[347],"ONLY");
3971   gMC->Gspos("I042",13,"I018",-2.0342,-0.8189,0.48,idrotm[347],"ONLY");
3972   gMC->Gspos("I044",2,"I018",-2.7487,-1.3673,-0.2,idrotm[349],"ONLY");
3973   gMC->Gspos("I044",1,"I018",2.7487,-1.3673,-0.2,idrotm[351],"ONLY");
3974   gMC->Gspos("I303",1,"I302",1.8125,0.0,4.2605,idrotm[301],"ONLY");
3975   gMC->Gspos("I303",2,"I302",-1.8125,0.0,4.2605,idrotm[302],"ONLY");
3976   gMC->Gspos("I303",3,"I302",-1.8125,0.0,-4.2605,idrotm[303],"ONLY");
3977   gMC->Gspos("I303",4,"I302",1.8125,0.0,-4.2605,idrotm[304],"ONLY");
3978   gMC->Gspos("I403",1,"I402",1.8125,0.0,4.2605,idrotm[301],"ONLY");
3979   gMC->Gspos("I403",2,"I402",-1.8125,0.0,4.2605,idrotm[302],"ONLY");
3980   gMC->Gspos("I403",3,"I402",-1.8125,0.0,-4.2605,idrotm[303],"ONLY");
3981   gMC->Gspos("I403",4,"I402",1.8125,0.0,-4.2605,idrotm[304],"ONLY");
3982   gMC->Gspos("ITS3",1,"I302",0.0,0.0,0.0,0,"ONLY");
3983   gMC->Gspos("ITS4",1,"I402",0.0,0.0,0.0,0,"ONLY");
3984
3985   
3986   // --- Place SSD volumes into their mother volume IT56  
3987
3988
3989   gMC->Gspos("I570",14,"IT56",-28.0681,-36.0619,-0.27,idrotm[566],"ONLY"); 
3990   gMC->Gspos("I570",15,"IT56",-21.677,-40.0556,-0.27,idrotm[567],"ONLY");
3991   gMC->Gspos("I570",16,"IT56",-14.838,-43.2217,-0.27,idrotm[568],"ONLY");
3992   gMC->Gspos("I570",17,"IT56",-7.4965,-44.9238,-0.27,idrotm[569],"ONLY");
3993   gMC->Gspos("I570",18,"IT56",-0.27,-45.6977,-0.27,idrotm[533],"ONLY");
3994   gMC->Gspos("I570",19,"IT56",7.4965,-44.9238,-0.27,idrotm[534],"ONLY");
3995   gMC->Gspos("I570",20,"IT56",14.838,-43.2217,-0.27,idrotm[535],"ONLY");
3996   gMC->Gspos("I570",21,"IT56",21.677,-40.0556,-0.27,idrotm[623],"ONLY");
3997   gMC->Gspos("I570",22,"IT56",28.0681,-36.0619,-0.27,idrotm[537],"ONLY");
3998   gMC->Gspos("I570",23,"IT56",33.5085,-30.8468,-0.27,idrotm[538],"ONLY");
3999   gMC->Gspos("I570",24,"IT56",38.2566,-24.9943,-0.27,idrotm[539],"ONLY");
4000   gMC->Gspos("I570",25,"IT56",41.7089,-18.2952,-0.27,idrotm[540],"ONLY");
4001   gMC->Gspos("I570",26,"IT56",44.2994,-11.2181,-0.27,idrotm[541],"ONLY");
4002   gMC->Gspos("I570",27,"IT56",45.3894,-3.7611,-0.27,idrotm[542],"ONLY");
4003   gMC->Gspos("I570",28,"IT56",45.5416,3.7737,-0.27,idrotm[543],"ONLY");
4004   gMC->Gspos("I570",29,"IT56",44.1513,11.1806,-0.27,idrotm[544],"ONLY");
4005   gMC->Gspos("I570",30,"IT56",41.8487,18.3566,-0.27,idrotm[545],"ONLY");
4006   gMC->Gspos("I570",31,"IT56",38.1287,24.9107,-0.27,idrotm[546],"ONLY");
4007   gMC->Gspos("I570",32,"IT56",33.6209,30.9502,-0.27,idrotm[547],"ONLY");
4008   gMC->Gspos("I570",33,"IT56",27.9743,35.9414,-0.27,idrotm[548],"ONLY");
4009   gMC->Gspos("I570",34,"IT56",21.7497,40.1899,-0.27,idrotm[549],"ONLY");
4010   gMC->Gspos("I570",35,"IT56",14.7884,43.0772,-0.27,idrotm[550],"ONLY");
4011   gMC->Gspos("I570",36,"IT56",7.5216,45.0744,-0.27,idrotm[551],"ONLY");
4012   gMC->Gspos("I570",37,"IT56",-0.27,45.545,-0.27,0,"ONLY");
4013   gMC->Gspos("I570",38,"IT56",-7.5216,45.0744,-0.27,idrotm[552],"ONLY");
4014   gMC->Gspos("I570",1,"IT56",-14.7884,43.0772,-0.27,idrotm[553],"ONLY");
4015   gMC->Gspos("I570",2,"IT56",-21.7497,40.1899,-0.27,idrotm[620],"ONLY");
4016   gMC->Gspos("I570",3,"IT56",-27.9743,35.9414,-0.27,idrotm[555],"ONLY");
4017   gMC->Gspos("I570",4,"IT56",-33.6209,30.9502,-0.27,idrotm[556],"ONLY");
4018   gMC->Gspos("I570",5,"IT56",-38.1287,24.9108,-0.27,idrotm[557],"ONLY");
4019   gMC->Gspos("I570",6,"IT56",-41.8487,18.3566,-0.27,idrotm[558],"ONLY");
4020   gMC->Gspos("I570",7,"IT56",-44.1513,11.1806,-0.27,idrotm[559],"ONLY");
4021   gMC->Gspos("I570",8,"IT56",-45.5416,3.7737,-0.27,idrotm[560],"ONLY");
4022   gMC->Gspos("I570",9,"IT56",-45.3894,-3.7611,-0.27,idrotm[561],"ONLY");
4023   gMC->Gspos("I570",10,"IT56",-44.2994,-11.2181,-0.27,idrotm[562],"ONLY");
4024   gMC->Gspos("I570",11,"IT56",-41.7089,-18.2952,-0.27,idrotm[563],"ONLY");
4025   gMC->Gspos("I570",12,"IT56",-38.2566,-24.9943,-0.27,idrotm[564],"ONLY");
4026   gMC->Gspos("I570",13,"IT56",-33.5086,-30.8468,-0.27,idrotm[565],"ONLY");
4027   gMC->Gspos("I569",8,"IT56",-43.5484,3.6085,0.0,idrotm[560],"ONLY");
4028   gMC->Gspos("I569",9,"IT56",-43.3963,-3.5959,0.0,idrotm[561],"ONLY");
4029   gMC->Gspos("I569",10,"IT56",-42.3606,-10.7271,0.0,idrotm[562],"ONLY");
4030   gMC->Gspos("I569",11,"IT56",-39.8773,-17.4918,0.0,idrotm[563],"ONLY");
4031   gMC->Gspos("I569",12,"IT56",-36.5823,-23.9004,0.0,idrotm[564],"ONLY");
4032   gMC->Gspos("I569",13,"IT56",-32.0371,-29.4922,0.0,idrotm[565],"ONLY");
4033   gMC->Gspos("I569",14,"IT56",-26.8397,-34.4836,0.0,idrotm[566],"ONLY");
4034   gMC->Gspos("I569",15,"IT56",-20.7251,-38.2967,0.0,idrotm[567],"ONLY");
4035   gMC->Gspos("I569",16,"IT56",-14.1886,-41.33,0.0,idrotm[568],"ONLY");
4036   gMC->Gspos("I569",17,"IT56",-7.1673,-42.9511,0.0,idrotm[569],"ONLY");
4037   gMC->Gspos("I569",18,"IT56",0.0,-43.6977,0.0,idrotm[533],"ONLY");
4038   gMC->Gspos("I569",19,"IT56",7.1673,-42.9511,0.0,idrotm[534],"ONLY");
4039   gMC->Gspos("I569",20,"IT56",14.1886,-41.33,0.0,idrotm[535],"ONLY");
4040   gMC->Gspos("I569",21,"IT56",20.7251,-38.2967,0.0,idrotm[623],"ONLY");
4041   gMC->Gspos("I569",22,"IT56",26.8397,-34.4836,0.0,idrotm[537],"ONLY");
4042   gMC->Gspos("I569",23,"IT56",32.0371,-29.4922,0.0,idrotm[538],"ONLY");
4043   gMC->Gspos("I569",24,"IT56",36.5822,-23.9004,0.0,idrotm[539],"ONLY");
4044   gMC->Gspos("I569",25,"IT56",39.8773,-17.4918,0.0,idrotm[540],"ONLY");
4045   gMC->Gspos("I569",26,"IT56",42.3606,-10.7272,0.0,idrotm[541],"ONLY");
4046   gMC->Gspos("I569",27,"IT56",43.3963,-3.5959,0.0,idrotm[542],"ONLY");
4047   gMC->Gspos("I569",28,"IT56",43.5484,3.6085,0.0,idrotm[543],"ONLY");
4048   gMC->Gspos("I569",29,"IT56",42.2125,10.6897,0.0,idrotm[544],"ONLY");
4049   gMC->Gspos("I569",30,"IT56",40.0172,17.5532,0.0,idrotm[545],"ONLY");
4050   gMC->Gspos("I569",31,"IT56",36.4544,23.8169,0.0,idrotm[546],"ONLY");
4051   gMC->Gspos("I569",32,"IT56",32.1494,29.5956,0.0,idrotm[547],"ONLY");
4052   gMC->Gspos("I569",33,"IT56",26.7459,34.3631,0.0,idrotm[548],"ONLY");
4053   gMC->Gspos("I569",34,"IT56",20.7978,38.431,0.0,idrotm[549],"ONLY");
4054   gMC->Gspos("I569",35,"IT56",14.139,41.1856,0.0,idrotm[550],"ONLY");
4055   gMC->Gspos("I569",36,"IT56",7.1924,43.1017,0.0,idrotm[551],"ONLY");
4056   gMC->Gspos("I569",37,"IT56",0.0,43.545,0.0,0,"ONLY");
4057   gMC->Gspos("I569",38,"IT56",-7.1924,43.1017,0.0,idrotm[552],"ONLY");
4058   gMC->Gspos("I569",1,"IT56",-14.139,41.1856,0.0,idrotm[553],"ONLY");
4059   gMC->Gspos("I569",2,"IT56",-20.7978,38.431,0.0,idrotm[620],"ONLY");
4060   gMC->Gspos("I569",3,"IT56",-26.7459,34.3631,0.0,idrotm[555],"ONLY");
4061   gMC->Gspos("I569",4,"IT56",-32.1494,29.5956,0.0,idrotm[556],"ONLY");
4062   gMC->Gspos("I569",5,"IT56",-36.4544,23.8169,0.0,idrotm[557],"ONLY");
4063   gMC->Gspos("I569",6,"IT56",-40.0172,17.5532,0.0,idrotm[558],"ONLY");
4064   gMC->Gspos("I569",7,"IT56",-42.2125,10.6897,0.0,idrotm[559],"ONLY");
4065   gMC->Gspos("I571",15,"IT56",-21.2916,-34.387,0.0,idrotm[501],"ONLY");
4066   gMC->Gspos("I571",14,"IT56",-27.351,-30.0026,0.0,idrotm[503],"ONLY");
4067   gMC->Gspos("I571",13,"IT56",-32.2758,-24.3735,0.0,idrotm[504],"ONLY");
4068   gMC->Gspos("I571",12,"IT56",-36.3422,-18.0963,0.0,idrotm[505],"ONLY");
4069   gMC->Gspos("I571",11,"IT56",-38.901,-11.0683,0.0,idrotm[506],"ONLY");
4070   gMC->Gspos("I571",10,"IT56",-40.4252,-3.7459,0.0,idrotm[507],"ONLY");
4071   gMC->Gspos("I571",9,"IT56",-40.2725,3.7318,0.0,idrotm[508],"ONLY");
4072   gMC->Gspos("I571",8,"IT56",-39.0486,11.1103,0.0,idrotm[509],"ONLY");
4073   gMC->Gspos("I571",7,"IT56",-36.2049,18.0279,0.0,idrotm[510],"ONLY");
4074   gMC->Gspos("I571",6,"IT56",-32.3982,24.466,0.0,idrotm[511],"ONLY");
4075   gMC->Gspos("I571",5,"IT56",-27.2476,29.8892,0.0,idrotm[512],"ONLY");
4076   gMC->Gspos("I571",4,"IT56",-21.3723,34.5175,0.0,idrotm[513],"ONLY");
4077   gMC->Gspos("I571",3,"IT56",-14.6104,37.7138,0.0,idrotm[653],"ONLY");
4078   gMC->Gspos("I571",2,"IT56",-7.4599,39.9072,0.0,idrotm[514],"ONLY");
4079   gMC->Gspos("I571",1,"IT56",0.0,40.445,0.0,0,"ONLY");
4080   gMC->Gspos("I571",34,"IT56",7.46,39.9071,0.0,idrotm[515],"ONLY");
4081   gMC->Gspos("I571",33,"IT56",14.6104,37.7138,0.0,idrotm[516],"ONLY");
4082   gMC->Gspos("I571",32,"IT56",21.3723,34.5175,0.0,idrotm[517],"ONLY");
4083   gMC->Gspos("I571",31,"IT56",27.2476,29.8892,0.0,idrotm[518],"ONLY");
4084   gMC->Gspos("I571",30,"IT56",32.3983,24.466,0.0,idrotm[519],"ONLY");
4085   gMC->Gspos("I571",29,"IT56",36.2049,18.0279,0.0,idrotm[520],"ONLY");
4086   gMC->Gspos("I571",28,"IT56",39.0486,11.1103,0.0,idrotm[521],"ONLY");
4087   gMC->Gspos("I571",27,"IT56",40.2725,3.7318,0.0,idrotm[522],"ONLY");
4088   gMC->Gspos("I571",26,"IT56",40.4252,-3.746,0.0,idrotm[523],"ONLY");
4089   gMC->Gspos("I571",25,"IT56",38.901,-11.0683,0.0,idrotm[524],"ONLY");
4090   gMC->Gspos("I571",24,"IT56",36.3422,-18.0963,0.0,idrotm[525],"ONLY");
4091   gMC->Gspos("I571",23,"IT56",32.2758,-24.3736,0.0,idrotm[526],"ONLY");
4092   gMC->Gspos("I571",22,"IT56",27.351,-30.0026,0.0,idrotm[527],"ONLY");
4093   gMC->Gspos("I571",21,"IT56",21.2915,-34.387,0.0,idrotm[528],"ONLY");
4094   gMC->Gspos("I571",20,"IT56",14.6658,-37.8569,0.0,idrotm[618],"ONLY");
4095   gMC->Gspos("I571",19,"IT56",7.4317,-39.7563,0.0,idrotm[529],"ONLY");
4096   gMC->Gspos("I571",18,"IT56",0.0,-40.5984,0.0,idrotm[533],"ONLY");
4097   gMC->Gspos("I571",17,"IT56",-7.4318,-39.7563,0.0,idrotm[530],"ONLY");
4098   gMC->Gspos("I571",16,"IT56",-14.6659,-37.8569,0.0,idrotm[531],"ONLY");
4099   gMC->Gspos("I565",13,"IT56",-30.6798,-23.1683,0.0,idrotm[504],"ONLY");
4100   gMC->Gspos("I565",12,"IT56",-34.5519,-17.2048,0.0,idrotm[505],"ONLY");
4101   gMC->Gspos("I565",11,"IT56",-36.9774,-10.521,0.0,idrotm[506],"ONLY");
4102   gMC->Gspos("I565",10,"IT56",-38.4338,-3.5614,0.0,idrotm[507],"ONLY");
4103   gMC->Gspos("I565",9,"IT56",-38.281,3.5473,0.0,idrotm[508],"ONLY");
4104   gMC->Gspos("I565",8,"IT56",-37.1249,10.563,0.0,idrotm[509],"ONLY");
4105   gMC->Gspos("I565",7,"IT56",-34.4146,17.1364,0.0,idrotm[510],"ONLY");
4106   gMC->Gspos("I565",6,"IT56",-30.8022,23.2608,0.0,idrotm[511],"ONLY");
4107   gMC->Gspos("I565",5,"IT56",-25.9002,28.4112,0.0,idrotm[512],"ONLY");
4108   gMC->Gspos("I565",4,"IT56",-20.3195,32.817,0.0,idrotm[513],"ONLY");
4109   gMC->Gspos("I565",3,"IT56",-13.8879,35.8489,0.0,idrotm[653],"ONLY");
4110   gMC->Gspos("I565",2,"IT56",-7.0924,37.9412,0.0,idrotm[514],"ONLY");
4111   gMC->Gspos("I565",1,"IT56",0.0,38.445,0.0,0,"ONLY");
4112   gMC->Gspos("I565",34,"IT56",7.0925,37.9412,0.0,idrotm[515],"ONLY");
4113   gMC->Gspos("I565",33,"IT56",13.888,35.8489,0.0,idrotm[516],"ONLY");
4114   gMC->Gspos("I565",32,"IT56",20.3195,32.817,0.0,idrotm[517],"ONLY");