1 #ifndef ALIITSGEOMSSD_H
2 #define ALIITSGEOMSSD_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
15 class AliITSgeomSSD : public TObject {
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.
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);
59 virtual void Print(ostream *os); // Output streamer to standard out.
60 virtual void Read(istream *is); // Input streamer to standard in.
67 TBRIK *fShapeSSD; // comment
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).
74 // or what other or different information that is needed.
76 ClassDef(AliITSgeomSSD,1) // ITS SSD detector geometry class
79 // Input and output function for standard C++ input/output.
80 ostream &operator<<(ostream &os,AliITSgeomSSD &source);
81 istream &operator>>(istream &os,AliITSgeomSSD &source);
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 */
93 //#include "AliITSgeomSSD.h"
100 class AliITSgeomSSD175 : public AliITSgeomSSD {
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.
112 // Input and output function for standard C++ input/output.
113 ostream &operator<<(ostream &os,AliITSgeomSSD175 &source);
114 istream &operator>>(istream &os,AliITSgeomSSD175 &source);
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 */
126 //#include "AliITSgeomSSD.h"
133 class AliITSgeomSSD275and75 : public AliITSgeomSSD {
136 AliITSgeomSSD275and75();
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.
145 // Input and output function for standard C++ input/output.
146 ostream &operator<<(ostream &os,AliITSgeomSSD275and75 &source);
147 istream &operator>>(istream &os,AliITSgeomSSD275and75 &source);
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 */
159 //#include "AliITSgeomSSD.h"
165 class AliITSgeomSSD75and275 : public AliITSgeomSSD {
168 AliITSgeomSSD75and275();
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.
177 // Input and output function for standard C++ input/output.
178 ostream &operator<<(ostream &os,AliITSgeomSSD75and275 &source);
179 istream &operator>>(istream &os,AliITSgeomSSD75and275 &source);