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