AliRoot Core  3dc7879 (3dc7879)
AliFMDParameters Class Reference

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>

Inheritance diagram for AliFMDParameters:

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
 
AliFMDAltroMappingGetAltroMap () const
 
Bool_t HasCompleteHeader () const
 

Static Public Member Functions

static AliFMDParametersInstance ()
 
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)
 
AliFMDParametersoperator= (const AliFMDParameters &)
 
virtual ~AliFMDParameters ()
 
Bool_t CheckFile (const char *prefix, const char *path, int number, TString &f) const
 
AliCDBEntryGetEntry (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...
 
AliFMDCalibZeroSuppressionfZeroSuppression
 
AliFMDCalibSampleRatefSampleRate
 
AliFMDCalibPedestalfPedestal
 
AliFMDCalibGainfPulseGain
 
AliFMDCalibDeadMapfDeadMap
 
AliFMDAltroMappingfAltroMap
 
AliFMDCalibStripRangefStripRange
 
Int_t fRunNo
 

Static Protected Attributes

static AliFMDParametersfgInstance = 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"
 

Detailed Description

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 chip
  • fAltroChannelSize 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.

Member Enumeration Documentation

anonymous enum
Enumerator
kAll 

Definition at line 86 of file AliFMDParameters.h.

Enumeration of things to initialize

Enumerator
kPulseGain 

Pulser gain

kPedestal 

Pedestals and noise

kDeadMap 

Dead channel map

kSampleRate 

Over sampling rate

kZeroSuppression 

Zero suppression parameters

kAltroMap 

ALTRO data map

kStripRange 

Strip Range

Definition at line 70 of file AliFMDParameters.h.

Constructor & Destructor Documentation

AliFMDParameters::AliFMDParameters ( )
protected

CTOR

Definition at line 85 of file AliFMDParameters.cxx.

Referenced by GetConditionsShuttleID(), and Instance().

AliFMDParameters::AliFMDParameters ( const AliFMDParameters o)
inlineprotected

CTOR

Definition at line 618 of file AliFMDParameters.h.

virtual AliFMDParameters::~AliFMDParameters ( )
inlineprotectedvirtual

DTOR

Definition at line 657 of file AliFMDParameters.h.

Member Function Documentation

static const char* AliFMDParameters::AltroMapPath ( )
inlinestatic

Definition at line 603 of file AliFMDParameters.h.

Referenced by AliFMDCalibFaker::Exec(), and FixOCDBEntries().

Bool_t AliFMDParameters::CheckFile ( const char *  prefix,
const char *  path,
int  number,
TString &  f 
) const
protected

Check if the file prefixnumber exists in path, and write the full path to f.

Parameters
prefixFile prefix (cond, peds, gains, ...)
pathPath to files
numberDetector number (1, 2, or 3)
fOn return full path to file (if found)
Returns
true if file exists and is readable, false otherwise

Definition at line 206 of file AliFMDParameters.cxx.

Referenced by Init().

Bool_t AliFMDParameters::CheckForNewRun ( )
protected

Definition at line 134 of file AliFMDParameters.cxx.

Referenced by Init().

static const char* AliFMDParameters::DeadPath ( )
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.

Parameters
detThe detector #
ringThe ring ID
secThe sector #
strThe strip #
samThe sample number
ddlOn return, hardware DDL number
boardOn return, the FEC board address (local to DDL)
altroOn return, the ALTRO number (local to FEC)
channelOn return, the channel number (local to ALTRO)
timebinOn return, the timebin number (local to ALTRO)
Returns
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.

Parameters
detThe detector #
ringThe ring ID
secThe sector #
strThe strip #
samThe sample number
ddlOn return, hardware DDL number
hwaddrOn return, hardware address.
timebinOn return, the timebin number (local to ALTRO)
Returns
true on success, false otherwise

Definition at line 1269 of file AliFMDParameters.cxx.

void AliFMDParameters::Draw ( Option_t *  option = "pedestal")

Draw parameters.

Parameters
optionWhat to draw. Should be one of
  • dead Dead channels
  • threshold Threshold
  • gain Gain
  • pedestal Pedestal
  • noise Noise (or pedestal width)
  • zero Zero suppression
  • rate Sampling rate (VA1 clock / ALTRO clock)
  • min Minimum strip read out
  • max Maximum strip read out
  • map hardware address

Definition at line 345 of file AliFMDParameters.cxx.

UShort_t AliFMDParameters::GetAltroChannelSize ( ) const
inline
Returns
The maximum count in the ADC

Definition at line 312 of file AliFMDParameters.h.

Referenced by AliFMDHitDigitizer::CheckDigit(), AliFMDBaseDigitizer::ConvertToCount(), and AliFMDCalibFaker::Exec().

UShort_t AliFMDParameters::GetChannelsPerAltro ( ) const
inline
Returns
Number of strips muliplexed into one ADC channel

Definition at line 316 of file AliFMDParameters.h.

Referenced by AliFMDRawWriter::WriteDigits().

static const char* AliFMDParameters::GetConditionsShuttleID ( )
inlinestatic
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.

Returns
The conversion factor from DAC to ADC

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
AliCDBEntry * AliFMDParameters::GetEntry ( const char *  path,
AliFMDPreprocessor pp,
Bool_t  fatal = kTRUE 
) const
protected

Get an entry from either global AliCDBManager or passed AliFMDPreprocessor.

Parameters
pathPath to CDB object.
ppAliFMDPreprocessor
fatalIf true, raise a fatal flag if we didn't get the entry.
Returns
AliCDBEntry if found

Definition at line 658 of file AliFMDParameters.cxx.

Referenced by InitAltroMap(), InitDeadMap(), InitPedestal(), InitPulseGain(), InitSampleRate(), InitStripRange(), and InitZeroSuppression().

static const char* AliFMDParameters::GetGainShuttleID ( )
inlinestatic
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

Parameters
detectorDetector # (1-3)
ringRing ID ('I' or 'O')
sectorSector number (0-39)
stripStrip number (0-511)
Returns
Maximum strip

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

Parameters
detectorDetector # (1-3)
ringRing ID ('I' or 'O')
sectorSector number (0-39)
stripStrip number (0-511)
Returns
Minimum strip

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
Float_t AliFMDParameters::GetPedestalFactor ( ) const
inline
Returns
The factor used of signal acceptance

Definition at line 332 of file AliFMDParameters.h.

Referenced by AliFMDRawWriter::WriteDigits(), and AliFMDRawWriter::ZeroSuppress().

static const char* AliFMDParameters::GetPedestalShuttleID ( )
inlinestatic
Float_t AliFMDParameters::GetPedestalWidth ( UShort_t  detector,
Char_t  ring,
UShort_t  sector,
UShort_t  strip 
) const
UShort_t AliFMDParameters::GetPreSamples ( UShort_t  ,
Char_t  ,
UShort_t  ,
UShort_t   
) const
inline

Get the number of pre-samples in ALTRO channels

Parameters
detectorDetector # (1-3)
ringRing ID ('I' or 'O')
sectorSector number (0-39)
stripStrip number (0-511)
Returns
Maximum strip

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} \]

