First set of modifications for size reduction of MapsTimeSDD objects in OCDB: new...
[u/mrichter/AliRoot.git] / ITS / AliITSMap2DSDD.h
CommitLineData
0ec6d8a9 1#ifndef ALIITSMAP2DSDD_H
2#define ALIITSMAP2DSDD_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 in 2D 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 "AliITSsegmentationSDD.h"
17#include<TNamed.h>
18#include "AliLog.h"
19class TH1F;
20class TH2F;
21
22class AliITSMap2DSDD : public AliITSMapSDD {
23
24 public:
25 AliITSMap2DSDD();
26 AliITSMap2DSDD(Char_t *mapname);
27 AliITSMap2DSDD(Char_t *mapname, Int_t nbinsan, Int_t nbinsdr);
28 virtual ~AliITSMap2DSDD(){};
29
30 virtual void ResetMap();
31 virtual void Set2DMap(TH2F* hmap);
32 virtual void SetCellContent(Int_t iAn, Int_t iTb, Float_t devMicron){
33 if(CheckAnodeBounds(iAn) && CheckDriftBounds(iTb)) fMap[iAn][iTb]=(Short_t)(devMicron*10.+0.5);
34 }
35
36 virtual Float_t GetCellContent(Int_t iAn, Int_t iTb) const {
37 if(CheckAnodeBounds(iAn) && CheckDriftBounds(iTb)) return (Float_t)fMap[iAn][iTb]/10.;
38 else return 0.;
39 }
40
41 protected:
42 Short_t fMap[kMaxNAnodePts][kMaxNDriftPts]; // map of deviations
43 // stored as Short_t: integer
44 // values from -32000 to 32000
45 // in the range -3.2 - 3.2 mm
46
47 ClassDef(AliITSMap2DSDD,1);
48};
49#endif