AliRoot Core  3dc7879 (3dc7879)
AliFMDCalibFaker.h
Go to the documentation of this file.
1 #ifndef ALIFMDCALIBFAKER_H
2 #define ALIFMDCALIBFAKER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
4  * reserved.
5  *
6  * Latest changes by Christian Holm Christensen <cholm@nbi.dk>
7  *
8  * See cxx source for full Copyright notice
9  */
16 //____________________________________________________________________
17 //
18 // Class to make fake calibration parameters
19 // Used for populating inital data base
20 // Utility class
21 //
22 #ifndef ROOT_TTask
23 # include <TTask.h>
24 #endif
25 class AliFMDParameters;
26 #include "AliFMDCalibFwd.h"
27 
38 class AliFMDCalibFaker : public TTask
39 {
40 public:
42  enum EWhat {
57  };
58  enum {
62  };
66  AliFMDCalibFaker(Int_t mask=kAll, const char* loc="local://cdb");
68  virtual ~AliFMDCalibFaker() {}
71  void AddCalib(EWhat w) { SETBIT(fMask, w); }
74  void RemoveCalib(EWhat w) { SETBIT(fMask, w); }
77  void SetCalib(Int_t mask) { fMask = mask; }
81  void SetGainSeed(Float_t g) { fGain = g; }
85  void SetThresholdFactor(Float_t t) { fThresholdFactor = t; }
90  void SetPedestalRange(Float_t min, Float_t max)
91  {
92  fPedestalMin = min;
93  fPedestalMax = (max < min ? min : max);
94  }
98  void SetRunRange(Int_t min, Int_t max)
99  {
100  fRunMin = min;
101  fRunMax = (max < min ? min : max);
102  }
105  void SetDeadChance(Float_t chance) { fDeadChance = chance; }
108  void SetRate(UShort_t rate) { fRate = rate; }
111  void SetZeroThreshold(UShort_t t) { fZeroThreshold = t; }
115  void SetStripRange(UShort_t min, UShort_t max)
116  {
117  fStripMin = min;
118  fStripMax = (max < min ? min : max);
119  }
122  void SetDefaultStorage(const char* url) { SetTitle(url); }
125  void Exec(Option_t* option="");
126 protected:
132  virtual AliFMDCalibSampleRate* MakeSampleRate() const;
135  virtual AliFMDCalibPedestal* MakePedestal() const;
138  virtual AliFMDCalibGain* MakePulseGain() const;
141  virtual AliFMDCalibDeadMap* MakeDeadMap() const;
144  virtual AliFMDAltroMapping* MakeAltroMap() const;
147  virtual AliFMDCalibStripRange* MakeStripRange() const;
148  virtual Float_t MakeNoise(Char_t ring, UShort_t str) const;
149 
150  Long_t fMask; // What to write
151  Float_t fGain; // Gain
152  Float_t fThresholdFactor; // Threshold factor
153  Float_t fThreshold; // Threshold
154  Float_t fPedestalMin; // Min pedestal
155  Float_t fPedestalMax; // Max pedestal
156  Float_t fDeadChance; // Chance of dead channel
157  UShort_t fRate; // Sample rate
158  UShort_t fZeroThreshold; // Zero suppression threshold
159  Int_t fRunMin; // Min run number
160  Int_t fRunMax; // Max run number
161  UShort_t fStripMin; // Min strip read out
162  UShort_t fStripMax; // Max strip read out
163 
164  ClassDef(AliFMDCalibFaker,0)
165 };
166 
167 #endif
168 //____________________________________________________________________
169 //
170 // Local Variables:
171 // mode: C++
172 // End:
173 //
174 // EOF
175 //
176 
void AddCalib(EWhat w)
void RemoveCalib(EWhat w)
Map of an integer per strip.
void SetThresholdFactor(Float_t t)
virtual AliFMDCalibStripRange * MakeStripRange() const
virtual AliFMDCalibZeroSuppression * MakeZeroSuppression() const
This class is a singleton that handles various parameters of the FMD detectors. This class reads from...
virtual ~AliFMDCalibFaker()
virtual AliFMDCalibSampleRate * MakeSampleRate() const
void SetGainSeed(Float_t g)
Gain value and width for each strip in the FMD.
void SetCalib(Int_t mask)
virtual AliFMDCalibGain * MakePulseGain() const
Per digitizer card pulser calibration.
void SetPedestalRange(Float_t min, Float_t max)
virtual AliFMDAltroMapping * MakeAltroMap() const
MAp of per strip boolean values.
Definition: AliFMDBoolMap.h:29
Class that encodes a map to/from ALTRO hardware address to FMD detector coordinates.
virtual AliFMDCalibDeadMap * MakeDeadMap() const
Class to make fake calibration parameters.
void Exec(Option_t *option="")
void SetDefaultStorage(const char *url)
void SetRate(UShort_t rate)
Per digitizer card pulser calibration.
void SetRunRange(Int_t min, Int_t max)
virtual AliFMDCalibPedestal * MakePedestal() const
AliFMDCalibFaker(Int_t mask=kAll, const char *loc="local://cdb")
void SetDeadChance(Float_t chance)
virtual Float_t MakeNoise(Char_t ring, UShort_t str) const
Pedestal value and width for each strip in the FMD.
void SetStripRange(UShort_t min, UShort_t max)
void SetZeroThreshold(UShort_t t)