]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/AliTPCCalibPedestal.h
one more tpcrefit added
[u/mrichter/AliRoot.git] / TPC / AliTPCCalibPedestal.h
CommitLineData
8bc7e885 1#ifndef ALITPCCALIBPEDESTAL_H
2#define ALITPCCALIBPEDESTAL_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
7442bceb 6/////////////////////////////////////////////////////////////////////////////////////////
7// //
8// Implementation of the TPC pedestal calibration //
9// //
10/////////////////////////////////////////////////////////////////////////////////////////
11
f1b14fa2 12#include <TObjArray.h>
880c3382 13#include "AliTPCCalibRawBase.h"
8bc7e885 14
bdf99a93 15class TArrayF;
8bc7e885 16class TH2F;
8bc7e885 17class TTreeSRedirector;
18class AliTPCROC;
bc331d5b 19class AliTPCCalROC;
a7dce0bc 20class AliTPCRawStream;
aa983e4f 21class AliRawReader;
ac940b58 22class TMap;
8bc7e885 23
bdf99a93 24struct eventHeaderStruct;
8bc7e885 25
880c3382 26class AliTPCCalibPedestal : public AliTPCCalibRawBase {
8bc7e885 27
28public:
29 AliTPCCalibPedestal();
bc331d5b 30 AliTPCCalibPedestal(const AliTPCCalibPedestal &ped);
ac940b58 31 AliTPCCalibPedestal(const TMap *config);
8bc7e885 32 virtual ~AliTPCCalibPedestal();
bc331d5b 33
34 AliTPCCalibPedestal& operator = (const AliTPCCalibPedestal &source);
35
880c3382 36 virtual Int_t Update(const Int_t isector, const Int_t iRow, const Int_t iPad,
bdf99a93 37 const Int_t iTimeBin, const Float_t signal);
880c3382 38 virtual void Analyse();
8bc7e885 39 //
bc331d5b 40 AliTPCCalROC* GetCalRocPedestal (Int_t sector, Bool_t force=kFALSE); // get calibration object - sector
1542c62d 41 AliTPCCalROC* GetCalRocSigma(Int_t sector, Bool_t force=kFALSE); // get calibration object - sector
7442bceb 42 const TObjArray* GetCalPadPedestal() const {return &fCalRocArrayPedestal;} // get calibration object
43 const TObjArray* GetCalPadSigma() const {return &fCalRocArraySigma;} // get calibration object
1542c62d 44
45 AliTPCCalROC* GetCalRocMean (Int_t sector, Bool_t force=kFALSE); // get calibration object - sector
46 AliTPCCalROC* GetCalRocRMS(Int_t sector, Bool_t force=kFALSE); // get calibration object - sector
7442bceb 47 const TObjArray* GetCalPadMean() const {return &fCalRocArrayMean;} // get calibration object
48 const TObjArray* GetCalPadRMS() const {return &fCalRocArrayRMS;} // get calibration object
aa983e4f 49
bc331d5b 50 TH2F* GetHistoPedestal (Int_t sector, Bool_t force=kFALSE); // get refernce histogram
8bc7e885 51 //
bdf99a93 52 void SetTimeAnalysis(Bool_t time = kTRUE); // Use ONLY in TPCPEDESTALda on LDC for one sector!
53 void AnalyseTime(Int_t nevents); // Makes sense only in TPCPEDESTALda on LDC!
54 TArrayF **GetTimePedestals() const { return fTimeSignal; } // Get array with time dependent pedestals (for one sector!)
55 //
1542c62d 56 Int_t GetAdcMin() const { return fAdcMin; }
57 Int_t GetAdcMax() const { return fAdcMax; }
58 Float_t GetAnaMeanDown() const { return fAnaMeanDown; }
59 Float_t GetAnaMeanUp() const { return fAnaMeanUp; }
60
aa983e4f 61 void SetRangeAdc (Int_t aMin, Int_t aMax){ fAdcMin=aMin; fAdcMax=aMax; } // Set adc range for the pedestal calibration
1542c62d 62 void SetAnalysisTruncationRange(Float_t down, Float_t up) {fAnaMeanDown=down; fAnaMeanUp=up;} //Set range for truncated mean analysis of the channel information
8bc7e885 63
7442bceb 64 void Merge(AliTPCCalibPedestal * const ped);
65 virtual Long64_t Merge(TCollection * const list);
66
bdf99a93 67 Bool_t TestEvent(); // Test the fast approach to fill histogram - used for test purposes
8bc7e885 68
69private:
8bc7e885 70 Int_t fAdcMin; // min adc channel of pedestal value
71 Int_t fAdcMax; // max adc channel of pedestal value
bdf99a93 72
1542c62d 73 Float_t fAnaMeanDown; // Truncated mean channel analysis - lower cut
74 Float_t fAnaMeanUp; // Truncated mean channel analysis - upper cut
75
bdf99a93 76 Bool_t fTimeAnalysis; //! Should we use the time dependent analysis? ONLY ON LDC!
a7dce0bc 77
1542c62d 78 TObjArray fCalRocArrayPedestal; // Array of AliTPCCalROC class for pedestal values from gaus fit
79 TObjArray fCalRocArraySigma; // Array of AliTPCCalROC class for noise values from gaus fit
bdf99a93 80
8bc7e885 81 TObjArray fHistoPedestalArray; // Calibration histograms for Pedestal distribution
bdf99a93 82
83 TArrayF **fTimeSignal; //! Arrays which hold time dependent signals
1542c62d 84
85 TObjArray fCalRocArrayMean; // Array of AliTPCCalROC class for pedestal values, simple mean
86 TObjArray fCalRocArrayRMS; // Array of AliTPCCalROC class for noise values, simple rms
bdf99a93 87
bc331d5b 88 TH2F* GetHisto(Int_t sector, TObjArray *arr,
8bc7e885 89 Int_t nbinsY, Float_t ymin, Float_t ymax,
a6e0ebfe 90 const Char_t *type, Bool_t force);
bdf99a93 91
8bc7e885 92 AliTPCCalROC* GetCalRoc(Int_t sector, TObjArray* arr, Bool_t force);
93
880c3382 94 ClassDef(AliTPCCalibPedestal, 7) // Implementation of the TPC pedestal and noise calibration
8bc7e885 95};
96
97
98
99#endif
100