3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
6 * See cxx source for full Copyright notice
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.
13 #include "AliFMDBaseDA.h"
15 #include "TObjArray.h"
16 #include "TGraphErrors.h"
18 class AliFMDGainDA: public AliFMDBaseDA {
23 AliFMDGainDA(const AliFMDGainDA & gainDA) ;
24 AliFMDGainDA& operator = (const AliFMDGainDA & gainDA) ;
25 virtual ~AliFMDGainDA();
27 void SetPulseSize(Int_t pulseSize = 32) {fPulseSize = pulseSize; }
28 void SetMaxPulse(Int_t highPulse = 256) {fHighPulse = highPulse; }
29 void SetPulseLength(Int_t pulseLength = 100) {fPulseLength = pulseLength; }
30 void SetNumberOfStrips(Int_t nStrips) {fNumberOfStripsPerChip = nStrips;}
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();
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);
50 Int_t fEventsPerChannel;
52 Int_t fCurrentChannel;
53 Int_t fNumberOfStripsPerChip;
55 ClassDef(AliFMDGainDA,0)