Parameters
detectorDetector # (1-3)
ringRing ID ('I' or 'O')
sectorSector number (0-39)
stripStrip number (0-511)
Returns
Gain of pre-amp.

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
Float_t AliFMDParameters::GetThreshold ( ) const

Get the threshold in the pulser gain

Returns
Threshold from pulser

Definition at line 896 of file AliFMDParameters.cxx.

Referenced by Draw(), and IsZSPedSubtract().

UShort_t AliFMDParameters::GetVA1MipRange ( ) const
inline
Returns
Number of MIP signals that fit inside a VA1 channel

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)

Parameters
detectorDetector # (1-3)
ringRing ID ('I' or 'O')
sectorSector number (0-39)
stripStrip number (0-511)
Returns
zero suppression threshold (in ADC counts)

Definition at line 972 of file AliFMDParameters.cxx.

Referenced by Draw(), AliFMDCalibDrawer::GetNumber(), IsZSPedSubtract(), Print(), AliFMDRawWriter::WriteDigits(), and AliFMDRawWriter::ZeroSuppress().

UShort_t AliFMDParameters::GetZSPostSamples ( ) const
inline
Parameters
nNumber of post-samples to keep during zero-suppression - only used in simulation.

Definition at line 342 of file AliFMDParameters.h.

Referenced by AliFMDRawWriter::ZeroSuppress().

UShort_t AliFMDParameters::GetZSPreSamples ( ) const
inline
Parameters
nNumber 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.

Parameters
ddlHardware DDL number
boardFEC number
altroALTRO number
channelChannel number
timebinTimebin
detOn return, the detector #
ringOn return, the ring ID
secOn return, the sector #
strOn return, the base of strip #
samOn return, the sample number for this strip
Returns
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.

Parameters
ddlHardware DDL number
hwaddrHardware address.
timebinTimebin
detOn return, the detector #
ringOn return, the ring ID
secOn return, the sector #
strOn return, the base of strip #
samOn return, the sample number for this strip
Returns
true on success, false otherwise

Definition at line 1141 of file AliFMDParameters.cxx.

Bool_t AliFMDParameters::HasCompleteHeader ( ) const
inline

Whether raw data has full common data header (8 32bit words) or the older invalid format (7 32bit words with bogus entries)

Returns
false if the raw data has incomplete data header

Definition at line 595 of file AliFMDParameters.h.

UShort_t AliFMDParameters::Init ( Bool_t  forceReInit = kFALSE,
UInt_t  what = kAll 
)
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.

Parameters
ppPreprocessor
forceReInitForce (re-)initalize flag
whatWhat to initialize
Returns
0 on success, bit mask of failed elements otherwise

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

  • Pedestals: pedsdet_number.csv
  • Gains: gainsdet_number.csv
  • Sample Rate: conditionsdet_number.csv
  • Strip Range: conditionsdet_number.csv

where det_number is the detector number (1, 2, or 3).

Parameters
pathWhere to look for the CSV files
forceReInitAlways reinitialise
whatWhat calibrations to load.
Returns
0 on success, bit mask of failed elements otherwise

Definition at line 233 of file AliFMDParameters.cxx.

UShort_t AliFMDParameters::InitAltroMap ( AliFMDPreprocessor pp = 0)
protected

Initialize hardware map. Try to get it from CDB

Parameters
ppPre-processor if called from shuttle
Returns
0 on success, error mask otherwise

Definition at line 837 of file AliFMDParameters.cxx.

Referenced by Init().

UShort_t AliFMDParameters::InitDeadMap ( AliFMDPreprocessor pp = 0)
protected

Initialize dead map. Try to get it from CDB

Parameters
ppPre-processor if called from shuttle
Returns
0 on success, error mask otherwise

Definition at line 754 of file AliFMDParameters.cxx.

Referenced by Init().

UShort_t AliFMDParameters::InitPedestal ( AliFMDPreprocessor pp = 0)
protected

Initialize pedestals. Try to get them from CDB

Parameters
ppPre-processor if called from shuttle
Returns
0 on success, error mask otherwise

Definition at line 728 of file AliFMDParameters.cxx.

Referenced by Init().

UShort_t AliFMDParameters::InitPulseGain ( AliFMDPreprocessor pp = 0)
protected

Initialize gains. Try to get them from CDB

Parameters
ppPre-processor if called from shuttle
Returns
0 on success, error mask otherwise

Definition at line 703 of file AliFMDParameters.cxx.

Referenced by Init().

UShort_t AliFMDParameters::InitSampleRate ( AliFMDPreprocessor pp = 0)
protected

Initialize sample rates. Try to get them from CDB

Parameters
ppPre-processor if called from shuttle
Returns
0 on success, error mask otherwise

Definition at line 811 of file AliFMDParameters.cxx.

Referenced by Init().

UShort_t AliFMDParameters::InitStripRange ( AliFMDPreprocessor pp = 0)
protected

Initialize strip range. Try to get it from CDB

Parameters
ppPre-processor if called from shuttle
Returns
0 on success, error mask otherwise

Definition at line 868 of file AliFMDParameters.cxx.

Referenced by Init().

UShort_t AliFMDParameters::InitZeroSuppression ( AliFMDPreprocessor pp = 0)
protected

Initialize zero suppression thresholds. Try to get them from CDB

Parameters
ppPre-processor if called from shuttle
Returns
0 on success, error mask otherwise

Definition at line 780 of file AliFMDParameters.cxx.

Referenced by Init().

AliFMDParameters * AliFMDParameters::Instance ( )
static

Singleton access

Returns
singleton

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

Parameters
detectorDetector # (1-3)
ringRing ID ('I' or 'O')
sectorSector number (0-39)
stripStrip number (0-511)
Returns
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().

Bool_t AliFMDParameters::IsZSPedSubtract ( ) const
inline
Parameters
useIf 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.

Parameters
maxNoiseMaximum noise value before a channel is marked as dead.
minGainMinimum value of the calibrated gain before a channel is considered dead.
maxGainMaximum value of the calibrated gain before a channel is considered dead.

