AliRoot Core  3dc7879 (3dc7879)
AliFMDCalibGain Class Reference

Gain value and width for each strip in the FMD. More...

#include <AliFMDCalibGain.h>

Inheritance diagram for AliFMDCalibGain:

Public Member Functions

 AliFMDCalibGain ()
 
 ~AliFMDCalibGain ()
 
 AliFMDCalibGain (const AliFMDCalibGain &o)
 
AliFMDCalibGainoperator= (const AliFMDCalibGain &o)
 
void Set (UShort_t det, Char_t ring, UShort_t sec, UShort_t str, Float_t val)
 
void Set (Float_t thres)
 
Float_t Value (UShort_t det, Char_t ring, UShort_t sec, UShort_t str)
 
Bool_t ReadFromFile (std::istream &inFile)
 
Float_t Threshold () const
 
const AliFMDFloatMapValues () const
 
AliFMDBoolMapMakeDeadMap (Float_t min, Float_t max, AliFMDBoolMap *dead=0) const
 

Private Attributes

AliFMDFloatMap fValue
 
Float_t fThreshold
 

Detailed Description

Gain value and width for each strip in the FMD.

Definition at line 27 of file AliFMDCalibGain.h.

Constructor & Destructor Documentation

AliFMDCalibGain::AliFMDCalibGain ( )

Constructor

Definition at line 45 of file AliFMDCalibGain.cxx.

Referenced by ~AliFMDCalibGain().

AliFMDCalibGain::~AliFMDCalibGain ( )
inline

Destructor

Definition at line 33 of file AliFMDCalibGain.h.

AliFMDCalibGain::AliFMDCalibGain ( const AliFMDCalibGain o)

Copy constructor

Parameters
oobject to copy from

Definition at line 55 of file AliFMDCalibGain.cxx.

Member Function Documentation

AliFMDBoolMap * AliFMDCalibGain::MakeDeadMap ( Float_t  min,
Float_t  max,
AliFMDBoolMap dead = 0 
) const

Make a dead map based on the gain of the channels. If the gain of a paraticular channel falls outside the range specified by min and max, then the channel is marked as dead.

If the argument dead is non-null, then the map passed is modified. That is, channels marked as dead in the map will remain marked. Channels that meat the criterion (gain outside the specified range) will in addition be marked as dead.

If the argument dead is null, then a new map is created and a pointer to this will be returned.

Parameters
minMinimum value of gain for a channel before it is
maxMaximum value of gain for a channel before it is marked as dead.
deadIf non-null, then modify this map.
Returns
A pointer to possibly newly allocated dead map.

Definition at line 141 of file AliFMDCalibGain.cxx.

Referenced by AliFMDParameters::MakeDeadMap(), and Values().

AliFMDCalibGain & AliFMDCalibGain::operator= ( const AliFMDCalibGain o)

Assignment operator

Parameters
oObject to assign from

Definition at line 65 of file AliFMDCalibGain.cxx.

Referenced by Value(), and ~AliFMDCalibGain().

Bool_t AliFMDCalibGain::ReadFromFile ( std::istream &  inFile)

Read information from file and set values

Parameters
inFileinputFile

Definition at line 156 of file AliFMDCalibGain.cxx.

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

void AliFMDCalibGain::Set ( UShort_t  det,
Char_t  ring,
UShort_t  sec,
UShort_t  str,
Float_t  val 
)

Set the values for a strip.

Parameters
detDetector
ringRing
secSector
strStrip
valValue of gain

Definition at line 76 of file AliFMDCalibGain.cxx.

Referenced by AliFMDPreprocessor::GetGainCalibration(), AliFMDCalibFaker::MakePulseGain(), ReadFromFile(), and ~AliFMDCalibGain().

void AliFMDCalibGain::Set ( Float_t  thres)
inline

Set the global threshold

Parameters
thresThreshold

Definition at line 49 of file AliFMDCalibGain.h.

Float_t AliFMDCalibGain::Threshold ( ) const
inline
Returns
threshold

Definition at line 65 of file AliFMDCalibGain.h.

Referenced by AliFMDParameters::GetThreshold().

Float_t AliFMDCalibGain::Value ( UShort_t  det,
Char_t  ring,
UShort_t  sec,
UShort_t  str 
)

Get gain for a strip.

Parameters
detDetector
ringRing
secSector
strStrip
Returns
Gain for strip

Definition at line 86 of file AliFMDCalibGain.cxx.

Referenced by AliFMDPreprocessor::GetDeadChannelMap(), AliFMDParameters::GetPulseGain(), and Set().

const AliFMDFloatMap& AliFMDCalibGain::Values ( ) const
inline

Definition at line 66 of file AliFMDCalibGain.h.

Referenced by AliFMDParameters::InitPulseGain().

Member Data Documentation

Float_t AliFMDCalibGain::fThreshold
private

Definition at line 91 of file AliFMDCalibGain.h.

Referenced by AliFMDCalibGain(), operator=(), Set(), and Threshold().

AliFMDFloatMap AliFMDCalibGain::fValue
private

Definition at line 90 of file AliFMDCalibGain.h.

Referenced by AliFMDCalibGain(), MakeDeadMap(), operator=(), Set(), Value(), and Values().


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