![]() |
AliRoot Core
a565103 (a565103)
|
Class to calibrate the digits. More...
#include <AliMUONDigitCalibrator.h>
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... | |
AliMUONDigitCalibrator & | operator= (const AliMUONDigitCalibrator &other) |
Not implemented. More... | |
void | Ctor (const AliMUONCalibrationData &calib, const AliMUONRecoParam *recoParams, Bool_t deferredInitialization=kTRUE) |
Private Attributes | |
AliMUONLogger * | fLogger |
! to log repeated messages More... | |
AliMUONPadStatusMaker * | fStatusMaker |
! to build pad statuses More... | |
AliMUONPadStatusMapMaker * | fStatusMapMaker |
! to build status map More... | |
AliMUONVStore * | fPedestals |
! pedestal 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... | |
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 constant 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).
Definition at line 29 of file AliMUONDigitCalibrator.h.
AliMUONDigitCalibrator::AliMUONDigitCalibrator | ( | Int_t | runNumber | ) |
ctor
Definition at line 66 of file AliMUONDigitCalibrator.cxx.
AliMUONDigitCalibrator::AliMUONDigitCalibrator | ( | const AliMUONCalibrationData & | calib, |
const AliMUONRecoParam * | recoParams | ||
) |
ctor
Definition at line 115 of file AliMUONDigitCalibrator.cxx.
AliMUONDigitCalibrator::AliMUONDigitCalibrator | ( | const AliMUONCalibrationData & | calib, |
int | b | ||
) |
ctor
Definition at line 133 of file AliMUONDigitCalibrator.cxx.
|
virtual |
dtor.
Definition at line 194 of file AliMUONDigitCalibrator.cxx.
|
private |
Not implemented.
|
virtual |
Calibrate the digits contained in digitStore
Definition at line 221 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 272 of file AliMUONDigitCalibrator.cxx.
Referenced by Calibrate(), and AliMUONTrackerDataMaker::ProcessEvent().
|
private |
designated ctor
Definition at line 151 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 331 of file AliMUONDigitCalibrator.cxx.
Referenced by Calibrate(), and AliMUONTrackerDataMaker::ProcessEvent().
|
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 373 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 381 of file AliMUONDigitCalibrator.cxx.
Referenced by AliMUONTrackerConditionDataMaker::CreateStatusMapStore(), AliMUONQAMappingCheck::IsChannelDead(), and IsValidDigit().
|
private |
! number of sigmas to cut on
Definition at line 73 of file AliMUONDigitCalibrator.h.
Referenced by Calibrate(), CalibrateDigit(), and Ctor().
|
private |
! to log repeated messages
Definition at line 67 of file AliMUONDigitCalibrator.h.
Referenced by Calibrate(), CalibrateDigit(), Ctor(), and ~AliMUONDigitCalibrator().
|
private |
! mask used to cut bad channels
Definition at line 74 of file AliMUONDigitCalibrator.h.
Referenced by Ctor(), and ~AliMUONDigitCalibrator().
|
private |
! # of times we've rejected a bad pad
Definition at line 71 of file AliMUONDigitCalibrator.h.
Referenced by Calibrate(), and ~AliMUONDigitCalibrator().
|
private |
! # of pads we've seen
Definition at line 72 of file AliMUONDigitCalibrator.h.
Referenced by Calibrate(), and ~AliMUONDigitCalibrator().
|
private |
! pedestal values
Definition at line 70 of file AliMUONDigitCalibrator.h.
Referenced by CalibrateDigit(), and Ctor().
|
private |
! to build pad statuses
Definition at line 68 of file AliMUONDigitCalibrator.h.
Referenced by Ctor(), PadStatus(), and ~AliMUONDigitCalibrator().
|
private |
! to build status map
Definition at line 69 of file AliMUONDigitCalibrator.h.
Referenced by Calibrate(), Ctor(), StatusMap(), and ~AliMUONDigitCalibrator().