]> 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 5af663816a92d7c73da55395a44875e37c5abe8d..e43ba37a6475a8dacd3a7c264a0fef214cd371f9 100644 (file)
@@ -8,6 +8,7 @@
  * See cxx source for full Copyright notice                               */
 /* $Id$ */
 class TGeoVolume;
+class TGeoShape;
 class TGeoCombiTrans;
 class TGeoMedium;
 class TGeoCompositeShape;
@@ -18,44 +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
   /////////////////////////////////////////////////////////////////////////
+  void CreateMaterials();        // Method setting the materials 
   TGeoMedium* GetMedium(const char* mediumName);   // It returns the Medium
-  const char*   GetSenstiveVolumeName5() const {return fgSDDsensitiveVolName5;};
+  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
+  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)
   /////////////////////////////////////////////////////////////////////////
@@ -98,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
@@ -110,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
@@ -126,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 
   /////////////////////////////////////////////////////////////////////////
@@ -199,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
@@ -243,7 +264,7 @@ 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)
@@ -257,10 +278,10 @@ private:
   // 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 Heigth
+  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 Heigth
-  static const Double_t fgkLadderSupportHeigth;            // SSD Ladder Support Width
+  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
   /////////////////////////////////////////////////////////////////////////////////
@@ -348,9 +369,34 @@ private:
   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
@@ -360,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 
@@ -369,13 +415,12 @@ private:
   TGeoVolume* GetSSDEndFlex();                 // Method generating EndFlex
   TGeoVolume* GetSSDMountingBlock();   // Method generating Mounting Block
   TGeoVolume* GetMountingBlockClip() const;   // Method generating Mounting Block Clip
-  TList* GetCoolingTubeList()const;                    // Method generating list of Tubes
+  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); 
@@ -393,19 +438,19 @@ private:
   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,char* volname); // End Cap Effective HV Cables
+                                                                          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 
-  TGeoXtru* GetScrewShape(Double_t* radius,Int_t* edgesnumber,Double_t* section) const;// Method Generating the Screw Shape  
-  TGeoXtru* GetHoleShape(Double_t radius, Int_t nedges, Double_t *section) const;// Method Generating the Hole 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
   /////////////////////////////////////////////////////////////////////////
@@ -419,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 
@@ -435,7 +481,10 @@ private:
   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
@@ -496,12 +545,11 @@ private:
   /////////////////////////////////////////
   // Cooling Tube
   /////////////////////////////////////////
-  static const Int_t fgkcoolingtubenumber = 3;                         // Coling Tube Number
-  TGeoHMatrix** fcoolingtubematrix[fgkcoolingtubenumber+1];  // Cooling Tube Matrix
-  TGeoVolume* fcoolingtube[fgkcoolingtubenumber];                      // Ladder Cooling Tube 
-  static const Int_t fgkendladdercoolingtubenumber = 5;                // End Ladder Cooling Tube Number       
+  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[2];  //End ladder cooling tube matrix
+  TGeoHMatrix* fendladdercoolingtubematrix[fgkendladdercoolingtubenumber][2];  //End ladder cooling tube matrix
   /////////////////////////////////////////
   // End Ladder Components
   /////////////////////////////////////////
@@ -516,8 +564,8 @@ private:
   ///////////////////////////////////
   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
   ///////////////////////////////////
@@ -555,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
@@ -586,6 +635,10 @@ private:
   /////////////////////////////////////////////////////////////////////////
   TGeoVolume** fgkEndCapSupportSystem; // End Cap Support + End Cap Assembly
   /////////////////////////////////////////////////////////////////////////
+  // SSD Cone
+  /////////////////////////////////////////////////////////////////////////
+  TGeoVolumeAssembly*fSSDCone;  // SSD Cone  
+  /////////////////////////////////////////////////////////////////////////
   // Color Display 
   /////////////////////////////////////////////////////////////////////////
   Int_t fColorCarbonFiber;    //  display colors
@@ -593,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, 3)     // ITS v11 SSD geometry
+ClassDef(AliITSv11GeometrySSD, 5)     // ITS v11 SSD geometry
 };
 #endif
+