- change error message to debug message for TRD tracklets
[u/mrichter/AliRoot.git] / ITS / UPGRADE / AliITSUv0.h
CommitLineData
4e0b9a43 1#ifndef ALIITSUV0_H
2#define ALIITSUV0_H
7302d0f8 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6//========================================================================
7//
8// Geometry for the Upgrade of the Inner Tracking System
9//
10// Mario Sitta (sitta@to.infn.it)
11// Chinorat Kobdaj (kobdaj@g.sut.ac.th)
12//
13//========================================================================
14
15
16// $Id: AliITSUv0.h
17
18#include "AliITSU.h"
19
7302d0f8 20class AliITSUv0Layer;
21//class AliITSv11GeomBeamPipe;
22class TGeoVolume;
23class TGeoVolumeAssembly;
24
25class AliITSUv0 : public AliITSU {
26
27 public:
6343b737 28
29
30 typedef enum {
31 kModelDummy=0,
32 kModel0=1,
33 kModel1=2,
34 kModel21=3,
35 kModel22=4,
36 kModel3=5
37 } AliITSUModel_t;
38
39
7302d0f8 40 AliITSUv0();
41 AliITSUv0(const char *title, const Int_t nlay);
42 virtual ~AliITSUv0() ;
43
44 virtual void AddAlignableVolumes() const;
45 virtual void CreateGeometry();
46 virtual void CreateMaterials();
47 virtual void DefineLayer(Int_t nlay,Double_t phi0,Double_t r,Double_t zlen,Int_t nladd,
48 Int_t nmod, Double_t lthick=0.,Double_t dthick=0.,UInt_t detType=0);
49 virtual void DefineLayerTurbo(Int_t nlay,Double_t phi0,Double_t r,Double_t zlen,Int_t nladd,
50 Int_t nmod,Double_t width,Double_t tilt,
51 Double_t lthick = 0.,Double_t dthick = 0.,UInt_t detType=0, Int_t buildFlag=0);
52 virtual void GetLayerParameters(Int_t nlay, Double_t &phi0,Double_t &r, Double_t &zlen,
53 Int_t &nladd, Int_t &nmod,
54 Double_t &width, Double_t &tilt,
55 Double_t &lthick, Double_t &mthick,
56 UInt_t &dettype) const;
57 virtual void Init();
58 virtual Bool_t IsLayerTurbo(Int_t nlay);
59 virtual Int_t IsVersion() const { return 20;} // vUpgrade ? do we need this
60 virtual void SetDefaults();
61 virtual void StepManager();
62 virtual void SetLayerDetTypeID(Int_t lr, UInt_t id);
63 virtual Int_t GetLayerDetTypeID(Int_t lr);
64 virtual void SetStaveModel(AliITSUModel_t model) {fStaveModel=model;}
65 virtual AliITSUModel_t GetStaveModel() const {return fStaveModel;}
66 //
67 private:
68 AliITSUv0(const AliITSUv0 &source); // copy constructor
69 AliITSUv0& operator=(const AliITSUv0 &source); // assignment operator
5e0a1821 70
71 TGeoVolume* CreateWrapperVolume(const Int_t nLay);
72
7302d0f8 73 //
74 Bool_t *fLayTurbo; // True for "turbo" layers
75 Double_t *fLayPhi0; // Vector of layer's 1st ladder phi in lab
76 Double_t *fLayRadii; // Vector of layer radii
77 Double_t *fLayZLength; // Vector of layer length along Z
78 Int_t *fLaddPerLay; // Vector of number of ladders per layer
79 Int_t *fModPerLadd; // Vector of number of modules per ladder
80 Double_t *fLadThick; // Vector of ladder thicknesses
81 Double_t *fLadWidth; // Vector of ladder width (only used for turbo)
82 Double_t *fLadTilt; // Vector of ladder tilt (only used for turbo)
83 Double_t *fDetThick; // Vector of detector thicknesses
84 UInt_t *fDetTypeID; // Vector of detector type id
85 Int_t *fBuildLevel; // Vector of Material Budget Studies
86 //
87 AliITSUv0Layer **fUpGeom; //! Geometry
88 AliITSUModel_t fStaveModel; // The stave model
89
90 // Parameters for the Upgrade geometry
91
92 ClassDef(AliITSUv0,0)
93};
94
95#endif