Definition at line 311 of file AliFMDParameters.cxx.

AliFMDParameters& AliFMDParameters::operator= ( const AliFMDParameters )
inlineprotected

Assignement operator

Returns
Reference to this

Definition at line 653 of file AliFMDParameters.h.

static const char* AliFMDParameters::PedestalPath ( )
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>.

Parameters
optionOption string

Definition at line 486 of file AliFMDParameters.cxx.

Referenced by AliFMDHitDigitizer::Digitize(), AliFMDBaseDigitizer::Init(), and PrintCalibration().

static const char* AliFMDParameters::PulseGainPath ( )
inlinestatic

Definition at line 599 of file AliFMDParameters.h.

Referenced by AliFMDCalibFaker::Exec(), and FixOCDBEntries().

static const char* AliFMDParameters::SampleRatePath ( )
inlinestatic

Definition at line 602 of file AliFMDParameters.h.

Referenced by AliFMDCalibFaker::Exec(), and FixOCDBEntries().

void AliFMDParameters::SetAltroChannelSize ( UShort_t  s = 1024)
inline
Parameters
sMaximum 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().

void AliFMDParameters::SetChannelsPerAltro ( UShort_t  size = 128)
inline
Parameters
sizeThe 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().

void AliFMDParameters::SetGain ( AliFMDCalibGain g)
inline
Parameters
gGain map

Definition at line 296 of file AliFMDParameters.h.

Referenced by AliFMDParameters(), DrawCalibRaw::Init(), and Init().

void AliFMDParameters::SetGain ( Float_t  g = 2)
inline
Parameters
gGain map

Definition at line 300 of file AliFMDParameters.h.

void AliFMDParameters::SetPedestal ( Float_t  p = 100)
inline
Parameters
pPedestal value in ADC counts

Definition at line 260 of file AliFMDParameters.h.

Referenced by AliFMDParameters(), DrawCalibRaw::Init(), and Init().

void AliFMDParameters::SetPedestal ( AliFMDCalibPedestal p)
inline
Parameters
pPedestal map

Definition at line 264 of file AliFMDParameters.h.

void AliFMDParameters::SetPedestalFactor ( Float_t  f = 3)
inline
Parameters
fFactor to use for accepting a signal.

Definition at line 225 of file AliFMDParameters.h.

Referenced by AliFMDParameters().

void AliFMDParameters::SetPedestalWidth ( Float_t  w = 2)
inline
Parameters
wPedestal width in ADC counts

Definition at line 268 of file AliFMDParameters.h.

Referenced by AliFMDParameters().

void AliFMDParameters::SetSampleRate ( UShort_t  r = 2)
inline
Parameters
rHow 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().

void AliFMDParameters::SetSampleRate ( AliFMDCalibSampleRate r)
inline
Parameters
rHow many times we oversample each strip.

Definition at line 256 of file AliFMDParameters.h.

void AliFMDParameters::SetStripRange ( UShort_t  min = 0,
UShort_t  max = 127 
)
inline

Range of strips read out

Parameters
minMinimum strip number (0-127).
maxMaximum strip number (0-127).

Definition at line 791 of file AliFMDParameters.h.

Referenced by AliFMDParameters(), DrawCalibRaw::Init(), Init(), AliFMDRawReader::ReadSODevent(), and SetThreshold().

void AliFMDParameters::SetStripRange ( AliFMDCalibStripRange r)
inline

set the strip range from object

Parameters
rStrip range object

Definition at line 285 of file AliFMDParameters.h.

void AliFMDParameters::SetThreshold ( Float_t  t = 0)
inline
Parameters
tThreshold used for 1 MIP acceptance.

Definition at line 272 of file AliFMDParameters.h.

Referenced by AliFMDParameters().

void AliFMDParameters::SetVA1MipRange ( UShort_t  r = 20)
inline
Parameters
rHow 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().

void AliFMDParameters::SetZeroSuppression ( UShort_t  s = 1)
inline
Parameters
sZero suppression threshold in ADC counts

Definition at line 248 of file AliFMDParameters.h.

Referenced by AliFMDParameters(), and Digits2Raw().

void AliFMDParameters::SetZSPedSubtract ( Bool_t  use = kTRUE)
inline
Parameters
useIf true, do pedestal subtraction before zero suppression - only used in simulation

