]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSv11GeometrySSD.h
store also difference in local Y
[u/mrichter/AliRoot.git] / ITS / AliITSv11GeometrySSD.h
index babbb2b9e3b326e804bd9ef438ebd6a60c984892..e43ba37a6475a8dacd3a7c264a0fef214cd371f9 100644 (file)
@@ -1,10 +1,14 @@
+#ifndef ALIITSV11GEOMETRYSSD_H
+#define ALIITSV11GEOMETRYSSD_H
 //*************************************************************************
 // class AliITSv11GeometrySSD
 // Enrico Cattaruzza                                     ecattar@ts.infn.it
 //*************************************************************************
-#ifndef ALIITSV11GEOMETRYSSD_H
-#define ALIITSV11GEOMETRYSSD_H
+/* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+/* $Id$ */
 class TGeoVolume;
+class TGeoShape;
 class TGeoCombiTrans;
 class TGeoMedium;
 class TGeoCompositeShape;
@@ -15,40 +19,59 @@ class TList;
 class TGeoTube;
 class TGeoHMatrix;
 class TGeoTranslation;
+class TGeoRotation;
 class TGeoXtru;
 class TGeoVolumeAssembly;
 #include "AliITSv11Geometry.h"
 class AliITSv11GeometrySSD: public AliITSv11Geometry {
 public:
   AliITSv11GeometrySSD();
-  AliITSv11GeometrySSD(const AliITSv11GeometrySSD &source);
-  AliITSv11GeometrySSD& operator=(const AliITSv11GeometrySSD &source);
   virtual ~AliITSv11GeometrySSD(){};
   /////////////////////////////////////////////////////////////////////////
   // Public methods
   /////////////////////////////////////////////////////////////////////////
-  TGeoMedium* GetMedium(const char* mediumName);
-  // It returns the Medium
-  const char*   GetSenstiveVolumeName5() const {return fgSDDsensitiveVolName5;};
+  void CreateMaterials();        // Method setting the materials 
+  TGeoMedium* GetMedium(const char* mediumName);   // It returns the Medium
+  const char*   GetSenstiveVolumeName5() const {return fgkSSDsensitiveVolName5;};
   // it returns the Sensitive Volume of Layer 5
-  const char*   GetSenstiveVolumeName6() const {return fgSDDsensitiveVolName6;};
+  const char*   GetSenstiveVolumeName6() const {return fgkSSDsensitiveVolName6;};
   // it returns the Sensitive Volume of Layer 6
-  TGeoVolumeAssembly* GetLadderSegment(Int_t i){return fladdersegment[i];}; // Get Ladder Segment
-  TGeoVolumeAssembly* GetEndLadderSegment(Int_t i){return fendladdersegment[i];}; // Get End Ladder Segment 
-  TGeoVolume* GetLadder(Int_t i) {return fladder[i];}; // Get Ladder
-  TGeoVolume* GetLayer(Int_t i)const {return i==5? fSSDLayer5 : fSSDLayer6;}; // Get Layer
+  TGeoVolumeAssembly* GetLadderSegment(Int_t i) const {return fladdersegment[i];}; // Get Ladder Segment
+  TGeoVolumeAssembly* GetEndLadderSegment(Int_t i) const {return fendladdersegment[i];}; // Get End Ladder Segment 
+  TGeoVolume* GetLadder(Int_t i) const {return fladder[i];}; // Get Ladder
+//  TGeoVolumeAssembly* GetLadder(Int_t i) {return fladder[i];}; // Get Ladder
+  TGeoVolumeAssembly* GetLayer(Int_t i)const {return i==5? fSSDLayer5 : fSSDLayer6;}; // Get Layer
+  TGeoVolume** GetEndCapAssembly();     // End Cap Assembly
   void SetLadderSegment();                             // Set Ladder Elementary Segment 
   void SetEndLadderSegment();                  // Set End Ladder Segment
   void SetLadder();                                            // Set Ladder
   void SetLayer();                                             // Set Layer
+  void SetSSDCone();                    // Set SSD Cone
+  TGeoVolume* SetSSDCables();           // Set SSD Cables
   void Layer5(TGeoVolume* moth);        // Setting Layer 5 into mother volume
   void Layer6(TGeoVolume* moth);        // Setting Layer 6 into mother volume
+  void LadderSupportLayer5(TGeoVolume* moth); // Setting Ladder Support of Layer 5
+  void LadderSupportLayer6(TGeoVolume* moth); // Setting Ladder Support of Layer 6
+  void EndCapSupportSystemLayer5(TGeoVolume* moth); // Setting End Cap Support + End Cap Assembly Layer 5
+  void EndCapSupportSystemLayer6(TGeoVolume* moth); // Setting End Cap Support + End Cap Assembly Layer 6
+  void SSDCone(TGeoVolume* moth); // Setting SSD Cone;
+  void SSDCables(TGeoVolume* moth); // Setting SSD Cables;
 private:
+  AliITSv11GeometrySSD(const AliITSv11GeometrySSD &source);
+  AliITSv11GeometrySSD& operator=(const AliITSv11GeometrySSD &source);
+
   /////////////////////////////////////////////////////////////////////////////////
   // Names of the Sensitive Volumes of Layer 5 and Layer 6
   /////////////////////////////////////////////////////////////////////////////////
-  static const char* fgSDDsensitiveVolName5;       // sens. vol. name for lay. 5
-  static const char* fgSDDsensitiveVolName6;       // sens. vol. name for lay. 6
+  static const char* fgkSSDsensitiveVolName5;       // sens. vol. name for lay. 5
+  static const char* fgkSSDsensitiveVolName6;       // sens. vol. name for lay. 6
+  /////////////////////////////////////////////////////////////////////////////////
+  // Variable for Vertical Disalignement of Modules
+  /////////////////////////////////////////////////////////////////////////////////
+  static const Double_t fgkSSDModuleVerticalDisalignment;  // Vertical Disalignement of Volume
+  static const Double_t fgkSSDModuleSideDisalignment;  // Vertical Disalignement of Volume
+  static const Double_t fgkSSDLadderVerticalDisalignment;  // Extra space at ladder support for disalignment
+  static const Double_t fgkSSDTolerance;  // SSD Tolerance
   /////////////////////////////////////////////////////////////////////////
   // Layer5 (lengths are in mm and angles in degrees)
   /////////////////////////////////////////////////////////////////////////
@@ -91,9 +114,11 @@ private:
   static const Double_t fgkSSDCapacitor0603Length; // SSD Stiffener Capacitor 0603 Length
   static const Double_t fgkSSDCapacitor0603Width;  // SSD Stiffener Capacitor 0603 Width
   static const Double_t fgkSSDCapacitor0603Height; // SSD Stiffener Capacitor 0603 Height
+  static const Double_t fgkSSDCapacitor0603CapLength; // SSD Stiffener Capacitor 1812 Cap Length 
   static const Double_t fgkSSDCapacitor1812Length; // SSD Stiffener Capacitor 1812 Length 
   static const Double_t fgkSSDCapacitor1812Width;  // SSD Stiffener Capacitor 1812 Width
   static const Double_t fgkSSDCapacitor1812Height; // SSD Stiffener Capacitor 1812 Height
+  static const Double_t fgkSSDCapacitor1812CapLength; // SSD Stiffener Capacitor 1812 Cap Length 
   static const Double_t fgkSSDWireLength;          // SSD Stiffener Wire Length
   static const Double_t fgkSSDWireRadius;          // SSD Stiffener Wire Radius
   static const Double_t fgkSSDConnectorPosition[2];// SSD Connector Position respect to Stiffener
@@ -103,13 +128,14 @@ private:
   static const Double_t fgkSSDConnectorHeight;     // SSD Stiffener Connector Height
   static const Double_t fgkSSDConnectorAlHeight;     // SSD Stiffener Connector Al Height
   static const Double_t fgkSSDConnectorNiHeight;     // SSD Stiffener Connector Ni Height
+  static const Double_t fgkSSDConnectorSnHeight;     // SSD Stiffener Connector Sn Height
   /////////////////////////////////////////////////////////////////////////
   // Flex
   /////////////////////////////////////////////////////////////////////////
   static const Double_t fgkSSDFlexFullLength;      // SSD Flex Full Length
   static const Double_t fgkSSDFlexLength[4];       // SSD Flex Components Length
   static const Double_t fgkSSDFlexWidth[2];        // SSD Flex Components Width
-  static const Double_t fgkSSDFlexHeight[2];       // SSD Flex Layers Heigth
+  static const Double_t fgkSSDFlexHeight[2];       // SSD Flex Layers Height
   static const Double_t fgkSSDFlexAngle;           // SSD Flex Angle 
   static const Double_t fgkSSDFlexHoleLength;      // SSD Flex Hole Length
   static const Double_t fgkSSDFlexHoleWidth;       // SSD Flex Hole Width
@@ -119,6 +145,7 @@ private:
   // SSD Ladder Cable 
   /////////////////////////////////////////////////////////////////////////////////
   static const Double_t fgkSSDLadderCableWidth;    // SSD Ladder Cable Width
+  static const Double_t fgkSSDLadderCableHeight[2];  // SSD Ladder Cable Height (thickness)
   /////////////////////////////////////////////////////////////////////////
   // SSD Module Components 
   /////////////////////////////////////////////////////////////////////////
@@ -192,6 +219,7 @@ private:
   /////////////////////////////////////////////////////////////////////////
   //Parameters for Carbon Fiber Lower Support (lengths are in mm)
   /////////////////////////////////////////////////////////////////////////
+  static const Double_t fgkLowerSupportToSensorZ;                   // Distance from lower support to sensor center
   static const Double_t fgkCarbonFiberLowerSupportWidth;            // Lower Support of Carbon Fiber Width
   static const Double_t fgkCarbonFiberLowerSupportLowerLenght;      // Lower Support of Carbon Fiber Length
   static const Double_t fgkCarbonFiberLowerSupportHeight;           // Lower Support of Carbon Fiber Height
@@ -204,6 +232,7 @@ private:
   static const Double_t fgkEndLadderCarbonFiberLowerJunctionLength[2];   // End Ladder Carbon Fiber Lower Up Support length 
   static const Double_t fgkEndLadderCarbonFiberUpperJunctionLength[2];   // End Ladder Carbon Fiber Lower Down Support length 
   static const Double_t fgkEndLadderMountingBlockPosition[2];            // End Ladder Mounting Block Position 
+  static const Double_t fgkendladdercoolingsupportdistance[3];                  // End Ladder Cooling Support Position
   /////////////////////////////////////////////////////////////////////////
   // Cooling Tube Support (lengths are in mm and angles in degrees)
   /////////////////////////////////////////////////////////////////////////
@@ -221,6 +250,7 @@ private:
   static const Double_t fgkCoolingTubeRmin;       // Cooling Tube Min Radius
   static const Double_t fgkCoolingTubeLength;     // Cooling Tube Length  
   static const Double_t fgkCoolingTubeSeparation; // Cooling Tube Separation
+  static const Double_t fgkMountingBlockToSensorSupport; // Distance between Mounting block and Side Sensor Support    
   /////////////////////////////////////////////////////////////////////////
   // SSD Mounting Block Parameters (lengths are in mm and angles in degrees)
   /////////////////////////////////////////////////////////////////////////
@@ -234,12 +264,139 @@ private:
   static const Double_t fgkSSDMountingBlockHoleTubeWidth[2];    // SSD Mounting Block Hole Tube Width   
   static const Double_t fgkSSDMountingBlockHoleRadius;          // SSD Mounting Block Hole radius  
   static const Double_t fgkSSDMountingBlockScrewHoleEdge;       // SSD Mounting Block Screw Hole Edge  
-  static const Double_t fgkSSDMountingBlockScrewHoleHeigth;     // SSD Mounting Block Screw Hole Height  
+  static const Double_t fgkSSDMountingBlockScrewHoleHeight;     // SSD Mounting Block Screw Hole Height  
   static const Double_t fgkSSDMountingBlockScrewHoleRadius[2];  // SSD Mounting Block Screw Hole Radii
   /////////////////////////////////////////////////////////////////////////
+  // SSD Mounting Block Clip Parameters (lengths are in mm and angles in degrees)
+  /////////////////////////////////////////////////////////////////////////
+  static const Double_t fgkMountingBlockClipLength;          // SSD Mounting Block Clip Length  
+  static const Double_t fgkMountingBlockClipThickness;       // SSD Mounting Block Clip Thickness 
+  static const Double_t fgkMountingBlockClibScrewRadius;     // SSD Mounting Block Clip Radius 
+  static const Double_t fgkMountingBlockClibScrewPosition;  // SSD Mounting Block Clip Screw Position
+  static const Double_t fgkMountingBlockClibWidth;          // SSD Mounting Block Clip 
+  /////////////////////////////////////////////////////////////////////////////////
+  // SSD Mounting Block Support Parameters (lengths are in mm and angles in degrees)
+  /////////////////////////////////////////////////////////////////////////////////
+  static const Double_t fgkMountingBlockSupportWidth[2]; // SSD Mounting Block Support Width
+  static const Double_t fgkMountingBlockSupportDownHeight; // SSD Mounting Block Support Down Height
+  static const Double_t fgkMountingBlockSupportRadius[2];  // SSD Mounting Block Support Radius
+  static const Double_t fgkMountingBlockSupportUpHeight[2]; // SSD Mounting Block Support Height
+  static const Double_t fgkLadderSupportHeight;            // SSD Ladder Support Width
+  static const Double_t fgkLadderSupportRingLay5Position;  // SSD Ladder Support Ring Position Layer5 respect to ITS center
+  static const Double_t fgkLadderSupportRingLay6Position;  // SSD Ladder Support Ring Position Layer6 respect to ITS center
+  /////////////////////////////////////////////////////////////////////////////////
+  // SSD End Cap Cover Plate Parameters (lengths are in mm and angles in degrees)
+  /////////////////////////////////////////////////////////////////////////////////
+  static const Double_t fgkEndCapCoverPlateSmallHoleRadius; // End Cap Cover Plate Hole Small Radious 
+  static const Double_t fgkEndCapCoverPlateBigHoleRadius;   // End Cap Cover Plate Hole Big Radious
+  static const Double_t fgkEndCapCoverPlateThickness;       // End Cap Cover Plate Thickness
+  static const Double_t fgkEndCapCoverPlateSmallHoleSeparation[3]; // End Cap Cover Plate Hole Separation
+  static const Double_t fgkEndCapCoverPlateLength[6];       // End Cap Cover Plate Length
+  static const Double_t fgkEndCapCoverPlateWidth[3];        // End Cap Cover Plate Width
+  static const Double_t fgkEndCapCoverPlateScrewRadiusMin;  // End Cap Cover Plate Screw Radius Min
+  static const Double_t fgkEndCapCoverPlateScrewRadiusMax;  // End Cap Cover Plate Screw Radius Max
+  static const Double_t fgkEndCapCoverPlateClipLength;      // End Cap Cover Plate Clip Length
+  static const Double_t fgkEndCapCoverPlateClipWidth;       // End Cap Cover Plate Clip Width
+  static const Double_t fgkEndCapCoverPlateDownClipLength;  // End Cap Cover Plate Down Clip Length
+  static const Double_t fgkEndCapCoverPlateDownClipWidth;   // End Cap Cover Plate Down Clip Width
+  /////////////////////////////////////////////////////////////////////////////////
+  // SSD End Cap Cooling Tube Parameters (lengths are in mm and angles in degrees)
+  /////////////////////////////////////////////////////////////////////////////////
+  static const Double_t fgkEndCapCoolingTubeAxialRadius[2]; // End Cap Cooling Tube Axial Radius
+  static const Double_t fgkEndCapCoolingTubeRadiusMin; // End Cap Cooling Tube Min Radius
+  static const Double_t fgkEndCapCoolingTubeRadiusMax; // End Cap Cooling Tube Max Radius
+  static const Double_t fgkEndCapCoolingTubeAngle[5];  // End Cap Cooling Tube Angle
+  static const Double_t fgkEndCapCoolingTubeLength[5]; // End Cap Cooling Tube Length
+  static const Double_t fgkEndCapCoolingTubeToCoverSide; // End Cap Cooling Tube Position respect to CoverSide
+  /////////////////////////////////////////////////////////////////////////////////
+  // SSD End Cap Cover Side Parameters (lengths are in mm and angles in degrees)
+  /////////////////////////////////////////////////////////////////////////////////
+  static const Double_t fgkEndCapSideCoverLength[5]; // End Cap Cover Side Length
+  static const Double_t fgkEndCapSideCoverWidth[7]; //  End Cap Cover Side Width
+  static const Double_t fgkEndCapSideCoverThickness; // End Cap Cover Side Thickness
+  /////////////////////////////////////////////////////////////////////////////////
+  // SSD End Cap Cards Parameters (lengths are in mm and angles in degrees)
+  /////////////////////////////////////////////////////////////////////////////////
+  static const Double_t  fgkEndCapCardElectBoardBackLength[3]; // End Cap Card Electronic Board Back Length 
+  static const Double_t  fgkEndCapCardElectBoardBackWidth[2];  // End Cap Card Electronic Board Back Width 
+  static const Double_t  fgkEndCapCardElectBoardBackThickness; // End Cap Card Electronic Board Back Thickness 
+  static const Double_t  fgkEndCapCardElectBoardLength;        // End Cap Card Electronic Board Length
+  static const Double_t  fgkEndCapCardElectBoardLayerWidth[2]; // End Cap Card Electronic Board Layer Width
+  static const Double_t  fgkEndCapCardElectBoardLayerThickness;// End Cap Card Electronic Board Layer Thickness 
+  static const Double_t  fgkEndCapCardJMDConnectorThickness;   // End Cap Card JMD Connector Thickness
+  static const Double_t  fgkEndCapCardJMDConnectorLength[2];   // End Cap Card JMD Connector Length
+  static const Double_t  fgkEndCapCardJMDConnectorWidth[2];    // End Cap Card JMD Connector Width
+  static const Double_t  fgkEndCapCardJMDConnectorToLayer;     // End Cap Card JMD Connector to Layer Distance 
+  static const Double_t  fgkEndCapCardCableConnectorLength[3]; // End Cap Card Cable Connector Length
+  static const Double_t  fgkEndCapCardCableConnectorWidth[2];  // End Cap Card Cable Connector Width
+  static const Double_t  fgkEndCapCardCableConnectorThickness; // End Cap Card Cable Connector Thickness
+  static const Double_t  fgkEndCapCardCableConnectorDistance;  // End Cap Card Cable Connector Distance
+  static const Double_t  fgkEndCapCardCableConnectorToLayer;   // End Cap Card Cable Connector To Layer Distance
+  static const Double_t  fgkEndCapStripConnectionLength;       // End Cap Strip Connection Length
+  static const Double_t  fgkEndCapStripConnectionThickness;    // End Cap Strip Connection Thickness
+  static const Double_t  fgkEndCapStripConnectionWidth;        // End Cap Strip Connection Width
+  static const Double_t  fgkEndCapInterfaceCardBLength[7];     // End Cap Interface CardB Length
+  static const Double_t  fgkEndCapInterfaceCardBWidth[5];      // End Cap Interface CardB Width
+  static const Double_t  fgkEndCapInterfaceCardBThickness;     // End Cap Interface CardB Thickness
+  static const Double_t  fgkEndCapInterfaceElectBoardCardBThickness; // End Cap Interface Elect Board CardB Thickness 
+  static const Double_t  fgkEndCapInterfaceCardBJMDConnectorSeparation; // End Cap Interface CardB JMD Connector Separation
+  static const Double_t  fgkEndCapStiffenerLength;             // End Cap Stiffener Length
+  static const Double_t  fgkEndCapStiffenerWidth;                         // End Cap Stiffener Width
+  static const Double_t  fgkEndCapStiffenerThickness;          // End Cap Stiffener Thickness
+  static const Double_t  fgkEndCapEffectiveCableRadiusMin;     // End Cap Effective Cable Radius Min
+  static const Double_t  fgkEndCapEffectiveCableRadiusMax;     // End Cap Effective Cable Radius Max
+  /////////////////////////////////////////////////////////////////////////////////
+  // SSD End Cap SupportLayer5/6 Side Parameters (lengths are in mm and angles in degrees)
+  /////////////////////////////////////////////////////////////////////////////////
+  static const Double_t fgkEndCapLay5SupportLength; // End Cap Layer5 Support Length
+  static const Double_t fgkEndCapLay5SupportMiddleRadius; // End Cap Layer5 Support Middle Radius
+  static const Double_t fgkEndCapLay5SupportLowRadius; // End Cap Layer5 Support Low Radius
+  static const Double_t fgkEndCapLay5SupportHighWidth; // End Cap Layer5 High Radius
+  static const Double_t fgkEndCapLay5SupportLowWidth; // End Cap Layer5 Low Width
+  static const Double_t fgkEndCapSupportLength[2]; // End Cap Layer5/6 Support Length
+  static const Double_t fgkEndCapSupportMiddleRadius[2]; // End Cap Layer5/6 Support Middle Radius
+  static const Double_t fgkEndCapSupportLowRadius[2]; // End Cap Layer5/6 Support Low Radius
+  static const Double_t fgkEndCapSupportHighWidth; // End Cap Layer5/6 High Radius
+  static const Double_t fgkEndCapSupportLowWidth[2]; // End Cap Layer5/6 Low Width  
+  static const Double_t fgkEndCapSupportCenterLay5ITSPosition; // End Cap Support Center ITS Position Layer 5
+  static const Double_t fgkEndCapSupportCenterLay5Position; // End Cap Support Position Respect Z Axis Origin Layer 5 
+  static const Double_t fgkEndCapSupportCenterLay6ITSPosition; // End Cap Support Center ITS Position Layer 6
+  static const Double_t fgkEndCapSupportCenterLay6Position; // End Cap Support Position Respect Z Axis Origin Layer 6 
+  /////////////////////////////////////////////////////////////////////////////////
+  // SSD End Cap Kapton Foil Parameters (lengths are in mm and angles in degrees)
+  ////////////////////////////////////////////////////////////////////////////////
+  static const Double_t fgkEndCapKaptonFoilThickness; // End Cap Kapton Foil Thickness
+  static const Double_t fgkEndCapKaptonFoilLength;    // End Cap Kapton Foil Length
+  static const Double_t fgkEndCapKaptonFoilWidth ;    // End Cap Kapton Foil Width
+  /////////////////////////////////////////////////////////////////////////
+  // SSD Cone
+  /////////////////////////////////////////////////////////////////////////
+  static const Double_t fgkSSDLowerPConeRadius; // SSD Cone Lower Radius
+  static const Double_t fgkSSDPConeAngle;        // SSD Cone Angle
+  static const Double_t fgkSSDPConeZLength[2];   // SSD Cone ZLength
+  static const Double_t fgkSSDPConeLittleHoleRadius; // SSD Cone Little Hole Radius
+  static const Double_t fgkSSDPConeLittleHoleLength; // SSD Cone Little Hole Length
+  static const Double_t fgkSSDConeMiddleRadius; // SSD Cone Middle Radius 
+  static const Double_t fgkSSDPConeMiddleLength; // SSD Cone Middle Length
+  static const Double_t fgkSSDPConeMiddleWidth; // SSD Cone Middle Width
+  static const Double_t fgkSSDPConeUpRadius;  // SSD Cone Up Radius
+  static const Double_t fgkSSDPConeUpMaxRadius; // SSD Cone Up Max Radius
+  static const Double_t fgkSSDPConeUpMiddleRadius; // SSD Cone Up Middle Radius
+  static const Double_t fgkSSDPConeDownRadius; // SSD Cone Down Radius
+  static const Double_t fgkSSDPConeTrapezoidAngle; // SSD Cone Trapezoid Angle
+  static const Double_t fgkSSDPConeTrapezoidBasis; // SSD Cone Trapezoid Basis
+  static const Double_t fgkSSDPConeExternalRadius; // SSD Cone External Radius 
+  static const Double_t fgkSSDPConeRadiusWidth; // SSD Cone Radius Width
+  static const Double_t fgkSSDPConeLength; // SSD Cone Length
+  static const Double_t fgkSSDCentralSupportLength; //SSD Central Support Length
+  static const Double_t fgkSSDCentralSupportRadius; // SSD Central Support Radius 
+  static const Double_t fgkSSDCentralSupportWidth; // SSD Central Support Width
+  static const Double_t fgkSSDCentralAL3SupportLength; // SSD Central Support Length
+  static const Double_t fgkSSDCentralAL3SupportWidth; // SSD Central Support Width
+  /////////////////////////////////////////////////////////////////////////
   // Private methods for private members generation
   /////////////////////////////////////////////////////////////////////////
-  void CreateMaterials();                              // Method setting the materials 
+
   void CreateTransformationMatrices();  // Method setting the transformation matrices
   void CreateBasicObjects();                   // Method creating the basic objects of ssd geometry
   void SetSSDSensor();                                 // Method setting the SSD Layer 5 and 6 sensors
@@ -249,7 +406,7 @@ private:
   TList* GetCarbonFiberLowerSupportList(); 
                                                                            // Method generating CarbonFiberLowerSupport
   TGeoVolume* GetSSDSensorSupport(Double_t length, Double_t height, 
-                                                                 Double_t width, Double_t* thickness) const; //
+                                                                 Double_t width, const Double_t* thickness) const; //
                                                                                // Method generating SSDSensorSupport
   TGeoVolume* GetCoolingTubeSupport(Int_t nedges); // Method generating CoolingTubeSupport 
   TList* GetSSDHybridParts();                  // Method setting Hybrid Components 
