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