Definition at line 240 of file AliFMDParameters.h.

void AliFMDParameters::SetZSPostSamples ( UShort_t  n = 1)
inline
Parameters
nNumber of post-samples to keep during zero-suppression - only used in simulation.

Definition at line 235 of file AliFMDParameters.h.

void AliFMDParameters::SetZSPreSamples ( UShort_t  n = 1)
inline
Parameters
nNumber of pre-samples to keep during zero-suppression - only used in simulation.

Definition at line 230 of file AliFMDParameters.h.

static const char* AliFMDParameters::StripRangePath ( )
inlinestatic

Definition at line 605 of file AliFMDParameters.h.

Referenced by AliFMDCalibFaker::Exec(), and FixOCDBEntries().

void AliFMDParameters::UseCompleteHeader ( Bool_t  yes = kTRUE)
inline

Whether raw data has full common data header (8 32bit words) or the older invalid format (7 32bit words with bogus entries)

Parameters
yesif true the raw data has complete data header

Definition at line 292 of file AliFMDParameters.h.

Referenced by AliFMDBaseDA::Runner::Init(), and TestPedestalDA().

static const char* AliFMDParameters::ZeroSuppressionPath ( )
inlinestatic

Definition at line 604 of file AliFMDParameters.h.

Referenced by AliFMDCalibFaker::Exec(), and FixOCDBEntries().

Member Data Documentation

UShort_t AliFMDParameters::fAltroChannelSize
protected

Definition at line 755 of file AliFMDParameters.h.

Referenced by GetAltroChannelSize(), GetPulseGain(), and SetAltroChannelSize().

AliFMDAltroMapping* AliFMDParameters::fAltroMap
protected
UShort_t AliFMDParameters::fChannelsPerAltro
protected

Definition at line 756 of file AliFMDParameters.h.

Referenced by GetChannelsPerAltro(), and SetChannelsPerAltro().

AliFMDCalibDeadMap* AliFMDParameters::fDeadMap
protected

Definition at line 781 of file AliFMDParameters.h.

Referenced by InitDeadMap(), IsDead(), and MakeDeadMap().

Float_t AliFMDParameters::fEdepMip
mutableprotected

Gain (cached)

Definition at line 770 of file AliFMDParameters.h.

Referenced by GetEdepMip().

UShort_t AliFMDParameters::fFixedMaxStrip
protected

Definition at line 768 of file AliFMDParameters.h.

Referenced by GetMaxStrip(), and SetStripRange().

UShort_t AliFMDParameters::fFixedMinStrip
protected

Definition at line 767 of file AliFMDParameters.h.

Referenced by GetMinStrip(), and SetStripRange().

Float_t AliFMDParameters::fFixedPedestal
protected

Definition at line 762 of file AliFMDParameters.h.

Referenced by GetPedestal(), and SetPedestal().

Float_t AliFMDParameters::fFixedPedestalWidth
protected

Definition at line 763 of file AliFMDParameters.h.

Referenced by GetPedestalWidth(), and SetPedestalWidth().

Float_t AliFMDParameters::fFixedPulseGain
mutableprotected

Definition at line 769 of file AliFMDParameters.h.

Referenced by GetPulseGain(), and SetGain().

UShort_t AliFMDParameters::fFixedSampleRate
protected

Definition at line 765 of file AliFMDParameters.h.

Referenced by GetSampleRate(), and SetSampleRate().

Float_t AliFMDParameters::fFixedThreshold
protected

Definition at line 766 of file AliFMDParameters.h.

Referenced by GetThreshold(), and SetThreshold().

UShort_t AliFMDParameters::fFixedZeroSuppression
protected

Definition at line 764 of file AliFMDParameters.h.

Referenced by GetZeroSuppression(), InitZeroSuppression(), and SetZeroSuppression().

AliFMDParameters * AliFMDParameters::fgInstance = 0
staticprotected

Singleton instance

Definition at line 661 of file AliFMDParameters.h.

Referenced by Instance().

const char * AliFMDParameters::fgkAltroMap = "FMD/Calib/AltroMap"
staticprotected

Definition at line 750 of file AliFMDParameters.h.

Referenced by AltroMapPath(), and InitAltroMap().

const char * AliFMDParameters::fgkDead = "FMD/Calib/Dead"
staticprotected

Definition at line 748 of file AliFMDParameters.h.

Referenced by DeadPath(), and InitDeadMap().

