1 #ifndef AliTPCCALIBV0_H
2 #define AliTPCCALIBV0_H
5 #include <AliTPCcalibBase.h>
8 class TTreeSRedirector;
24 class AliExternalTrackParam;
25 class AliTPCCorrection;
27 class AliTPCcalibV0 : public AliTPCcalibBase {
33 AliTPCcalibV0(const Text_t *name, const Text_t *title);
34 virtual ~AliTPCcalibV0();
35 virtual void Process(AliESDEvent *event) {return ProcessESD(event,0);}
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);
45 void ProcessESD(AliESDEvent *esd, AliStack *stack=0);
46 void DumpToTree(AliESDEvent *esd);
47 void DumpToTreeHPT(AliESDEvent *esd);
48 TTree * GetV0Tree(){return fV0Tree;}
49 TTree * GetHPTTree(){return fHPTTree;}
53 void ProcessV0(Int_t ftype);
55 void BinLogX(TH2F * h);
59 static AliKFParticle * Fit(AliKFVertex & primVtx, AliESDv0 *v0, Int_t PDG1, Int_t PDG2);
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
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
76 void Process(AliESDtrack *track, Int_t runNo=-1){AliTPCcalibBase::Process(track,runNo);};
77 void Process(AliTPCseed *track){return AliTPCcalibBase::Process(track);}
79 ClassDef(AliTPCcalibV0,3);