@@ -257,13 +414,13 @@ private:
   TGeoVolume* GetSSDStiffenerFlex()const;    // Method generating StiffenerFlex
   TGeoVolume* GetSSDEndFlex();                 // Method generating EndFlex
   TGeoVolume* GetSSDMountingBlock();   // Method generating Mounting Block
-  TList* GetCoolingTubeList()const;                    // Method generating list of Tubes
+  TGeoVolume* GetMountingBlockClip() const;   // Method generating Mounting Block Clip
+  void CreateCoolingTubes();                   // Create/set cooling tubes 
   TGeoVolume* GetSSDCoolingBlock(Int_t nedges); 
                                                                            // Method generating StiffenerFlex
-  TGeoVolume* GetSSDChipCables(Double_t SSDChipCablesHeigth, Int_t nedges); 
+  void GetSSDChipCables(TGeoVolume *&cableL, TGeoVolume *&cableR, Double_t SSDChipCablesHeigth, Int_t nedges); 
                                                                                // Method setting ChipCables
-  TList* GetSSDChipSystem();                   // Method setting Chip System
-  TGeoVolume* GetSSDChips() const;     // Method generating Chips
+  TGeoVolume* GetSSDChip() const;     // Method generating Chips
   TList* GetLadderCableSegment(Double_t ssdendladdercablelength); 
                                                                                // Method generating LadderCableSegment
   TGeoVolume* GetLadderCable(Int_t n, Double_t ssdendladdercablelength); 
