]>
Commit | Line | Data |
---|---|---|
efb451bf | 1 | #ifndef ALIITSMAPSDD_H |
2 | #define ALIITSMAPSDD_H | |
3 | /* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | /////////////////////////////////////////////////////////////////// | |
9 | // // | |
10 | // Class for SDD maps used to correct for // | |
11 | // voltage divider shape and doping fluctuations // | |
12 | // Origin: F.Prino, Torino, prino@to.infn.it // | |
13 | // // | |
14 | /////////////////////////////////////////////////////////////////// | |
15 | ||
16 | #include<TNamed.h> | |
d97eb3fe | 17 | #include "AliLog.h" |
efb451bf | 18 | class TH1F; |
19 | class TH2F; | |
20 | ||
21 | class AliITSMapSDD : public TNamed { | |
22 | ||
23 | public: | |
24 | AliITSMapSDD(); | |
25 | AliITSMapSDD(Char_t *mapname); | |
26 | virtual ~AliITSMapSDD(){}; | |
27 | ||
28 | void SetMap(TH2F* hmap); | |
29 | void SetCellContent(Int_t iAn, Int_t iTb, Float_t devMicron){ | |
d97eb3fe | 30 | if(iAn<0 || iAn>=fgkNAnodPts || iTb<0 || iTb >= fgkNDrifPts){ |
31 | AliWarning(Form("Cell out of bounds, anode=%d time-bin=%d",iAn,iTb)); | |
32 | return; | |
33 | } | |
efb451bf | 34 | fMap[iAn][iTb]=devMicron; |
35 | } | |
d97eb3fe | 36 | Float_t GetCellContent(Int_t iAn, Int_t iTb) const { |
37 | if(iAn<0 || iAn>=fgkNAnodPts || iTb<0 || iTb >= fgkNDrifPts){ | |
38 | AliWarning(Form("Cell out of bounds, anode=%d timebin=%d",iAn,iTb)); | |
39 | return 0.; | |
40 | } | |
41 | else return fMap[iAn][iTb]; | |
42 | } | |
43 | ||
efb451bf | 44 | TH2F* GetMapHisto() const; |
45 | TH1F* GetResidualDistr(Float_t dmin=-300., Float_t dmax=300.) const; | |
46 | ||
47 | protected: | |
48 | static const Int_t fgkNAnodPts = 256; // number of map points along anodes | |
49 | static const Int_t fgkNDrifPts = 72; // number of map points along anodes | |
50 | Float_t fMap[fgkNAnodPts][fgkNDrifPts]; // map of deviations | |
51 | ||
52 | ClassDef(AliITSMapSDD,1); | |
53 | }; | |
54 | #endif |