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);}
36 void FilterV0s(AliESDEvent* event);
37 Long64_t Merge(TCollection *const li);
38 void AddTree(TTree * treeInput);
39 void AddTreeHPT(TTree * treeInput);
40 static AliExternalTrackParam * RefitTrack(AliTPCseed *seed, AliTPCCorrection * corr, Double_t xstart, Double_t xstop, Double_t mass);
41 static void MakeFitTreeTrack(const TObjArray * corrArray, Double_t ptCut, Int_t run);
42 static void MakeFitTreeV0(const TObjArray * corrArray, Double_t ptCut, Int_t run);
46 void ProcessESD(AliESDEvent *esd);
47 void DumpToTree(AliESDEvent *esd);
48 void DumpToTreeHPT(AliESDEvent *esd);
49 TTree * GetV0Tree(){return fV0Tree;}
50 TTree * GetHPTTree(){return fHPTTree;}
54 //void ProcessV0(Int_t ftype);
56 void BinLogX(TH2F * h);
60 static AliKFParticle * Fit(AliKFVertex & primVtx, AliESDv0 *v0, Int_t PDG1, Int_t PDG2);
65 AliTPCcalibV0(const AliTPCcalibV0&); // Not implemented
66 AliTPCcalibV0& operator=(const AliTPCcalibV0&); // Not implemented
67 TTree *fV0Tree; // tree with full V0 information
68 TTree *fHPTTree; // tree with high mometa tracks - full calib info
70 AliStack *fStack; // pointer to kinematic tree
71 AliESDEvent *fESD; //! current ED to proccess - NOT OWNER
72 TDatabasePDG *fPdg; //! particle database
73 TObjArray *fParticles; // array of selected MC particles
74 TObjArray *fV0s; // array of V0s
75 TObjArray *fGammas; // gamma conversion candidates
77 void Process(AliESDtrack *track, Int_t runNo=-1){AliTPCcalibBase::Process(track,runNo);};
78 void Process(AliTPCseed *track){return AliTPCcalibBase::Process(track);}
80 ClassDef(AliTPCcalibV0,3);