@@ -272,16 +429,28 @@ private:
                                                                                // Method generating Ladder Cable Assembly
   TList* GetLadderCableAssemblyList(Int_t n, Double_t ssdendladdercablelength); 
                                                                                // Method generating Ladder Cable List
+  TList* GetMountingBlockSupport(Int_t nedges); // Get Mounting Block Support
+  void SetLadderSupport(Int_t nedges); // It generates the ladder support
+  TGeoVolume* GetEndCapCoolingTube();  // End Cap Cooling Tube
+  TGeoVolume* GetEndCapCoverPlate();   // End Cap Cover Plate
+  TGeoVolume* GetEndCapSideCover() const;    // End Cap Side Cover
+  TGeoVolume** GetEndCapCards() const;       // End Cap Cards
+  TGeoVolume** EndCapSupport();        // End Cap Support Layer 5 and Layer 6
+  void SetEndCapSupportAssembly();     // EndCap Support + End Cap Layer 5 and 6
+  TGeoVolume* GetEndCapEffectiveCables(Double_t radiusmin, Double_t radiusmax, 
+                                                                          Double_t width,Int_t ncables,const char* volname); // End Cap Effective HV Cables
   TGeoXtru* GetArcShape(Double_t phi, Double_t rmin, 
                                            Double_t rmax, Int_t nedges, Double_t height); 
                                                                                //Auxiliary Method for Arc Shape
