AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONDigitCalibrator Class Reference

Class to calibrate the digits. More...

#include <AliMUONDigitCalibrator.h>

Inheritance diagram for AliMUONDigitCalibrator:

Public Member Functions

 AliMUONDigitCalibrator (Int_t runNumber)
 
 AliMUONDigitCalibrator (const AliMUONCalibrationData &calib, const AliMUONRecoParam *recoParams)
 
 AliMUONDigitCalibrator (const AliMUONCalibrationData &calib, int b)
 
virtual ~AliMUONDigitCalibrator ()
 
virtual void Calibrate (AliMUONVDigitStore &digitStore)
 
Bool_t IsValidDigit (Int_t detElemId, Int_t manuId, Int_t manuChannel, Int_t *statusMap=0x0) const
 
Float_t CalibrateDigit (Int_t detElemId, Int_t manuId, Int_t manuChannel, Float_t adc, Float_t nsigmas=-1, Bool_t *isSaturated=0x0) const
 
Int_t PadStatus (Int_t detElemId, Int_t manuId, Int_t manuChannel) const
 
Int_t StatusMap (Int_t detElemId, Int_t manuId, Int_t manuChannel) const
 

Private Member Functions

 AliMUONDigitCalibrator (const AliMUONDigitCalibrator &other)
 Not implemented. More...
 
AliMUONDigitCalibratoroperator= (const AliMUONDigitCalibrator &other)
 Not implemented. More...
 
void Ctor (const AliMUONCalibrationData &calib, const AliMUONRecoParam *recoParams, Bool_t deferredInitialization=kTRUE)
 

Private Attributes

AliMUONLoggerfLogger
 ! to log repeated messages More...
 
AliMUONPadStatusMakerfStatusMaker
 ! to build pad statuses More...
 
AliMUONPadStatusMapMakerfStatusMapMaker
 ! to build status map More...
 
AliMUONVStorefPedestals
 ! pedestal values More...
 
AliMUONVStorefGains
 ! gain values More...
 
Int_t fApplyGains
 ! whether we should apply gains or not, capa or not... More...
 
AliMUONVStorefCapacitances
 ! capa values More...
 
Double_t fNumberOfBadPads
 ! # of times we've rejected a bad pad More...
 
Double_t fNumberOfPads
 ! # of pads we've seen More...
 
Double_t fChargeSigmaCut
 ! number of sigmas to cut on More...
 
UInt_t fMask
 ! mask used to cut bad channels More...
 

Static Private Attributes

static const Int_t fgkNoGain
 ! do not apply gain calib at all More...
 
static const Int_t fgkGainConstantCapa
 ! apply gain (from OCDB) with constant capa More...
 
static const Int_t fgkGain
 ! apply gain and capa (from OCDB) More...
 
static const Int_t fgkInjectionGain
 ! apply injection gain (from OCDB) More...
 

Detailed Description

Class to calibrate the digits.

Class used to calibrate digits (either real or simulated ones).

The calibration consists of subtracting the pedestal and multiplying by a gain, so that Signal = (ADC-pedestal)*gain

Please note also that for the moment, if a digit lies on a dead channel we remove this digit from the list of digits. FIXME: this has to be revisited. By using the AliMUONDigit::fFlags we should in principle flag a digit as bad w/o removing it, but this then requires some changes in the cluster finder to deal with this extra information correctly (e.g. to set a quality for the cluster if it contains bad digits).

Author
Laurent Aphecetche

Definition at line 29 of file AliMUONDigitCalibrator.h.

Constructor & Destructor Documentation

AliMUONDigitCalibrator::AliMUONDigitCalibrator ( Int_t  runNumber)

ctor

Definition at line 71 of file AliMUONDigitCalibrator.cxx.

AliMUONDigitCalibrator::AliMUONDigitCalibrator ( const AliMUONCalibrationData calib,
const AliMUONRecoParam recoParams 
)

ctor

Definition at line 123 of file AliMUONDigitCalibrator.cxx.

AliMUONDigitCalibrator::AliMUONDigitCalibrator ( const AliMUONCalibrationData calib,
int  b 
)

ctor

Definition at line 144 of file AliMUONDigitCalibrator.cxx.

AliMUONDigitCalibrator::~AliMUONDigitCalibrator ( )
virtual

dtor.

Definition at line 246 of file AliMUONDigitCalibrator.cxx.

AliMUONDigitCalibrator::AliMUONDigitCalibrator ( const AliMUONDigitCalibrator other)
private

Not implemented.

Member Function Documentation

void AliMUONDigitCalibrator::Calibrate ( AliMUONVDigitStore digitStore)
virtual

Calibrate the digits contained in digitStore

Definition at line 273 of file AliMUONDigitCalibrator.cxx.

Referenced by AliMUON::Raw2SDigits().

Float_t AliMUONDigitCalibrator::CalibrateDigit ( Int_t  detElemId,
Int_t  manuId,
Int_t  manuChannel,
Float_t  adc,
Float_t  nsigmas = -1,
Bool_t *  isSaturated = 0x0 
) const

Calibrate one digit Return the digit charge, in fC

Definition at line 324 of file AliMUONDigitCalibrator.cxx.

Referenced by Calibrate(), and AliMUONTrackerDataMaker::ProcessEvent().

