]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSMapSDD.h
Added setting the default CDB storage,
[u/mrichter/AliRoot.git] / ITS / AliITSMapSDD.h
CommitLineData
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>
17
18class TH1F;
19class TH2F;
20
21class 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){
30 fMap[iAn][iTb]=devMicron;
31 }
32 Float_t GetCellContent(Int_t iAn, Int_t iTb) const {return fMap[iAn][iTb];}
33 TH2F* GetMapHisto() const;
34 TH1F* GetResidualDistr(Float_t dmin=-300., Float_t dmax=300.) const;
35
36 protected:
37 static const Int_t fgkNAnodPts = 256; // number of map points along anodes
38 static const Int_t fgkNDrifPts = 72; // number of map points along anodes
39 Float_t fMap[fgkNAnodPts][fgkNDrifPts]; // map of deviations
40
41 ClassDef(AliITSMapSDD,1);
42};
43#endif