]> git.uio.no Git - u/mrichter/AliRoot.git/blame - FMD/AliFMDGainDA.h
Allowed for seperate gain analysis on the ten halfrings and expanded the SOD information
[u/mrichter/AliRoot.git] / FMD / AliFMDGainDA.h
CommitLineData
18216140 1#ifndef ALIFMDGAINDA_H
2#define ALIFMDGAINDA_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
4 * reserved.
5 *
6 * See cxx source for full Copyright notice
7 */
8// This class implements the Gain detector algorithm (DA) for the FMD.
9// The gain is the response of the VA chips to a known pulse and has to be
10// calculated strip-by-strip, pulse-by-pulse.
11
12
13#include "AliFMDBaseDA.h"
14#include "TH1.h"
15#include "TObjArray.h"
16#include "TGraphErrors.h"
17
18class AliFMDGainDA: public AliFMDBaseDA {
19
20 public:
21
22 AliFMDGainDA() ;
23 AliFMDGainDA(const AliFMDGainDA & gainDA) ;
ee3db409 24 // AliFMDGainDA& operator = (const AliFMDGainDA & gainDA) ;
18216140 25 virtual ~AliFMDGainDA();
26 void Init();
427e8f99 27 // void SetPulseSize(Int_t pulseSize = 32) {fPulseSize = pulseSize; }
18216140 28 void SetMaxPulse(Int_t highPulse = 256) {fHighPulse = highPulse; }
427e8f99 29 // void SetPulseLength(Int_t pulseLength = 100) {fPulseLength = pulseLength; }
18216140 30 void SetNumberOfStrips(Int_t nStrips) {fNumberOfStripsPerChip = nStrips;}
31
32 protected:
33
34 void AddChannelContainer(TObjArray* sectorArray, UShort_t det, Char_t ring, UShort_t sec, UShort_t strip);
35 void FillChannels(AliFMDDigit* digit);
36 void Analyse(UShort_t det, Char_t ring, UShort_t sec, UShort_t strip);
37 void WriteHeaderToFile();
38 void UpdatePulseAndADC(UShort_t det, Char_t ring, UShort_t sec, UShort_t strip);
39 void ResetPulseAndUpdateChannel();
40 void FinishEvent();
41
42 private:
43
44 TH1S* GetChannelHistogram(UShort_t det, Char_t ring, UShort_t sec, UShort_t strip);
45 TGraphErrors* GetChannel(UShort_t det, Char_t ring, UShort_t sec, UShort_t strip);
46 TObjArray fGainArray;
427e8f99 47 // Int_t fPulseSize;
18216140 48 Int_t fHighPulse;
427e8f99 49 //Int_t fPulseLength;
50 TArrayS fEventsPerChannel;
51 TArrayS fCurrentPulse;
52 TArrayS fCurrentChannel;
18216140 53 Int_t fNumberOfStripsPerChip;
54
55 ClassDef(AliFMDGainDA,0)
56
57};
58#endif