]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSsegmentationSSD.h
Replace FXS fileID from DASSD_DB_results to CALIBRATION for compatibility with the...
[u/mrichter/AliRoot.git] / ITS / AliITSsegmentationSSD.h
CommitLineData
b0f5e3fc 1#ifndef ALIITSSEGMENTATIONSSD_H
2#define ALIITSSEGMENTATIONSSD_H
3
4#include "AliITSsegmentation.h"
5
6// segmentation for SSD
7
8class AliITSsegmentationSSD :
9public AliITSsegmentation {
10 public:
11
c9649d1e 12 AliITSsegmentationSSD(Option_t *opt="");
b0f5e3fc 13 AliITSsegmentationSSD(AliITSgeom *gm);
55d2c544 14 AliITSsegmentationSSD(const AliITSsegmentationSSD &source);
b0f5e3fc 15 virtual ~AliITSsegmentationSSD(){}
55d2c544 16 AliITSsegmentationSSD& operator=(const AliITSsegmentationSSD &source);
b0f5e3fc 17
18
b0f5e3fc 19 // Strip size
55d2c544 20 virtual void SetPadSize(Float_t pitch,Float_t /* d */)
21 {fPitch=pitch;}
b0f5e3fc 22
23 // Maximum number of strips along the two coordinates
55d2c544 24 virtual void SetNPads(Int_t p1,Int_t /* d */){fNstrips=p1;}
5752a110 25 // Returns the maximum number of cells (digits) posible
55d2c544 26 virtual Int_t GetNPads() const {return 2*fNstrips;}
b0f5e3fc 27
28
29 // Set stereo angles Pside-Nside
5752a110 30 virtual void SetAngles(Float_t pa=0.0175, Float_t na=0.0175)
0315d466 31 {fStereoPl5=pa; fStereoNl5=na;
32 fStereoPl6=na; fStereoNl6=pa;}
33
34 virtual void SetAnglesLay5(Float_t pa=0.0075, Float_t na=0.0275)
35 {fStereoPl5=pa; fStereoNl5=na;}
36
37 virtual void SetAnglesLay6(Float_t pa=0.0275, Float_t na=0.0075)
38 {fStereoPl6=pa; fStereoNl6=na;}
fd61217e 39
40 // Set stereo angles Pside-Nside
b0f5e3fc 41 // Transform from real coordinates to strips
55d2c544 42 virtual void GetPadIxz(Float_t x ,Float_t z ,Int_t &iP,Int_t &iN) const;
b0f5e3fc 43 // Transform from strips to real coordinates
55d2c544 44 virtual void GetPadCxz(Int_t iP, Int_t iN, Float_t &x , Float_t &z) const;
45 virtual void GetPadTxz(Float_t &x , Float_t &z) const;
5752a110 46 // Transformation from Geant cm detector center local coordinates
47 // to detector P and N side strip numbers..
aacedc3e 48 virtual Bool_t LocalToDet(Float_t x,Float_t z,Int_t &iP,Int_t &iN) const;
5752a110 49 // Transformation from detector segmentation/cell coordiantes starting
50 // from 0. iPN=0 for P side and 1 for N side strip. Returned is z=0.0
51 // and the corresponding x value..
55d2c544 52 virtual void DetToLocal(Int_t ix,Int_t iPN,Float_t &x,Float_t &z) const;
5752a110 53 // Given one P side strip and one N side strip, Returns kTRUE if they
54 // cross each other and the location of the two crossing strips and
55 // their correxlation matrix c[2][2].
56 virtual Bool_t GetCrossing(Int_t iP,Int_t iN,Float_t &x,Float_t &z,
57 Float_t c[2][2]);
0315d466 58
b0f5e3fc 59 virtual void Init();
60
b0f5e3fc 61 // Strip size in x
55d2c544 62 virtual Float_t Dpx(Int_t) const {return fPitch;}
b0f5e3fc 63 // Strip size in z
55d2c544 64 virtual Float_t Dpz(Int_t) const {return fDz;}
b0f5e3fc 65 // Maximum number of Strips in x
55d2c544 66 virtual Int_t Npx() const {return fNstrips;}
b0f5e3fc 67 // Maximum number of Strips in z
55d2c544 68 virtual Int_t Npz()const {return 1;}
b0f5e3fc 69
0315d466 70 // Angles : Pside stereo angle-Nside stereo angle
55d2c544 71 virtual void Angles(Float_t &aP,Float_t &aN) const;
0315d466 72 virtual void SetLayer(Int_t l);
73 virtual Int_t GetLayer() const {return fLayer;}
55d2c544 74 // Print Default parameters
75 virtual void PrintDefaultParameters() const;
0315d466 76
b0f5e3fc 77 protected:
78
55d2c544 79 virtual void Copy(TObject &obj) const;
80
b0f5e3fc 81 Int_t fNstrips; // Number of strips in x
5752a110 82 Float_t fStereoP; // Stereo angle for Pside (rad)
83 Float_t fStereoN; // Stereo angle for Nside (rad)
0315d466 84 Float_t fPitch; // Pitch of the strips
0315d466 85
86 Float_t fStereoPl5; // Stereo angle for Pside
87 Float_t fStereoNl5; // Stereo angle for Nside
88 Float_t fStereoPl6; // Stereo angle for Pside
89 Float_t fStereoNl6; // Stereo angle for Nside
55d2c544 90 Int_t fLayer; //! layer number (5 or 6)
91 static const Float_t fgkDxDefault; // Default value for fDx
92 static const Float_t fgkDzDefault; // Default value for fDz
93 static const Float_t fgkDyDefault; // Default value for fDy
94 static const Float_t fgkPitchDefault; //Default value for fPitch
95 static const Int_t fgkNstripsDefault; //Default value for fNstrips
96
97 ClassDef(AliITSsegmentationSSD,2) //Segmentation class for SSD
b0f5e3fc 98};
99
100#endif