]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSv11GeometrySDD.h
Calibration files for SSD built according to real detector status (Panos)
[u/mrichter/AliRoot.git] / ITS / AliITSv11GeometrySDD.h
1 #ifndef ALIITSV11GEOMETRYSDD_H
2 #define ALIITSV11GEOMETRYSDD_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 // $Id$
8
9 //*************************************************************************
10 //
11 // SDD geometry, based on ROOT geometrical modeler
12 //
13 // Its integration to the aliroot framework is done in the AliITSv11Hybrid
14 // class (AliITSv11 not being functionnal so far)
15 //
16 // This geometry has no dependence with aliroot, you can run it with root
17 // only, provided that the AliITSv11GeomCable classes are also compiled
18 //
19 // Ludovic Gaudichet                                   gaudichet@to.infn.it
20 //*************************************************************************
21
22
23 class TGeoVolume;
24 class TGeoPcon;
25 class TGeoVolumeAssembly;
26 class TGeoTranslation;
27 class TGeoCombiTrans;
28 class TGeoArb8;
29 class TGeoNode;
30 class TGeoMedium;
31 class TGeoMatrix;
32 class AliITSgeom;
33 class AliITSv11GeomCableFlat;
34
35 #include "AliITSv11Geometry.h"
36
37
38 class AliITSv11GeometrySDD : public AliITSv11Geometry {
39
40  public:
41   AliITSv11GeometrySDD();
42   AliITSv11GeometrySDD(Int_t debug);
43   AliITSv11GeometrySDD(const AliITSv11GeometrySDD &source);
44   AliITSv11GeometrySDD& operator=(const AliITSv11GeometrySDD &source);
45   virtual ~AliITSv11GeometrySDD();
46
47   // Main functions
48   virtual void  Layer3(TGeoVolume *moth);
49   virtual void  Layer4(TGeoVolume *moth);
50   virtual void  ForwardLayer3(TGeoVolume *moth);
51   virtual void  ForwardLayer4(TGeoVolume *moth);
52   virtual void  SDDCables(TGeoVolume *moth);
53
54   virtual Int_t ExportSensorGeometry(AliITSgeom *geom, Int_t iLaySDD,
55                                       Int_t startMod);
56   virtual Int_t GetCurrentLayLaddDet(Int_t &lay, Int_t &ladd, Int_t&det) const;
57
58   // Functions for coding, testing, debugging 
59   void          AddHybrids(bool b)     {fAddHybrids    = b;};
60   void          AddSensors(bool b)     {fAddSensors    = b;};
61   void          AddHVcables(bool b)    {fAddHVcables   = b;};
62   void          AddCables(bool b)      {fAddCables     = b;};
63   void          AddCoolingSyst(bool b) {fAddCoolingSyst= b;};
64
65   void          CheckOverlaps(Double_t precision = 0.01);
66   void          AddOnlyLay3Ladder(Int_t min,Int_t max){
67                   fAddOnlyLadder3min = min; fAddOnlyLadder3max = max; };
68   void          AddOnlyLay4Ladder(Int_t min,Int_t max) {
69                   fAddOnlyLadder4min = min; fAddOnlyLadder4max = max;};
70   void          ShowOnePiece(TGeoVolume *Moth);
71
72   virtual void  SetParameters();
73   TGeoVolume*   GetMotherVolume() const { return fMotherVol;};
74   const char*   GetSenstiveVolumeName3() const {return fgSDDsensitiveVolName3;};
75   const char*   GetSenstiveVolumeName4() const {return fgSDDsensitiveVolName4;};
76   Int_t         GetLay3NLadders() const;
77   Int_t         GetLay4NLadders() const;
78
79   private:
80
81   virtual TGeoVolumeAssembly*  CreateLadder(Int_t iLay);
82   virtual TGeoVolumeAssembly*  CreateDetectorsAssembly(Int_t iLay);
83   virtual TGeoVolume*          CreateLadderSegment(Int_t iLay, Int_t iSeg);
84   virtual TGeoVolumeAssembly*  CreateEndLadder(Int_t iLay);
85   virtual TGeoVolumeAssembly*  CreateEndLadderCards(Int_t iLay);
86   virtual TGeoVolume*          CreateEndLadderCardsV(Int_t iLay);
87   virtual TGeoVolumeAssembly*  CreateSupportRing(Int_t iLay);
88
89   // Create some basic objects : 
90   virtual void                 CreateSDDsensor();
91   virtual TGeoVolume*          CreateHybrid(Int_t iLRSide);
92   virtual TGeoVolume*          CreatePinSupport();
93   virtual TGeoVolume*          CreateCoolPipeSupportL();
94   virtual TGeoVolume*          CreateCoolPipeSupportR();
95   virtual TGeoVolume*          CreateBaseThermalBridge();
96
97   virtual TGeoVolumeAssembly*  CreateLadderFoot();
98   virtual TGeoVolumeAssembly*  CreateCarlosCard(Int_t iLay);
99   virtual Int_t                CreateLVCard();
100   virtual TGeoVolumeAssembly*  CreateHVCard(Int_t iLay);
101
102   void                         CreateBasicObjects();
103   Double_t                     GetConeZ(Double_t r, Double_t refR1, Double_t refR2,
104                                         Double_t refZ1, Double_t refZ2);
105   TGeoPcon*                    CreateConeConstSection(Double_t r1max, Double_t z1,
106                                                       Double_t r2max, Double_t z2,
107                                                       Double_t section, Int_t nDiv=1);
108   Int_t CreateAndInsetConeCablePart(TGeoVolume *mother, Double_t angle,
109                                     Int_t nLay3, Int_t nLay4,
110                                     Double_t r1, Double_t z1,
111                                     Double_t r2, Double_t z2);
112
113   // Check that the medium exists
114   virtual TGeoMedium* GetMedium(const char* mediumName);
115
116   // Create a TGeoCombiTrans: general rotation in phi and (dy,dz) translation 
117   TGeoCombiTrans* CreateCombiTrans( const char *name,
118                                     Double_t dy, Double_t dz, Double_t dphi,
119                                     Bool_t planeSym=kFALSE);
120
121   // add (dx,dy,dz) translation to a initial TGeoCombiTrans
122   void AddTranslationToCombiTrans( TGeoCombiTrans* ct,
123                           Double_t dx=0, Double_t dy=0, Double_t dz=0) const;
124
125   // Create one side of the CF corner of the CF structure
126   TGeoArb8* CreateLadderSide( Double_t dz, Double_t angle, Double_t xSign,
127                               Double_t L, Double_t H, Double_t l);
128
129   //----------------------------
130   TGeoVolume* fPinSupport;        //!  pins glued to sensors
131   TGeoVolume* fCoolPipeSupportL;  //!  half of cooling pipe support
132   TGeoVolume* fCoolPipeSupportR;  //!  half of cooling pipe support
133   TGeoVolume* fSDDsensor3;        //!  sensor of lay. 3 and HV cables on it
134   TGeoVolume* fSDDsensor4;        //!  sensor of lay. 4 and HV cables on it
135   TGeoVolume* fBaseThermalBridge; //!  Base of hybrid thermal bridge
136   TGeoVolume* fHybrid;            //!  hybrid volume
137   TGeoVolumeAssembly *fLadderFoot;//!  ladder foot in stesalite
138   TGeoVolumeAssembly *fCardLVR;   //!  low voltage card, right
139   TGeoVolumeAssembly *fCardLVL;   //!  low voltage card, left
140   TGeoVolumeAssembly *fCardHV;    //!  high voltage card
141   TGeoVolumeAssembly *fCardCarlos;//!  end-ladder CARLOS card
142   TGeoVolumeAssembly *fRaccordoL; //!  link between cooling tubes at end ladder
143   TGeoVolume* fCommonVol[2];      //!  some common vol. used in several places
144   TGeoMatrix* fCommonTr[2];       //!  some common transformations
145
146   static const Int_t fgkNladdSegCommonVol = 19;       //  Number of vol.
147   TGeoVolume* fLaddSegCommonVol[fgkNladdSegCommonVol];//! volumes in ladder
148   TGeoMatrix* fLaddSegCommonTr[fgkNladdSegCommonVol]; //! their transf.
149
150   AliITSv11GeomCableFlat *fDigitCableLay3A; // layer 3 cables, side A
151   AliITSv11GeomCableFlat *fDigitCableLay3B; // layer 3 cables, side B
152   AliITSv11GeomCableFlat *fDigitCableLay4A; // layer 4 cables, side A
153   AliITSv11GeomCableFlat *fDigitCableLay4B; // layer 4 cables, side B
154
155   TGeoVolume *fMotherVol;    //! mother volume given in LayerX() funct.
156   bool  fAddHybrids;         //  Insert hybrids ?   (default TRUE)
157   bool  fAddSensors;         //  Insert sensors ?   (default TRUE)
158   bool  fAddHVcables;        //  Insert HV cables ? (default TRUE)
159   bool  fAddCables;          //  Insert cables ?    (default TRUE)
160   bool  fAddCoolingSyst;     //  Insert cooling system ? (default TRUE)
161   bool  fCoolingOn;          //  Insert cooling fluid ?  (default TRUE)
162   Int_t fAddOnlyLadder3min;  //  first ladder index
163   Int_t fAddOnlyLadder3max;  //  last  ladder index
164   Int_t fAddOnlyLadder4min;  //  first ladder index
165   Int_t fAddOnlyLadder4max;  //  last  ladder index
166   Int_t fColorCarbonFiber;   //  display colors
167   Int_t fColorRyton;         //  ===
168   Int_t fColorPhynox;        //  ===
169   Int_t fColorSilicon;       //  ===
170   Int_t fColorAl;            //  ===
171   Int_t fColorPolyhamide;    //  ===
172   Int_t fColorGlass;         //  ===
173   Int_t fColorSMD;           //  ===
174   Int_t fColorSMDweld;       //  ===
175   Int_t fColorStesalite;     //  ===
176
177   //--------------------------------------  parameters for the SDD geometry
178
179   static const char* fgSDDsensitiveVolName3;      // sens. vol. name for lay. 3
180   static const char* fgSDDsensitiveVolName4;      // sens. vol. name for lay. 4
181
182   static const Int_t    fgkLay3Nladd;             // 14
183   static const Int_t    fgkLay3Ndet;              //  6
184   static const Double_t fgkLay3Rmin;              // min. radius of tube
185   static const Double_t fgkLay3Rmax;              // max. radius of tube
186   static const Double_t fgkLay3Length;            // length of layer 3 tube
187   static const Double_t fgkLay3LadderLength;      // tot. length of ladder
188   static const Double_t fgkLay3DetShortRadius;    // radius from beam axis
189   static const Double_t fgkLay3DetLongRadius;     // radius from beam axis
190   static const Double_t fgkLay3LaddTopCornerEnd;  // Ends of ladder 3
191   static const Double_t fgkLay3ZPlusEndLength;    // ===
192
193   static const Int_t    fgkLay4Nladd;             // 22
194   static const Int_t    fgkLay4Ndet;              //  8
195   static const Double_t fgkLay4Rmin;              // min. radius of tube
196   static const Double_t fgkLay4Rmax;              // max. radius of tube
197   static const Double_t fgkLay4Length;            // length of layer 4 tube
198   static const Double_t fgkLay4LadderLength;      // tot. length of ladder
199   static const Double_t fgkLay4DetShortRadius;    // radius from beam axis
200   static const Double_t fgkLay4DetLongRadius;     // radius from beam axis
201   static const Double_t fgkLay4LaddTopCornerEnd;  // Ends of ladder 3
202   static const Double_t fgkLay4ZPlusEndLength;    // ===
203
204   static const Double_t fgkEndLaddCardsShortRadiusLay3; // ref radius of end ladder cards
205   static const Double_t fgkEndLaddCardsShortRadiusLay4; // ref radius  of end ladder cards
206   static const Double_t fgkDistEndLaddCardsLadd;        // dist. between U cooling tube and ladder
207
208   static const Double_t fgkSegmentLength;         // length of 1 ladder seg.
209   static const Double_t fgkLadderWidth;           // carbon fiber structure 
210   static const Double_t fgkLadderHeight;          // including bottom beam
211   static const Double_t fgkLadderSegBoxDW;        // To include hybrids in box
212   static const Double_t fgkLadderSegBoxDH;        // To include hybrids in box
213
214   static const Double_t fgkLadderBeamRadius;      // carbon fiber beam radius
215   static const Double_t fgkLadderLa;              // parameters defining
216   static const Double_t fgkLadderHa;              //   the V side shape
217   static const Double_t fgkLadderLb;              //   of the carbon
218   static const Double_t fgkLadderHb;              //   fiber ladder
219   static const Double_t fgkLadderl;               //   ============
220
221   static const Double_t fgkBottomBeamAngle;       // bottom beam angle
222   static const Double_t fgkBeamSidePhi;           // side beam angle
223
224   static const Double_t fgkWaferThickness;        // sensor thickness (Y)
225   static const Double_t fgkWaferWidth;            // width (X)
226   static const Double_t fgkWaferLength;           // length (Z)
227   static const Double_t fgkWaferThickSens;        // sensitive volume thich
228   static const Double_t fgkWaferWidthSens;        // sens. volume width
229   static const Double_t fgkWaferLengthSens;       // sens. volume length
230
231   static const Double_t fgkSensorGlassLX;         // dimensions of glass
232   static const Double_t fgkSensorGlassLZ;         //  (on which pins are
233   static const Double_t fgkSensorGlassLY;         //   glued)
234   static const Double_t fgkGlassDXOnSensor;       // Position of glass
235   static const Double_t fgkGlassDZOnSensor;       //   on sensor
236
237   static const Double_t fgkLadWaferSep;           // ladder-sensor dist.
238   static const Double_t fgkPinR;                  // pins radius
239   static const Double_t fgkPinSuppWidth;          // ===
240   static const Double_t fgkPinSuppHeight;         // ===
241   static const Double_t fgkPinSuppRmax;           // Parameters for pin
242   static const Double_t fgkPinSuppLength;         //   supports on
243   static const Double_t fgkPinSuppThickness;      //   carbon fiber
244   static const Double_t fgkPinSuppConeAngle;      //   ladder
245   static const Double_t fgkPinDXminOnSensor;      // ===
246   static const Double_t fgkPinPinDDXOnSensor;     // ===
247   static const Double_t fgkPinDYOnSensor;         // ===
248
249   static const Double_t fgkCoolPipeInnerDiam;     // Water cooling
250   static const Double_t fgkCoolPipeOuterDiam;     //   pipe
251   static const Double_t fgkLay3CoolPipeSuppH;     // Heights of water
252   static const Double_t fgkLay4CoolPipeSuppH;     //   pipes on ladders
253   static const Double_t fgkCoolPipeSuppHeight;    // ===
254   static const Double_t fgkCoolPipeSuppMaxLength; // ===
255   static const Double_t fgkCoolPipeSuppWidthExt;  // Parameters for
256   static const Double_t fgkCoolPipeSuppWidthIn;   //  cooling pipes
257   static const Double_t fgkCoolPipeSuppHoleDiam;  //  on carbon fiber
258   static const Double_t fgkCoolPipeSuppFulWidth;  //  ladder 
259   static const Double_t fgkCoolPipeSuppTongW;     // ===
260   static const Double_t fgkCoolPipeSuppAngle;     // ===
261   static const Double_t fgkCoolPipeSuppSlitL;     // ===
262   static const Double_t fgkCoolPipeSuppAxeDist;   // ===
263
264   static const Double_t fgkBTBthick;              // BTB for :
265   static const Double_t fgkBTBlength;             // Base of Thermal Bridge
266   static const Double_t fgkBTBwidth;              // =====================
267   static const Double_t fgkBTBaxisAtoBottom;      // axis A is the same as
268   static const Double_t fgkBTBaxisAtoBase;        // the cooling pipe axis
269   static const Double_t fgkRadiusAminBTB;         // ===
270   static const Double_t fgkRadiusBminBTB;         // ===
271   static const Double_t fgkBTBHoleLength;         // ===
272   static const Double_t fgkBTBHolewidth;          // ===
273   static const Double_t fgkBTBHoleRefX;           // ===
274   static const Double_t fgkBTBHoleRefY;           // ===
275
276   static const Double_t fgkHybridLength;          // Hybrid parameters :
277   static const Double_t fgkHybridWidth;           // ===
278   static const Double_t fgkHybridAngle;           // Hybrid on ladder in phi
279
280   static const Double_t fgkHybRndHoleRad;         // ===
281   static const Double_t fgkHybRndHoleZ;           // ===
282   static const Double_t fgkHybRndHoleX;           // ===
283
284   static const Double_t fgkHybFLlowHoleDZ;        // FLlow : low flex
285   static const Double_t fgkHybFLlowHolePasDX;     // ===
286   static const Double_t fgkHybFLlowHoleAmbDX;     // ===
287   // (center of ships to the border)
288   static const Double_t fgkHybFLlowChipZ4;        // Z1 to Z4 : position
289   static const Double_t fgkHybFLlowChipZ3;        //   in z of the chip
290   static const Double_t fgkHybFLlowChipZ2;        //   centers
291   static const Double_t fgkHybFLlowChipZ1;        // ===
292   static const Double_t fgkHybFLlowPasX;          // Pascal center X pos
293   static const Double_t fgkHybFLlowAmbX;          // Ambra center X pos
294   static const Double_t fgkHybChipsDZ;            // Z dimension of chips
295   static const Double_t fgkHybPascalDX;           // X dimension of Pascal
296   static const Double_t fgkHybAmbraDX;            // X dimension of Ambra
297   static const Double_t fgkHybFLUpperWidth;       // bFLUpper : upper flex
298   static const Double_t fgkHybFLUpperLength;      // ===
299   static const Double_t fgkHybFLUpperAlDZ;        // ===
300   static const Double_t fgkHybFLUpperAldx;        // ===
301
302   static const Double_t fgkHybridThBridgeThick;   // Thicknesses :
303   static const Double_t fgkHybAlThick;            // ===
304   static const Double_t fgkHybUpThick;            // ===
305   static const Double_t fgkHybGlueScrnThick;      // ===
306   static const Double_t fgkHybGlueLowThick;       // ===
307   static const Double_t fgkHybGlueUpThick;        // ===
308   static const Double_t fgkHybAlCCThick;          // ===
309   static const Double_t fgkHybUpCCThick;          // ===
310   static const Double_t fgkHybChipThick;          // ===
311   static const Double_t fgkHybGlueAgThick;        // ===
312   static const Double_t fgkHybUnderNiThick;       // ===
313   static const Int_t    fgkNHybSMD;               // Number of SMD
314   static const Double_t fgkHybSMDposX[25];        // X pos. of SMD
315   static const Double_t fgkHybSMDposZ[25];        // Z pos. of SMD
316   static const Double_t fgkHybSMDmiddleW;         // SMD width
317   static const Double_t fgkHybSMDmiddleL;         // SMD length
318   static const Double_t fgkHybSMDendW;            // end SMD witdh
319   static const Double_t fgkHybSMDendL;            // end SMD length
320   static const Double_t fgkHybSMDheight;          // SMD height
321
322   static const Double_t fgkDigitCablWidth;        // Digital
323   static const Double_t fgkDigitCablAlThick;      // cables
324   static const Double_t fgkDigitCablPolyThick;    // ===
325
326   //HV cables
327   static const Double_t fgkWaHVcableAlThick;      // Wrap-around
328   static const Double_t fgkWaHVcablePolyThick;    //   High Voltage
329   static const Double_t fgkWaHVcableLength;       //   cables
330   static const Double_t fgkWaHVcableWitdh;        //   (on sensor)
331   static const Double_t fgkWaHVcableDW;           // ===
332
333   static const Double_t fgkTransitHVAlThick;      // Transition
334   static const Double_t fgkTransitHVPolyThick;    //   High Voltage
335   static const Double_t fgkTransitHVHeadLX;       //   cables
336   static const Double_t fgkTransitHVHeadLZ;       //   (on sensor)
337   static const Double_t fgkTransitHVBondingLZ;    // ===
338   static const Double_t fgkTransitHVtailLength;   // ===
339   static const Double_t fgkTransitHVtailWidth;    // ===
340   static const Double_t fgkTransitHVtailXpos;     // ===
341   static const Double_t fgkTransitHVsideLZ;       // ===
342   static const Double_t fgkTransitHVsideLeftZ;    // ===
343   static const Double_t fgkTransitHVsideRightZ;   // ===
344
345   static const Double_t fgkLongHVcablePolyThick;  // Long High
346   static const Double_t fgkLongHVcableAlThick;    //   Voltage
347   static const Double_t fgkLongHVcableSeparation; //   cables
348
349
350   static const Double_t fgkRubyDX;                // ruby dx with respect to the middle (to ladder z axis)
351   static const Double_t fgkRubyZladd3;            // Z of ruby, ladder 3
352   static const Double_t fgkRubyZladd4;            // Z of ruby, ladder 4
353
354   static const Double_t fgkLadFootX;              // Length of ladder foot
355   static const Double_t fgkLadFootZ;              // width 
356   static const Double_t fgkLadFootY;              // thickness
357   static const Double_t fgkLadFootMiddleY;        // thickness in the middle part
358   static const Double_t fgkLadBox1X;              // size in X
359   static const Double_t fgkLadFingerPrintX;       // size in X
360   static const Double_t fgkLadFingerPrintY ;      // size in Y
361   static const Double_t fgkLadFingerPrintBorder;  // size in X
362   static const Double_t fgkRubyCageHoleZ;         // size in Z
363   static const Double_t fgkRubyCageHoleX;         // size in X
364   static const Double_t fgkRubyCageHoleY;         // size in Y
365   static const Double_t fgkRubyCageAxisShift;     // shift in X
366   static const Double_t fgkScrewM4diam;           // M4 screw standard diameter 
367   static const Double_t fgkRubyScrewShiftToCenterY; // screw placement 
368   static const Double_t fgkRubyHoleDiam;          // guess what
369
370 // the end ladder cooling pipe and its heat exchanger
371   static const Double_t fgkEndLadPipeUlengthLay3; // length in Z of the U cooling tube
372   static const Double_t fgkEndLadPipeUlengthLay4; // length in Z of the U cooling tube
373   static const Double_t fgkEndLadPipeUwidth;      // width
374   static const Double_t fgkEndLadPipeRadius;      // radius
375   static const Double_t fgkEndLadPipeInnerDiam;   // InnerDiam
376   static const Double_t fgkEndLadPipeOuterDiam;   // OuterDiam
377
378   static const Double_t fgkEndLadPipeArmZLay3;    // the arms of the U cooling tube
379   static const Double_t fgkEndLadPipeArmZLay4;    // (rectangular part surrounding the)
380   static const Double_t fgkEndLadPipeArmX;        // the tube
381   static const Double_t fgkEndLadPipeArmY;        // X, Y : size in the correxponding axis
382   static const Double_t fgkEndLadPipeArmBoxDY;    // shift in Y of the arms from the axis
383   static const Double_t fgkEndLadPipeArmBoxDX;    // shift in X of the arms from the axis
384   static const Double_t fgkEndLadPipeArmZpos;     // position with respect to tube  
385
386
387   // approx dim for now - all of the following has to be checked
388   // once Beppe provide the drawing...
389
390   // Carlos Card :
391   static const Double_t fgkLVcardX;              // size of the card itself in X
392   static const Double_t fgkLVcardY;              // size of the card itself in Y
393   static const Double_t fgkLVcardZ;              // size of the card itself in Z
394   static const Double_t fgkLVcardCuZ;            // Cu thickness
395
396   static const Double_t fgkLVChip0X;             // chip #0
397   static const Double_t fgkLVChip0Y;             // ...
398   static const Double_t fgkLVChip0Z;             //  thickness without si layer
399   static const Double_t fgkLVChip0SiZ;           // Si layer thickness
400   static const Double_t fgkLVChip0PosX;          // Position with respect to the card
401   static const Double_t fgkLVChip0PosY;          // Position with respect to the card
402
403   static const Double_t fgkLVChip1X;             // same
404   static const Double_t fgkLVChip1Y;             // conventions
405   static const Double_t fgkLVChip1Z;             // as
406   static const Double_t fgkLVChip1SiZ;           // chip 0
407   static const Double_t fgkLVChip1PosX;          // ==
408   static const Double_t fgkLVChip1PosY;          // ==
409
410   static const Double_t fgkLVChip2X;             // same
411   static const Double_t fgkLVChip2Y;             // conventions
412   static const Double_t fgkLVChip2Z;             // as
413   static const Double_t fgkLVChip2SiZ;           // chip 0
414   static const Double_t fgkLVChip2PosX;          // ==
415   static const Double_t fgkLVChip2PosY;          // ==
416
417   static const Double_t fgkLVChip3X;             // same
418   static const Double_t fgkLVChip3Y;             // conventions
419   static const Double_t fgkLVChip3Z;             // as
420   static const Double_t fgkLVChip3SiZ;           // chip 0
421   static const Double_t fgkLVChip3PosX;          // ==
422   static const Double_t fgkLVChip3PosY;          // ==
423
424   static const Double_t fgkLVcoolX1;             // pieces of alCu12
425   static const Double_t fgkLVcoolY1;             // for heat exchange
426   static const Double_t fgkLVcoolZ1;             // with the cooling tube
427
428   static const Double_t fgkLVcoolX2;             // X,Y,Z are
429   static const Double_t fgkLVcoolY2;             // dimensions
430   static const Double_t fgkLVcoolZ2;             // of the pieces
431
432   static const Double_t fgkLVcoolX3;             // ==
433   static const Double_t fgkLVcoolY3;             // ==
434   static const Double_t fgkLVcoolPosY;           // ==
435
436   // HV card :
437   static const Double_t fgkHVCardCeramX;         // size in X of the ceramic card
438   static const Double_t fgkHVCardCeramY;         // size in Y
439   static const Double_t fgkHVCardCeramZ;         // size in Z
440
441   static const Double_t fgkHVCardCapa1X;         // size in X of the capa 1
442   static const Double_t fgkHVCardCapa1Z;         // size in Z
443   static const Double_t fgkHVCardCapa1Ymid;      // size of the middle part
444   static const Double_t fgkHVCardCapa1Yend;      // ...
445   static const Double_t fgkHVCardCapa1PosX;      // position on the card
446   static const Double_t fgkHVCardCapa1PosY;      // position on the card
447
448   static const Double_t fgkHVCardCapa2X;         // idem for second type capa
449   static const Double_t fgkHVCardCapa2Z;         //   love me
450   static const Double_t fgkHVCardCapa2Ymid;      //   ...
451   static const Double_t fgkHVCardCapa2Yend;      //   tender,
452   static const Double_t fgkHVCardCapa2PosX;      //   ...
453   static const Double_t fgkHVCardCapa2PosY;      //   love me true
454
455   static const Double_t fgkHVCardCapa3Xmid;      //  idem for third type capa
456   static const Double_t fgkHVCardCapa3Xend;      //  ===
457   static const Double_t fgkHVCardCapa3Z;         //  ===
458   static const Double_t fgkHVCardCapa3Y;         //  ===
459
460   static const Double_t fgkHVCardCapa3PosX1;     // this capa is placed
461   static const Double_t fgkHVCardCapa3PosX2;     // in several positions
462   static const Double_t fgkHVCardCapa3PosX3;     // ...
463   static const Double_t fgkHVCardCapa3PosX4;     // ===
464   static const Double_t fgkHVCardCapa3PosX5;     // ===
465   static const Double_t fgkHVCardCapa3PosY1;     // ===
466   static const Double_t fgkHVCardCapa3PosY2;     // ===
467   static const Double_t fgkHVCardCapa3PosY3;     // ===
468
469   static const Double_t fgkHVCardCool1X;         // cooling
470   static const Double_t fgkHVCardCool1Y;         // pieces for
471   static const Double_t fgkHVCardCool1Z;         // heat exchange
472   static const Double_t fgkHVCardCool2X;         // with
473   static const Double_t fgkHVCardCool2Y;         // cooling U tube
474   static const Double_t fgkHVCardCool2Z;         // ===
475   static const Double_t fgkHVCardCool3X;         // ===
476   static const Double_t fgkHVCardCool3Y;         // ===
477   static const Double_t fgkHVCardCool3Z;         // ===
478   static const Double_t fgkHVCardCoolDY;         // ===
479
480   static const Double_t fgkCarlosSuppX1;         // piece with which
481   static const Double_t fgkCarlosSuppY1;         // the carlos card
482   static const Double_t fgkCarlosSuppX2;         // is fixed
483   static const Double_t fgkCarlosSuppY2;         // ===
484   static const Double_t fgkCarlosSuppZ;          // ===
485   static const Double_t fgkCarlosSuppAngle;      //  ===
486   static const Double_t fgkCarlosSuppX3;         // ===
487   static const Double_t fgkCarlosSuppY3;         // ===
488   static const Double_t fgkCarlosSuppZ3;         // ===
489   static const Double_t fgkCarlosSuppTopLen;     // ===
490
491   // screws fixing the board on the U tube
492   static const Double_t fgkLittleScrewHeadR;     // screws fixing boards
493   static const Double_t fgkLittleScrewHeadH;     // Value to be checked
494   static const Double_t fgkLittleScrewR;         // ===
495   static const Double_t fgkShiftLittleScrewLV;   // ===
496   static const Double_t fgkLittleLVScrewHeadR;   // ===
497
498   // CARLOS board
499   static const Double_t fgkCarlosCardX1;         // length (first part of Carlos card)
500   static const Double_t fgkCarlosCardY1;         // thickness
501   static const Double_t fgkCarlosCardZ1;         // width 
502   static const Double_t fgkCarlosCardCuY;        // thickness of Cu layer (strips)
503   static const Double_t fgkCarlosCardX2;         // length (2nd part of Carlos card)
504   static const Double_t fgkCarlosCardZ2;         // width 
505
506   static const Double_t fgkCarlosCardChipSiThick;  // Carlos Chip thicknes - value to be checked
507   static const Double_t fgkCarlosCardShift;        // (value to be checked) shift in z w.r.t. heat bridge 
508
509   // size and position of various chips on carlos end-ladder board
510   static const Double_t fgkCarlosU1X;            // chip size in X
511   static const Double_t fgkCarlosU1Y;            // chip size in Y
512   static const Double_t fgkCarlosU1Z;            // chip size in Z
513   static const Double_t fgkCarlosU1posX;         // position in X
514   static const Double_t fgkCarlosU1posZ;         // position in Z
515
516   static const Double_t fgkCarlosU2X;            // chip size in X
517   static const Double_t fgkCarlosU2Y;            // chip size in Y
518   static const Double_t fgkCarlosU2Z;            // chip size in Z
519   static const Double_t fgkCarlosU2posX;         // position in X
520   static const Double_t fgkCarlosU2posZ;         // position in Z
521   
522   static const Double_t fgkCarlosU3X;            // same convention
523   static const Double_t fgkCarlosU3Y;            // ===
524   static const Double_t fgkCarlosU3Z;            // ===
525   static const Double_t fgkCarlosU3posX;         // ===
526   static const Double_t fgkCarlosU3posZ;         // ===
527
528   // U4 like U3  
529   static const Double_t fgkCarlosU4posX;         // same convention
530   static const Double_t fgkCarlosU4posZ;         // ===
531
532   static const Double_t fgkCarlosU17X;           // same convention
533   static const Double_t fgkCarlosU17Y;           // ===
534   static const Double_t fgkCarlosU17Z;           // ===
535   static const Double_t fgkCarlosU17posX;        // ===
536   static const Double_t fgkCarlosU17posZ;        // ===
537   
538   static const Double_t fgkCarlosU35X;           // same convention
539   static const Double_t fgkCarlosU35Y;           // ===
540   static const Double_t fgkCarlosU35Z;           // ===
541   static const Double_t fgkCarlosU35posX;        // ===
542   static const Double_t fgkCarlosU35posZ;        // ===
543
544   static const Double_t fgkCarlosU36X;           // same convention
545   static const Double_t fgkCarlosU36Y;           // ===
546   static const Double_t fgkCarlosU36Z;           // ===
547   static const Double_t fgkCarlosU36posX;        // ===
548   static const Double_t fgkCarlosU36posZ;        // ===
549   
550   static const Double_t fgkCarlosQZ1X;           // same convention
551   static const Double_t fgkCarlosQZ1Y;           // look more thick than design number (0.7) ! to be checked
552   static const Double_t fgkCarlosQZ1Z;           // to be checked
553   static const Double_t fgkCarlosQZ1posX;        // to be checked
554   static const Double_t fgkCarlosQZ1posZ;        // to be checked
555
556   // some pieces at the end of the carbon fiber ladder
557   static const Double_t fgkCoolPipeLay3Len;  // value to be checked
558   static const Double_t fgkCoolPipeLay4Len;  // ===
559   static const Double_t fgkHVguideX1;    // ===
560   static const Double_t fgkHVguideY1;    // ===
561   static const Double_t fgkHVguideZ1;    // ===
562   static const Double_t fgkHVguideZ2;    // ===
563   static const Double_t fgkHVguideDX;    // ===
564   static const Double_t fgkHVguideSuppFullZ;    // ===
565   
566   // Cooling connector between phynox and plastic cooling water tubes
567   static const Double_t fgkConnectorCoolTubeRmin; // internal radius
568   static const Double_t fgkConnectorCoolTubeR1; // value to be checked
569   static const Double_t fgkConnectorCoolTubeL1;  // ===
570   static const Double_t fgkConnectorCoolTubeR2;  // ===
571   static const Double_t fgkConnectorCoolTubeL2;  // ===
572   static const Double_t fgkConnectorCoolTubeR3;  // ===
573   static const Double_t fgkConnectorCoolTubeL3;  // ===
574
575   // parameters for coding SDD cables on SDD and SSD cones
576   static const Double_t fgkSectionCuPerMod;    // area of copper per mod.
577   static const Double_t fgkSectionPlastPerMod; // area of plast per mod.
578   static const Double_t fgkSectionGlassPerMod; // area of optical fiber per mod.
579   static const Double_t fgkCableBendRatio; // ??? this factor account for the bending of cables
580
581   static const Double_t fgkConeSDDr1; // define SDD cone slope and pos
582   static const Double_t fgkConeSDDr2; // define SDD cone slope and pos
583   static const Double_t fgkConeSDDz1; // define SDD cone slope and pos
584   static const Double_t fgkConeSDDz2; // define SDD cone slope and pos
585
586   static const Double_t fgkSDDCableR1; // ??? // part 1 of "cable cone"
587   static const Double_t fgkSDDCableR2; // ??? // part 1/2 of "cable cone"
588   static const Double_t fgkSDDCableR3; // ??? // part 2 of "cable cone"
589
590   static const Double_t fgkSDDCableDZint; // length of intermediate cylinder
591   static const Double_t fgkSDDCableR5; // third part of "cable cone"
592   static const Double_t fgkSDDCableZ5; // third part of "cable cone"
593
594
595
596   // distance from the heat bridge center to the card center :
597   static const Double_t fgkCarlosCard2HeatBridge;// distance from the heat bridge center to the card center
598
599   static const Double_t fgkmu;  // 1 micron, or more for debugging
600
601   // calculated parameters
602   Double_t fLay3LadderUnderSegDH;  // To include HVcables in box
603   Double_t fLay4LadderUnderSegDH;  // To include HVcables in box
604   Double_t fLay3LaddShortRadius;   // ladder 3 to beam axis radius
605   Double_t fLay3LaddLongRadius;    // ladder 3 to beam axis radius
606   Double_t fLay4LaddShortRadius;   // ladder 4 to beam axis radius
607   Double_t fLay4LaddLongRadius;    // ladder 4 to beam axis radius
608
609   // parameters that can be modified
610   Double_t fLay3sensorZPos[6];     // Z pos of sensors in layer 3
611   Double_t fLay4sensorZPos[8];     // Z pos of sensors in layer 4
612
613   ClassDef(AliITSv11GeometrySDD,0) // ITS v11 SDD geometry
614 };
615
616
617 #endif