-  TGeoArb8* GetArbShape(TVector3* vertexpos[],Double_t* width, 
-                        Double_t height,char* shapename,Int_t isign = 1) const;
+  TGeoArb8* GetArbShape(TVector3 const * const vertexpos[4],const Double_t* width, 
+                        Double_t height,const char* shapename,Int_t isign = 1) const;
                                                                           // Method generating an Arb shape 
-  TVector3* GetReflection(TVector3* vector,Double_t* param) const; 
+  TGeoShape* GetScrewShape(const Double_t* radius,const Int_t* edgesnumber,const Double_t* section) const;// Method Generating the Screw Shape  
+  TGeoShape* GetHoleShape(Double_t radius, Int_t nedges, const Double_t *section) const;// Method Generating the Hole Shape  
+  TVector3* GetReflection(const TVector3* vector,const Double_t* param) const; 
                                                                                // Given an axis specified by param,
                                                                                // it gives the reflection of the point respect to the axis
-  TGeoHMatrix* AddTranslationToHMatrix(TGeoHMatrix* ct,Double_t dx,Double_t dy,
+  TGeoHMatrix* AddTranslationToHMatrix(const TGeoHMatrix* ct,Double_t dx,Double_t dy,
                                                        Double_t dz) const;
                                                                                // add (dx,dy,dz) translation to a initial TGeoCombiTrans
   /////////////////////////////////////////////////////////////////////////
@@ -295,6 +464,7 @@ private:
   TGeoMedium* fSSDStiffenerConnectorMedium;      // SSD Stiffener Connector Medium 
   TGeoMedium* fSSDStiffener0603CapacitorMedium;  // SSD Stiffener Capacitor 0603 Medium 
   TGeoMedium* fSSDStiffener1812CapacitorMedium;  // SSD Stiffener Capacitor 1812 Medium 
+  TGeoMedium* fSSDStiffenerCapacitorCapMedium;  // SSD Stiffener Capacitor Cap Medium 
   TGeoMedium* fSSDStiffenerHybridWireMedium;     // SSD Stiffener Wire Medium  
   TGeoMedium* fSSDKaptonFlexMedium;              // SSD Flex Kapton Layer Medium    
   TGeoMedium* fSSDAlTraceFlexMedium;             // SSD Flex Al Layer Medium 
@@ -309,8 +479,12 @@ private:
   TGeoMedium* fSSDTubeHolderMedium;              // Cooling Tube Support Medium
   TGeoMedium* fSSDCoolingTubeWater;              // Medium for Inner Part of Cooling Tube
   TGeoMedium* fSSDCoolingTubePhynox;             // Medium for Cooling Tube 
+  TGeoMedium* fSSDSupportRingAl;                 // Medium for Support Ring
   TGeoMedium* fSSDMountingBlockMedium;           // Medium for SSD Mounting Block  
+  TGeoMedium* fSSDRohaCellCone;                  // Medium for SSD Ring Cone Support
   TGeoMedium* fSSDAir;                                                  // SSD Air
+  TGeoMedium* fSSDCopper;                        // Copper for SSD Cables
+  TGeoMedium* fSSDSn;                            // Tin for SSD solderings
   /////////////////////////////////////////////////////////////////////////
   Bool_t fCreateMaterials;               // Bool variable which verifies if materials have been created
   Bool_t fTransformationMatrices; // Bool variable which verifies if matrices have been allocated
@@ -371,21 +545,27 @@ private:
   /////////////////////////////////////////
   // Cooling Tube
   /////////////////////////////////////////
-  static const Int_t fgkcoolingtubenumber = 3;                         // Coling Tube Number
-  TGeoHMatrix** fcoolingtubematrix[fgkcoolingtubenumber+1];  // Cooling Tube Matrix
-  TGeoVolume* fcoolingtube[fgkcoolingtubenumber];           // Cooling Tube
+  TGeoHMatrix* fcoolingtubematrix[2];  // Cooling Tube Matrix
+  TGeoVolume* fcoolingtube;                    // Ladder Cooling Tube 
+  static const Int_t fgkendladdercoolingtubenumber = 2;                // End Ladder Cooling Tube Number       
+  TGeoVolume* fendladdercoolingtube[fgkendladdercoolingtubenumber];    // End Ladder Cooling Tube
+  TGeoHMatrix* fendladdercoolingtubematrix[fgkendladdercoolingtubenumber][2];  //End ladder cooling tube matrix
   /////////////////////////////////////////
   // End Ladder Components
   /////////////////////////////////////////
   TGeoVolumeAssembly* fendladdersegment[2];  // End Ladder Segment 
   TGeoHMatrix** fendladdersegmentmatrix[2];  // End Ladder Matrix
+  /////////////////////////////////////////////////////////////
+  // End Ladder SSD Cooling Tube Support 
+  /////////////////////////////////////////////////////////////
+  TGeoHMatrix*** fendladdercoolingtubesupportmatrix; //End ladder cooling tube support matrix
   ///////////////////////////////////
   // End Ladder Carbon Fiber Junction
   ///////////////////////////////////
   static const Int_t fgkendlabbercarbonfiberjunctionumber = 2; // End Ladder Carbon fiber Junction Number
   TGeoVolume** fendladdercarbonfiberjunction[fgkendlabbercarbonfiberjunctionumber]; // End Ladder Carbon fiber Junction Volumes
-  static const Int_t fgkendladdercabonfiberjunctionmatrixnumber = 3; // End Ladder Carbon fiber Junction Matrix Number
-  TGeoHMatrix** fendladdercarbonfiberjunctionmatrix[fgkendlabbercarbonfiberjunctionumber]; // End Ladder Carbon fiber Junction Matrix 
+  static const Int_t fgkendladdercarbonfiberjunctionmatrixnumber = 3; // End Ladder Carbon fiber Junction Matrix Number
+  TGeoHMatrix** fendladdercarbonfiberjunctionmatrix[fgkendladdercarbonfiberjunctionmatrixnumber]; // End Ladder Carbon fiber Junction Matrix 
   ///////////////////////////////////
   // End Ladder Carbon Fiber Support
   ///////////////////////////////////
@@ -396,7 +576,9 @@ private:
   ///////////////////////////////////
   static const Int_t fgkendladdermountingblocknumber = 2; // Mounting Block Number   
   TGeoVolume* fendladdermountingblock;                                   // Mounting Block
-  TGeoTranslation* fendladdermountingblocktrans[fgkendladdermountingblocknumber]; // Mounting Block Translation
+  TGeoVolume* fendladdermountingblockclip;                // Mounting Block Clip
+  TGeoCombiTrans* fendladdermountingblockcombitrans[fgkendladdermountingblocknumber]; // End Ladder Mounting Block CombiTrans
+  TGeoHMatrix** fendladdermountingblockclipmatrix[fgkendladdermountingblocknumber]; // End Ladder Mounting Block Clip HMatrix
   ///////////////////////////////////
   // End Ladder Lower Support
   ///////////////////////////////////
@@ -421,6 +603,7 @@ private:
   static const Int_t fgkladdernumber = 2;                    // Ladder Number 
   TGeoVolume* fladder[fgkladdernumber];                              //fladder[0]: ladder of Layer 5
                                                                                                      //fladder[1]: ladder of Layer 6
+//  TGeoVolumeAssembly* fladder[fgkladdernumber];
   TGeoHMatrix** fladdermatrix[fgkladdernumber];       // Ladder Matrix
   ///////////////////////////////////
   // SSD Sensor
@@ -432,8 +615,8 @@ private:
   // SSD Layer
   ///////////////////////////////////
   static const Int_t fgklayernumber = 2; // Layer Number
-  TGeoVolume* fSSDLayer5;                               // SSD Layer 5
-  TGeoVolume* fSSDLayer6;                   // SSD Layer 6
+  TGeoVolumeAssembly* fSSDLayer5;               // SSD Layer 5
+  TGeoVolumeAssembly* fSSDLayer6;           // SSD Layer 6
   TGeoHMatrix** flayermatrix[fgklayernumber]; // Layer Transformations
   /////////////////////////////////////////////////////////////////////////
   // Mother Volume 
@@ -441,6 +624,21 @@ private:
   TGeoVolume *fMotherVol;                                    // Mother volume for ITS Layer5 and Layer6   
   TGeoVolume* GetMotherVolume() const { return fMotherVol;}; // Method returning Mother Volume
   /////////////////////////////////////////////////////////////////////////
+  // Ladder Support 
+  /////////////////////////////////////////////////////////////////////////
+  TGeoVolume* fLay5LadderSupport[2]; // Up and Down parts of Layer5 Ladder Support
+  TGeoVolume* fLay6LadderSupport[2]; // Up and Down parts of Layer6 Ladder Support
+  TGeoVolumeAssembly* fLay5LadderSupportRing; // Layer5 Ladder Support Ring
+  TGeoVolumeAssembly* fLay6LadderSupportRing; // Layer6 Ladder Support Ring
+  /////////////////////////////////////////////////////////////////////////
+  // End Cap Support + End Cap Assembly
+  /////////////////////////////////////////////////////////////////////////
+  TGeoVolume** fgkEndCapSupportSystem; // End Cap Support + End Cap Assembly
+  /////////////////////////////////////////////////////////////////////////
+  // SSD Cone
+  /////////////////////////////////////////////////////////////////////////
+  TGeoVolumeAssembly*fSSDCone;  // SSD Cone  
+  /////////////////////////////////////////////////////////////////////////
   // Color Display 
   /////////////////////////////////////////////////////////////////////////
   Int_t fColorCarbonFiber;    //  display colors
@@ -448,12 +646,14 @@ private:
   Int_t fColorPhynox;         //  ===
   Int_t fColorSilicon;        //  ===
   Int_t fColorAl;             //  ===
+  Int_t fColorNiSn;           //  ===
   Int_t fColorKapton;         //  ===
   Int_t fColorPolyhamide;     //  ===
   Int_t fColorStiffener;      //  ===
   Int_t fColorEpoxy;          //  ===
   Int_t fColorWater;             //  ===
   Int_t fColorG10;            //  ===
-  ClassDef(AliITSv11GeometrySSD, 2)     // ITS v11 SSD geometry
+ClassDef(AliITSv11GeometrySSD, 5)     // ITS v11 SSD geometry
 };
 #endif
+