]>
Commit | Line | Data |
---|---|---|
a3d834a0 | 1 | #ifndef ALIITSGEOMSSD_H |
2 | #define ALIITSGEOMSSD_H | |
3da30618 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
58005f18 | 7 | |
4024ebf6 | 8 | #include <TObject.h> |
8253cd9a | 9 | #include <TBRIK.h> |
e8189707 | 10 | |
8253cd9a | 11 | class TShape; |
12 | class ostream; | |
13 | class istream; | |
e8189707 | 14 | |
8253cd9a | 15 | class AliITSgeomSSD : public TObject { |
58005f18 | 16 | |
4024ebf6 | 17 | public: |
8253cd9a | 18 | AliITSgeomSSD(){;}; // default constructor |
19 | AliITSgeomSSD(const Float_t *box,Float_t ap,Float_t an, | |
20 | Int_t np,Float_t *p,Int_t nn,Float_t *n); // Constructor | |
21 | virtual ~AliITSgeomSSD(); // Destructor | |
22 | AliITSgeomSSD(const AliITSgeomSSD &source);// copy constructor | |
23 | virtual AliITSgeomSSD& operator=(const AliITSgeomSSD &source); // = opt. | |
24 | virtual TShape *GetShape() const {return fShapeSSD;}// get shape | |
25 | virtual Float_t GetDx(){if(fShapeSSD!=0) return fShapeSSD->GetDx(); | |
26 | else return 0.0;}// get Dx | |
27 | virtual Float_t GetDy(){if(fShapeSSD!=0) return fShapeSSD->GetDy(); | |
28 | else return 0.0;}// get Dy | |
29 | virtual Float_t GetDz(){if(fShapeSSD!=0) return fShapeSSD->GetDz(); | |
30 | else return 0.0;}// get Dz | |
31 | virtual Int_t GetNAnodes() {return fNp-1;}//the number of Anodes "P" | |
32 | virtual Int_t GetNCathodess() {return fNn-1;}//the number of Cathodes "N" | |
33 | virtual Float_t GetAnodePitch(Int_t i=0){ //anode pitch for anode i | |
34 | if(i>=0&&i<fNp) return fLowEdgeP[i+1]-fLowEdgeP[i];else return 0.0;} | |
35 | virtual Float_t GetCathodePitch(Int_t i=0){ // cathode pitch for cathode i | |
36 | if(i>0&&i<fNn) return fLowEdgeN[1]-fLowEdgeN[0];else return 0.0;} | |
37 | virtual Float_t GetAnodeAngle(){return fAngleP;}//anode strip angle. | |
38 | virtual Float_t GetCathodeAngle(){return fAngleN;}//cathode strip angle. | |
39 | virtual void SetShape(char *name,char *title,char *mat, | |
40 | Float_t dx,Float_t dy,Float_t dz){ | |
41 | // defines TBRIK with given paramters | |
42 | fShapeSSD = new TBRIK(name,title,mat,dx,dy,dz);}; | |
43 | virtual void SetNAnodes(Int_t n) {// sets the number of Anodes "P" and | |
44 | // allocates array of low edges. | |
45 | fNp=n+1;delete fLowEdgeP;fLowEdgeP = new Float_t[fNp];} | |
46 | virtual void SetNCathotess(Int_t n) {// sets the number of Anodes "N" and | |
47 | // allocates array of low edges. | |
48 | fNn=n+1;delete fLowEdgeN;fLowEdgeN =new Float_t[fNn];} | |
49 | virtual void SetAnodeLowEdges(Float_t *p){// sets Anode low edges +1. | |
50 | for(Int_t i=0;i<fNp;i++)fLowEdgeP[i]=p[i];} | |
51 | virtual void SetCathodeLowEdges(Float_t *p){// sets Cathodes low edges +1. | |
52 | for(Int_t i=0;i<fNn;i++)fLowEdgeN[i]=p[i];} | |
53 | virtual void SetAnodeAngle(Float_t a){fAngleP=a;} //sets anode angle. | |
54 | virtual void SetCathodeAngle(Float_t a){fAngleN=a;}//sets cathode angle. | |
55 | ||
56 | virtual void Local2Det(Float_t x,Float_t z,Int_t &a,Int_t &c); | |
57 | virtual void Det2Local(Int_t a,Int_t c,Float_t &x,Float_t &z); | |
58 | ||
59 | virtual void Print(ostream *os); // Output streamer to standard out. | |
60 | virtual void Read(istream *is); // Input streamer to standard in. | |
61 | ||
62 | protected: | |
63 | // -+-> x | |
64 | // | | |
65 | // V | |
66 | // z | |
4024ebf6 | 67 | TBRIK *fShapeSSD; // comment |
8253cd9a | 68 | Int_t fNp; // Number of Anode strips. |
69 | Int_t fNn; // Number of Cathode strips. | |
70 | Float_t *fLowEdgeP; //[fNp] Anode side strip pitch angle==0. | |
71 | Float_t *fLowEdgeN; //[fNn] Cathode side strip pich angle==0. | |
72 | Float_t fAngleP; // Anode side strip angle (rad). | |
73 | Float_t fAngleN; // Cathode side strip angle (rad). | |
58005f18 | 74 | // or what other or different information that is needed. |
4024ebf6 | 75 | |
a3d834a0 | 76 | ClassDef(AliITSgeomSSD,1) // ITS SSD detector geometry class |
4024ebf6 | 77 | |
8253cd9a | 78 | }; |
79 | // Input and output function for standard C++ input/output. | |
80 | ostream &operator<<(ostream &os,AliITSgeomSSD &source); | |
81 | istream &operator>>(istream &os,AliITSgeomSSD &source); | |
58005f18 | 82 | #endif |
8253cd9a | 83 | //====================================================================== |
84 | #ifndef ALIITSGEOMSSD175_H | |
85 | #define ALIITSGEOMSSD175_H | |
86 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
87 | * See cxx source for full Copyright notice */ | |
4024ebf6 | 88 | |
8253cd9a | 89 | /* |
90 | $Id$ | |
91 | */ | |
4024ebf6 | 92 | |
8253cd9a | 93 | //#include "AliITSgeomSSD.h" |
4024ebf6 | 94 | |
8253cd9a | 95 | class ostream; |
96 | class istream; | |
4024ebf6 | 97 | |
8253cd9a | 98 | class TShape; |
4024ebf6 | 99 | |
8253cd9a | 100 | class AliITSgeomSSD175 : public AliITSgeomSSD { |
4024ebf6 | 101 | |
8253cd9a | 102 | public: |
103 | AliITSgeomSSD175(); | |
104 | ||
105 | // This clas now has version 0 so that it will not be written to a root | |
106 | // file. This is good since there are no longer any data members to this | |
107 | // class. It is only designed to make it easer to define this standard | |
108 | // SDD detector geometry. | |
109 | ClassDef(AliITSgeomSSD175,0) // ITS SSD detector with stips at +- 0.0175 rad. | |
110 | ||
111 | }; | |
112 | // Input and output function for standard C++ input/output. | |
113 | ostream &operator<<(ostream &os,AliITSgeomSSD175 &source); | |
114 | istream &operator>>(istream &os,AliITSgeomSSD175 &source); | |
115 | #endif | |
116 | //====================================================================== | |
117 | #ifndef ALIITSGEOMSSD27575_H | |
118 | #define ALIITSGEOMSSD27575_H | |
119 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
120 | * See cxx source for full Copyright notice */ | |
4024ebf6 | 121 | |
8253cd9a | 122 | /* |
123 | $Id$ | |
124 | */ | |
4024ebf6 | 125 | |
8253cd9a | 126 | //#include "AliITSgeomSSD.h" |
4024ebf6 | 127 | |
8253cd9a | 128 | class ostream; |
129 | class istream; | |
4024ebf6 | 130 | |
8253cd9a | 131 | class TShape; |
4024ebf6 | 132 | |
8253cd9a | 133 | class AliITSgeomSSD275and75 : public AliITSgeomSSD { |
134 | ||
135 | public: | |
136 | AliITSgeomSSD275and75(); | |
137 | ||
138 | // This clas now has version 0 so that it will not be written to a root | |
139 | // file. This is good since there are no longer any data members to this | |
140 | // class. It is only designed to make it easer to define this standard | |
141 | // SDD detector geometry. | |
142 | ClassDef(AliITSgeomSSD275and75,0) // ITS SSD detector with 0.0275 and 0.0075 rad strip angles. | |
143 | ||
144 | }; | |
145 | // Input and output function for standard C++ input/output. | |
146 | ostream &operator<<(ostream &os,AliITSgeomSSD275and75 &source); | |
147 | istream &operator>>(istream &os,AliITSgeomSSD275and75 &source); | |
148 | #endif | |
149 | //====================================================================== | |
150 | #ifndef ALIITSGEOMSSD75275_H | |
151 | #define ALIITSGEOMSSD75275_H | |
152 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
153 | * See cxx source for full Copyright notice */ | |
154 | ||
155 | /* | |
156 | $Id$ | |
157 | */ | |
158 | ||
159 | //#include "AliITSgeomSSD.h" | |
160 | ||
161 | class ostream; | |
162 | class istream; | |
163 | class TShape; | |
164 | ||
165 | class AliITSgeomSSD75and275 : public AliITSgeomSSD { | |
166 | ||
167 | public: | |
168 | AliITSgeomSSD75and275(); | |
169 | ||
170 | // This clas now has version 0 so that it will not be written to a root | |
171 | // file. This is good since there are no longer any data members to this | |
172 | // class. It is only designed to make it easer to define this standard | |
173 | // SSD detector geometry. | |
174 | ClassDef(AliITSgeomSSD75and275,0) // ITS SSD detector geometry class for 0.0075 and 0.0275 rad angled strips. | |
175 | ||
176 | }; | |
177 | // Input and output function for standard C++ input/output. | |
178 | ostream &operator<<(ostream &os,AliITSgeomSSD75and275 &source); | |
179 | istream &operator>>(istream &os,AliITSgeomSSD75and275 &source); | |
180 | #endif |