![]() |
AliRoot Core
3dc7879 (3dc7879)
|
Class to make fake calibration parameters. More...
#include <AliFMDCalibFaker.h>
Public Types | |
enum | EWhat { kZeroSuppression = 1, kSampleRate, kPedestal, kPulseGain, kDeadMap, kAltroMap, kStripRange } |
enum | { kAll } |
Public Member Functions | |
AliFMDCalibFaker (Int_t mask=kAll, const char *loc="local://cdb") | |
virtual | ~AliFMDCalibFaker () |
void | AddCalib (EWhat w) |
void | RemoveCalib (EWhat w) |
void | SetCalib (Int_t mask) |
void | SetGainSeed (Float_t g) |
void | SetThresholdFactor (Float_t t) |
void | SetPedestalRange (Float_t min, Float_t max) |
void | SetRunRange (Int_t min, Int_t max) |
void | SetDeadChance (Float_t chance) |
void | SetRate (UShort_t rate) |
void | SetZeroThreshold (UShort_t t) |
void | SetStripRange (UShort_t min, UShort_t max) |
void | SetDefaultStorage (const char *url) |
void | Exec (Option_t *option="") |
Protected Member Functions | |
virtual AliFMDCalibZeroSuppression * | MakeZeroSuppression () const |
virtual AliFMDCalibSampleRate * | MakeSampleRate () const |
virtual AliFMDCalibPedestal * | MakePedestal () const |
virtual AliFMDCalibGain * | MakePulseGain () const |
virtual AliFMDCalibDeadMap * | MakeDeadMap () const |
virtual AliFMDAltroMapping * | MakeAltroMap () const |
virtual AliFMDCalibStripRange * | MakeStripRange () const |
virtual Float_t | MakeNoise (Char_t ring, UShort_t str) const |
Protected Attributes | |
Long_t | fMask |
Float_t | fGain |
Float_t | fThresholdFactor |
Float_t | fThreshold |
Float_t | fPedestalMin |
Float_t | fPedestalMax |
Float_t | fDeadChance |
UShort_t | fRate |
UShort_t | fZeroThreshold |
Int_t | fRunMin |
Int_t | fRunMax |
UShort_t | fStripMin |
UShort_t | fStripMax |
Class to make fake calibration parameters.
Definition at line 38 of file AliFMDCalibFaker.h.
anonymous enum |
Enumerator | |
---|---|
kAll |
All parameters |
Definition at line 58 of file AliFMDCalibFaker.h.
What to make
Enumerator | |
---|---|
kZeroSuppression |
Zero suppressio threshold |
kSampleRate |
Sample rate |
kPedestal |
Pedestals |
kPulseGain |
Gain |
kDeadMap |
Dead map |
kAltroMap |
Hardware map |
kStripRange |
Strip range |
Definition at line 42 of file AliFMDCalibFaker.h.
AliFMDCalibFaker::AliFMDCalibFaker | ( | Int_t | mask = kAll , |
const char * | loc = "local://cdb" |
||
) |
Constructor
mask | Bit mask of what to make |
loc | Where to store the results |
Definition at line 58 of file AliFMDCalibFaker.cxx.
|
inlinevirtual |
Destructor
Definition at line 68 of file AliFMDCalibFaker.h.
|
inline |
Add a parameter to output
w | Bit of parameter |
Definition at line 71 of file AliFMDCalibFaker.h.
void AliFMDCalibFaker::Exec | ( | Option_t * | option = "" | ) |
Make the fake calibration parameters
option | Not used |
Definition at line 89 of file AliFMDCalibFaker.cxx.
Referenced by MakeCalibration(), and SetDefaultStorage().
|
protectedvirtual |
Make a hardware map
Definition at line 347 of file AliFMDCalibFaker.cxx.
Referenced by Exec(), and SetDefaultStorage().
|
protectedvirtual |
Make dead channel parameters
Definition at line 266 of file AliFMDCalibFaker.cxx.
Referenced by Exec(), and SetDefaultStorage().
|
protectedvirtual |
Definition at line 214 of file AliFMDCalibFaker.cxx.
Referenced by MakePedestal(), and SetDefaultStorage().
|
protectedvirtual |
Make pedestal parameters
Definition at line 241 of file AliFMDCalibFaker.cxx.
Referenced by Exec(), and SetDefaultStorage().
|
protectedvirtual |
Make gain parameters
Definition at line 190 of file AliFMDCalibFaker.cxx.
Referenced by Exec(), and SetDefaultStorage().
|
protectedvirtual |
Make sample rate parameters
Definition at line 311 of file AliFMDCalibFaker.cxx.
Referenced by Exec(), and SetDefaultStorage().
|
protectedvirtual |
Make a strip range
Definition at line 329 of file AliFMDCalibFaker.cxx.
Referenced by Exec(), and SetDefaultStorage().
|
protectedvirtual |
Make zero suppression parameters
Definition at line 290 of file AliFMDCalibFaker.cxx.
Referenced by Exec(), and SetDefaultStorage().
|
inline |
Remove a parameter from output
w | Bit of parameter |
Definition at line 74 of file AliFMDCalibFaker.h.
|
inline |
Set the bit mask of what to make
mask | bit mask |
Definition at line 77 of file AliFMDCalibFaker.h.
|
inline |
Set the likelyness that a strip is dead.
chance | Chance of dead channel. |
Definition at line 105 of file AliFMDCalibFaker.h.
Referenced by MakeCalibration().
|
inline |
Set the default output storage. It must be a CDB URL.
url | CDB URL. |
Definition at line 122 of file AliFMDCalibFaker.h.
|
inline |
Set seed for random gain. The gain is distributed flatly from 90 to 110 percent of the seed.
g | Seed for gain |
Definition at line 81 of file AliFMDCalibFaker.h.
Referenced by MakeCalibration().
|
inline |
Set the limits for the random pedestal. The pedestal values are randomly distributed in the range
min | Minimum of range |
max | Maximum of range |
Definition at line 90 of file AliFMDCalibFaker.h.
Referenced by MakeCalibration().
|
inline |
Set Sample rate
rate | Rate |
Definition at line 108 of file AliFMDCalibFaker.h.
Referenced by MakeCalibration().
|
inline |
Set run validty range
min | Minimum run number |
max | Maximum run number |
Definition at line 98 of file AliFMDCalibFaker.h.
Referenced by MakeCalibration().
|
inline |
Set strip validty range
min | Minimum strip number |
max | Maximum strip number |
Definition at line 115 of file AliFMDCalibFaker.h.
Referenced by MakeCalibration().
|
inline |
Set the threshold factor. The actual threshold is the gain seed times the factor
t | Factor |
Definition at line 85 of file AliFMDCalibFaker.h.
Referenced by MakeCalibration().
|
inline |
Set the zero suppression threshold
t | Threshold (in ADC counts) |
Definition at line 111 of file AliFMDCalibFaker.h.
Referenced by MakeCalibration().
|
protected |
Definition at line 156 of file AliFMDCalibFaker.h.
Referenced by Exec(), MakeDeadMap(), and SetDeadChance().
|
protected |
Definition at line 151 of file AliFMDCalibFaker.h.
Referenced by Exec(), MakePulseGain(), and SetGainSeed().
|
protected |
Definition at line 150 of file AliFMDCalibFaker.h.
Referenced by AddCalib(), Exec(), RemoveCalib(), and SetCalib().
|
protected |
Definition at line 155 of file AliFMDCalibFaker.h.
Referenced by Exec(), MakePedestal(), and SetPedestalRange().
|
protected |
Definition at line 154 of file AliFMDCalibFaker.h.
Referenced by Exec(), MakePedestal(), and SetPedestalRange().
|
protected |
Definition at line 157 of file AliFMDCalibFaker.h.
Referenced by Exec(), MakeSampleRate(), and SetRate().
|
protected |
Definition at line 160 of file AliFMDCalibFaker.h.
Referenced by Exec(), and SetRunRange().
|
protected |
Definition at line 159 of file AliFMDCalibFaker.h.
Referenced by Exec(), and SetRunRange().
|
protected |
Definition at line 162 of file AliFMDCalibFaker.h.
Referenced by MakeStripRange(), and SetStripRange().
|
protected |
Definition at line 161 of file AliFMDCalibFaker.h.
Referenced by MakeStripRange(), and SetStripRange().
|
protected |
Definition at line 153 of file AliFMDCalibFaker.h.
Referenced by Exec(), and MakePulseGain().
|
protected |
Definition at line 152 of file AliFMDCalibFaker.h.
Referenced by Exec(), and SetThresholdFactor().
|
protected |
Definition at line 158 of file AliFMDCalibFaker.h.
Referenced by Exec(), MakeZeroSuppression(), and SetZeroThreshold().