void AliMUONDigitCalibrator::Ctor ( const AliMUONCalibrationData calib,
const AliMUONRecoParam recoParams,
Bool_t  deferredInitialization = kTRUE 
)
private

designated ctor

Definition at line 165 of file AliMUONDigitCalibrator.cxx.

Referenced by AliMUONDigitCalibrator().

Bool_t AliMUONDigitCalibrator::IsValidDigit ( Int_t  detElemId,
Int_t  manuId,
Int_t  manuChannel,
Int_t *  statusMap = 0x0 
) const

Check if a given pad is ok or not.

Definition at line 453 of file AliMUONDigitCalibrator.cxx.

Referenced by Calibrate(), and AliMUONTrackerDataMaker::ProcessEvent().

AliMUONDigitCalibrator& AliMUONDigitCalibrator::operator= ( const AliMUONDigitCalibrator other)
private

Not implemented.

Int_t AliMUONDigitCalibrator::PadStatus ( Int_t  detElemId,
Int_t  manuId,
Int_t  manuChannel 
) const

Return the status of the given pad

Definition at line 495 of file AliMUONDigitCalibrator.cxx.

Referenced by AliMUONTrackerConditionDataMaker::CreateStatusStore().

Int_t AliMUONDigitCalibrator::StatusMap ( Int_t  detElemId,
Int_t  manuId,
Int_t  manuChannel 
) const

Return the status map of the given pad

Definition at line 503 of file AliMUONDigitCalibrator.cxx.

Referenced by AliMUONTrackerConditionDataMaker::CreateStatusMapStore(), AliMUONQAMappingCheck::IsChannelDead(), and IsValidDigit().

Member Data Documentation

Int_t AliMUONDigitCalibrator::fApplyGains
private

! whether we should apply gains or not, capa or not...

Definition at line 72 of file AliMUONDigitCalibrator.h.

Referenced by CalibrateDigit(), and Ctor().

AliMUONVStore* AliMUONDigitCalibrator::fCapacitances
private

! capa values

Definition at line 73 of file AliMUONDigitCalibrator.h.

Referenced by CalibrateDigit(), and Ctor().

Double_t AliMUONDigitCalibrator::fChargeSigmaCut
private

! number of sigmas to cut on

Definition at line 76 of file AliMUONDigitCalibrator.h.

Referenced by Calibrate(), CalibrateDigit(), and Ctor().

AliMUONVStore* AliMUONDigitCalibrator::fGains
private

! gain values

Definition at line 71 of file AliMUONDigitCalibrator.h.

Referenced by CalibrateDigit(), and Ctor().

const Int_t AliMUONDigitCalibrator::fgkGain
staticprivate

! apply gain and capa (from OCDB)

Definition at line 81 of file AliMUONDigitCalibrator.h.

Referenced by CalibrateDigit(), and Ctor().

const Int_t AliMUONDigitCalibrator::fgkGainConstantCapa
staticprivate

! apply gain (from OCDB) with constant capa

Definition at line 80 of file AliMUONDigitCalibrator.h.

Referenced by CalibrateDigit(), and Ctor().

const Int_t AliMUONDigitCalibrator::fgkInjectionGain
staticprivate

! apply injection gain (from OCDB)

Definition at line 82 of file AliMUONDigitCalibrator.h.

Referenced by CalibrateDigit(), and Ctor().

const Int_t AliMUONDigitCalibrator::fgkNoGain
staticprivate

! do not apply gain calib at all

Definition at line 79 of file AliMUONDigitCalibrator.h.

Referenced by CalibrateDigit(), and Ctor().

AliMUONLogger* AliMUONDigitCalibrator::fLogger
private

! to log repeated messages

Definition at line 67 of file AliMUONDigitCalibrator.h.

Referenced by Calibrate(), CalibrateDigit(), Ctor(), and ~AliMUONDigitCalibrator().

UInt_t AliMUONDigitCalibrator::fMask
private

! mask used to cut bad channels

Definition at line 77 of file AliMUONDigitCalibrator.h.

Referenced by Ctor(), and ~AliMUONDigitCalibrator().

Double_t AliMUONDigitCalibrator::fNumberOfBadPads
private

! # of times we've rejected a bad pad

Definition at line 74 of file AliMUONDigitCalibrator.h.

Referenced by Calibrate(), and ~AliMUONDigitCalibrator().

Double_t AliMUONDigitCalibrator::fNumberOfPads
private

! # of pads we've seen

Definition at line 75 of file AliMUONDigitCalibrator.h.

Referenced by Calibrate(), and ~AliMUONDigitCalibrator().

AliMUONVStore* AliMUONDigitCalibrator::fPedestals
private

! pedestal values

Definition at line 70 of file AliMUONDigitCalibrator.h.

Referenced by CalibrateDigit(), and Ctor().

AliMUONPadStatusMaker* AliMUONDigitCalibrator::fStatusMaker
private

! to build pad statuses

Definition at line 68 of file AliMUONDigitCalibrator.h.

Referenced by Ctor(), PadStatus(), and ~AliMUONDigitCalibrator().

AliMUONPadStatusMapMaker* AliMUONDigitCalibrator::fStatusMapMaker
private

! to build status map

Definition at line 69 of file AliMUONDigitCalibrator.h.

Referenced by Calibrate(), Ctor(), StatusMap(), and ~AliMUONDigitCalibrator().


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