]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MFT/AliMFTPlane.h
Files for MFT segmentation updated
[u/mrichter/AliRoot.git] / MFT / AliMFTPlane.h
CommitLineData
820b4d9e 1#ifndef AliMFTPlane_H
2#define AliMFTPlane_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7//====================================================================================================================================================
8//
9// Class for the description of the structure for the planes of the ALICE Muon Forward Tracker
10//
11// Contact author: antonio.uras@cern.ch
12//
13//====================================================================================================================================================
14
15#include "TNamed.h"
16#include "THnSparse.h"
17#include "TClonesArray.h"
18#include "TAxis.h"
19#include "TPave.h"
20#include "TCanvas.h"
21#include "TH2D.h"
22#include "TEllipse.h"
23#include "TMath.h"
24#include "AliLog.h"
25
26//====================================================================================================================================================
27
28class AliMFTPlane : public TNamed {
29
30public:
31
32 AliMFTPlane();
33 AliMFTPlane(const Char_t *name, const Char_t *title);
34 AliMFTPlane(const AliMFTPlane& pt);
35 AliMFTPlane& operator=(const AliMFTPlane &source);
ffc53def 36
37 virtual ~AliMFTPlane(); // destructor
38 virtual void Clear(const Option_t* /*opt*/);
39
820b4d9e 40 Bool_t Init(Int_t planeNumber,
41 Double_t zCenter,
42 Double_t rMin,
43 Double_t rMax,
44 Double_t pixelSizeX,
45 Double_t pixelSizeY,
46 Double_t thicknessActive,
47 Double_t thicknessSupport,
bcaf50eb 48 Double_t thicknessReadout,
49 Bool_t hasPixelRectangularPatternAlongY);
820b4d9e 50
51 Bool_t CreateStructure();
52
d4643a10 53 Int_t GetNActiveElements() const { return fActiveElements->GetEntries(); }
54 Int_t GetNReadoutElements() const { return fReadoutElements->GetEntries(); }
55 Int_t GetNSupportElements() const { return fSupportElements->GetEntries(); }
820b4d9e 56
57 TClonesArray* GetActiveElements() { return fActiveElements; }
58 TClonesArray* GetReadoutElements() { return fReadoutElements; }
59 TClonesArray* GetSupportElements() { return fSupportElements; }
60
61 THnSparseC* GetActiveElement(Int_t id);
62 THnSparseC* GetReadoutElement(Int_t id);
63 THnSparseC* GetSupportElement(Int_t id);
64
d4643a10 65 Bool_t IsFront(THnSparseC *element) const { return (element->GetAxis(2)->GetXmin() < fZCenter); }
820b4d9e 66
d4643a10 67 void DrawPlane(Option_t *opt="");
820b4d9e 68
d4643a10 69 Double_t GetRMinSupport() const { return fRMinSupport; }
70 Double_t GetRMaxSupport() const { return fRMaxSupport; }
820b4d9e 71 Double_t GetThicknessSupport() { return GetSupportElement(0)->GetAxis(2)->GetXmax() - GetSupportElement(0)->GetAxis(2)->GetXmin(); }
72
d4643a10 73 Double_t GetZCenter() const { return fZCenter; }
74 Double_t GetZCenterActiveFront() const { return fZCenterActiveFront; }
75 Double_t GetZCenterActiveBack() const { return fZCenterActiveBack; }
820b4d9e 76
77 void SetEquivalentSilicon(Double_t equivalentSilicon) { fEquivalentSilicon = equivalentSilicon; }
78 void SetEquivalentSiliconBeforeFront(Double_t equivalentSiliconBeforeFront) { fEquivalentSiliconBeforeFront = equivalentSiliconBeforeFront; }
79 void SetEquivalentSiliconBeforeBack(Double_t equivalentSiliconBeforeBack) { fEquivalentSiliconBeforeBack = equivalentSiliconBeforeBack; }
d4643a10 80 Double_t GetEquivalentSilicon() const { return fEquivalentSilicon; }
81 Double_t GetEquivalentSiliconBeforeFront() const { return fEquivalentSiliconBeforeFront; }
82 Double_t GetEquivalentSiliconBeforeBack() const { return fEquivalentSiliconBeforeBack; }
53b30119 83
84 Int_t GetNumberOfChips(Option_t *opt);
bcaf50eb 85 Bool_t HasPixelRectangularPatternAlongY() { return fHasPixelRectangularPatternAlongY; }
820b4d9e 86
87private:
88
89 // measures in cm
90
d4643a10 91 static const Double_t fRadiusMin; // minimum radial distance of the MFT sensors. To be carefully coordinated with fActiveSuperposition
820b4d9e 92
d4643a10 93 static const Double_t fActiveSuperposition; // superposition between the active elements tasselling the MFT planes, for having a
94 // full acceptance coverage even in case of 10 degrees inclined tracks
95 static const Double_t fHeightActive; // height of the active elements
96 static const Double_t fHeightReadout; // height of the readout elements attached to the active ones
820b4d9e 97
d4643a10 98 static const Double_t fSupportExtMargin; // minimum border size between the end of the support plane and the sensors: fHeightReadout + 0.3
820b4d9e 99
100 Int_t fPlaneNumber;
101
102 Double_t fZCenter, fRMinSupport, fRMax, fRMaxSupport, fPixelSizeX, fPixelSizeY, fThicknessActive, fThicknessSupport, fThicknessReadout;
103 Double_t fZCenterActiveFront, fZCenterActiveBack, fEquivalentSilicon, fEquivalentSiliconBeforeFront, fEquivalentSiliconBeforeBack;
104
105 TClonesArray *fActiveElements, *fReadoutElements, *fSupportElements;
106
d23466bf 107 Bool_t fHasPixelRectangularPatternAlongY, fPlaneIsOdd;
bcaf50eb 108
820b4d9e 109 ClassDef(AliMFTPlane, 1)
110
111};
112
113//====================================================================================================================================================
114
115#endif
116