]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSOnlineSDDTP.h
Typo corrected in date of mods in history files and slight mods
[u/mrichter/AliRoot.git] / ITS / AliITSOnlineSDDTP.h
CommitLineData
348f80b7 1#ifndef ALIITSONLINESDDTP_H
2#define ALIITSONLINESDDTP_H
3
4
5///////////////////////////////////////////////////////////////////
6// //
7// Class used for SDD Test Pulse analysis //
8// Origin: F.Prino, Torino, prino@to.infn.it //
9// //
10///////////////////////////////////////////////////////////////////
11
0e5e647a 12#include "AliITSOnlineSDD.h"
348f80b7 13
14class TH2F;
15class TGraph;
16class AliITSOnlineSDDTP : public AliITSOnlineSDD {
17
18 public:
19 AliITSOnlineSDDTP();
20 AliITSOnlineSDDTP(Int_t mod, Int_t sid,Float_t xDAQ);
21 virtual ~AliITSOnlineSDDTP();
22 void Reset();
23 void AddEvent(TH2F* hrawd);
24 void ValidateAnodes();
25 void ReadBaselines();
26
27 void SetNSigmaGain(Float_t sig=3.){fNSigmaGain=sig;}
28 Bool_t IsAnodeGood(Int_t iAnode)const{ return fGoodAnode[iAnode];}
29 Int_t GetNEvents() const {return fNEvents;}
30 Float_t GetChannelGain(Int_t iAnode)const{
31 if(fNEvents>0) return fSumTPPeak[iAnode]/fNEvents/fDAQ;
32 else return 0;
33 }
34 void StatGain(Float_t &mean, Float_t &rms);
35 void WriteToFXS();
36
37 protected:
38
39 private:
40 Int_t fNEvents;
41 Float_t fDAQ;
42 Bool_t fGoodAnode[fgkNAnodes];
43 Float_t fBaseline[fgkNAnodes];
44 Float_t fSumTPPeak[fgkNAnodes];
45 Float_t fTPPos[fgkNAnodes];
46 Float_t fNSigmaGain;
47
48 ClassDef(AliITSOnlineSDDTP,1);
49};
50#endif