1 #ifndef ALIFMDCALIBFAKER_H
2 #define ALIFMDCALIBFAKER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
6 * Latest changes by Christian Holm Christensen <cholm@nbi.dk>
8 * See cxx source for full Copyright notice
11 //____________________________________________________________________
13 // Class to make fake calibration parameters
18 #include "AliFMDParameters.h" // ALIFMDPARAMETERS_H
20 class AliFMDCalibFaker : public TTask
32 kAll = (1<<kZeroSuppression|1<<kSampleRate|1<<kPedestal|
33 1<<kPulseGain|1<<kDeadMap|1<<kAltroMap)
35 AliFMDCalibFaker(Int_t mask=kAll, const char* loc="local://cdb");
36 virtual ~AliFMDCalibFaker() {}
37 void AddCalib(EWhat w) { SETBIT(fMask, w); }
38 void RemoveCalib(EWhat w) { SETBIT(fMask, w); }
39 void SetCalib(Int_t mask) { fMask = mask; }
40 void SetGainSeed(Float_t g) { fGain = g; }
41 void SetThresholdFactor(Float_t t) { fThresholdFactor = t; }
42 void SetPedestalRange(Float_t min, Float_t max)
45 fPedestalMax = (max < min ? min : max);
47 void SetRunRange(Int_t min, Int_t max)
50 fRunMax = (max < min ? min : max);
52 void SetDeadChance(Float_t chance) { fDeadChance = chance; }
53 void SetRate(UShort_t rate) { fRate = rate; }
54 void SetZeroThreshold(UShort_t t) { fZeroThreshold = t; }
55 void SetDefaultStorage(const char* url) { SetTitle(url); }
56 void Exec(Option_t* option="");
58 virtual AliFMDCalibZeroSuppression* MakeZeroSuppression();
59 virtual AliFMDCalibSampleRate* MakeSampleRate();
60 virtual AliFMDCalibPedestal* MakePedestal();
61 virtual AliFMDCalibGain* MakePulseGain();
62 virtual AliFMDCalibDeadMap* MakeDeadMap();
63 virtual AliFMDAltroMapping* MakeAltroMap();
65 Long_t fMask; // What to write
66 Float_t fGain; // Gain
67 Float_t fThresholdFactor; // Threshold factor
68 Float_t fThreshold; // Threshold
69 Float_t fPedestalMin; // Min pedestal
70 Float_t fPedestalMax; // Max pedestal
71 Float_t fDeadChance; // Chance of dead channel
72 UShort_t fRate; // Sample rate
73 UShort_t fZeroThreshold; // Zero suppression threshold
77 ClassDef(AliFMDCalibFaker,0)
81 //____________________________________________________________________