![]() |
AliRoot Core
3dc7879 (3dc7879)
|
Handling of raw data. More...
#include <AliEMCALRawUtils.h>
Public Member Functions | |
AliEMCALRawUtils (Algo::fitAlgorithm fitAlgo=Algo::kStandard) | |
virtual | ~AliEMCALRawUtils () |
void | Digits2Raw () |
void | Raw2Digits (AliRawReader *reader, TClonesArray *digitsArr, const AliCaloCalibPedestal *pedbadmap, TClonesArray *digitsTRG=0x0, TClonesArray *trgData=0x0) |
void | AddDigit (TClonesArray *digitsArr, Int_t id, Int_t lowGain, const std::vector< AliCaloBunchInfo > &bunchlist, Float_t amp, Float_t time, Float_t chi2, Int_t ndf) |
void | TrimDigits (TClonesArray *digitsArr) |
Int_t | GetNoiseThreshold () const |
Int_t | GetNPedSamples () const |
Bool_t | GetRemoveBadChannels () const |
Int_t | GetFittingAlgorithm () const |
Float_t | GetTimeMax () const |
Float_t | GetTimeMin () const |
Bool_t | UseFALTRO () const |
void | SetNoiseThreshold (Int_t val) |
void | SetNPedSamples (Int_t val) |
void | SetRemoveBadChannels (Bool_t val) |
void | SetFittingAlgorithm (Int_t val) |
void | SetTimeMin (Float_t t) |
void | SetTimeMax (Float_t t) |
void | SetFALTROUsage (Bool_t val) |
void | SetL1PhaseUsage (Bool_t val) |
AliCaloRawAnalyzer * | GetRawAnalyzer () const |
virtual Option_t * | GetOption () const |
void | SetOption (const Option_t *opt) |
Private Member Functions | |
AliEMCALRawUtils (const AliEMCALRawUtils &rawUtils) | |
AliEMCALRawUtils & | operator= (const AliEMCALRawUtils &rawUtils) |
Private Attributes | |
Int_t | fNoiseThreshold |
Threshold to consider signal or noise. More... | |
Int_t | fNPedSamples |
Number of samples to use in pedestal calculation. More... | |
AliEMCALGeometry * | fGeom |
Geometry. More... | |
AliAltroMapping * | fMapping [4] |
What is the array size? More... | |
TString | fOption |
Option passed from Reconstructor. More... | |
Bool_t | fRemoveBadChannels |
Select if bad channels are removed before fitting. More... | |
Int_t | fFittingAlgorithm |
Select the fitting algorithm. More... | |
Float_t | fTimeMin |
Minimum threshold for the time of the signal. More... | |
Float_t | fTimeMax |
Maximum threshold for the time of the signal. More... | |
Bool_t | fUseFALTRO |
Use FALTRO and pass it to the digits. More... | |
Bool_t | fUseL1Phase |
Use L1Phase time shift. More... | |
AliCaloRawAnalyzer * | fRawAnalyzer |
e.g. for sample selection for fits. More... | |
AliEMCALTriggerRawDigitMaker * | fTriggerRawDigitMaker |
Trigger raw digit info. More... | |
Handling of raw data.
Utility Class for handling Raw data Does all transitions from Digits to Raw and vice versa, for simu and reconstruction
Only one raw signal per digit is generated; either high-gain or low-gain No pedestal is added to the raw signal.
Definition at line 43 of file AliEMCALRawUtils.h.
AliEMCALRawUtils::AliEMCALRawUtils | ( | Algo::fitAlgorithm | fitAlgo = Algo::kStandard | ) |
Constructor. Set up fitting algorightm, geometry and default parameter values.
Definition at line 55 of file AliEMCALRawUtils.cxx.
Referenced by SetOption().
|
virtual |
Destructor.
Definition at line 106 of file AliEMCALRawUtils.cxx.
|
private |
void AliEMCALRawUtils::AddDigit | ( | TClonesArray * | digitsArr, |
Int_t | id, | ||
Int_t | lowGain, | ||
const std::vector< AliCaloBunchInfo > & | bunchlist, | ||
Float_t | amp, | ||
Float_t | time, | ||
Float_t | chi2, | ||
Int_t | ndf | ||
) |
Create the digit from raw fit and add it to the list of digits
Definition at line 261 of file AliEMCALRawUtils.cxx.
Referenced by Raw2Digits().
void AliEMCALRawUtils::Digits2Raw | ( | ) |
Convert digits of the current event to raw data.
Definition at line 115 of file AliEMCALRawUtils.cxx.
Referenced by AliEMCAL::Digits2Raw().
|
inline |
Definition at line 66 of file AliEMCALRawUtils.h.
Referenced by AliEMCALReconstructor::ConvertDigits().
|
inline |
Definition at line 60 of file AliEMCALRawUtils.h.
|
inline |
Definition at line 62 of file AliEMCALRawUtils.h.
|
inlinevirtual |
Definition at line 92 of file AliEMCALRawUtils.h.
|
inline |
Definition at line 90 of file AliEMCALRawUtils.h.
|
inline |
Definition at line 64 of file AliEMCALRawUtils.h.
|
inline |
Definition at line 68 of file AliEMCALRawUtils.h.
|
inline |
Definition at line 70 of file AliEMCALRawUtils.h.
|
private |
Referenced by SetOption().
void AliEMCALRawUtils::Raw2Digits | ( | AliRawReader * | reader, |
TClonesArray * | digitsArr, | ||
const AliCaloCalibPedestal * | pedbadmap, | ||
TClonesArray * | digitsTRG = 0x0 , |
||
TClonesArray * | trgData = 0x0 |
||
) |
Conversion of raw data to digits.
Definition at line 357 of file AliEMCALRawUtils.cxx.
Referenced by AliEMCALReconstructor::ConvertDigits(), and AliEMCAL::Raw2SDigits().
|
inline |
Definition at line 86 of file AliEMCALRawUtils.h.
Referenced by AliEMCALReconstructor::ConvertDigits(), and AliEMCAL::Raw2SDigits().
void AliEMCALRawUtils::SetFittingAlgorithm | ( | Int_t | fitAlgo | ) |
Select which fitting algo should be used.
Definition at line 511 of file AliEMCALRawUtils.cxx.
Referenced by AliEMCALRawUtils(), AliEMCALReconstructor::ConvertDigits(), AliEMCAL::Raw2SDigits(), and SetRemoveBadChannels().
|
inline |
Definition at line 88 of file AliEMCALRawUtils.h.
Referenced by AliEMCALReconstructor::ConvertDigits().
|
inline |
Definition at line 74 of file AliEMCALRawUtils.h.
Referenced by AliEMCALReconstructor::ConvertDigits(), and AliEMCAL::Raw2SDigits().
|
inline |
Definition at line 76 of file AliEMCALRawUtils.h.
Referenced by AliEMCALReconstructor::ConvertDigits(), and AliEMCAL::Raw2SDigits().
|
inline |
Definition at line 94 of file AliEMCALRawUtils.h.
Referenced by AliEMCALReconstructor::ConvertDigits(), and AliEMCAL::Raw2SDigits().
|
inline |
Definition at line 78 of file AliEMCALRawUtils.h.
Referenced by AliEMCALReconstructor::ConvertDigits(), and AliEMCAL::Raw2SDigits().
|
inline |
Definition at line 84 of file AliEMCALRawUtils.h.
|
inline |
Definition at line 82 of file AliEMCALRawUtils.h.
void AliEMCALRawUtils::TrimDigits | ( | TClonesArray * | digitsArr | ) |
Remove entries with LGnoHG (unphysical), out of time window, and too bad chi2.
Definition at line 470 of file AliEMCALRawUtils.cxx.
Referenced by Raw2Digits().
|
inline |
Definition at line 72 of file AliEMCALRawUtils.h.
|
private |
Select the fitting algorithm.
Definition at line 114 of file AliEMCALRawUtils.h.
Referenced by GetFittingAlgorithm().
|
private |
Definition at line 106 of file AliEMCALRawUtils.h.
Referenced by AliEMCALRawUtils(), Digits2Raw(), and Raw2Digits().
|
private |
What is the array size?
Definition at line 108 of file AliEMCALRawUtils.h.
Referenced by AliEMCALRawUtils(), Digits2Raw(), and Raw2Digits().
|
private |
Threshold to consider signal or noise.
Definition at line 102 of file AliEMCALRawUtils.h.
Referenced by GetNoiseThreshold(), Raw2Digits(), SetFittingAlgorithm(), and SetNoiseThreshold().
|
private |
Number of samples to use in pedestal calculation.
Definition at line 104 of file AliEMCALRawUtils.h.
Referenced by GetNPedSamples(), and SetNPedSamples().
|
private |
Option passed from Reconstructor.
Definition at line 110 of file AliEMCALRawUtils.h.
Referenced by GetOption(), and SetOption().
|
private |
e.g. for sample selection for fits.
Definition at line 124 of file AliEMCALRawUtils.h.
Referenced by GetRawAnalyzer(), Raw2Digits(), SetFittingAlgorithm(), and ~AliEMCALRawUtils().
|
private |
Select if bad channels are removed before fitting.
Definition at line 112 of file AliEMCALRawUtils.h.
Referenced by GetRemoveBadChannels(), and SetRemoveBadChannels().
|
private |
Maximum threshold for the time of the signal.
Definition at line 118 of file AliEMCALRawUtils.h.
Referenced by GetTimeMax(), SetTimeMax(), and TrimDigits().
|
private |
Minimum threshold for the time of the signal.
Definition at line 116 of file AliEMCALRawUtils.h.
Referenced by GetTimeMin(), SetTimeMin(), and TrimDigits().
|
private |
Trigger raw digit info.
Definition at line 126 of file AliEMCALRawUtils.h.
Referenced by AliEMCALRawUtils(), Raw2Digits(), and ~AliEMCALRawUtils().
|
private |
Use FALTRO and pass it to the digits.
Definition at line 120 of file AliEMCALRawUtils.h.
Referenced by Raw2Digits(), SetFALTROUsage(), and UseFALTRO().
|
private |
Use L1Phase time shift.
Definition at line 122 of file AliEMCALRawUtils.h.
Referenced by Raw2Digits(), and SetL1PhaseUsage().