]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSv11GeometrySSD.h
1)Added used cluster flagging.
[u/mrichter/AliRoot.git] / ITS / AliITSv11GeometrySSD.h
1 #ifndef ALIITSV11GEOMETRYSSD_H
2 #define ALIITSV11GEOMETRYSSD_H
3 //*************************************************************************
4 // class AliITSv11GeometrySSD
5 // Enrico Cattaruzza                                     ecattar@ts.infn.it
6 //*************************************************************************
7 /* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
8  * See cxx source for full Copyright notice                               */
9 /* $Id$ */
10 class TGeoVolume;
11 class TGeoShape;
12 class TGeoCombiTrans;
13 class TGeoMedium;
14 class TGeoCompositeShape;
15 class TGeoMatrix;
16 class TVector3;
17 class TGeoArb8;
18 class TList;
19 class TGeoTube;
20 class TGeoHMatrix;
21 class TGeoTranslation;
22 class TGeoRotation;
23 class TGeoXtru;
24 class TGeoVolumeAssembly;
25 #include "AliITSv11Geometry.h"
26 class AliITSv11GeometrySSD: public AliITSv11Geometry {
27 public:
28   AliITSv11GeometrySSD();
29   virtual ~AliITSv11GeometrySSD(){};
30   /////////////////////////////////////////////////////////////////////////
31   // Public methods
32   /////////////////////////////////////////////////////////////////////////
33   void CreateMaterials();         // Method setting the materials 
34   TGeoMedium* GetMedium(const char* mediumName);   // It returns the Medium
35   const char*   GetSenstiveVolumeName5() const {return fgkSSDsensitiveVolName5;};
36   // it returns the Sensitive Volume of Layer 5
37   const char*   GetSenstiveVolumeName6() const {return fgkSSDsensitiveVolName6;};
38   // it returns the Sensitive Volume of Layer 6
39   TGeoVolumeAssembly* GetLadderSegment(Int_t i) const {return fladdersegment[i];}; // Get Ladder Segment
40   TGeoVolumeAssembly* GetEndLadderSegment(Int_t i) const {return fendladdersegment[i];}; // Get End Ladder Segment 
41   TGeoVolume* GetLadder(Int_t i) const {return fladder[i];}; // Get Ladder
42 //  TGeoVolumeAssembly* GetLadder(Int_t i) {return fladder[i];}; // Get Ladder
43   TGeoVolumeAssembly* GetLayer(Int_t i)const {return i==5? fSSDLayer5 : fSSDLayer6;}; // Get Layer
44   TGeoVolume** GetEndCapAssembly();     // End Cap Assembly
45   void SetLadderSegment();                              // Set Ladder Elementary Segment 
46   void SetEndLadderSegment();                   // Set End Ladder Segment
47   void SetLadder();                                             // Set Ladder
48   void SetLayer();                                              // Set Layer
49   void SetSSDCone();                    // Set SSD Cone
50   TGeoVolume* SetSSDCables();           // Set SSD Cables
51   void Layer5(TGeoVolume* moth);        // Setting Layer 5 into mother volume
52   void Layer6(TGeoVolume* moth);        // Setting Layer 6 into mother volume
53   void LadderSupportLayer5(TGeoVolume* moth); // Setting Ladder Support of Layer 5
54   void LadderSupportLayer6(TGeoVolume* moth); // Setting Ladder Support of Layer 6
55   void EndCapSupportSystemLayer5(TGeoVolume* moth); // Setting End Cap Support + End Cap Assembly Layer 5
56   void EndCapSupportSystemLayer6(TGeoVolume* moth); // Setting End Cap Support + End Cap Assembly Layer 6
57   void SSDCone(TGeoVolume* moth); // Setting SSD Cone;
58   void SSDCables(TGeoVolume* moth); // Setting SSD Cables;
59 private:
60   AliITSv11GeometrySSD(const AliITSv11GeometrySSD &source);
61   AliITSv11GeometrySSD& operator=(const AliITSv11GeometrySSD &source);
62
63   /////////////////////////////////////////////////////////////////////////////////
64   // Names of the Sensitive Volumes of Layer 5 and Layer 6
65   /////////////////////////////////////////////////////////////////////////////////
66   static const char* fgkSSDsensitiveVolName5;       // sens. vol. name for lay. 5
67   static const char* fgkSSDsensitiveVolName6;       // sens. vol. name for lay. 6
68   /////////////////////////////////////////////////////////////////////////////////
69   // Variable for Vertical Disalignement of Modules
70   /////////////////////////////////////////////////////////////////////////////////
71   static const Double_t fgkSSDModuleVerticalDisalignment;  // Vertical Disalignement of Volume
72   static const Double_t fgkSSDModuleSideDisalignment;  // Vertical Disalignement of Volume
73   static const Double_t fgkSSDLadderVerticalDisalignment;  // Extra space at ladder support for disalignment
74   static const Double_t fgkSSDTolerance;  // SSD Tolerance
75   /////////////////////////////////////////////////////////////////////////
76   // Layer5 (lengths are in mm and angles in degrees)
77   /////////////////////////////////////////////////////////////////////////
78   static const Double_t fgkSSDLay5LadderLength;    // Ladder Layer5 Length
79   static const Int_t fgkSSDLay5SensorsNumber;      // Ladder Layer5 Sensor Number
80   static const Int_t fgkSSDLay5LadderNumber;       // Ladder Layer5 Number
81   static const Double_t fgkSSDLay5RadiusMin;       // Ladder Layer5 Min Radius
82   static const Double_t fgkSSDLay5RadiusMax;       // Ladder Layer5 Max Radius
83   static const Double_t fgkLay5CenterITSPosition;  // ITS center position respect
84                                                    // to Ladder Layer5
85   /////////////////////////////////////////////////////////////////////////
86   // Layer6 (lengths are in mm and angles in degrees)
87   /////////////////////////////////////////////////////////////////////////
88   static const Double_t fgkSSDLay6LadderLength;    // Ladder Layer6 Length
89   static const Int_t fgkSSDLay6SensorsNumber;      // Ladder Layer6 Sensor Number
90   static const Int_t fgkSSDLay6LadderNumber;       // Ladder Layer6 Number
91   static const Double_t fgkSSDLay6RadiusMin;       // Ladder Layer6 Min Radius
92   static const Double_t fgkSSDLay6RadiusMax;       // Ladder Layer6 Max Radius 
93   static const Double_t fgkLay6CenterITSPosition;  // ITS center position respect
94                                                    // to Ladder Layer6
95   /////////////////////////////////////////////////////////////////////////
96   // SSD Chips and Hybrid
97   /////////////////////////////////////////////////////////////////////////
98   static const Int_t fgkSSDChipNumber;             // SSD Module Chip Number
99   static const Double_t fgkSSDChipLength;          // SSD Module Chip Length
100   static const Double_t fgkSSDChipWidth;           // SSD Module Chip Width
101   static const Double_t fgkSSDChipHeight;          // SSD Module Chip Height
102   static const Double_t fgkSSDChipSeparationLength;// SSD Module Distance between Chips
103   static const Double_t fgkSSDChipGlueLength;      // SSD Module Chip Glue Layer Length
104   static const Double_t fgkSSDChipGlueWidth;       // SSD Module Chip Glue Layer Width 
105   static const Double_t fgkSSDChipGlueHeight;      // SSD Module Chip Glue Layer Height
106   /////////////////////////////////////////////////////////////////////////
107   // Stiffener Components
108   /////////////////////////////////////////////////////////////////////////
109   static const Double_t fgkSSDStiffenerLength;     // SSD Module Stiffener Length
110   static const Double_t fgkSSDStiffenerWidth;      // SSD Module Stiffener Width
111   static const Double_t fgkSSDStiffenerHeight;     // SSD Module Stiffener Height
112   static const Double_t fgkSSDStiffenerToChipDist; // SSD Module Stiffener position respect 
113                                                    // to sensor Edge
114   static const Double_t fgkSSDCapacitor0603Length; // SSD Stiffener Capacitor 0603 Length
115   static const Double_t fgkSSDCapacitor0603Width;  // SSD Stiffener Capacitor 0603 Width
116   static const Double_t fgkSSDCapacitor0603Height; // SSD Stiffener Capacitor 0603 Height
117   static const Double_t fgkSSDCapacitor0603CapLength; // SSD Stiffener Capacitor 1812 Cap Length 
118   static const Double_t fgkSSDCapacitor1812Length; // SSD Stiffener Capacitor 1812 Length 
119   static const Double_t fgkSSDCapacitor1812Width;  // SSD Stiffener Capacitor 1812 Width
120   static const Double_t fgkSSDCapacitor1812Height; // SSD Stiffener Capacitor 1812 Height
121   static const Double_t fgkSSDCapacitor1812CapLength; // SSD Stiffener Capacitor 1812 Cap Length 
122   static const Double_t fgkSSDWireLength;          // SSD Stiffener Wire Length
123   static const Double_t fgkSSDWireRadius;          // SSD Stiffener Wire Radius
124   static const Double_t fgkSSDConnectorPosition[2];// SSD Connector Position respect to Stiffener
125   static const Double_t fgkSSDConnectorSeparation; // SSD Connector separation distance
126   static const Double_t fgkSSDConnectorLength;     // SSD Stiffener Connector Length
127   static const Double_t fgkSSDConnectorWidth;      // SSD Stiffener Connector Width
128   static const Double_t fgkSSDConnectorHeight;     // SSD Stiffener Connector Height
129   static const Double_t fgkSSDConnectorAlHeight;     // SSD Stiffener Connector Al Height
130   static const Double_t fgkSSDConnectorNiHeight;     // SSD Stiffener Connector Ni Height
131   static const Double_t fgkSSDConnectorSnHeight;     // SSD Stiffener Connector Sn Height
132   /////////////////////////////////////////////////////////////////////////
133   // Flex
134   /////////////////////////////////////////////////////////////////////////
135   static const Double_t fgkSSDFlexFullLength;      // SSD Flex Full Length
136   static const Double_t fgkSSDFlexLength[4];       // SSD Flex Components Length
137   static const Double_t fgkSSDFlexWidth[2];        // SSD Flex Components Width
138   static const Double_t fgkSSDFlexHeight[2];       // SSD Flex Layers Height
139   static const Double_t fgkSSDFlexAngle;           // SSD Flex Angle 
140   static const Double_t fgkSSDFlexHoleLength;      // SSD Flex Hole Length
141   static const Double_t fgkSSDFlexHoleWidth;       // SSD Flex Hole Width
142   static const Double_t fgkSSDEndFlexCompLength[6];// SSD End-Flex Components Length
143   static const Double_t fgkSSDEndFlexCompWidth[3]; // SSD End-Flex Components Width
144   /////////////////////////////////////////////////////////////////////////////////
145   // SSD Ladder Cable 
146   /////////////////////////////////////////////////////////////////////////////////
147   static const Double_t fgkSSDLadderCableWidth;    // SSD Ladder Cable Width
148   static const Double_t fgkSSDLadderCableHeight[2];  // SSD Ladder Cable Height (thickness)
149   /////////////////////////////////////////////////////////////////////////
150   // SSD Module Components 
151   /////////////////////////////////////////////////////////////////////////
152   static const Double_t fgkSSDModuleStiffenerPosition[2]; // SSD Module Stiffener position 
153                                                           // respect to Sensor Edge
154   static const Double_t fgkSSDModuleSensorSupportDistance;// SSD Module Sensor Support Position 
155                                                           // respect to Sensor Edge 
156   static const Double_t fgkSSDModuleCoolingBlockToSensor; // SSD Cooling Block Position 
157                                                           // respect to sensor
158   /////////////////////////////////////////////////////////////////////////
159   // Chip Cables
160   /////////////////////////////////////////////////////////////////////////
161   static const Double_t fgkSSDChipCablesLength[2]; // SSD Chip Cables Components Length
162   static const Double_t fgkSSDChipCablesHeight[4]; // SSD Chip Cables Components Height   
163   static const Double_t fgkSSDChipCablesWidth[3];  // SSD Chip Cables Components Width
164   /////////////////////////////////////////////////////////////////////////
165   // Cooling Block
166   /////////////////////////////////////////////////////////////////////////
167   static const Double_t fgkSSDCoolingBlockLength;       // SSD Cooling Block Length
168   static const Double_t fgkSSDCoolingBlockWidth;        // SSD Cooling Block Width   
169   static const Double_t fgkSSDCoolingBlockHeight[3];    // SSD Cooling Block Heiht
170   static const Double_t fgkSSDCoolingBlockHoleRadius[2];// SSD Cooling Block Hole Radius
171   static const Double_t fgkSSDCoolingBlockHoleLength[2];// SSD Cooling Block Hole Length 
172   static const Double_t fgkSSDCoolingBlockHoleCenter;   // SSD Cooling Block Hole Ceneter Position
173   static const Double_t fgkSSDCoolingBlockHoleHeight;   // SSD Cooling Block Hole Height
174   /////////////////////////////////////////////////////////////////////////
175   // SSD Sensor 
176   /////////////////////////////////////////////////////////////////////////
177   static const char* fgkSSDSensitiveVolName;           // SSD Name of the Sensitive Part of the Sensor
178   static const Double_t fgkSSDSensorLength;            // SSD Sensor Length              
179   static const Double_t fgkSSDSensorHeight;            // SSD Sensor Height
180   static const Double_t fgkSSDSensorWidth;             // SSD Sensor Width
181   static const Double_t fgkSSDSensorOverlap;           // SSD Sensor Beam Axis Overlap
182   static const Double_t fgkSSDSensorInsensitiveLength; // SSD Insensitive Part Length
183   static const Double_t fgkSSDSensorInsensitiveWidth;  // SSD Insensitive Part Width
184   /////////////////////////////////////////////////////////////////////////
185   // SSD Sensor Support 
186   /////////////////////////////////////////////////////////////////////////
187   static const Double_t fgkSSDSensorSideSupportLength;        // SSD Side Sensor Support Length
188   static const Double_t fgkSSDSensorSideSupportWidth;         // SSD Side Sensor Support Width
189   static const Double_t fgkSSDSensorSideSupportHeight[2];     // SSD Side Sensor Support Height
190   static const Double_t fgkSSDSensorSideSupportThickness[2];  // SSD Side Sensor Support Thickness 
191   static const Double_t fgkSSDSensorSideSupportPosition;      // SSD Side Sensor Support Position 
192   static const Double_t fgkSSDSensorCenterSupportLength;      // SSD Center Sensor Support Length
193   static const Double_t fgkSSDSensorCenterSupportWidth;       // SSD Center Sensor Support Width
194   static const Double_t fgkSSDSensorCenterSupportHeight[2];   // SSD Center Sensor Support Height
195   static const Double_t fgkSSDSensorCenterSupportThickness[2];// SSD Center Sensor Support Thickness
196   static const Double_t fgkSSDSensorCenterSupportPosition;    // SSD Center Sensor Support Position
197   static const Int_t fgkSSDSensorSupportCombiTransNumber = 3; // Number of TGeoCombiTrans 
198                                                               // for positioning volumes in Sensor Support Assembly       
199   /////////////////////////////////////////////////////////////////////////
200   //Parameters for Carbon Fiber 
201   /////////////////////////////////////////////////////////////////////////
202   static const Double_t fgkCarbonFiberTriangleLength;            // Carbon Fiber Triangle Length 
203   static const Double_t fgkCarbonFiberTriangleAngle;             // Carbon Fiber Triangle Angle
204   static const Double_t fgkCarbonFiberSupportTopEdgeDist[2];     // Carbon Fiber Support Top Edge Components
205   static const Double_t fgkCarbonFiberSupportEdgeLength;         // Carbon Fiber Support Edge Lenght
206   static const Double_t fgkCarbonFiberSupportWidth;              // Carbon Fiber Support Edge Width
207   static const Double_t fgkCarbonFiberSupportXAxisLength;        // Carbon Fiber Support X Axis Lenght
208   static const Double_t fgkCarbonFiberSupportYAxisLength;        // Carbon Fiber Support Y Axis Lenght
209   static const Int_t fgkCarbonFiberAssemblyCombiTransNumber = 3; // Number of TGeoCombiTrans 
210                                                                  // for positioning volumes in Carbon Fiber Assembly 
211   //////////////////////////////////////////////////////////////////////////////
212   // Carbon Fiber Junction Parameters
213   //////////////////////////////////////////////////////////////////////////////
214   static const Double_t fgkCarbonFiberJunctionLength;            // Carbon Fiber Junction Length             
215   static const Double_t fgkCarbonFiberJunctionWidth;             // Carbon Fiber Junction Width 
216   static const Double_t fgkCarbonFiberJunctionEdge[2];           // Carbon Fiber Junction Edge Length  
217   static const Double_t fgkCarbonFiberJunctionAngle[2];          // Carbon Fiber Junction Angle 
218   static const Double_t fgkCarbonFiberJunctionToSensorSupport;   // Carbon Fiber Junction position respect to sensor
219   /////////////////////////////////////////////////////////////////////////
220   //Parameters for Carbon Fiber Lower Support (lengths are in mm)
221   /////////////////////////////////////////////////////////////////////////
222   static const Double_t fgkLowerSupportToSensorZ;                   // Distance from lower support to sensor center
223   static const Double_t fgkCarbonFiberLowerSupportWidth;            // Lower Support of Carbon Fiber Width
224   static const Double_t fgkCarbonFiberLowerSupportLowerLenght;      // Lower Support of Carbon Fiber Length
225   static const Double_t fgkCarbonFiberLowerSupportHeight;           // Lower Support of Carbon Fiber Height
226   static const Double_t fgkCarbonFiberLowerSupportTransverseWidth;  // Lower Support of Carbon Fiber Transverse separation
227   static const Double_t fgkCarbonFiberLowerSupportVolumeSeparation; // Distance between Lower Supports of Carbon Fiber 
228   static const Double_t fgkCarbonFiberLowerSupportVolumePosition[2];// Carbon fiber lower Support Position  
229   /////////////////////////////////////////////////////////////////////////
230   // End Ladder Carbon Fiber Lower Junction Parameters (lengths are in mm and angles in degrees)
231   /////////////////////////////////////////////////////////////////////////
232   static const Double_t fgkEndLadderCarbonFiberLowerJunctionLength[2];   // End Ladder Carbon Fiber Lower Up Support length 
233   static const Double_t fgkEndLadderCarbonFiberUpperJunctionLength[2];   // End Ladder Carbon Fiber Lower Down Support length 
234   static const Double_t fgkEndLadderMountingBlockPosition[2];            // End Ladder Mounting Block Position 
235   static const Double_t fgkendladdercoolingsupportdistance[3];                   // End Ladder Cooling Support Position
236   /////////////////////////////////////////////////////////////////////////
237   // Cooling Tube Support (lengths are in mm and angles in degrees)
238   /////////////////////////////////////////////////////////////////////////
239   static const Double_t fgkCoolingTubeSupportRmax;          // Cooling Tube Support Max Radius
240   static const Double_t fgkCoolingTubeSupportRmin;          // Cooling Tube Support Min Radius
241   static const Double_t fgkCoolingTubeSupportLength;        // Cooling Tube Support Length
242   static const Double_t fgkCoolingTubeSupportHeight;        // Cooling Tube Support Height
243   static const Double_t fgkCoolingTubeSupportWidth;         // Cooling Tube Support Width
244   static const Double_t fgkCoolingTubeSupportSeparation;    // Cooling Tube Support Separation
245   static const Double_t fgkCoolingTubeSupportToCarbonFiber; // Cooling Tube Support position respect to Carbon Fiber  
246   /////////////////////////////////////////////////////////////////////////////////
247   // Cooling Tube (lengths are in mm and angles in degrees)
248   /////////////////////////////////////////////////////////////////////////////////
249   static const Double_t fgkCoolingTubeRmax;       // Cooling Tube Max Radius 
250   static const Double_t fgkCoolingTubeRmin;       // Cooling Tube Min Radius
251   static const Double_t fgkCoolingTubeLength;     // Cooling Tube Length  
252   static const Double_t fgkCoolingTubeSeparation; // Cooling Tube Separation
253   static const Double_t fgkMountingBlockToSensorSupport; // Distance between Mounting block and Side Sensor Support     
254   /////////////////////////////////////////////////////////////////////////
255   // SSD Mounting Block Parameters (lengths are in mm and angles in degrees)
256   /////////////////////////////////////////////////////////////////////////
257   static const Double_t fgkSSDMountingBlockLength[3];  // SSD Mounting Block Components Lengths
258   static const Double_t fgkSSDMountingBlockHeight[4];  // SSD Mounting Block Components Heights
259   static const Double_t fgkSSDMountingBlockWidth;      // SSD Mounting Block Width
260   static const Double_t fgkSSDMountingBlockHoleTrapezoidAngle;  // SSD Mounting Block Hole Trapezoid Angle
261   static const Double_t fgkSSDMountingBlockHoleTrapezoidHeight; // SSD Mounting Block Hole Trapezoid Height
262   static const Double_t fgkSSDMountingBlockHoleTrapezoidUpBasis;// SSD Mounting Block Hole Trapezoid Up Basis Length
263   static const Double_t fgkSSDMountingBlockHoleTubeLength[2];   // SSD Mounting Block Hole Tube Lengths   
264   static const Double_t fgkSSDMountingBlockHoleTubeWidth[2];    // SSD Mounting Block Hole Tube Width   
265   static const Double_t fgkSSDMountingBlockHoleRadius;          // SSD Mounting Block Hole radius  
266   static const Double_t fgkSSDMountingBlockScrewHoleEdge;       // SSD Mounting Block Screw Hole Edge  
267   static const Double_t fgkSSDMountingBlockScrewHoleHeight;     // SSD Mounting Block Screw Hole Height  
268   static const Double_t fgkSSDMountingBlockScrewHoleRadius[2];  // SSD Mounting Block Screw Hole Radii
269   /////////////////////////////////////////////////////////////////////////
270   // SSD Mounting Block Clip Parameters (lengths are in mm and angles in degrees)
271   /////////////////////////////////////////////////////////////////////////
272   static const Double_t fgkMountingBlockClipLength;          // SSD Mounting Block Clip Length  
273   static const Double_t fgkMountingBlockClipThickness;       // SSD Mounting Block Clip Thickness 
274   static const Double_t fgkMountingBlockClibScrewRadius;     // SSD Mounting Block Clip Radius 
275   static const Double_t fgkMountingBlockClibScrewPosition;  // SSD Mounting Block Clip Screw Position
276   static const Double_t fgkMountingBlockClibWidth;          // SSD Mounting Block Clip 
277   /////////////////////////////////////////////////////////////////////////////////
278   // SSD Mounting Block Support Parameters (lengths are in mm and angles in degrees)
279   /////////////////////////////////////////////////////////////////////////////////
280   static const Double_t fgkMountingBlockSupportWidth[2]; // SSD Mounting Block Support Width
281   static const Double_t fgkMountingBlockSupportDownHeight; // SSD Mounting Block Support Down Height
282   static const Double_t fgkMountingBlockSupportRadius[2];  // SSD Mounting Block Support Radius
283   static const Double_t fgkMountingBlockSupportUpHeight[2]; // SSD Mounting Block Support Height
284   static const Double_t fgkLadderSupportHeight;            // SSD Ladder Support Width
285   static const Double_t fgkLadderSupportRingLay5Position;  // SSD Ladder Support Ring Position Layer5 respect to ITS center
286   static const Double_t fgkLadderSupportRingLay6Position;  // SSD Ladder Support Ring Position Layer6 respect to ITS center
287   /////////////////////////////////////////////////////////////////////////////////
288   // SSD End Cap Cover Plate Parameters (lengths are in mm and angles in degrees)
289   /////////////////////////////////////////////////////////////////////////////////
290   static const Double_t fgkEndCapCoverPlateSmallHoleRadius; // End Cap Cover Plate Hole Small Radious 
291   static const Double_t fgkEndCapCoverPlateBigHoleRadius;   // End Cap Cover Plate Hole Big Radious
292   static const Double_t fgkEndCapCoverPlateThickness;       // End Cap Cover Plate Thickness
293   static const Double_t fgkEndCapCoverPlateSmallHoleSeparation[3]; // End Cap Cover Plate Hole Separation
294   static const Double_t fgkEndCapCoverPlateLength[6];       // End Cap Cover Plate Length
295   static const Double_t fgkEndCapCoverPlateWidth[3];        // End Cap Cover Plate Width
296   static const Double_t fgkEndCapCoverPlateScrewRadiusMin;  // End Cap Cover Plate Screw Radius Min
297   static const Double_t fgkEndCapCoverPlateScrewRadiusMax;  // End Cap Cover Plate Screw Radius Max
298   static const Double_t fgkEndCapCoverPlateClipLength;      // End Cap Cover Plate Clip Length
299   static const Double_t fgkEndCapCoverPlateClipWidth;       // End Cap Cover Plate Clip Width
300   static const Double_t fgkEndCapCoverPlateDownClipLength;  // End Cap Cover Plate Down Clip Length
301   static const Double_t fgkEndCapCoverPlateDownClipWidth;   // End Cap Cover Plate Down Clip Width
302   /////////////////////////////////////////////////////////////////////////////////
303   // SSD End Cap Cooling Tube Parameters (lengths are in mm and angles in degrees)
304   /////////////////////////////////////////////////////////////////////////////////
305   static const Double_t fgkEndCapCoolingTubeAxialRadius[2]; // End Cap Cooling Tube Axial Radius
306   static const Double_t fgkEndCapCoolingTubeRadiusMin; // End Cap Cooling Tube Min Radius
307   static const Double_t fgkEndCapCoolingTubeRadiusMax; // End Cap Cooling Tube Max Radius
308   static const Double_t fgkEndCapCoolingTubeAngle[5];  // End Cap Cooling Tube Angle
309   static const Double_t fgkEndCapCoolingTubeLength[5]; // End Cap Cooling Tube Length
310   static const Double_t fgkEndCapCoolingTubeToCoverSide; // End Cap Cooling Tube Position respect to CoverSide
311   /////////////////////////////////////////////////////////////////////////////////
312   // SSD End Cap Cover Side Parameters (lengths are in mm and angles in degrees)
313   /////////////////////////////////////////////////////////////////////////////////
314   static const Double_t fgkEndCapSideCoverLength[5]; // End Cap Cover Side Length
315   static const Double_t fgkEndCapSideCoverWidth[7]; //  End Cap Cover Side Width
316   static const Double_t fgkEndCapSideCoverThickness; // End Cap Cover Side Thickness
317   /////////////////////////////////////////////////////////////////////////////////
318   // SSD End Cap Cards Parameters (lengths are in mm and angles in degrees)
319   /////////////////////////////////////////////////////////////////////////////////
320   static const Double_t  fgkEndCapCardElectBoardBackLength[3]; // End Cap Card Electronic Board Back Length 
321   static const Double_t  fgkEndCapCardElectBoardBackWidth[2];  // End Cap Card Electronic Board Back Width 
322   static const Double_t  fgkEndCapCardElectBoardBackThickness; // End Cap Card Electronic Board Back Thickness 
323   static const Double_t  fgkEndCapCardElectBoardLength;        // End Cap Card Electronic Board Length
324   static const Double_t  fgkEndCapCardElectBoardLayerWidth[2]; // End Cap Card Electronic Board Layer Width
325   static const Double_t  fgkEndCapCardElectBoardLayerThickness;// End Cap Card Electronic Board Layer Thickness 
326   static const Double_t  fgkEndCapCardJMDConnectorThickness;   // End Cap Card JMD Connector Thickness
327   static const Double_t  fgkEndCapCardJMDConnectorLength[2];   // End Cap Card JMD Connector Length
328   static const Double_t  fgkEndCapCardJMDConnectorWidth[2];    // End Cap Card JMD Connector Width
329   static const Double_t  fgkEndCapCardJMDConnectorToLayer;     // End Cap Card JMD Connector to Layer Distance 
330   static const Double_t  fgkEndCapCardCableConnectorLength[3]; // End Cap Card Cable Connector Length
331   static const Double_t  fgkEndCapCardCableConnectorWidth[2];  // End Cap Card Cable Connector Width
332   static const Double_t  fgkEndCapCardCableConnectorThickness; // End Cap Card Cable Connector Thickness
333   static const Double_t  fgkEndCapCardCableConnectorDistance;  // End Cap Card Cable Connector Distance
334   static const Double_t  fgkEndCapCardCableConnectorToLayer;   // End Cap Card Cable Connector To Layer Distance
335   static const Double_t  fgkEndCapStripConnectionLength;       // End Cap Strip Connection Length
336   static const Double_t  fgkEndCapStripConnectionThickness;    // End Cap Strip Connection Thickness
337   static const Double_t  fgkEndCapStripConnectionWidth;        // End Cap Strip Connection Width
338   static const Double_t  fgkEndCapInterfaceCardBLength[7];     // End Cap Interface CardB Length
339   static const Double_t  fgkEndCapInterfaceCardBWidth[5];      // End Cap Interface CardB Width
340   static const Double_t  fgkEndCapInterfaceCardBThickness;     // End Cap Interface CardB Thickness
341   static const Double_t  fgkEndCapInterfaceElectBoardCardBThickness; // End Cap Interface Elect Board CardB Thickness 
342   static const Double_t  fgkEndCapInterfaceCardBJMDConnectorSeparation; // End Cap Interface CardB JMD Connector Separation
343   static const Double_t  fgkEndCapStiffenerLength;             // End Cap Stiffener Length
344   static const Double_t  fgkEndCapStiffenerWidth;                          // End Cap Stiffener Width
345   static const Double_t  fgkEndCapStiffenerThickness;          // End Cap Stiffener Thickness
346   static const Double_t  fgkEndCapEffectiveCableRadiusMin;     // End Cap Effective Cable Radius Min
347   static const Double_t  fgkEndCapEffectiveCableRadiusMax;     // End Cap Effective Cable Radius Max
348   /////////////////////////////////////////////////////////////////////////////////
349   // SSD End Cap SupportLayer5/6 Side Parameters (lengths are in mm and angles in degrees)
350   /////////////////////////////////////////////////////////////////////////////////
351   static const Double_t fgkEndCapLay5SupportLength; // End Cap Layer5 Support Length
352   static const Double_t fgkEndCapLay5SupportMiddleRadius; // End Cap Layer5 Support Middle Radius
353   static const Double_t fgkEndCapLay5SupportLowRadius; // End Cap Layer5 Support Low Radius
354   static const Double_t fgkEndCapLay5SupportHighWidth; // End Cap Layer5 High Radius
355   static const Double_t fgkEndCapLay5SupportLowWidth; // End Cap Layer5 Low Width
356   static const Double_t fgkEndCapSupportLength[2]; // End Cap Layer5/6 Support Length
357   static const Double_t fgkEndCapSupportMiddleRadius[2]; // End Cap Layer5/6 Support Middle Radius
358   static const Double_t fgkEndCapSupportLowRadius[2]; // End Cap Layer5/6 Support Low Radius
359   static const Double_t fgkEndCapSupportHighWidth; // End Cap Layer5/6 High Radius
360   static const Double_t fgkEndCapSupportLowWidth[2]; // End Cap Layer5/6 Low Width  
361   static const Double_t fgkEndCapSupportCenterLay5ITSPosition; // End Cap Support Center ITS Position Layer 5
362   static const Double_t fgkEndCapSupportCenterLay5Position; // End Cap Support Position Respect Z Axis Origin Layer 5 
363   static const Double_t fgkEndCapSupportCenterLay6ITSPosition; // End Cap Support Center ITS Position Layer 6
364   static const Double_t fgkEndCapSupportCenterLay6Position; // End Cap Support Position Respect Z Axis Origin Layer 6 
365   /////////////////////////////////////////////////////////////////////////////////
366   // SSD End Cap Kapton Foil Parameters (lengths are in mm and angles in degrees)
367   ////////////////////////////////////////////////////////////////////////////////
368   static const Double_t fgkEndCapKaptonFoilThickness; // End Cap Kapton Foil Thickness
369   static const Double_t fgkEndCapKaptonFoilLength;    // End Cap Kapton Foil Length
370   static const Double_t fgkEndCapKaptonFoilWidth ;    // End Cap Kapton Foil Width
371   /////////////////////////////////////////////////////////////////////////
372   // SSD Cone
373   /////////////////////////////////////////////////////////////////////////
374   static const Double_t fgkSSDLowerPConeRadius; // SSD Cone Lower Radius
375   static const Double_t fgkSSDPConeAngle;        // SSD Cone Angle
376   static const Double_t fgkSSDPConeZLength[2];   // SSD Cone ZLength
377   static const Double_t fgkSSDPConeLittleHoleRadius; // SSD Cone Little Hole Radius
378   static const Double_t fgkSSDPConeLittleHoleLength; // SSD Cone Little Hole Length
379   static const Double_t fgkSSDConeMiddleRadius; // SSD Cone Middle Radius 
380   static const Double_t fgkSSDPConeMiddleLength; // SSD Cone Middle Length
381   static const Double_t fgkSSDPConeMiddleWidth; // SSD Cone Middle Width
382   static const Double_t fgkSSDPConeUpRadius;  // SSD Cone Up Radius
383   static const Double_t fgkSSDPConeUpMaxRadius; // SSD Cone Up Max Radius
384   static const Double_t fgkSSDPConeUpMiddleRadius; // SSD Cone Up Middle Radius
385   static const Double_t fgkSSDPConeDownRadius; // SSD Cone Down Radius
386   static const Double_t fgkSSDPConeTrapezoidAngle; // SSD Cone Trapezoid Angle
387   static const Double_t fgkSSDPConeTrapezoidBasis; // SSD Cone Trapezoid Basis
388   static const Double_t fgkSSDPConeExternalRadius; // SSD Cone External Radius 
389   static const Double_t fgkSSDPConeRadiusWidth; // SSD Cone Radius Width
390   static const Double_t fgkSSDPConeLength; // SSD Cone Length
391   static const Double_t fgkSSDCentralSupportLength; //SSD Central Support Length
392   static const Double_t fgkSSDCentralSupportRadius; // SSD Central Support Radius 
393   static const Double_t fgkSSDCentralSupportWidth; // SSD Central Support Width
394   static const Double_t fgkSSDCentralAL3SupportLength; // SSD Central Support Length
395   static const Double_t fgkSSDCentralAL3SupportWidth; // SSD Central Support Width
396   /////////////////////////////////////////////////////////////////////////
397   // Private methods for private members generation
398   /////////////////////////////////////////////////////////////////////////
399
400   void CreateTransformationMatrices();  // Method setting the transformation matrices
401   void CreateBasicObjects();                    // Method creating the basic objects of ssd geometry
402   void SetSSDSensor();                                  // Method setting the SSD Layer 5 and 6 sensors
403   TList* GetCarbonFiberSupportList();   // Method generating CarbonFiberSupport
404   TGeoVolume* GetCarbonFiberJunction(Double_t width); // Method generating 
405                                                                                 // CarbonFiberJunction
406   TList* GetCarbonFiberLowerSupportList(); 
407                                                                             // Method generating CarbonFiberLowerSupport
408   TGeoVolume* GetSSDSensorSupport(Double_t length, Double_t height, 
409                                                                   Double_t width, const Double_t* thickness) const; //
410                                                                                 // Method generating SSDSensorSupport
411   TGeoVolume* GetCoolingTubeSupport(Int_t nedges); // Method generating CoolingTubeSupport 
412   TList* GetSSDHybridParts();                   // Method setting Hybrid Components 
413   TGeoVolume* GetCoolingBlockSystem();  // Method generating Cooling Block System
414   TGeoVolume* GetSSDStiffenerFlex()const;    // Method generating StiffenerFlex
415   TGeoVolume* GetSSDEndFlex();                  // Method generating EndFlex
416   TGeoVolume* GetSSDMountingBlock();    // Method generating Mounting Block
417   TGeoVolume* GetMountingBlockClip() const;   // Method generating Mounting Block Clip
418   void CreateCoolingTubes();                    // Create/set cooling tubes 
419   TGeoVolume* GetSSDCoolingBlock(Int_t nedges); 
420                                                                             // Method generating StiffenerFlex
421   void GetSSDChipCables(TGeoVolume *&cableL, TGeoVolume *&cableR, Double_t SSDChipCablesHeigth, Int_t nedges); 
422                                                                                 // Method setting ChipCables
423   TGeoVolume* GetSSDChip() const;     // Method generating Chips
424   TList* GetLadderCableSegment(Double_t ssdendladdercablelength); 
425                                                                                 // Method generating LadderCableSegment
426   TGeoVolume* GetLadderCable(Int_t n, Double_t ssdendladdercablelength); 
427                                                                                 // Method generating Ladder Cable
428   TGeoVolume* GetLadderCableAssembly(Int_t n, Double_t ssdendladdercablelength); 
429                                                                                 // Method generating Ladder Cable Assembly
430   TList* GetLadderCableAssemblyList(Int_t n, Double_t ssdendladdercablelength); 
431                                                                                 // Method generating Ladder Cable List
432   TList* GetMountingBlockSupport(Int_t nedges); // Get Mounting Block Support
433   void SetLadderSupport(Int_t nedges); // It generates the ladder support
434   TGeoVolume* GetEndCapCoolingTube();  // End Cap Cooling Tube
435   TGeoVolume* GetEndCapCoverPlate();   // End Cap Cover Plate
436   TGeoVolume* GetEndCapSideCover() const;    // End Cap Side Cover
437   TGeoVolume** GetEndCapCards() const;       // End Cap Cards
438   TGeoVolume** EndCapSupport();        // End Cap Support Layer 5 and Layer 6
439   void SetEndCapSupportAssembly();     // EndCap Support + End Cap Layer 5 and 6
440   TGeoVolume* GetEndCapEffectiveCables(Double_t radiusmin, Double_t radiusmax, 
441                                                                            Double_t width,Int_t ncables,const char* volname); // End Cap Effective HV Cables
442   TGeoXtru* GetArcShape(Double_t phi, Double_t rmin, 
443                                             Double_t rmax, Int_t nedges, Double_t height); 
444                                                                                 //Auxiliary Method for Arc Shape
445   TGeoArb8* GetArbShape(TVector3 const * const vertexpos[4],const Double_t* width, 
446                         Double_t height,const char* shapename,Int_t isign = 1) const;
447                                                                            // Method generating an Arb shape 
448   TGeoShape* GetScrewShape(const Double_t* radius,const Int_t* edgesnumber,const Double_t* section) const;// Method Generating the Screw Shape  
449   TGeoShape* GetHoleShape(Double_t radius, Int_t nedges, const Double_t *section) const;// Method Generating the Hole Shape  
450   TVector3* GetReflection(const TVector3* vector,const Double_t* param) const; 
451                                                                                 // Given an axis specified by param,
452                                                                                 // it gives the reflection of the point respect to the axis
453   TGeoHMatrix* AddTranslationToHMatrix(const TGeoHMatrix* ct,Double_t dx,Double_t dy,
454                                                        Double_t dz) const;
455                                                                                 // add (dx,dy,dz) translation to a initial TGeoCombiTrans
456   /////////////////////////////////////////////////////////////////////////
457   // Private members
458   /////////////////////////////////////////////////////////////////////////
459   // Materials
460   /////////////////////////////////////////////////////////////////////////
461   TGeoMedium* fSSDChipMedium;                    // SSD Module Chip Medium
462   TGeoMedium* fSSDChipGlueMedium;                // SSD Module Chip Glue Layer Medium 
463   TGeoMedium* fSSDStiffenerMedium;               // SSDStiffener Medium 
464   TGeoMedium* fSSDStiffenerConnectorMedium;      // SSD Stiffener Connector Medium 
465   TGeoMedium* fSSDStiffener0603CapacitorMedium;  // SSD Stiffener Capacitor 0603 Medium 
466   TGeoMedium* fSSDStiffener1812CapacitorMedium;  // SSD Stiffener Capacitor 1812 Medium 
467   TGeoMedium* fSSDStiffenerCapacitorCapMedium;  // SSD Stiffener Capacitor Cap Medium 
468   TGeoMedium* fSSDStiffenerHybridWireMedium;     // SSD Stiffener Wire Medium  
469   TGeoMedium* fSSDKaptonFlexMedium;              // SSD Flex Kapton Layer Medium    
470   TGeoMedium* fSSDAlTraceFlexMedium;             // SSD Flex Al Layer Medium 
471   TGeoMedium* fSSDAlTraceLadderCableMedium;      // SSD Ladder Cable Al Layer Medium
472   TGeoMedium* fSSDKaptonLadderCableMedium;       // SSD Ladder Cable Kapton Layer Medium
473   TGeoMedium* fSSDKaptonChipCableMedium;         // SSD Chip Cables Kapton Layer Medium 
474   TGeoMedium* fSSDAlTraceChipCableMedium;        // SSD Chip Cables Al Layer Medium
475   TGeoMedium* fSSDAlCoolBlockMedium;             // SSD Cooling Block Al Medium
476   TGeoMedium* fSSDSensorMedium;                  // SSD Sensor Medium  
477   TGeoMedium* fSSDSensorSupportMedium;                  // SSD Sensor Support Medium   
478   TGeoMedium* fSSDCarbonFiberMedium;             // SSD Carbon Fiber Medium 
479   TGeoMedium* fSSDTubeHolderMedium;              // Cooling Tube Support Medium
480   TGeoMedium* fSSDCoolingTubeWater;              // Medium for Inner Part of Cooling Tube
481   TGeoMedium* fSSDCoolingTubePhynox;             // Medium for Cooling Tube 
482   TGeoMedium* fSSDSupportRingAl;                 // Medium for Support Ring
483   TGeoMedium* fSSDMountingBlockMedium;           // Medium for SSD Mounting Block  
484   TGeoMedium* fSSDRohaCellCone;                  // Medium for SSD Ring Cone Support
485   TGeoMedium* fSSDAir;                                                   // SSD Air
486   TGeoMedium* fSSDCopper;                        // Copper for SSD Cables
487   TGeoMedium* fSSDSn;                            // Tin for SSD solderings
488   /////////////////////////////////////////////////////////////////////////
489   Bool_t fCreateMaterials;                // Bool variable which verifies if materials have been created
490   Bool_t fTransformationMatrices; // Bool variable which verifies if matrices have been allocated
491   Bool_t fBasicObjects;          // Bool variable which verifies if basic objects have been allocated
492   /////////////////////////////////////////////////////////////////////////
493   // Carbon Fiber Support Matrices and Objects
494   ////////////////////////////////////////////
495   static const Int_t fgkcarbonfibersupportnumber = 2;                              // Support Number    
496   TGeoVolume* fcarbonfibersupport[fgkcarbonfibersupportnumber];            // Support
497   TGeoHMatrix* fcarbonfibersupportmatrix[fgkcarbonfibersupportnumber]; // Support Matrix
498   /////////////////////////
499   // Carbon Fiber Junction
500   ////////////////////////
501   static const Int_t fgkcarbonfiberjunctionumber = 3;  // Carbon Fiber Number
502   TGeoVolume* fcarbonfiberjunction;                                        // Carbon Fiber
503   TGeoHMatrix* fcarbonfiberjunctionmatrix[fgkcarbonfiberjunctionumber]; // Carbon Fiber Matrix
504   /////////////////////////////
505   // Carbon Fiber Lower Support
506   /////////////////////////////
507   static const Int_t fgkcarbonfiberlowersupportnumber = 2; // Carbon Fiber Lower Support Number
508   TGeoVolume* fcarbonfiberlowersupport[fgkcarbonfiberlowersupportnumber]; // Carbon Fiber Lower Support 
509   TGeoTranslation* fcarbonfiberlowersupportrans[fgkcarbonfiberlowersupportnumber];// Carbon Fiber Lower Support Translation
510   /////////////////////////////
511   // SSD Sensor Support
512   /////////////////////////////
513   static const Int_t fgkvolumekind = 2; // volumekind = 0 : side ssd support
514                                                                                 // volumekind = 1 : central ssd support 
515   static const Int_t fgkssdsensorsupportnumber = 3; // SSD Sensor Support Number
516   TGeoVolume** fssdsensorsupport[fgkvolumekind];    // SSD Sensor 
517   TGeoHMatrix* fssdsensorsupportmatrix[fgkssdsensorsupportnumber]; // SSD Sensor Matrix 
518   /////////////////////////////////////////////////////////////
519   // SSD Cooling Tube Support
520   /////////////////////////////////////////////////////////////
521   static const Int_t fgkcoolingtubesupportnumber = 2; // Cooling Tube Support Number
522   TGeoVolume* fcoolingtubesupport;                                        // Cooling Tube Support
523   TGeoHMatrix* fcoolingtubesupportmatrix[fgkcoolingtubesupportnumber]; // Cooling Tube Support Matrix 
524   /////////////////////////////////////////////////////////////
525   // SSD Hybrid
526   /////////////////////////////////////////////////////////////
527   static const Int_t fgkhybridcompnumber = 3;  // Hybrid number
528   TGeoVolume* fssdhybridcomponent[fgkhybridcompnumber]; // Hybrid Components
529   TGeoHMatrix* fhybridmatrix;           // Hybrid Matrix
530   /////////////////////////////////////////////////////////////
531   // SSD Cooling Block System
532   /////////////////////////////////////////////////////////////
533   static const Int_t fgkcoolingblocknumber = 4; // Cooling Block Number
534   TGeoVolume* fssdcoolingblocksystem;  // Cooling Block 
535   TGeoHMatrix* fcoolingblocksystematrix;  // Cooling Block Matrix 
536   TGeoHMatrix* fcoolingblockmatrix[fgkcoolingblocknumber];  // Cooling System Matrix
537   /////////////////////////////////////////////////////////////
538   // SSD Flex  
539   /////////////////////////////////////////////////////////////
540   static const Int_t fgkflexnumber = 2; // Flex Number 
541   TGeoVolume* fssdstiffenerflex;                // Stiffener Flex
542   TGeoVolume* fssdendflex;                              // End flex
543   TGeoHMatrix* fstiffenerflexmatrix[fgkflexnumber]; // Stiffener Flex Matrix
544   TGeoHMatrix* fendflexmatrix[fgkflexnumber];       // End Flex Matrix
545   /////////////////////////////////////////
546   // Cooling Tube
547   /////////////////////////////////////////
548   TGeoHMatrix* fcoolingtubematrix[2];  // Cooling Tube Matrix
549   TGeoVolume* fcoolingtube;                     // Ladder Cooling Tube 
550   static const Int_t fgkendladdercoolingtubenumber = 2;         // End Ladder Cooling Tube Number       
551   TGeoVolume* fendladdercoolingtube[fgkendladdercoolingtubenumber];     // End Ladder Cooling Tube
552   TGeoHMatrix* fendladdercoolingtubematrix[fgkendladdercoolingtubenumber][2];  //End ladder cooling tube matrix
553   /////////////////////////////////////////
554   // End Ladder Components
555   /////////////////////////////////////////
556   TGeoVolumeAssembly* fendladdersegment[2];  // End Ladder Segment 
557   TGeoHMatrix** fendladdersegmentmatrix[2];  // End Ladder Matrix
558   /////////////////////////////////////////////////////////////
559   // End Ladder SSD Cooling Tube Support 
560   /////////////////////////////////////////////////////////////
561   TGeoHMatrix*** fendladdercoolingtubesupportmatrix; //End ladder cooling tube support matrix
562   ///////////////////////////////////
563   // End Ladder Carbon Fiber Junction
564   ///////////////////////////////////
565   static const Int_t fgkendlabbercarbonfiberjunctionumber = 2; // End Ladder Carbon fiber Junction Number
566   TGeoVolume** fendladdercarbonfiberjunction[fgkendlabbercarbonfiberjunctionumber]; // End Ladder Carbon fiber Junction Volumes
567   static const Int_t fgkendladdercarbonfiberjunctionmatrixnumber = 3; // End Ladder Carbon fiber Junction Matrix Number
568   TGeoHMatrix** fendladdercarbonfiberjunctionmatrix[fgkendladdercarbonfiberjunctionmatrixnumber]; // End Ladder Carbon fiber Junction Matrix 
569   ///////////////////////////////////
570   // End Ladder Carbon Fiber Support
571   ///////////////////////////////////
572   static const Int_t fgkendladdercarbonfibermatrixnumber = 2; // End Ladder Carbon fiber Matrix Number
573   TGeoHMatrix** fendladdercarbonfibermatrix[fgkendladdercarbonfibermatrixnumber]; // End Ladder Carbon fiber Matrix 
574   ///////////////////////////////////
575   // End Ladder SSD Mounting Block
576   ///////////////////////////////////
577   static const Int_t fgkendladdermountingblocknumber = 2; // Mounting Block Number   
578   TGeoVolume* fendladdermountingblock;                                    // Mounting Block
579   TGeoVolume* fendladdermountingblockclip;                // Mounting Block Clip
580   TGeoCombiTrans* fendladdermountingblockcombitrans[fgkendladdermountingblocknumber]; // End Ladder Mounting Block CombiTrans
581   TGeoHMatrix** fendladdermountingblockclipmatrix[fgkendladdermountingblocknumber]; // End Ladder Mounting Block Clip HMatrix
582   ///////////////////////////////////
583   // End Ladder Lower Support
584   ///////////////////////////////////
585   static const Int_t fgkendladderlowersuppnumber = 2; // End Ladder Lower Support Number
586   TGeoTranslation* fendladderlowersupptrans[fgkendladderlowersuppnumber+1]; // End Ladder Lower Support Translations
587   /////////////////////////////////////////////////////////////////////////
588   // LadderCables 
589   /////////////////////////////////////////////////////////////////////////
590   static const Int_t fgkladdercablematrixnumber = 4; // Number of TGeoCombiTrans 
591                                                      // for positioning Ladder Cable volumes  
592   static const Int_t fgkladdercablesnumber = 2;           // Number of Ladder Cables Layers
593   TGeoHMatrix **fladdercablematrix[fgkladdercablesnumber]; // TGeoCombiTrans for positioning
594                                                            // Ladder Cables volumes
595   ///////////////////////////////////
596   // Ladder Segment
597   ///////////////////////////////////
598   static const Int_t fgkladdersegmentnumber = 2; // Ladder Segment Kinds Number
599   TGeoVolumeAssembly* fladdersegment[fgkladdersegmentnumber]; // Ladder Segment
600   ///////////////////////////////////
601   // Ladder 
602   ///////////////////////////////////
603   static const Int_t fgkladdernumber = 2;                     // Ladder Number 
604   TGeoVolume* fladder[fgkladdernumber];                       //fladder[0]: ladder of Layer 5
605                                                                                                       //fladder[1]: ladder of Layer 6
606 //  TGeoVolumeAssembly* fladder[fgkladdernumber];
607   TGeoHMatrix** fladdermatrix[fgkladdernumber];       // Ladder Matrix
608   ///////////////////////////////////
609   // SSD Sensor
610   ///////////////////////////////////
611   TGeoVolume* fSSDSensor5;  // Layer 5 SSD Sensor
612   TGeoVolume* fSSDSensor6;  // Layer 6 SSD Sensor
613   TGeoHMatrix** fssdsensormatrix[fgkladdernumber]; // SSD Sensor Matrix
614   ///////////////////////////////////
615   // SSD Layer
616   ///////////////////////////////////
617   static const Int_t fgklayernumber = 2; // Layer Number
618   TGeoVolumeAssembly* fSSDLayer5;                // SSD Layer 5
619   TGeoVolumeAssembly* fSSDLayer6;            // SSD Layer 6
620   TGeoHMatrix** flayermatrix[fgklayernumber]; // Layer Transformations
621   /////////////////////////////////////////////////////////////////////////
622   // Mother Volume 
623   /////////////////////////////////////////////////////////////////////////
624   TGeoVolume *fMotherVol;                                    // Mother volume for ITS Layer5 and Layer6   
625   TGeoVolume* GetMotherVolume() const { return fMotherVol;}; // Method returning Mother Volume
626   /////////////////////////////////////////////////////////////////////////
627   // Ladder Support 
628   /////////////////////////////////////////////////////////////////////////
629   TGeoVolume* fLay5LadderSupport[2]; // Up and Down parts of Layer5 Ladder Support
630   TGeoVolume* fLay6LadderSupport[2]; // Up and Down parts of Layer6 Ladder Support
631   TGeoVolumeAssembly* fLay5LadderSupportRing; // Layer5 Ladder Support Ring
632   TGeoVolumeAssembly* fLay6LadderSupportRing; // Layer6 Ladder Support Ring
633   /////////////////////////////////////////////////////////////////////////
634   // End Cap Support + End Cap Assembly
635   /////////////////////////////////////////////////////////////////////////
636   TGeoVolume** fgkEndCapSupportSystem; // End Cap Support + End Cap Assembly
637   /////////////////////////////////////////////////////////////////////////
638   // SSD Cone
639   /////////////////////////////////////////////////////////////////////////
640   TGeoVolumeAssembly*fSSDCone;  // SSD Cone  
641   /////////////////////////////////////////////////////////////////////////
642   // Color Display 
643   /////////////////////////////////////////////////////////////////////////
644   Int_t fColorCarbonFiber;    //  display colors
645   Int_t fColorRyton;          //  ===
646   Int_t fColorPhynox;         //  ===
647   Int_t fColorSilicon;        //  ===
648   Int_t fColorAl;             //  ===
649   Int_t fColorNiSn;           //  ===
650   Int_t fColorKapton;         //  ===
651   Int_t fColorPolyhamide;     //  ===
652   Int_t fColorStiffener;      //  ===
653   Int_t fColorEpoxy;          //  ===
654   Int_t fColorWater;              //  ===
655   Int_t fColorG10;            //  ===
656 ClassDef(AliITSv11GeometrySSD, 5)     // ITS v11 SSD geometry
657 };
658 #endif
659