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