]>
Commit | Line | Data |
---|---|---|
6b2a1732 | 1 | #ifndef ALIITSVPPRASYMMFMD_H |
2 | #define ALIITSVPPRASYMMFMD_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | ///////////////////////////////////////////////////////// | |
9 | // Manager and hits classes for set: ITS version 10 // | |
10 | ///////////////////////////////////////////////////////// | |
11 | ||
12 | #include "AliITS.h" | |
13 | ||
14 | class AliITSvPPRasymmFMD : public AliITS { | |
15 | ||
16 | public: | |
17 | AliITSvPPRasymmFMD(); | |
18 | AliITSvPPRasymmFMD(const char *name, const char *title); | |
19 | AliITSvPPRasymmFMD(const AliITSvPPRasymmFMD &source); // copy constructor | |
20 | AliITSvPPRasymmFMD& operator=(const AliITSvPPRasymmFMD &source); // assignment operator | |
21 | virtual ~AliITSvPPRasymmFMD() ; | |
22 | virtual void BuildGeometry(); | |
23 | virtual void CreateGeometry(); | |
24 | virtual void CreateMaterials(); | |
25 | virtual Int_t IsVersion() const {// returns the ITS version number | |
26 | return 10;} | |
27 | virtual void Init(); | |
28 | virtual void SetDefaults(); | |
41b19549 | 29 | virtual void DrawModule() const; |
6b2a1732 | 30 | virtual void StepManager(); |
ed9289c8 | 31 | virtual void AddAlignableVolumes() const; |
9116ab2d | 32 | virtual void SetWriteDet(Bool_t det=kFALSE){ // set .det write |
6b2a1732 | 33 | fGeomDetOut = det;} |
34 | virtual void SetWriteDet(const char *f){ // set write file | |
35 | strncpy(fWrite,f,60);fGeomDetOut = kTRUE;} | |
9116ab2d | 36 | virtual void SetReadDet(Bool_t det=kFALSE){ //set .det read |
6b2a1732 | 37 | fGeomDetIn = det;} |
38 | virtual void SetReadDet(const char *f){ // set read file | |
39 | strncpy(fRead,f,60);fGeomDetIn = kTRUE;} | |
6b2a1732 | 40 | virtual void SetEUCLIDFileName(const char *f){ // set write file |
a8e8915c | 41 | fEuclidGeometry=f; SetEUCLID();} |
d2a27428 | 42 | virtual void SetMinorVersion(Int_t v=2){ // Choose between existing minor versions |
6b2a1732 | 43 | fMinorVersion = v;} |
d2a27428 | 44 | virtual void SetThicknessDet1(Float_t v=200.){ |
6b2a1732 | 45 | // Set detector thickness in layer 1 |
46 | fDet1 = v;} | |
d2a27428 | 47 | virtual void SetThicknessDet2(Float_t v=200.){ |
6b2a1732 | 48 | // Set detector thickness in layer 2 |
49 | fDet2 = v;} | |
dc3ff20e | 50 | virtual void SetThicknessChip1(Float_t v=150.){ |
6b2a1732 | 51 | // Set chip thickness in layer 1 |
52 | fChip1 = v;} | |
dc3ff20e | 53 | virtual void SetThicknessChip2(Float_t v=150.){ |
6b2a1732 | 54 | // Set chip thickness in layer 2 |
55 | fChip2 = v;} | |
d2a27428 | 56 | virtual void SetRails(Int_t v=0){ |
6b2a1732 | 57 | // Set flag for rails |
58 | fRails = v;} | |
87577a03 | 59 | virtual void SetCoolingFluid(Int_t v=1){ |
6b2a1732 | 60 | // Set flag for cooling fluid |
87577a03 | 61 | fFluid = v;} |
62 | virtual void SetDensityServicesByThickness(){// uses services density | |
63 | // calculation based on the thickness of the services. | |
64 | fByThick = kTRUE;} | |
65 | virtual void SetDensityServicesByMass(){// uses services density | |
66 | // calculation based on the Mass of the services. | |
67 | fByThick = kFALSE;} | |
6b2a1732 | 68 | virtual const char *GetEULIIDFileName() const{ // return .euc file name |
69 | return fEuclidGeometry.Data();} | |
41b19549 | 70 | virtual Bool_t GetWriteDet() const { // returns value GeomDetOut flag. |
6b2a1732 | 71 | return fGeomDetOut;} |
41b19549 | 72 | virtual Bool_t GetReadDet() const { // returns value GeomDetIn flag. |
6b2a1732 | 73 | return fGeomDetIn;} |
74 | virtual char *GetReadDetFileName(){ // return .det read file name | |
75 | if(fRead[0]!='\0') return fRead; else return fEuclidGeomDet;} | |
76 | virtual char *GetWriteDetFileName(){ // return .det write file name | |
77 | if(fWrite[0]!='\0') return fWrite; else return fEuclidGeomDet;} | |
41b19549 | 78 | virtual Int_t GetMajorVersion() const {// return Major Version Number |
6b2a1732 | 79 | return fMajorVersion;} |
41b19549 | 80 | virtual Int_t GetMinorVersion() const {// return Major Version Number |
6b2a1732 | 81 | return fMinorVersion;} |
41b19549 | 82 | virtual Float_t GetThicknessDet1() const { |
6b2a1732 | 83 | // Get detector thickness in layer 1 |
84 | return fDet1;} | |
41b19549 | 85 | virtual Float_t GetThicknessDet2() const { |
6b2a1732 | 86 | // Get detector thickness in layer 2 |
87 | return fDet2;} | |
41b19549 | 88 | virtual Float_t GetThicknessChip1() const { |
6b2a1732 | 89 | // Get chip thickness in layer 1 |
90 | return fChip1;} | |
41b19549 | 91 | virtual Float_t GetThicknessChip2()const { |
6b2a1732 | 92 | // Get chip thickness in layer 2 |
93 | return fChip2;} | |
41b19549 | 94 | virtual Int_t GetRails() const { |
6b2a1732 | 95 | // Get flag for rails |
87577a03 | 96 | return fRails;} |
41b19549 | 97 | virtual Int_t GetCoolingFluid() const{ |
6b2a1732 | 98 | // Get flag for cooling fluid |
87577a03 | 99 | return fFluid;} |
100 | ||
6b2a1732 | 101 | private: |
102 | void InitAliITSgeom(); | |
103 | ||
104 | // TString fEuclidGeomtery,fEuclidMaterial defined in AliModule. | |
6b2a1732 | 105 | Bool_t fGeomDetOut; // Flag to write .det file out |
106 | Bool_t fGeomDetIn; // Flag to read .det file or directly from Geat. | |
87577a03 | 107 | Bool_t fByThick; // Flag to use services materials by thickness |
108 | // ture, or mass false. | |
6b2a1732 | 109 | Int_t fMajorVersion; // Major version number == IsVersion |
110 | Int_t fMinorVersion; // Minor version number | |
111 | char fEuclidGeomDet[60];// file where detector transormation are define. | |
112 | char fRead[60]; //! file name to read .det file | |
113 | char fWrite[60]; //! file name to write .det file | |
114 | Float_t fDet1; // thickness of detector in SPD layer 1 | |
115 | Float_t fDet2; // thickness of detector in SPD layer 2 | |
116 | Float_t fChip1; // thickness of chip in SPD layer 1 | |
117 | Float_t fChip2; // thickness of chip in SPD layer 2 | |
118 | Int_t fRails; // flag to switch rails on (=1) and off (=0) | |
119 | Int_t fFluid; // flag to switch between water (=1) and freon (=0) | |
120 | Int_t fIDMother; //! ITS Mother Volume id. | |
121 | ||
41b19549 | 122 | ClassDef(AliITSvPPRasymmFMD,3) //Hits manager for set:ITS version 8 |
6b2a1732 | 123 | // PPR detailed Geometry asymmetric |
124 | }; | |
125 | ||
126 | #endif |