![]() |
AliRoot Core
3dc7879 (3dc7879)
|
This class is a singleton that handles various parameters of the FMD detectors. This class reads from the Conditions DB to get the various parameters, which code can then request from here. In that way, all code uses the same data, and the interface is consistent. More...
#include <AliFMDParameters.h>
Public Types | |
enum | What { kPulseGain = 0x1, kPedestal = 0x2, kDeadMap = 0x4, kSampleRate = 0x8, kZeroSuppression = 0x10, kAltroMap = 0x20, kStripRange = 0x40 } |
enum | { kAll } |
Public Member Functions | |
UShort_t | Init (Bool_t forceReInit=kFALSE, UInt_t what=kAll) |
UShort_t | Init (AliFMDPreprocessor *pp, Bool_t forceReInit=kFALSE, UInt_t what=kAll) |
UShort_t | Init (const char *path, Bool_t forceReInit=kFALSE, UInt_t what=kAll) |
void | MakeDeadMap (Float_t maxNoise=10, Float_t minGain=.1, Float_t maxGain=10) |
void | Print (Option_t *option="A") const |
void | Draw (Option_t *option="pedestal") |
Set various `Fixed' parameters | |
void | SetVA1MipRange (UShort_t r=20) |
void | SetAltroChannelSize (UShort_t s=1024) |
void | SetChannelsPerAltro (UShort_t size=128) |
void | SetPedestalFactor (Float_t f=3) |
void | SetZSPreSamples (UShort_t n=1) |
void | SetZSPostSamples (UShort_t n=1) |
void | SetZSPedSubtract (Bool_t use=kTRUE) |
Set various variable parameter defaults | |
void | SetZeroSuppression (UShort_t s=1) |
void | SetSampleRate (UShort_t r=2) |
void | SetSampleRate (AliFMDCalibSampleRate *r) |
void | SetPedestal (Float_t p=100) |
void | SetPedestal (AliFMDCalibPedestal *p) |
void | SetPedestalWidth (Float_t w=2) |
void | SetThreshold (Float_t t=0) |
void | SetStripRange (UShort_t min=0, UShort_t max=127) |
void | SetStripRange (AliFMDCalibStripRange *r) |
void | UseCompleteHeader (Bool_t yes=kTRUE) |
void | SetGain (AliFMDCalibGain *g) |
void | SetGain (Float_t g=2) |
Get `Fixed' various parameters | |
UShort_t | GetVA1MipRange () const |
UShort_t | GetAltroChannelSize () const |
UShort_t | GetChannelsPerAltro () const |
Float_t | GetEdepMip () const |
Float_t | GetDACPerMIP () const |
Float_t | GetPedestalFactor () const |
UShort_t | GetZSPreSamples () const |
UShort_t | GetZSPostSamples () const |
Bool_t | IsZSPedSubtract () const |
Various varible conditions | |
Bool_t | IsDead (UShort_t detector, Char_t ring, UShort_t sector, UShort_t strip) const |
Float_t | GetThreshold () const |
Float_t | GetPulseGain (UShort_t detector, Char_t ring, UShort_t sector, UShort_t strip) const |
Float_t | GetPedestal (UShort_t detector, Char_t ring, UShort_t sector, UShort_t strip) const |
Float_t | GetPedestalWidth (UShort_t detector, Char_t ring, UShort_t sector, UShort_t strip) const |
UShort_t | GetZeroSuppression (UShort_t detector, Char_t ring, UShort_t sector, UShort_t strip) const |
UShort_t | GetSampleRate (UShort_t detector, Char_t ring, UShort_t sector, UShort_t strip) const |
UShort_t | GetMinStrip (UShort_t detector, Char_t ring, UShort_t sector, UShort_t strip) const |
UShort_t | GetMaxStrip (UShort_t detector, Char_t ring, UShort_t sector, UShort_t strip) const |
UShort_t | GetPreSamples (UShort_t, Char_t, UShort_t, UShort_t) const |
Hardware to detector translation (and inverse) | |
Bool_t | Hardware2Detector (UShort_t ddl, UShort_t board, UShort_t altro, UShort_t chan, UShort_t timebin, UShort_t &det, Char_t &ring, UShort_t &sec, Short_t &str, UShort_t &sam) const |
Bool_t | Hardware2Detector (UShort_t ddl, UShort_t hwaddr, UShort_t timebin, UShort_t &det, Char_t &ring, UShort_t &sec, Short_t &str, UShort_t &sam) const |
Bool_t | Detector2Hardware (UShort_t det, Char_t ring, UShort_t sec, UShort_t str, UShort_t sam, UShort_t &ddl, UShort_t &board, UShort_t &altro, UShort_t &channel, UShort_t &timebin) const |
Bool_t | Detector2Hardware (UShort_t det, Char_t ring, UShort_t sec, UShort_t str, UShort_t sam, UShort_t &ddl, UShort_t &hwaddr, UShort_t &timebin) const |
AliFMDAltroMapping * | GetAltroMap () const |
Bool_t | HasCompleteHeader () const |
Static Public Member Functions | |
static AliFMDParameters * | Instance () |
static const char * | PulseGainPath () |
static const char * | PedestalPath () |
static const char * | DeadPath () |
static const char * | SampleRatePath () |
static const char * | AltroMapPath () |
static const char * | ZeroSuppressionPath () |
static const char * | StripRangePath () |
static const char * | GetPedestalShuttleID () |
static const char * | GetGainShuttleID () |
static const char * | GetConditionsShuttleID () |
Protected Member Functions | |
AliFMDParameters () | |
AliFMDParameters (const AliFMDParameters &o) | |
AliFMDParameters & | operator= (const AliFMDParameters &) |
virtual | ~AliFMDParameters () |
Bool_t | CheckFile (const char *prefix, const char *path, int number, TString &f) const |
AliCDBEntry * | GetEntry (const char *path, AliFMDPreprocessor *pp, Bool_t fatal=kTRUE) const |
UShort_t | InitPulseGain (AliFMDPreprocessor *pp=0) |
UShort_t | InitPedestal (AliFMDPreprocessor *pp=0) |
UShort_t | InitDeadMap (AliFMDPreprocessor *pp=0) |
UShort_t | InitSampleRate (AliFMDPreprocessor *pp=0) |
UShort_t | InitZeroSuppression (AliFMDPreprocessor *pp=0) |
UShort_t | InitAltroMap (AliFMDPreprocessor *pp=0) |
UShort_t | InitStripRange (AliFMDPreprocessor *pp=0) |
Bool_t | CheckForNewRun () |
Protected Attributes | |
Bool_t | fIsInit |
const Float_t | fkSiDeDxMip |
UShort_t | fVA1MipRange |
UShort_t | fAltroChannelSize |
UShort_t | fChannelsPerAltro |
Float_t | fPedestalFactor |
UShort_t | fZSPre |
UShort_t | fZSPost |
Bool_t | fZSPedSubtract |
Float_t | fFixedPedestal |
Float_t | fFixedPedestalWidth |
UShort_t | fFixedZeroSuppression |
UShort_t | fFixedSampleRate |
Float_t | fFixedThreshold |
UShort_t | fFixedMinStrip |
UShort_t | fFixedMaxStrip |
Float_t | fFixedPulseGain |
Float_t | fEdepMip |
Gain (cached) More... | |
Bool_t | fHasCompleteHeader |
Cache of energy loss for a MIP. More... | |
AliFMDCalibZeroSuppression * | fZeroSuppression |
AliFMDCalibSampleRate * | fSampleRate |
AliFMDCalibPedestal * | fPedestal |
AliFMDCalibGain * | fPulseGain |
AliFMDCalibDeadMap * | fDeadMap |
AliFMDAltroMapping * | fAltroMap |
AliFMDCalibStripRange * | fStripRange |
Int_t | fRunNo |
Static Protected Attributes | |
static AliFMDParameters * | fgInstance = 0 |
static const char * | fgkPulseGain = "FMD/Calib/PulseGain" |
static const char * | fgkPedestal = "FMD/Calib/Pedestal" |
static const char * | fgkDead = "FMD/Calib/Dead" |
static const char * | fgkSampleRate = "FMD/Calib/SampleRate" |
static const char * | fgkAltroMap = "FMD/Calib/AltroMap" |
static const char * | fgkZeroSuppression = "FMD/Calib/ZeroSuppression" |
static const char * | fgkStripRange = "FMD/Calib/StripRange" |
static const char * | fkPedestalShuttleID = "pedestals" |
static const char * | fkGainShuttleID = "gains" |
static const char * | fkConditionsShuttleID = "conditions" |
This class is a singleton that handles various parameters of the FMD detectors. This class reads from the Conditions DB to get the various parameters, which code can then request from here. In that way, all code uses the same data, and the interface is consistent.
Some of the parameter managed are
fPedestal
, fPedestalWidth
Mean and width of the pedestal. The pedestal is simulated by a Guassian, but derived classes my override MakePedestal to simulate it differently (or pick it up from a database).fVA1MipRange
The dymamic MIP range of the VA1_ALICE pre-amplifier chipfAltroChannelSize
The largest number plus one that can be stored in one channel in one time step in the ALTRO ADC chip.fSampleRate
How many times the ALTRO ADC chip samples the VA1_ALICE pre-amplifier signal. The VA1_ALICE chip is read-out at 10MHz, while it's possible to drive the ALTRO chip at 25MHz. That means, that the ALTRO chip can have time to sample each VA1_ALICE signal up to 2 times. Although it's not certain this feature will be used in the production, we'd like have the option, and so it should be reflected in the code. Definition at line 66 of file AliFMDParameters.h.
anonymous enum |
Enumerator | |
---|---|
kAll |
Definition at line 86 of file AliFMDParameters.h.
Enumeration of things to initialize
Definition at line 70 of file AliFMDParameters.h.
|
protected |
CTOR
Definition at line 85 of file AliFMDParameters.cxx.
Referenced by GetConditionsShuttleID(), and Instance().
|
inlineprotected |
CTOR
Definition at line 618 of file AliFMDParameters.h.
|
inlineprotectedvirtual |
DTOR
Definition at line 657 of file AliFMDParameters.h.
|
inlinestatic |
Definition at line 603 of file AliFMDParameters.h.
Referenced by AliFMDCalibFaker::Exec(), and FixOCDBEntries().
|
protected |
Check if the file prefixnumber exists in path, and write the full path to f.
prefix | File prefix (cond, peds, gains, ...) |
path | Path to files |
number | Detector number (1, 2, or 3) |
f | On return full path to file (if found) |
true
if file exists and is readable, false
otherwise Definition at line 206 of file AliFMDParameters.cxx.
Referenced by Init().
|
protected |
Definition at line 134 of file AliFMDParameters.cxx.
Referenced by Init().
|
inlinestatic |
Definition at line 601 of file AliFMDParameters.h.
Referenced by AliFMDCalibFaker::Exec(), and FixOCDBEntries().
Bool_t AliFMDParameters::Detector2Hardware | ( | UShort_t | det, |
Char_t | ring, | ||
UShort_t | sec, | ||
UShort_t | str, | ||
UShort_t | sam, | ||
UShort_t & | ddl, | ||
UShort_t & | board, | ||
UShort_t & | altro, | ||
UShort_t & | channel, | ||
UShort_t & | timebin | ||
) | const |
Map a detector index into a hardware address.
det | The detector # |
ring | The ring ID |
sec | The sector # |
str | The strip # |
sam | The sample number |
ddl | On return, hardware DDL number |
board | On return, the FEC board address (local to DDL) |
altro | On return, the ALTRO number (local to FEC) |
channel | On return, the channel number (local to ALTRO) |
timebin | On return, the timebin number (local to ALTRO) |
true
on success, false otherwise Definition at line 1228 of file AliFMDParameters.cxx.
Referenced by AliFMDPedestalDA::Analyse(), Draw(), GetPreSamples(), Print(), ReadBack(), TestHWMap(), AliFMDRawWriter::WriteDigits(), and AliFMDRawWriter::ZeroSuppress().
Bool_t AliFMDParameters::Detector2Hardware | ( | UShort_t | det, |
Char_t | ring, | ||
UShort_t | sec, | ||
UShort_t | str, | ||
UShort_t | sam, | ||
UShort_t & | ddl, | ||
UShort_t & | hwaddr, | ||
UShort_t & | timebin | ||
) | const |
Map a detector index into a hardware address.
det | The detector # |
ring | The ring ID |
sec | The sector # |
str | The strip # |
sam | The sample number |
ddl | On return, hardware DDL number |
hwaddr | On return, hardware address. |
timebin | On return, the timebin number (local to ALTRO) |
true
on success, false otherwise Definition at line 1269 of file AliFMDParameters.cxx.
void AliFMDParameters::Draw | ( | Option_t * | option = "pedestal" | ) |
Draw parameters.
option | What to draw. Should be one of
|
Definition at line 345 of file AliFMDParameters.cxx.
|
inline |
Definition at line 312 of file AliFMDParameters.h.
Referenced by AliFMDHitDigitizer::CheckDigit(), AliFMDBaseDigitizer::ConvertToCount(), and AliFMDCalibFaker::Exec().
AliFMDAltroMapping * AliFMDParameters::GetAltroMap | ( | ) | const |
Get the map that translates hardware to detector coordinates
Definition at line 1126 of file AliFMDParameters.cxx.
Referenced by AliFMDGainDA::AddChannelContainer(), AliFMDReconstructor::ConvertDigits(), FullMapping(), GetPreSamples(), AliFMDQADataMakerRec::MakeRaws(), AliFMDRawReader::NewChannel(), AliFMDRawReader::NewDDL(), AliFMDRawReader::NewSample(), AliFMDReconstructor::ProcessDigits(), AliFMDRawReader::ReadSODevent(), AliFMDGainDA::UpdatePulseAndADC(), and AliFMDRawWriter::WriteDigits().
|
inline |
Definition at line 316 of file AliFMDParameters.h.
Referenced by AliFMDRawWriter::WriteDigits().
|
inlinestatic |
Definition at line 608 of file AliFMDParameters.h.
Referenced by AliFMDPreprocessor::GetInfoCalibration(), main(), AliFMDPreprocessor::Process(), and AliFMDBaseDA::WriteConditionsData().
Float_t AliFMDParameters::GetDACPerMIP | ( | ) | const |
This is the conversion from Digital-to-Analog-Converter setting to the number of MIPs. The number was measured in the NBI lab during August 2008.
Definition at line 1319 of file AliFMDParameters.cxx.
Referenced by AliFMDReconstructor::Adc2Energy(), AliFMDBaseDigitizer::ConvertToCount(), GetChannelsPerAltro(), AliFMDDisplay::ProcessRawCalibDigit(), and DrawCalibRaw::ProcessRawCalibDigit().
Float_t AliFMDParameters::GetEdepMip | ( | ) | const |
Definition at line 1303 of file AliFMDParameters.cxx.
Referenced by AliFMDReconstructor::Adc2Energy(), AliFMDBaseDigitizer::ConvertToCount(), AliFMDReconstructor::Energy2Multiplicity(), AliFMDCalibFaker::Exec(), GetChannelsPerAltro(), GetPulseGain(), and AliFMDQADataMakerRec::MakeRecPoints().
|
protected |
Get an entry from either global AliCDBManager or passed AliFMDPreprocessor.
path | Path to CDB object. |
pp | AliFMDPreprocessor |
fatal | If true, raise a fatal flag if we didn't get the entry. |
Definition at line 658 of file AliFMDParameters.cxx.
Referenced by InitAltroMap(), InitDeadMap(), InitPedestal(), InitPulseGain(), InitSampleRate(), InitStripRange(), and InitZeroSuppression().
|
inlinestatic |
Definition at line 607 of file AliFMDParameters.h.
Referenced by AliFMDPreprocessor::GetGainCalibration(), main(), AliFMDPreprocessor::Process(), and AliFMDGainDA::WriteHeaderToFile().
UShort_t AliFMDParameters::GetMaxStrip | ( | UShort_t | detector, |
Char_t | ring, | ||
UShort_t | sector, | ||
UShort_t | strip | ||
) | const |
Get the maximum strip in the read-out range
detector | Detector # (1-3) |
ring | Ring ID ('I' or 'O') |
sector | Sector number (0-39) |
strip | Strip number (0-511) |
Definition at line 1053 of file AliFMDParameters.cxx.
Referenced by Draw(), AliFMDCalibDrawer::GetNumber(), IsZSPedSubtract(), AliFMDRawReader::NewChannel(), Print(), and RawTest().
UShort_t AliFMDParameters::GetMinStrip | ( | UShort_t | detector, |
Char_t | ring, | ||
UShort_t | sector, | ||
UShort_t | strip | ||
) | const |
Get the minimum strip in the read-out range
detector | Detector # (1-3) |
ring | Ring ID ('I' or 'O') |
sector | Sector number (0-39) |
strip | Strip number (0-511) |
Definition at line 1028 of file AliFMDParameters.cxx.
Referenced by Detector2Hardware(), Draw(), AliFMDCalibDrawer::GetNumber(), IsZSPedSubtract(), AliFMDRawReader::NewChannel(), Print(), and RawTest().
Float_t AliFMDParameters::GetPedestal | ( | UShort_t | detector, |
Char_t | ring, | ||
UShort_t | sector, | ||
UShort_t | strip | ||
) | const |
Get mean of pedestal
detector | Detector # (1-3) |
ring | Ring ID ('I' or 'O') |
sector | Sector number (0-39) |
strip | Strip number (0-511) |
Definition at line 1078 of file AliFMDParameters.cxx.
Referenced by AliFMDHitDigitizer::CheckDigit(), deadChannels(), Draw(), AliFMDDisplay::GetADCThreshold(), AliFMDCalibDrawer::GetNumber(), IsZSPedSubtract(), MakeFakeDigits(), AliFMDBaseDigitizer::MakePedestal(), Print(), CheckAlign::ProcessDigit(), AliFMDDisplay::ProcessRawCalibDigit(), DrawCalibRaw::ProcessRawCalibDigit(), ReadBack(), AliFMDReconstructor::SubtractPedestal(), and AliFMDRawWriter::WriteDigits().
|
inline |
Definition at line 332 of file AliFMDParameters.h.
Referenced by AliFMDRawWriter::WriteDigits(), and AliFMDRawWriter::ZeroSuppress().
|
inlinestatic |
Definition at line 606 of file AliFMDParameters.h.
Referenced by AliFMDPreprocessor::GetPedestalCalibration(), main(), AliFMDPreprocessor::Process(), and AliFMDPedestalDA::WriteHeaderToFile().
Float_t AliFMDParameters::GetPedestalWidth | ( | UShort_t | detector, |
Char_t | ring, | ||
UShort_t | sector, | ||
UShort_t | strip | ||
) | const |
Width of pedestal
detector | Detector # (1-3) |
ring | Ring ID ('I' or 'O') |
sector | Sector number (0-39) |
strip | Strip number (0-511) |
Definition at line 1102 of file AliFMDParameters.cxx.
Referenced by AliFMDHitDigitizer::CheckDigit(), deadChannels(), Draw(), AliFMDDisplay::GetADCThreshold(), AliFMDPreprocessor::GetDeadChannelMap(), AliFMDCalibDrawer::GetNumber(), IsZSPedSubtract(), AliFMDBaseDigitizer::MakePedestal(), Print(), CheckAlign::ProcessDigit(), DrawCalibRaw::ProcessRawCalibDigit(), ReadBack(), AliFMDReconstructor::SubtractPedestal(), and AliFMDRawWriter::WriteDigits().
|
inline |
Get the number of pre-samples in ALTRO channels
detector | Detector # (1-3) |
ring | Ring ID ('I' or 'O') |
sector | Sector number (0-39) |
strip | Strip number (0-511) |
Definition at line 489 of file AliFMDParameters.h.
Referenced by Detector2Hardware(), Hardware2Detector(), AliFMDRawReader::NewChannel(), and AliFMDRawWriter::WriteDigits().
Float_t AliFMDParameters::GetPulseGain | ( | UShort_t | detector, |
Char_t | ring, | ||
UShort_t | sector, | ||
UShort_t | strip | ||
) | const |
Gain of pre-amp. for strip, sector, ring, detector
For simulations this is normally set to
\[ \frac{\mbox{VA1_MIP_Range}{\mbox{ALTRO_channel_size}}\mbox{MIP_Energy_Loss} \]
detector | Detector # (1-3) |
ring | Ring ID ('I' or 'O') |
sector | Sector number (0-39) |
strip | Strip number (0-511) |
Definition at line 911 of file AliFMDParameters.cxx.
Referenced by AliFMDReconstructor::Adc2Energy(), AliFMDBaseDigitizer::ConvertToCount(), deadChannels(), Draw(), AliFMDPreprocessor::GetDeadChannelMap(), AliFMDCalibDrawer::GetNumber(), IsZSPedSubtract(), Print(), AliFMDDisplay::ProcessRawCalibDigit(), DrawCalibRaw::ProcessRawCalibDigit(), and ReadBack().
UShort_t AliFMDParameters::GetSampleRate | ( | UShort_t | detector, |
Char_t | ring, | ||
UShort_t | sector, | ||
UShort_t | strip | ||
) | const |
Get the sampling rate
detector | Detector # (1-3) |
ring | Ring ID ('I' or 'O') |
sector | Sector number (0-39) |
strip | Strip number (0-511) |
Definition at line 1003 of file AliFMDParameters.cxx.
Referenced by AliFMDPedestalDA::AddChannelContainer(), AliFMDPedestalDA::Analyse(), AliFMDBaseDigitizer::ConvertToCount(), Detector2Hardware(), Draw(), AliFMDPedestalDA::FillChannels(), AliFMDCalibDrawer::GetNumber(), Hardware2Detector(), IsZSPedSubtract(), MakeFakeDigits(), AliFMDRawReader::NewChannel(), Print(), RawTest(), TestHWMap(), AliFMDRawWriter::WriteDigits(), and AliFMDRawWriter::ZeroSuppress().
Float_t AliFMDParameters::GetThreshold | ( | ) | const |
Get the threshold in the pulser gain
Definition at line 896 of file AliFMDParameters.cxx.
Referenced by Draw(), and IsZSPedSubtract().
|
inline |
Definition at line 308 of file AliFMDParameters.h.
Referenced by AliFMDHitDigitizer::CheckDigit(), and AliFMDCalibFaker::Exec().
UShort_t AliFMDParameters::GetZeroSuppression | ( | UShort_t | detector, |
Char_t | ring, | ||
UShort_t | sector, | ||
UShort_t | strip | ||
) | const |
zero suppression threshold (in ADC counts)
detector | Detector # (1-3) |
ring | Ring ID ('I' or 'O') |
sector | Sector number (0-39) |
strip | Strip number (0-511) |
Definition at line 972 of file AliFMDParameters.cxx.
Referenced by Draw(), AliFMDCalibDrawer::GetNumber(), IsZSPedSubtract(), Print(), AliFMDRawWriter::WriteDigits(), and AliFMDRawWriter::ZeroSuppress().
|
inline |
n | Number of post-samples to keep during zero-suppression - only used in simulation. |
Definition at line 342 of file AliFMDParameters.h.
Referenced by AliFMDRawWriter::ZeroSuppress().
|
inline |
n | Number of pre-samples to keep during zero-suppression - only used in simulation. |
Definition at line 337 of file AliFMDParameters.h.
Referenced by AliFMDRawWriter::ZeroSuppress().
Bool_t AliFMDParameters::Hardware2Detector | ( | UShort_t | ddl, |
UShort_t | board, | ||
UShort_t | altro, | ||
UShort_t | chan, | ||
UShort_t | timebin, | ||
UShort_t & | det, | ||
Char_t & | ring, | ||
UShort_t & | sec, | ||
Short_t & | str, | ||
UShort_t & | sam | ||
) | const |
Map a hardware address into a detector index.
ddl | Hardware DDL number |
board | FEC number |
altro | ALTRO number |
channel | Channel number |
timebin | Timebin |
det | On return, the detector # |
ring | On return, the ring ID |
sec | On return, the sector # |
str | On return, the base of strip # |
sam | On return, the sample number for this strip |
true
on success, false otherwise Definition at line 1170 of file AliFMDParameters.cxx.
Referenced by GetPreSamples(), Hardware2Detector(), RawTest(), and TestHWMap().
Bool_t AliFMDParameters::Hardware2Detector | ( | UShort_t | ddl, |
UShort_t | hwaddr, | ||
UShort_t | timebin, | ||
UShort_t & | det, | ||
Char_t & | ring, | ||
UShort_t & | sec, | ||
Short_t & | str, | ||
UShort_t & | sam | ||
) | const |
Map a hardware address into a detector index.
ddl | Hardware DDL number |
hwaddr | Hardware address. |
timebin | Timebin |
det | On return, the detector # |
ring | On return, the ring ID |
sec | On return, the sector # |
str | On return, the base of strip # |
sam | On return, the sample number for this strip |
true
on success, false otherwise Definition at line 1141 of file AliFMDParameters.cxx.
|
inline |
Whether raw data has full common data header (8 32bit words) or the older invalid format (7 32bit words with bogus entries)
Definition at line 595 of file AliFMDParameters.h.
UShort_t AliFMDParameters::Init | ( | Bool_t | forceReInit = kFALSE , |
UInt_t | what = kAll |
||
) |
Initialize the manager. This tries to read the parameters from CDB. If that fails, the class uses the hard-coded parameters.
forceReInit | Force (re-)initalize flag |
what | What to initialize |
Definition at line 146 of file AliFMDParameters.cxx.
Referenced by Convert2Raw(), deadChannels(), AliFMDHitDigitizer::Digitize(), Digits2Raw(), FixOCDBEntries(), FullMapping(), AliFMDCalibDrawer::Init(), CheckRaw::Init(), AliFMDReconstructor::Init(), CheckAlign::Init(), DrawCalibRaw::Init(), AliFMDDisplay::Init(), FindCommonModeNoise::Init(), Init(), AliFMDBaseDA::Runner::Init(), AliFMDBaseDigitizer::Init(), MakeFakeDigits(), PatternDigits(), PatternRaw(), PatternRecs(), PatternSDigits(), PrintCalibration(), AliFMDPreprocessor::Process(), AliFMD::Raw2SDigits(), ReadBack(), SpectraMonitor(), TestHWMap(), TestPedestalDA(), TestRawIO(), and TestRawReader().
UShort_t AliFMDParameters::Init | ( | AliFMDPreprocessor * | pp, |
Bool_t | forceReInit = kFALSE , |
||
UInt_t | what = kAll |
||
) |
Initialize the manager. This tries to read the parameters from CDB. If that fails, the class uses the hard-coded parameters.
pp | Preprocessor |
forceReInit | Force (re-)initalize flag |
what | What to initialize |
Definition at line 175 of file AliFMDParameters.cxx.
UShort_t AliFMDParameters::Init | ( | const char * | path, |
Bool_t | forceReInit = kFALSE , |
||
UInt_t | what = kAll |
||
) |
Initialize the manager. This will try to read some calibrations (sample rate, strip range, gains, pedestals) from local comma separated value (CSV) files in the directory pointed at by path. If they are not found, then they will be retrieved from OCDB as appropriately. Other calibrations are always read from OCDB.
The CSV files should be named as
peds
det_number.csv
gains
det_number.csv
conditions
det_number.csv
conditions
det_number.csv
where det_number is the detector number (1, 2, or 3).
path | Where to look for the CSV files |
forceReInit | Always reinitialise |
what | What calibrations to load. |
Definition at line 233 of file AliFMDParameters.cxx.
|
protected |
Initialize hardware map. Try to get it from CDB
pp | Pre-processor if called from shuttle |
Definition at line 837 of file AliFMDParameters.cxx.
Referenced by Init().
|
protected |
Initialize dead map. Try to get it from CDB
pp | Pre-processor if called from shuttle |
Definition at line 754 of file AliFMDParameters.cxx.
Referenced by Init().
|
protected |
Initialize pedestals. Try to get them from CDB
pp | Pre-processor if called from shuttle |
Definition at line 728 of file AliFMDParameters.cxx.
Referenced by Init().
|
protected |
Initialize gains. Try to get them from CDB
pp | Pre-processor if called from shuttle |
Definition at line 703 of file AliFMDParameters.cxx.
Referenced by Init().
|
protected |
Initialize sample rates. Try to get them from CDB
pp | Pre-processor if called from shuttle |
Definition at line 811 of file AliFMDParameters.cxx.
Referenced by Init().
|
protected |
Initialize strip range. Try to get it from CDB
pp | Pre-processor if called from shuttle |
Definition at line 868 of file AliFMDParameters.cxx.
Referenced by Init().
|
protected |
Initialize zero suppression thresholds. Try to get them from CDB
pp | Pre-processor if called from shuttle |
Definition at line 780 of file AliFMDParameters.cxx.
Referenced by Init().
|
static |
Singleton access
Definition at line 75 of file AliFMDParameters.cxx.
Referenced by AliFMDReconstructor::Adc2Energy(), AliFMDGainDA::AddChannelContainer(), AliFMDPedestalDA::AddChannelContainer(), AliFMDBaseDigitizer::AddContribution(), AliFMDPedestalDA::Analyse(), AliFMDHitDigitizer::CheckDigit(), Convert2Raw(), AliFMDReconstructor::ConvertDigits(), AliFMDBaseDigitizer::ConvertToCount(), deadChannels(), AliFMDHitDigitizer::Digitize(), AliFMDReconstructor::DigitizeSignal(), Digits2Raw(), AliFMDReconstructor::Energy2Multiplicity(), AliFMDCalibFaker::Exec(), AliFMDPedestalDA::FillChannels(), FixOCDBEntries(), FullMapping(), AliFMDDisplay::GetADCThreshold(), AliFMDPreprocessor::GetDeadChannelMap(), AliFMDPreprocessor::GetGainCalibration(), AliFMDPreprocessor::GetInfoCalibration(), AliFMDCalibDrawer::GetNumber(), AliFMDPreprocessor::GetPedestalCalibration(), AliFMDCalibDrawer::Init(), CheckRaw::Init(), AliFMDReconstructor::Init(), CheckAlign::Init(), DrawCalibRaw::Init(), AliFMDDisplay::Init(), FindCommonModeNoise::Init(), AliFMDBaseDA::Runner::Init(), AliFMDBaseDigitizer::Init(), main(), MakeFakeDigits(), AliFMDBaseDigitizer::MakePedestal(), AliFMDQADataMakerRec::MakeRaws(), AliFMDQADataMakerRec::MakeRecPoints(), AliFMDReconstructor::MarkDeadChannels(), AliFMDRawReader::NewChannel(), AliFMDRawReader::NewDDL(), AliFMDRawReader::NewSample(), PatternDigits(), PatternRaw(), PatternRecs(), PatternSDigits(), PrintCalibration(), AliFMDPreprocessor::Process(), CheckAlign::ProcessDigit(), AliFMDReconstructor::ProcessDigits(), AliFMDDisplay::ProcessRawCalibDigit(), DrawCalibRaw::ProcessRawCalibDigit(), AliFMDReconstructor::ProcessSignal(), AliFMD::Raw2SDigits(), RawTest(), ReadBack(), AliFMDRawReader::ReadSODevent(), SpectraMonitor(), AliFMDReconstructor::SubtractPedestal(), TestHWMap(), TestPedestalDA(), TestRawIO(), TestRawReader(), AliFMDGainDA::UpdatePulseAndADC(), AliFMDBaseDA::WriteConditionsData(), AliFMDRawWriter::WriteDigits(), AliFMDGainDA::WriteHeaderToFile(), AliFMDPedestalDA::WriteHeaderToFile(), and AliFMDRawWriter::ZeroSuppress().
Bool_t AliFMDParameters::IsDead | ( | UShort_t | detector, |
Char_t | ring, | ||
UShort_t | sector, | ||
UShort_t | strip | ||
) | const |
Whether the strip is considered dead
detector | Detector # (1-3) |
ring | Ring ID ('I' or 'O') |
sector | Sector number (0-39) |
strip | Strip number (0-511) |
true
if the strip is considered dead, false
if it's OK. Definition at line 946 of file AliFMDParameters.cxx.
Referenced by AliFMDBaseDigitizer::AddContribution(), deadChannels(), AliFMDReconstructor::DigitizeSignal(), Draw(), AliFMDCalibDrawer::GetNumber(), IsZSPedSubtract(), AliFMDReconstructor::MarkDeadChannels(), Print(), and AliFMDReconstructor::ProcessSignal().
|
inline |
use | If true, do pedestal subtraction before zero suppression - only used in simulation |
Definition at line 347 of file AliFMDParameters.h.
Referenced by AliFMDRawWriter::ZeroSuppress().
void AliFMDParameters::MakeDeadMap | ( | Float_t | maxNoise = 10 , |
Float_t | minGain = .1 , |
||
Float_t | maxGain = 10 |
||
) |
Automatically generate a dead map from the pedestals and gains. A channel is marked as dead of the noise is too high (currently more than 10 ADC counts), or the gain is unreasonable (currently larger than 10, or smaller than 0.1).
The procedure does not overwrite channels previously marked as dead - e.g., channels marked as dead in the calibration loaded from OCDB will continue to be marked as dead. That is, this procedure will never make a channel un-dead.
maxNoise | Maximum noise value before a channel is marked as dead. |
minGain | Minimum value of the calibrated gain before a channel is considered dead. |
maxGain | Maximum value of the calibrated gain before a channel is considered dead. |
Definition at line 311 of file AliFMDParameters.cxx.
|
inlineprotected |
|
inlinestatic |
Definition at line 600 of file AliFMDParameters.h.
Referenced by AliFMDCalibFaker::Exec(), and FixOCDBEntries().
void AliFMDParameters::Print | ( | Option_t * | option = "A" | ) | const |
Print all parameters.
If option contains an 'A' then everything is printed.
If the option contains the string "FMD" the function will search for detector, ring, sector, and strip numbers to print, in format
* FMD<detector><ring>[<sector>,<string>] *
The wild card '*' means all of <detector>, <ring>, <sector>, or <strip>.
option | Option string |
Definition at line 486 of file AliFMDParameters.cxx.
Referenced by AliFMDHitDigitizer::Digitize(), AliFMDBaseDigitizer::Init(), and PrintCalibration().
|
inlinestatic |
Definition at line 599 of file AliFMDParameters.h.
Referenced by AliFMDCalibFaker::Exec(), and FixOCDBEntries().
|
inlinestatic |
Definition at line 602 of file AliFMDParameters.h.
Referenced by AliFMDCalibFaker::Exec(), and FixOCDBEntries().
|
inline |
s | Maximum number of the ADC (ALTRO). This is a 10 bit ADC so, the maximum number is 1024 |
Definition at line 215 of file AliFMDParameters.h.
Referenced by AliFMDParameters().
|
inline |
size | The number of strips multiplexed into one ALTRO channel. That is, how many strips is connected to one VA1 pre-amp. |
Definition at line 221 of file AliFMDParameters.h.
Referenced by AliFMDParameters().
|
inline |
g | Gain map |
Definition at line 296 of file AliFMDParameters.h.
Referenced by AliFMDParameters(), DrawCalibRaw::Init(), and Init().
|
inline |
g | Gain map |
Definition at line 300 of file AliFMDParameters.h.
|
inline |
p | Pedestal value in ADC counts |
Definition at line 260 of file AliFMDParameters.h.
Referenced by AliFMDParameters(), DrawCalibRaw::Init(), and Init().
|
inline |
p | Pedestal map |
Definition at line 264 of file AliFMDParameters.h.
|
inline |
f | Factor to use for accepting a signal. |
Definition at line 225 of file AliFMDParameters.h.
Referenced by AliFMDParameters().
|
inline |
w | Pedestal width in ADC counts |
Definition at line 268 of file AliFMDParameters.h.
Referenced by AliFMDParameters().
|
inline |
r | How many times we oversample each strip. |
Definition at line 252 of file AliFMDParameters.h.
Referenced by AliFMDParameters(), DrawCalibRaw::Init(), Init(), AliFMDRawReader::ReadSODevent(), SpectraMonitor(), and TestHWMap().
|
inline |
r | How many times we oversample each strip. |
Definition at line 256 of file AliFMDParameters.h.
|
inline |
Range of strips read out
min | Minimum strip number (0-127). |
max | Maximum strip number (0-127). |
Definition at line 791 of file AliFMDParameters.h.
Referenced by AliFMDParameters(), DrawCalibRaw::Init(), Init(), AliFMDRawReader::ReadSODevent(), and SetThreshold().
|
inline |
set the strip range from object
r | Strip range object |
Definition at line 285 of file AliFMDParameters.h.
|
inline |
t | Threshold used for 1 MIP acceptance. |
Definition at line 272 of file AliFMDParameters.h.
Referenced by AliFMDParameters().
|
inline |
r | How many MIP signals we can fit in the VA1 pre-amps. (default and design is 20) |
Definition at line 210 of file AliFMDParameters.h.
Referenced by AliFMDParameters().
|
inline |
s | Zero suppression threshold in ADC counts |
Definition at line 248 of file AliFMDParameters.h.
Referenced by AliFMDParameters(), and Digits2Raw().
|
inline |
use | If true, do pedestal subtraction before zero suppression - only used in simulation |
Definition at line 240 of file AliFMDParameters.h.
|
inline |
n | Number of post-samples to keep during zero-suppression - only used in simulation. |
Definition at line 235 of file AliFMDParameters.h.
|
inline |
n | Number of pre-samples to keep during zero-suppression - only used in simulation. |
Definition at line 230 of file AliFMDParameters.h.
|
inlinestatic |
Definition at line 605 of file AliFMDParameters.h.
Referenced by AliFMDCalibFaker::Exec(), and FixOCDBEntries().
|
inline |
Whether raw data has full common data header (8 32bit words) or the older invalid format (7 32bit words with bogus entries)
yes | if true the raw data has complete data header |
Definition at line 292 of file AliFMDParameters.h.
Referenced by AliFMDBaseDA::Runner::Init(), and TestPedestalDA().
|
inlinestatic |
Definition at line 604 of file AliFMDParameters.h.
Referenced by AliFMDCalibFaker::Exec(), and FixOCDBEntries().
|
protected |
Definition at line 755 of file AliFMDParameters.h.
Referenced by GetAltroChannelSize(), GetPulseGain(), and SetAltroChannelSize().
|
protected |
Definition at line 782 of file AliFMDParameters.h.
Referenced by AliFMDParameters(), Detector2Hardware(), GetAltroMap(), Hardware2Detector(), and InitAltroMap().
|
protected |
Definition at line 756 of file AliFMDParameters.h.
Referenced by GetChannelsPerAltro(), and SetChannelsPerAltro().
|
protected |
Definition at line 781 of file AliFMDParameters.h.
Referenced by InitDeadMap(), IsDead(), and MakeDeadMap().
|
mutableprotected |
|
protected |
Definition at line 768 of file AliFMDParameters.h.
Referenced by GetMaxStrip(), and SetStripRange().
|
protected |
Definition at line 767 of file AliFMDParameters.h.
Referenced by GetMinStrip(), and SetStripRange().
|
protected |
Definition at line 762 of file AliFMDParameters.h.
Referenced by GetPedestal(), and SetPedestal().
|
protected |
Definition at line 763 of file AliFMDParameters.h.
Referenced by GetPedestalWidth(), and SetPedestalWidth().
|
mutableprotected |
Definition at line 769 of file AliFMDParameters.h.
Referenced by GetPulseGain(), and SetGain().
|
protected |
Definition at line 765 of file AliFMDParameters.h.
Referenced by GetSampleRate(), and SetSampleRate().
|
protected |
Definition at line 766 of file AliFMDParameters.h.
Referenced by GetThreshold(), and SetThreshold().
|
protected |
Definition at line 764 of file AliFMDParameters.h.
Referenced by GetZeroSuppression(), InitZeroSuppression(), and SetZeroSuppression().
|
staticprotected |
|
staticprotected |
Definition at line 750 of file AliFMDParameters.h.
Referenced by AltroMapPath(), and InitAltroMap().
|
staticprotected |
Definition at line 748 of file AliFMDParameters.h.
Referenced by DeadPath(), and InitDeadMap().
|
staticprotected |
Definition at line 747 of file AliFMDParameters.h.
Referenced by InitPedestal(), and PedestalPath().
|
staticprotected |
Definition at line 746 of file AliFMDParameters.h.
Referenced by InitPulseGain(), and PulseGainPath().
|
staticprotected |
Definition at line 749 of file AliFMDParameters.h.
Referenced by InitSampleRate(), and SampleRatePath().
|
staticprotected |
Definition at line 752 of file AliFMDParameters.h.
Referenced by InitStripRange(), and StripRangePath().
|
staticprotected |
Definition at line 751 of file AliFMDParameters.h.
Referenced by InitZeroSuppression(), and ZeroSuppressionPath().
|
protected |
Cache of energy loss for a MIP.
Definition at line 771 of file AliFMDParameters.h.
Referenced by HasCompleteHeader(), and UseCompleteHeader().
|
protected |
Definition at line 744 of file AliFMDParameters.h.
Referenced by CheckForNewRun(), and Init().
|
staticprotected |
Definition at line 775 of file AliFMDParameters.h.
Referenced by GetConditionsShuttleID().
|
staticprotected |
Definition at line 774 of file AliFMDParameters.h.
Referenced by GetGainShuttleID().
|
staticprotected |
Definition at line 773 of file AliFMDParameters.h.
Referenced by GetPedestalShuttleID().
|
protected |
Definition at line 753 of file AliFMDParameters.h.
Referenced by GetEdepMip().
|
protected |
Definition at line 779 of file AliFMDParameters.h.
Referenced by GetPedestal(), GetPedestalWidth(), InitPedestal(), MakeDeadMap(), and SetPedestal().
|
protected |
Definition at line 757 of file AliFMDParameters.h.
Referenced by GetPedestalFactor(), and SetPedestalFactor().
|
protected |
Definition at line 780 of file AliFMDParameters.h.
Referenced by GetPulseGain(), GetThreshold(), InitPulseGain(), MakeDeadMap(), and SetGain().
|
protected |
Definition at line 784 of file AliFMDParameters.h.
Referenced by CheckForNewRun().
|
protected |
Definition at line 778 of file AliFMDParameters.h.
Referenced by GetSampleRate(), InitSampleRate(), and SetSampleRate().
|
protected |
Definition at line 783 of file AliFMDParameters.h.
Referenced by GetMaxStrip(), GetMinStrip(), InitStripRange(), and SetStripRange().
|
protected |
Definition at line 754 of file AliFMDParameters.h.
Referenced by GetPulseGain(), GetVA1MipRange(), and SetVA1MipRange().
|
protected |
Definition at line 777 of file AliFMDParameters.h.
Referenced by GetZeroSuppression(), and InitZeroSuppression().
|
protected |
Definition at line 760 of file AliFMDParameters.h.
Referenced by IsZSPedSubtract(), and SetZSPedSubtract().
|
protected |
Definition at line 759 of file AliFMDParameters.h.
Referenced by GetZSPostSamples(), and SetZSPostSamples().
|
protected |
Definition at line 758 of file AliFMDParameters.h.
Referenced by GetZSPreSamples(), and SetZSPreSamples().