technial fix to suppress the warning
[u/mrichter/AliRoot.git] / ITS / AliITSCorrMap1DSDD.h
CommitLineData
54af1add 1#ifndef ALIITSCORRMAP1DSDD_H
2#define ALIITSCORRMAP1DSDD_H
0ec6d8a9 3/* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
54af1add 6/* $Id$ */
0ec6d8a9 7
8///////////////////////////////////////////////////////////////////
9// //
10// Class for SDD maps in 1D used to correct for //
11// voltage divider shape and doping fluctuations //
12// Origin: F.Prino, Torino, prino@to.infn.it //
13// //
14///////////////////////////////////////////////////////////////////
15
cfe39822 16
0ec6d8a9 17#include<TNamed.h>
cfe39822 18
0ec6d8a9 19class TH1F;
cfe39822 20class AliITSsegmentationSDD;
0ec6d8a9 21
54af1add 22class AliITSCorrMap1DSDD : public AliITSCorrMapSDD {
0ec6d8a9 23
24 public:
54af1add 25 AliITSCorrMap1DSDD();
26 AliITSCorrMap1DSDD(Char_t *mapname);
27 AliITSCorrMap1DSDD(Char_t *mapname, Int_t nbinsdr);
28 virtual ~AliITSCorrMap1DSDD(){};
0ec6d8a9 29
30 virtual void ResetMap();
31 virtual void Set1DMap(TH1F* hmap);
32 virtual void SetCellContent(Int_t /*iAn*/, Int_t iTb, Float_t devMicron){
54af1add 33 if(CheckDriftBounds(iTb)) fCorrMap[iTb]=(Short_t)(devMicron*10.+0.5);
0ec6d8a9 34 }
35
36 virtual Float_t GetCellContent(Int_t /*iAn*/, Int_t iTb) const {
54af1add 37 if(CheckDriftBounds(iTb)) return (Float_t)fCorrMap[iTb]/10.;
0ec6d8a9 38 else return 0.;
39 }
40
41 protected:
54af1add 42 Short_t fCorrMap[kMaxNDriftPts]; // map of deviations
0ec6d8a9 43 // stored as Short_t: integer
44 // values from -32000 to 32000
45 // in the range -3.2 - 3.2 mm
46
54af1add 47 ClassDef(AliITSCorrMap1DSDD,1);
0ec6d8a9 48};
49#endif