Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / ITS / AliITSNoiseSSD.h
CommitLineData
fb4dfab9 1#ifndef ALIITSNOISESSD_H
2#define ALIITSNOISESSD_H
3
88128115 4#include "TArrayF.h"
416d7e17 5#include "TObject.h"
88128115 6
fb4dfab9 7//////////////////////////////////////////////
8// Author: Enrico Fragiacomo
9// Date: 23/08/2007
10// //
11//////////////////////////////////////////////
416d7e17 12
13class TObjArray;
14
fb4dfab9 15class AliITSNoiseSSD : public TObject {
16
17 public:
18
19 AliITSNoiseSSD();
20 virtual ~AliITSNoiseSSD();
21 AliITSNoiseSSD(const AliITSNoiseSSD &source); // copy constructor
22 AliITSNoiseSSD& operator=(const AliITSNoiseSSD &source); // ass. op.
23
88128115 24 void SetNNoiseP(Int_t n) { fNoisP.Set(n); }
25 void AddNoiseP(Int_t c, Float_t n) { fNoisP.AddAt(n,c);}
26 TArrayF GetNoiseP() const {return fNoisP; }
27 Float_t GetNoiseP(Int_t n) {return fNoisP.At(n); }
28 void SetNNoiseN(Int_t n) { fNoisN.Set(n); }
29 void AddNoiseN(Int_t c, Float_t n) { fNoisN.AddAt(n,c);}
30 TArrayF GetNoiseN() const {return fNoisN; }
31 Float_t GetNoiseN(Int_t n) {return fNoisN.At(n); }
32
33 void SetMod(UShort_t mod) {fMod = mod;}
7ab0e0a5 34 UShort_t GetMod() const { return fMod;}
88128115 35
36protected:
37
38 UShort_t fMod; // module number (from 0 to 1535). Needed by the preprocessor to
39 // extract the information from the Detector Algorithm
40
41 TArrayF fNoisP; // Noise for P side channels
42 TArrayF fNoisN; // Noise for N side channels
43
ced4d9bc 44 private:
88128115 45
46 ClassDef(AliITSNoiseSSD,1) // Noise class for SSD
47};
fb4dfab9 48#endif