]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/UPGRADE/AliITSv11GeometryUpgrade.h
cleanup
[u/mrichter/AliRoot.git] / ITS / UPGRADE / AliITSv11GeometryUpgrade.h
1 #ifndef ALIITSV11GEOMETRYUPGRADE_H
2 #define ALIITSV11GEOMETRYUPGRADE_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6
7 //*************************************************************************
8 // This class Defines the Geometry for the ITS Upgrade using TGeo
9 // This is a work class used to study different configurations
10 // during the development of the new ITS structure.
11 //
12 //  Mario Sitta <sitta@to.infn.it>
13 //*************************************************************************
14
15
16 /*
17   $Id: AliITSv11GeometryUpgrade.h
18  */
19
20 #include "AliITSv11Geometry.h"
21 #include <TGeoManager.h>
22 #include <TGeoCompositeShape.h>
23 #include <TGeoXtru.h>
24
25 class TGeoVolume;
26
27 class AliITSv11GeometryUpgrade : public AliITSv11Geometry {
28   public:
29     AliITSv11GeometryUpgrade();
30     AliITSv11GeometryUpgrade(Int_t debug);
31     AliITSv11GeometryUpgrade(Int_t lay, Int_t debug);
32     AliITSv11GeometryUpgrade(Int_t lay, Bool_t turbo, Int_t debug);
33     AliITSv11GeometryUpgrade(const AliITSv11GeometryUpgrade &source);
34     AliITSv11GeometryUpgrade& operator=(const AliITSv11GeometryUpgrade &source);
35     virtual ~AliITSv11GeometryUpgrade();
36     //
37     Bool_t    IsTurbo() {return fIsTurbo;};
38
39     Double_t  GetLadderThick() {return fLadderThick;};
40     Double_t  GetLadderTilt()  {return fLadderTilt;};
41     Double_t  GetLadderWidth() {return fLadderWidth;};
42     Double_t  GetSensorThick() {return fSensorThick;};
43     Double_t  GetNLadders()    {return fNLadders;};
44     Double_t  GetNModules()    {return fNModules;};
45     Double_t  GetRadius()      {return fLayRadius;};
46     Double_t  GetZLength()     {return fZLength;};
47
48     void      SetLadderThick(const Double_t t) {fLadderThick = t;};
49     void      SetLadderTilt(const Double_t t);
50     void      SetLadderWidth(const Double_t w);
51     void      SetSensorThick(const Double_t t) {fSensorThick = t;};
52     void      SetNLadders(const Int_t n) {fNLadders = n;};
53     void      SetNModules(const Int_t m) {fNModules = m;};
54     void      SetRadius(const Double_t r) {fLayRadius = r;};
55     void      SetZLength(const Double_t z) {fZLength   = z;};
56
57     virtual void CreateLayer(TGeoVolume *moth,
58                        const TGeoManager *mgr=gGeoManager);
59
60   private:
61     void CreateLayerTurbo(TGeoVolume *moth,
62                     const TGeoManager *mgr=gGeoManager);
63
64     Double_t RadiusOfTurboContainer();
65
66     TGeoVolume* CreateLadder(const TGeoManager *mgr=gGeoManager);
67     TGeoVolume* CreateModule(const Double_t x, const Double_t y,
68                              const Double_t z,
69                              const TGeoManager *mgr=gGeoManager);
70
71     Int_t     fLayerNumber; // Current layer number
72     Double_t  fLayRadius;   // Inner radius of this layer
73     Double_t  fZLength;     // Z length of this layer
74     Double_t  fSensorThick; // Sensor thickness
75     Double_t  fLadderThick; // Ladder thickness
76     Double_t  fLadderWidth; // Ladder width (for turbo layers only)
77     Double_t  fLadderTilt;  // Ladder tilt angle (for turbo layers only)
78     Int_t     fNLadders;    // Number of ladders in this layer
79     Int_t     fNModules;    // Number of modules per ladder in this layer
80     Bool_t    fIsTurbo;     // True if this layer is a "turbo" layer
81
82   // Parameters for the Upgrade geometry
83
84     static const Double_t fgkDefaultSensorThick; // Default sensor thickness
85     static const Double_t fgkDefaultLadderThick; // Default ladder thickness
86
87   ClassDef(AliITSv11GeometryUpgrade,0) // ITS v11 Upgrade geometry
88 };
89
90 #endif