Some of the coding violations corrected
[u/mrichter/AliRoot.git] / TPC / AliTPCcalibV0.h
CommitLineData
10757ee9 1#ifndef AliTPCCALIBV0_H
2#define AliTPCCALIBV0_H
3
4
57e4988a 5#include <AliTPCcalibBase.h>
10757ee9 6
7
8class TTreeSRedirector;
9class AliTPCROC;
10class AliTPCseed;
11class AliESDtrack;
57e4988a 12class AliESDEvent;
10757ee9 13class TH3F;
14class TH1F;
15class TH2F;
16class TH1I;
17class TDatabasePDG;
18class AliKFParticle;
19class AliKFVertex;
20class AliESDv0;
21class TArrayI;
22class TTree;
23class AliStack;
46e89793 24class AliExternalTrackParam;
25class AliTPCCorrection;
10757ee9 26
57e4988a 27class AliTPCcalibV0 : public AliTPCcalibBase {
10757ee9 28public :
29
30 // List of branches
31
57e4988a 32 AliTPCcalibV0();
46e89793 33 AliTPCcalibV0(const Text_t *name, const Text_t *title);
10757ee9 34 virtual ~AliTPCcalibV0();
57e4988a 35 virtual void Process(AliESDEvent *event) {return ProcessESD(event,0);}
46e89793 36 Long64_t Merge(TCollection *const li);
37 void AddTree(TTree * treeInput);
38 void AddTreeHPT(TTree * treeInput);
39 static AliExternalTrackParam * RefitTrack(AliTPCseed *seed, AliTPCCorrection * corr, Double_t xstart, Double_t xstop, Double_t mass);
40 static void MakeFitTreeTrack(const TObjArray * corrArray, Double_t ptCut, Int_t run);
41 static void MakeFitTreeV0(const TObjArray * corrArray, Double_t ptCut, Int_t run);
57e4988a 42 //
43 //
44 //
45 void ProcessESD(AliESDEvent *esd, AliStack *stack=0);
46e89793 46 void DumpToTree(AliESDEvent *esd);
47 void DumpToTreeHPT(AliESDEvent *esd);
48 TTree * GetV0Tree(){return fV0Tree;}
49 TTree * GetHPTTree(){return fHPTTree;}
50 //
10757ee9 51 void MakeMC();
52 void MakeV0s();
53 void ProcessV0(Int_t ftype);
54 void ProcessPI0();
10757ee9 55 void BinLogX(TH2F * h);
56 //
57 //
58 //
0d2c6644 59 static AliKFParticle * Fit(AliKFVertex & primVtx, AliESDv0 *v0, Int_t PDG1, Int_t PDG2);
1aa15e8d 60
10757ee9 61protected:
10757ee9 62private:
77f88633 63
46e89793 64 AliTPCcalibV0(const AliTPCcalibV0&); // Not implemented
65 AliTPCcalibV0& operator=(const AliTPCcalibV0&); // Not implemented
66 TTree *fV0Tree; // tree with full V0 information
67 TTree *fHPTTree; // tree with high mometa tracks - full calib info
68 //
69 AliStack *fStack; // pointer to kinematic tree
70 AliESDEvent *fESD; //! current ED to proccess - NOT OWNER
71 TDatabasePDG *fPdg; //! particle database
72 TObjArray *fParticles; // array of selected MC particles
73 TObjArray *fV0s; // array of V0s
74 TObjArray *fGammas; // gamma conversion candidates
75 //
76 void Process(AliESDtrack *track, Int_t runNo=-1){AliTPCcalibBase::Process(track,runNo);};
77 void Process(AliTPCseed *track){return AliTPCcalibBase::Process(track);}
78 //
79 ClassDef(AliTPCcalibV0,3);
10757ee9 80};
81
82
83#endif