AliRoot Core  a565103 (a565103)
 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...
 
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...
 

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 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).

Author
Laurent Aphecetche

Definition at line 29 of file AliMUONDigitCalibrator.h.

Constructor & Destructor Documentation

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.

AliMUONDigitCalibrator::~AliMUONDigitCalibrator ( )
virtual

dtor.

Definition at line 194 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 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().

void AliMUONDigitCalibrator::Ctor ( const AliMUONCalibrationData calib,
const AliMUONRecoParam recoParams,
Bool_t  deferredInitialization = kTRUE 
)
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().

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 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().

Member Data Documentation

Double_t AliMUONDigitCalibrator::fChargeSigmaCut
private

! number of sigmas to cut on

Definition at line 73 of file AliMUONDigitCalibrator.h.

Referenced by Calibrate(), 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 74 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 71 of file AliMUONDigitCalibrator.h.

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

Double_t AliMUONDigitCalibrator::fNumberOfPads
private

! # of pads we've seen

Definition at line 72 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: