![]() |
AliRoot Core
d69033e (d69033e)
|
Implementation of the TPC pedestal calibration. More...
#include <AliTPCCalibPedestal.h>
Public Member Functions | |
AliTPCCalibPedestal () | |
AliTPCCalibPedestal (const AliTPCCalibPedestal &ped) | |
AliTPCCalibPedestal (const TMap *config) | |
virtual | ~AliTPCCalibPedestal () |
AliTPCCalibPedestal & | operator= (const AliTPCCalibPedestal &source) |
virtual Int_t | Update (const Int_t isector, const Int_t iRow, const Int_t iPad, const Int_t iTimeBin, const Float_t signal) |
virtual void | Analyse () |
AliTPCCalROC * | GetCalRocPedestal (Int_t sector, Bool_t force=kFALSE) |
AliTPCCalROC * | GetCalRocSigma (Int_t sector, Bool_t force=kFALSE) |
const TObjArray * | GetCalPadPedestal () const |
const TObjArray * | GetCalPadSigma () const |
AliTPCCalROC * | GetCalRocMean (Int_t sector, Bool_t force=kFALSE) |
AliTPCCalROC * | GetCalRocRMS (Int_t sector, Bool_t force=kFALSE) |
const TObjArray * | GetCalPadMean () const |
const TObjArray * | GetCalPadRMS () const |
TH2F * | GetHistoPedestal (Int_t sector, Bool_t force=kFALSE) |
void | SetTimeAnalysis (Bool_t time=kTRUE) |
void | AnalyseTime (Int_t nevents) |
TArrayF ** | GetTimePedestals () const |
Int_t | GetAdcMin () const |
Int_t | GetAdcMax () const |
Float_t | GetAnaMeanDown () const |
Float_t | GetAnaMeanUp () const |
void | SetRangeAdc (Int_t aMin, Int_t aMax) |
void | SetAnalysisTruncationRange (Float_t down, Float_t up) |
void | Merge (AliTPCCalibPedestal *const ped) |
virtual Long64_t | Merge (TCollection *const list) |
Bool_t | TestEvent () |
![]() | |
AliTPCCalibRawBase () | |
AliTPCCalibRawBase (const AliTPCCalibRawBase &calib) | |
AliTPCCalibRawBase & | operator= (const AliTPCCalibRawBase &source) |
virtual | ~AliTPCCalibRawBase () |
Bool_t | ProcessEvent (AliTPCRawStreamV3 *const rawStreamV3) |
Bool_t | ProcessEvent (AliRawReader *const rawReader) |
Bool_t | ProcessEvent (eventHeaderStruct *const event) |
virtual void | UpdateDDL () |
virtual void | ProcessBunch (const Int_t, const Int_t, const Int_t, const Int_t, const UInt_t, const UShort_t *) |
void | MergeBase (const AliTPCCalibRawBase *calib) |
void | SetRangeTime (Int_t firstTimeBin, Int_t lastTimeBin) |
void | SetAltroMapping (AliTPCAltroMapping **mapp) |
void | SetUseL1Phase (Bool_t useL1Phase=kTRUE) |
void | SetTimeStampEvent (UInt_t timestamp) |
void | SetRunNumber (UInt_t eventnumber) |
Int_t | GetFirstTimeBin () const |
Int_t | GetLastTimeBin () const |
Int_t | GetNevents () const |
Double_t | GetL1Phase () const |
Double_t | GetL1PhaseTB () const |
Bool_t | GetUseL1Phase () const |
UInt_t | GetRunNumber () const |
UInt_t | GetFirstTimeStamp () const |
UInt_t | GetLastTimeStamp () const |
UInt_t | GetTimeStamp () const |
UInt_t | GetEventType () const |
AliTPCAltroMapping ** | GetAltroMapping () |
const AliAltroRawStream * | GetAltroRawStream () const |
const AliTPCROC * | GetTPCROC () const |
void | IncrementNevents () |
virtual void | DumpToFile (const Char_t *filename, const Char_t *dir="", Bool_t append=kFALSE) |
TTreeSRedirector * | GetDebugStreamer () |
void | SetStreamLevel (Int_t streamLevel) |
void | SetDebugLevel (Int_t level) |
Int_t | GetStreamLevel () const |
Int_t | GetDebugLevel () const |
Private Member Functions | |
TH2F * | GetHisto (Int_t sector, TObjArray *arr, Int_t nbinsY, Float_t ymin, Float_t ymax, const Char_t *type, Bool_t force) |
AliTPCCalROC * | GetCalRoc (Int_t sector, TObjArray *arr, Bool_t force) |
Private Attributes | |
Int_t | fAdcMin |
min adc channel of pedestal value More... | |
Int_t | fAdcMax |
max adc channel of pedestal value More... | |
Float_t | fAnaMeanDown |
Truncated mean channel analysis - lower cut. More... | |
Float_t | fAnaMeanUp |
Truncated mean channel analysis - upper cut. More... | |
Bool_t | fTimeAnalysis |
! Should we use the time dependent analysis? ONLY ON LDC! More... | |
TObjArray | fCalRocArrayPedestal |
Array of AliTPCCalROC class for pedestal values from gaus fit. More... | |
TObjArray | fCalRocArraySigma |
Array of AliTPCCalROC class for noise values from gaus fit. More... | |
TObjArray | fHistoPedestalArray |
Calibration histograms for Pedestal distribution. More... | |
TArrayF ** | fTimeSignal |
! Arrays which hold time dependent signals More... | |
TObjArray | fCalRocArrayMean |
Array of AliTPCCalROC class for pedestal values, simple mean. More... | |
TObjArray | fCalRocArrayRMS |
Array of AliTPCCalROC class for noise values, simple rms. More... | |
Additional Inherited Members | |
![]() | |
virtual void | EndEvent () |
virtual void | ResetEvent () |
![]() | |
Int_t | fFirstTimeBin |
First Time bin used for analysis. More... | |
Int_t | fLastTimeBin |
Last Time bin used for analysis. More... | |
Int_t | fNevents |
Number of processed events. More... | |
Int_t | fDebugLevel |
! debug level More... | |
Int_t | fStreamLevel |
! level of streamer output More... | |
UInt_t | fRunNumber |
current run number from event header More... | |
UInt_t | fFirstTimeStamp |
First event time stamp. More... | |
UInt_t | fLastTimeStamp |
Last event time stamp. More... | |
UInt_t | fTimeStamp |
! time stamp from event header More... | |
UInt_t | fEventType |
! current event Type from event header More... | |
Double_t | fAltroL1Phase |
! L1 Phase More... | |
Float_t | fAltroL1PhaseTB |
! L1 Phase in time bins More... | |
Int_t | fCurrRCUId |
! Current RCU Id More... | |
Int_t | fPrevRCUId |
! Previous RCU Id More... | |
Int_t | fCurrDDLNum |
! Current DDL number More... | |
Int_t | fPrevDDLNum |
! Current DDL number More... | |
Bool_t | fUseL1Phase |
use L1 Phase information? More... | |
TTreeSRedirector * | fDebugStreamer |
! debug streamer More... | |
AliAltroRawStream * | fAltroRawStream |
! pointer to the altro object More... | |
AliTPCAltroMapping ** | fMapping |
! Altro Mapping object More... | |
AliTPCROC * | fROC |
! ROC information More... | |
Implementation of the TPC pedestal calibration.
Definition at line 22 of file AliTPCCalibPedestal.h.
AliTPCCalibPedestal::AliTPCCalibPedestal | ( | ) |
Definition at line 201 of file AliTPCCalibPedestal.cxx.
Referenced by operator=().
AliTPCCalibPedestal::AliTPCCalibPedestal | ( | const AliTPCCalibPedestal & | ped | ) |
copy constructor
Definition at line 225 of file AliTPCCalibPedestal.cxx.
AliTPCCalibPedestal::AliTPCCalibPedestal | ( | const TMap * | config | ) |
This constructor uses a TMap for setting some parametes
Definition at line 256 of file AliTPCCalibPedestal.cxx.
|
virtual |
destructor
Definition at line 296 of file AliTPCCalibPedestal.cxx.
|
virtual |
Calculate calibration constants
Reimplemented from AliTPCCalibRawBase.
Definition at line 556 of file AliTPCCalibPedestal.cxx.
Referenced by testPed(), and testPed0().
void AliTPCCalibPedestal::AnalyseTime | ( | Int_t | nevents | ) |
Calculate for each channel and time bin the mean pedestal. This is used on LDC by TPCPEDESTALda to generate data used for configuration of the pattern memory for baseline subtraction in the ALTROs.
Definition at line 614 of file AliTPCCalibPedestal.cxx.
|
inline |
Definition at line 53 of file AliTPCCalibPedestal.h.
|
inline |
Definition at line 52 of file AliTPCCalibPedestal.h.
|
inline |
Definition at line 54 of file AliTPCCalibPedestal.h.
|
inline |
Definition at line 55 of file AliTPCCalibPedestal.h.
|
inline |
Definition at line 43 of file AliTPCCalibPedestal.h.
|
inline |
Definition at line 38 of file AliTPCCalibPedestal.h.
Referenced by AliTPCCalibViewer::CreateObjectList(), AliTPCcalibDB::CreateObjectList(), testPed(), and testPed0().
|
inline |
Definition at line 44 of file AliTPCCalibPedestal.h.
Referenced by AliTPCCalibViewer::CreateObjectList(), AliTPCcalibDB::CreateObjectList(), testPed(), and testPed0().
|
inline |
Definition at line 39 of file AliTPCCalibPedestal.h.
|
private |
return pointer to ROC Calibration if force is true create a new histogram if it doesn't exist allready
Definition at line 443 of file AliTPCCalibPedestal.cxx.
Referenced by GetCalRocMean(), GetCalRocPedestal(), GetCalRocRMS(), and GetCalRocSigma().
AliTPCCalROC * AliTPCCalibPedestal::GetCalRocMean | ( | Int_t | sector, |
Bool_t | force = kFALSE |
||
) |
return pointer to ROC with signal mean information if force is true create a new histogram if it doesn't exist allready
Definition at line 481 of file AliTPCCalibPedestal.cxx.
Referenced by Analyse().
AliTPCCalROC * AliTPCCalibPedestal::GetCalRocPedestal | ( | Int_t | sector, |
Bool_t | force = kFALSE |
||
) |
return pointer to ROC with Pedestal data if force is true create a new histogram if it doesn't exist allready
Definition at line 461 of file AliTPCCalibPedestal.cxx.
Referenced by Analyse(), and AliTPCPreprocessor::ExtractPedestals().
AliTPCCalROC * AliTPCCalibPedestal::GetCalRocRMS | ( | Int_t | sector, |
Bool_t | force = kFALSE |
||
) |
return pointer to signal width ROC Calibration if force is true create a new histogram if it doesn't exist allready
Definition at line 491 of file AliTPCCalibPedestal.cxx.
Referenced by Analyse(), and AliTPCPreprocessor::ExtractPedestals().
AliTPCCalROC * AliTPCCalibPedestal::GetCalRocSigma | ( | Int_t | sector, |
Bool_t | force = kFALSE |
||
) |
return pointer to ROC with signal witdth in sigma if force is true create a new histogram if it doesn't exist allready
Definition at line 472 of file AliTPCCalibPedestal.cxx.
Referenced by Analyse().
|
private |
return pointer to Q histogram if force is true create a new histogram if it doesn't exist allready
Definition at line 408 of file AliTPCCalibPedestal.cxx.
Referenced by GetHistoPedestal().
TH2F * AliTPCCalibPedestal::GetHistoPedestal | ( | Int_t | sector, |
Bool_t | force = kFALSE |
||
) |
return pointer to T0 histogram if force is true create a new histogram if it doesn't exist allready
Definition at line 432 of file AliTPCCalibPedestal.cxx.
|
inline |
Definition at line 50 of file AliTPCCalibPedestal.h.
void AliTPCCalibPedestal::Merge | ( | AliTPCCalibPedestal *const | ped | ) |
Merge reference histograms of sig to the current AliTPCCalibPedestal
Definition at line 502 of file AliTPCCalibPedestal.cxx.
Referenced by Merge().
|
virtual |
Merge all objects of this type in list
Reimplemented from AliTPCCalibRawBase.
Definition at line 534 of file AliTPCCalibPedestal.cxx.
AliTPCCalibPedestal & AliTPCCalibPedestal::operator= | ( | const AliTPCCalibPedestal & | source | ) |
assignment operator
Definition at line 284 of file AliTPCCalibPedestal.cxx.
|
inline |
Definition at line 58 of file AliTPCCalibPedestal.h.
|
inline |
Definition at line 57 of file AliTPCCalibPedestal.h.
void AliTPCCalibPedestal::SetTimeAnalysis | ( | Bool_t | time = kTRUE | ) |
Use time dependent analysis: Pedestals are analysed as a function of the drift time. There is one mean value generated for each time bin and each channel. It can be used as reference data and for configuration of the ALTRO pattern memory for baseline subtraction.
ATTENTION: Use only on LDC in TPCPEDESTALda! On a LDC we get data only from one sector. For the full TPC we would need a lot of memory (36*159*140*1024*4bytes = 3.3GB)!
Definition at line 320 of file AliTPCCalibPedestal.cxx.
Referenced by AliTPCCalibPedestal().
Bool_t AliTPCCalibPedestal::TestEvent | ( | ) |
Test event loop fill one oroc and one iroc with random gaus
Definition at line 385 of file AliTPCCalibPedestal.cxx.
|
virtual |
Signal filling method
Reimplemented from AliTPCCalibRawBase.
Definition at line 350 of file AliTPCCalibPedestal.cxx.
Referenced by TestEvent().
|
private |
max adc channel of pedestal value
Definition at line 67 of file AliTPCCalibPedestal.h.
Referenced by AliTPCCalibPedestal(), Analyse(), GetAdcMax(), GetHistoPedestal(), SetRangeAdc(), and Update().
|
private |
min adc channel of pedestal value
Definition at line 66 of file AliTPCCalibPedestal.h.
Referenced by AliTPCCalibPedestal(), Analyse(), GetAdcMin(), GetHistoPedestal(), SetRangeAdc(), and Update().
|
private |
Truncated mean channel analysis - lower cut.
Definition at line 69 of file AliTPCCalibPedestal.h.
Referenced by Analyse(), GetAnaMeanDown(), and SetAnalysisTruncationRange().
|
private |
Truncated mean channel analysis - upper cut.
Definition at line 70 of file AliTPCCalibPedestal.h.
Referenced by Analyse(), GetAnaMeanUp(), and SetAnalysisTruncationRange().
|
private |
Array of AliTPCCalROC class for pedestal values, simple mean.
Definition at line 81 of file AliTPCCalibPedestal.h.
Referenced by GetCalPadMean(), and GetCalRocMean().
|
private |
Array of AliTPCCalROC class for pedestal values from gaus fit.
Definition at line 74 of file AliTPCCalibPedestal.h.
Referenced by AliTPCCalibPedestal(), GetCalPadPedestal(), GetCalRocPedestal(), and ~AliTPCCalibPedestal().
|
private |
Array of AliTPCCalROC class for noise values, simple rms.
Definition at line 82 of file AliTPCCalibPedestal.h.
Referenced by AliTPCCalibPedestal(), GetCalPadRMS(), GetCalRocRMS(), and ~AliTPCCalibPedestal().
|
private |
Array of AliTPCCalROC class for noise values from gaus fit.
Definition at line 75 of file AliTPCCalibPedestal.h.
Referenced by GetCalPadSigma(), GetCalRocSigma(), and ~AliTPCCalibPedestal().
|
private |
Calibration histograms for Pedestal distribution.
Definition at line 77 of file AliTPCCalibPedestal.h.
Referenced by AliTPCCalibPedestal(), GetHistoPedestal(), Merge(), and ~AliTPCCalibPedestal().
|
private |
! Should we use the time dependent analysis? ONLY ON LDC!
Definition at line 72 of file AliTPCCalibPedestal.h.
Referenced by AnalyseTime(), SetTimeAnalysis(), and Update().
|
private |
! Arrays which hold time dependent signals
Definition at line 79 of file AliTPCCalibPedestal.h.
Referenced by AnalyseTime(), GetTimePedestals(), SetTimeAnalysis(), Update(), and ~AliTPCCalibPedestal().