const char * AliFMDParameters::fgkPedestal = "FMD/Calib/Pedestal"
staticprotected

Definition at line 747 of file AliFMDParameters.h.

Referenced by InitPedestal(), and PedestalPath().

const char * AliFMDParameters::fgkPulseGain = "FMD/Calib/PulseGain"
staticprotected

Definition at line 746 of file AliFMDParameters.h.

Referenced by InitPulseGain(), and PulseGainPath().

const char * AliFMDParameters::fgkSampleRate = "FMD/Calib/SampleRate"
staticprotected

Definition at line 749 of file AliFMDParameters.h.

Referenced by InitSampleRate(), and SampleRatePath().

const char * AliFMDParameters::fgkStripRange = "FMD/Calib/StripRange"
staticprotected

Definition at line 752 of file AliFMDParameters.h.

Referenced by InitStripRange(), and StripRangePath().

const char * AliFMDParameters::fgkZeroSuppression = "FMD/Calib/ZeroSuppression"
staticprotected

Definition at line 751 of file AliFMDParameters.h.

Referenced by InitZeroSuppression(), and ZeroSuppressionPath().

Bool_t AliFMDParameters::fHasCompleteHeader
protected

Cache of energy loss for a MIP.

Definition at line 771 of file AliFMDParameters.h.

Referenced by HasCompleteHeader(), and UseCompleteHeader().

Bool_t AliFMDParameters::fIsInit
protected

Definition at line 744 of file AliFMDParameters.h.

Referenced by CheckForNewRun(), and Init().

const char * AliFMDParameters::fkConditionsShuttleID = "conditions"
staticprotected

Definition at line 775 of file AliFMDParameters.h.

Referenced by GetConditionsShuttleID().

const char * AliFMDParameters::fkGainShuttleID = "gains"
staticprotected

Definition at line 774 of file AliFMDParameters.h.

Referenced by GetGainShuttleID().

const char * AliFMDParameters::fkPedestalShuttleID = "pedestals"
staticprotected

Definition at line 773 of file AliFMDParameters.h.

Referenced by GetPedestalShuttleID().

const Float_t AliFMDParameters::fkSiDeDxMip
protected

Definition at line 753 of file AliFMDParameters.h.

Referenced by GetEdepMip().

AliFMDCalibPedestal* AliFMDParameters::fPedestal
protected
Float_t AliFMDParameters::fPedestalFactor
protected

Definition at line 757 of file AliFMDParameters.h.

Referenced by GetPedestalFactor(), and SetPedestalFactor().

AliFMDCalibGain* AliFMDParameters::fPulseGain
protected

Definition at line 780 of file AliFMDParameters.h.

Referenced by GetPulseGain(), GetThreshold(), InitPulseGain(), MakeDeadMap(), and SetGain().

Int_t AliFMDParameters::fRunNo
protected

Definition at line 784 of file AliFMDParameters.h.

Referenced by CheckForNewRun().

AliFMDCalibSampleRate* AliFMDParameters::fSampleRate
protected

Definition at line 778 of file AliFMDParameters.h.

Referenced by GetSampleRate(), InitSampleRate(), and SetSampleRate().

AliFMDCalibStripRange* AliFMDParameters::fStripRange
protected

Definition at line 783 of file AliFMDParameters.h.

Referenced by GetMaxStrip(), GetMinStrip(), InitStripRange(), and SetStripRange().

UShort_t AliFMDParameters::fVA1MipRange
protected

Definition at line 754 of file AliFMDParameters.h.

Referenced by GetPulseGain(), GetVA1MipRange(), and SetVA1MipRange().

AliFMDCalibZeroSuppression* AliFMDParameters::fZeroSuppression
protected

Definition at line 777 of file AliFMDParameters.h.

Referenced by GetZeroSuppression(), and InitZeroSuppression().

Bool_t AliFMDParameters::fZSPedSubtract
protected

Definition at line 760 of file AliFMDParameters.h.

Referenced by IsZSPedSubtract(), and SetZSPedSubtract().

UShort_t AliFMDParameters::fZSPost
protected

Definition at line 759 of file AliFMDParameters.h.

Referenced by GetZSPostSamples(), and SetZSPostSamples().

UShort_t AliFMDParameters::fZSPre
protected

Definition at line 758 of file AliFMDParameters.h.

Referenced by GetZSPreSamples(), and SetZSPreSamples().


The documentation for this class was generated from the following files: