AliFMDParameters Class Reference
[Basic classes]

#include <AliFMDParameters.h>

Collaboration diagram for AliFMDParameters:

Collaboration graph
[legend]
List of all members.

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

Definition at line 63 of file AliFMDParameters.h.

Public Types

enum  { kBaseDDL = 0x1000 }

Public Member Functions

void Init ()
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)
Set various variable parameter defaults
void SetZeroSuppression (UShort_t s=0)
void SetSampleRate (UShort_t r=1)
void SetPedestal (Float_t p=10)
void SetPedestalWidth (Float_t w=1)
void SetThreshold (Float_t t=0)
Get `Fixed' various parameters
UShort_t GetVA1MipRange () const
UShort_t GetAltroChannelSize () const
UShort_t GetChannelsPerAltro () const
Float_t GetEdepMip () const
Float_t GetPedestalFactor () const
Get variable parameters
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 ddl) const
Bool_t Hardware2Detector (UInt_t ddl, UInt_t addr, UShort_t &det, Char_t &ring, UShort_t &sec, UShort_t &str) const
Bool_t Detector2Hardware (UShort_t det, Char_t ring, UShort_t sec, UShort_t str, UInt_t &ddl, UInt_t &addr) const
AliFMDAltroMappingGetAltroMap () const

Static Public Member Functions

static AliFMDParametersInstance ()

Static Public Attributes

static const char * fgkPulseGain
static const char * fgkPedestal
static const char * fgkDead
static const char * fgkSampleRate
static const char * fgkAltroMap
static const char * fgkZeroSuppression

Protected Member Functions

 AliFMDParameters ()
virtual ~AliFMDParameters ()
void InitPulseGain ()
void InitPedestal ()
void InitDeadMap ()
void InitSampleRate ()
void InitZeroSuppression ()
void InitAltroMap ()

Protected Attributes

Bool_t fIsInit
const Float_t fSiDeDxMip
UShort_t fVA1MipRange
UShort_t fAltroChannelSize
UShort_t fChannelsPerAltro
Float_t fPedestalFactor
Float_t fFixedPedestal
Float_t fFixedPedestalWidth
UShort_t fFixedZeroSuppression
UShort_t fFixedSampleRate
Float_t fFixedThreshold
Float_t fFixedPulseGain
Float_t fEdepMip
AliFMDCalibZeroSuppressionfZeroSuppression
AliFMDCalibSampleRatefSampleRate
AliFMDCalibPedestalfPedestal
AliFMDCalibGainfPulseGain
AliFMDCalibDeadMapfDeadMap
AliFMDAltroMappingfAltroMap

Static Protected Attributes

static AliFMDParametersfgInstance


Member Enumeration Documentation

anonymous enum
 

Enumerator:
kBaseDDL 

Definition at line 133 of file AliFMDParameters.h.


Constructor & Destructor Documentation

AliFMDParameters::AliFMDParameters  )  [protected]
 

CTOR

virtual AliFMDParameters::~AliFMDParameters  )  [inline, protected, virtual]
 

DTOR

Definition at line 146 of file AliFMDParameters.h.


Member Function Documentation

Bool_t AliFMDParameters::Detector2Hardware UShort_t  det,
Char_t  ring,
UShort_t  sec,
UShort_t  str,
UInt_t &  ddl,
UInt_t &  addr
const
 

UShort_t AliFMDParameters::GetAltroChannelSize  )  const [inline]
 

Definition at line 95 of file AliFMDParameters.h.

AliFMDAltroMapping* AliFMDParameters::GetAltroMap  )  const
 

UShort_t AliFMDParameters::GetChannelsPerAltro  )  const [inline]
 

Definition at line 96 of file AliFMDParameters.h.

Float_t AliFMDParameters::GetEdepMip  )  const
 

Float_t AliFMDParameters::GetPedestal UShort_t  detector,
Char_t  ring,
UShort_t  sector,
UShort_t  strip
const
 

Float_t AliFMDParameters::GetPedestalFactor  )  const [inline]
 

Definition at line 98 of file AliFMDParameters.h.

Float_t AliFMDParameters::GetPedestalWidth UShort_t  detector,
Char_t  ring,
UShort_t  sector,
UShort_t  strip
const
 

Float_t AliFMDParameters::GetPulseGain UShort_t  detector,
Char_t  ring,
UShort_t  sector,
UShort_t  strip
const
 

UShort_t AliFMDParameters::GetSampleRate UShort_t  ddl  )  const
 

Float_t AliFMDParameters::GetThreshold  )  const
 

UShort_t AliFMDParameters::GetVA1MipRange  )  const [inline]
 

Definition at line 94 of file AliFMDParameters.h.

UShort_t AliFMDParameters::GetZeroSuppression UShort_t  detector,
Char_t  ring,
UShort_t  sector,
UShort_t  strip
const
 

Bool_t AliFMDParameters::Hardware2Detector UInt_t  ddl,
UInt_t  addr,
UShort_t &  det,
Char_t &  ring,
UShort_t &  sec,
UShort_t &  str
const
 

void AliFMDParameters::Init  ) 
 

Initialize the manager. This tries to read the parameters from CDB. If that fails, the class uses the hard-coded parameters.

void AliFMDParameters::InitAltroMap  )  [protected]
 

Initialize hardware map. Try to get it from CDB

void AliFMDParameters::InitDeadMap  )  [protected]
 

Initialize dead map. Try to get it from CDB

void AliFMDParameters::InitPedestal  )  [protected]
 

Initialize pedestals. Try to get them from CDB

void AliFMDParameters::InitPulseGain  )  [protected]
 

Initialize gains. Try to get them from CDB

void AliFMDParameters::InitSampleRate  )  [protected]
 

Initialize sample rates. Try to get them from CDB

void AliFMDParameters::InitZeroSuppression  )  [protected]
 

Initialize zero suppression thresholds. Try to get them from CDB

static AliFMDParameters* AliFMDParameters::Instance  )  [static]
 

Singleton access

Returns:
single to

Bool_t AliFMDParameters::IsDead UShort_t  detector,
Char_t  ring,
UShort_t  sector,
UShort_t  strip
const
 

void AliFMDParameters::SetAltroChannelSize UShort_t  s = 1024  )  [inline]
 

Definition at line 78 of file AliFMDParameters.h.

void AliFMDParameters::SetChannelsPerAltro UShort_t  size = 128  )  [inline]
 

Definition at line 79 of file AliFMDParameters.h.

void AliFMDParameters::SetPedestal Float_t  p = 10  )  [inline]
 

Definition at line 87 of file AliFMDParameters.h.

void AliFMDParameters::SetPedestalFactor Float_t  f = 3  )  [inline]
 

Definition at line 80 of file AliFMDParameters.h.

void AliFMDParameters::SetPedestalWidth Float_t  w = 1  )  [inline]
 

Definition at line 88 of file AliFMDParameters.h.

void AliFMDParameters::SetSampleRate UShort_t  r = 1  )  [inline]
 

Definition at line 86 of file AliFMDParameters.h.

void AliFMDParameters::SetThreshold Float_t  t = 0  )  [inline]
 

Definition at line 89 of file AliFMDParameters.h.

void AliFMDParameters::SetVA1MipRange UShort_t  r = 20  )  [inline]
 

Definition at line 77 of file AliFMDParameters.h.

void AliFMDParameters::SetZeroSuppression UShort_t  s = 0  )  [inline]
 

Definition at line 85 of file AliFMDParameters.h.


Member Data Documentation

UShort_t AliFMDParameters::fAltroChannelSize [protected]
 

Definition at line 166 of file AliFMDParameters.h.

AliFMDAltroMapping* AliFMDParameters::fAltroMap [protected]
 

Definition at line 183 of file AliFMDParameters.h.

UShort_t AliFMDParameters::fChannelsPerAltro [protected]
 

Definition at line 167 of file AliFMDParameters.h.

AliFMDCalibDeadMap* AliFMDParameters::fDeadMap [protected]
 

Definition at line 182 of file AliFMDParameters.h.

Float_t AliFMDParameters::fEdepMip [mutable, protected]
 

Gain (cached).

Definition at line 176 of file AliFMDParameters.h.

Float_t AliFMDParameters::fFixedPedestal [protected]
 

Definition at line 170 of file AliFMDParameters.h.

Float_t AliFMDParameters::fFixedPedestalWidth [protected]
 

Definition at line 171 of file AliFMDParameters.h.

Float_t AliFMDParameters::fFixedPulseGain [mutable, protected]
 

Definition at line 175 of file AliFMDParameters.h.

UShort_t AliFMDParameters::fFixedSampleRate [protected]
 

Definition at line 173 of file AliFMDParameters.h.

Float_t AliFMDParameters::fFixedThreshold [protected]
 

Definition at line 174 of file AliFMDParameters.h.

UShort_t AliFMDParameters::fFixedZeroSuppression [protected]
 

Definition at line 172 of file AliFMDParameters.h.

AliFMDParameters* AliFMDParameters::fgInstance [static, protected]
 

Singleton instance

Definition at line 148 of file AliFMDParameters.h.

const char* AliFMDParameters::fgkAltroMap [static]
 

Definition at line 140 of file AliFMDParameters.h.

const char* AliFMDParameters::fgkDead [static]
 

Definition at line 138 of file AliFMDParameters.h.

const char* AliFMDParameters::fgkPedestal [static]
 

Definition at line 137 of file AliFMDParameters.h.

const char* AliFMDParameters::fgkPulseGain [static]
 

Definition at line 136 of file AliFMDParameters.h.

const char* AliFMDParameters::fgkSampleRate [static]
 

Definition at line 139 of file AliFMDParameters.h.

const char* AliFMDParameters::fgkZeroSuppression [static]
 

Definition at line 141 of file AliFMDParameters.h.

Bool_t AliFMDParameters::fIsInit [protected]
 

Definition at line 162 of file AliFMDParameters.h.

AliFMDCalibPedestal* AliFMDParameters::fPedestal [protected]
 

Definition at line 180 of file AliFMDParameters.h.

Float_t AliFMDParameters::fPedestalFactor [protected]
 

Definition at line 168 of file AliFMDParameters.h.

AliFMDCalibGain* AliFMDParameters::fPulseGain [protected]
 

Definition at line 181 of file AliFMDParameters.h.

AliFMDCalibSampleRate* AliFMDParameters::fSampleRate [protected]
 

Definition at line 179 of file AliFMDParameters.h.

const Float_t AliFMDParameters::fSiDeDxMip [protected]
 

Definition at line 164 of file AliFMDParameters.h.

UShort_t AliFMDParameters::fVA1MipRange [protected]
 

Definition at line 165 of file AliFMDParameters.h.

AliFMDCalibZeroSuppression* AliFMDParameters::fZeroSuppression [protected]
 

Cache of energy loss for a MIP.

Definition at line 178 of file AliFMDParameters.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 24 17:11:22 2006 for ALICE FMD Off-line by  doxygen 1.4.6