]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSGainSSD.h
addressing coverity warnings: now checking return value of fscanf
[u/mrichter/AliRoot.git] / ITS / AliITSGainSSD.h
CommitLineData
fb4dfab9 1#ifndef ALIITSGAINSSD_H
2#define ALIITSGAINSSD_H
3
88128115 4#include "TObjArray.h"
5#include "TArrayF.h"
6
fb4dfab9 7//////////////////////////////////////////////
8// Author: Enrico Fragiacomo
9// Date: 23/08/2007
10// //
11//////////////////////////////////////////////
12class AliITSGainSSD : public TObject {
13
14 public:
15
16 AliITSGainSSD();
17 virtual ~AliITSGainSSD();
88128115 18
19 void SetNGainP(Int_t n) { fGainP.Set(n); }
20 void AddGainP(Int_t c, Float_t n) { fGainP.AddAt(n,c);}
21 TArrayF GetGainP() const {return fGainP; }
22 Float_t GetGainP(Int_t n) {return fGainP.At(n); }
23 void SetNGainN(Int_t n) { fGainN.Set(n); }
24 void AddGainN(Int_t c, Float_t n) { fGainN.AddAt(n,c);}
25 TArrayF GetGainN() const {return fGainN; }
26 Float_t GetGainN(Int_t n) {return fGainN.At(n); }
27
28 void SetMod(UShort_t mod) {fMod = mod;}
29 UShort_t GetMod() { return fMod;}
30
31protected:
32
33 UShort_t fMod; // module number (from 0 to 1535). Needed by the preprocessor to
34 // extract the information from the Detector Algorithm
35
36 TArrayF fGainP; // Gain for P side channels
37 TArrayF fGainN; // Gain for N side channels
38
39 private:
fb4dfab9 40 AliITSGainSSD(const AliITSGainSSD &source); // copy constructor
41 AliITSGainSSD& operator=(const AliITSGainSSD &source); // ass. op.
42
88128115 43 ClassDef(AliITSGainSSD,1) //Response class for SSD
44};
fb4dfab9 45#endif