]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/AliTPCCalibKr.h
reducing macro to minimum AliReconstruction functionality, disable QA and TriggerESD...
[u/mrichter/AliRoot.git] / TPC / AliTPCCalibKr.h
CommitLineData
72e010d3 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 */
5
6#include <TObject.h>
7#include <TObjArray.h>
8#include <TChain.h>
9#include <TTree.h>
10#include <TClonesArray.h>
11
12#include "AliTPCclusterKr.h"
13
14class TH3F;
15class TH1D;
16
17class AliTPCCalibKr : public TObject {
18
19public:
20 AliTPCCalibKr();
21 AliTPCCalibKr(const AliTPCCalibKr&); // copy constructor
22 virtual ~AliTPCCalibKr();
23
24 AliTPCCalibKr& operator=(const AliTPCCalibKr&);
25
26 //
27 void Init();
28 Bool_t Process();
29 Bool_t ReadEntry(Int_t evt);
30 Bool_t Update(AliTPCclusterKr *cluster);
31 TH3F* CreateHisto(Int_t chamber);
32
33 const TObjArray* GetHistoKrArray () {return &fHistoKrArray;} // get calibration object
34 TH3F* GetHistoKr(Int_t sector) const; // get refernce histogram
35
36 Bool_t IsCSide(Int_t chamber);
37 Bool_t IsIROC(Int_t chamber);
38
39 Bool_t Terminate();
40 void Analyse();
41 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
43 void SetInputChain(TChain *inChain) {fTree = (TTree*) inChain;}
44 void SetOutputHisto(Bool_t bHisto = kTRUE) {bOutputHisto = bHisto;}
45
46 void SetASide(Bool_t bA = kTRUE) {bASide = bA;} // fill histo only A TPC side
47 void SetBSide(Bool_t bC = kTRUE) {bCSide = bC;} // fill histo only C TPC side
48
49private:
50
51 Bool_t bOutputHisto; //!
52 Bool_t bASide; //!
53 Bool_t bCSide; //!
54
55 TClonesArray *fClusters; //!
56 AliTPCclusterKr *fClustKr; //!
57 TTree *fTree; //!
58 TObjArray fHistoKrArray; // Calibration histograms for Kr distribution
59
60public:
61 ClassDef(AliTPCCalibKr, 1) // Implementation of the TPC pedestal and noise calibration
62};
63
64#endif
65