1 #ifndef ALITPCCALIBKR_H
2 #define ALITPCCALIBKR_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
10 #include <TClonesArray.h>
12 #include "AliTPCclusterKr.h"
17 class AliTPCCalibKr : public TObject {
21 AliTPCCalibKr(const AliTPCCalibKr&); // copy constructor
22 virtual ~AliTPCCalibKr();
24 AliTPCCalibKr& operator=(const AliTPCCalibKr&);
28 Bool_t Process(AliTPCclusterKr *cluster);
29 Bool_t Accept(AliTPCclusterKr *cluster);
30 Bool_t Update(AliTPCclusterKr *cluster);
31 TH3F* CreateHisto(Int_t chamber);
33 const TObjArray* GetHistoKrArray () {return &fHistoKrArray;} // get calibration object
34 TH3F* GetHistoKr(Int_t sector) const; // get refernce histogram
36 Bool_t IsCSide(Int_t chamber);
37 Bool_t IsIROC(Int_t chamber);
40 static TH1D* ProjectHisto(TH3F* histo3D, const char* name = "_pz", Int_t firstxbin = 0, Int_t lastxbin = 0, Int_t firstybin = 0, Int_t lastybin = 0);
42 void SetASide(Bool_t bA = kTRUE) {fASide = bA;} // fill histo only A TPC side
43 void SetBSide(Bool_t bC = kTRUE) {fCSide = bC;} // fill histo only C TPC side
45 //Merge output objects (needed by PROOF)
46 virtual Long64_t Merge(TCollection* list);
49 void SetADCOverClustSizeRange(Float_t min=0.0,Float_t max=1.0e9) {fADCOverClustSizeMin = min ; fADCOverClustSizeMax = max; }
50 void SetMaxADCOverClustADCRange(Float_t min=0.0,Float_t max=1.0e9) {fMaxADCOverClustADCMin = min ; fMaxADCOverClustADCMax = max; }
51 void SetTimeRange(Float_t min=0.0, Float_t max=1.0e9) {fTimeMin = min ; fTimeMax = max; }
52 void SetClustSizeRange(Float_t min=0.0, Float_t max=1.0e9) {fClustSizeMin = min ; fClustSizeMax = max; }
56 Bool_t fASide; //! Only A side
57 Bool_t fCSide; //! Only C side
58 TObjArray fHistoKrArray; // Calibration histograms for Kr distribution
60 Float_t fADCOverClustSizeMin; // min ADCcluster over Cluster size ratio
61 Float_t fADCOverClustSizeMax; // max ADCcluster over Cluster size ratio
62 Float_t fMaxADCOverClustADCMin; // min MaxADC over ADCcluster ratio
63 Float_t fMaxADCOverClustADCMax; // max MaxADC over ADCcluster ratio
64 Float_t fTimeMin; // min time bin for MaxADC
65 Float_t fTimeMax; // max time bin for MaxADC
66 Float_t fClustSizeMin; // min cluster size
67 Float_t fClustSizeMax; // max cluster size
70 ClassDef(AliTPCCalibKr, 1) // Implementation of the TPC pedestal and noise calibration