X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TPC%2FAliTPCcalibV0.h;h=c4628c179a97d234b20a62eda61eb5fbdb2d9f39;hb=dcc60657b357cc833961e5204d55578b6b38e753;hp=09676cb0eb3b51d994c4759fafb5f3b9c97da506;hpb=0d2c6644600b1cdfbca1542e4e0df7d92bd9f402;p=u%2Fmrichter%2FAliRoot.git diff --git a/TPC/AliTPCcalibV0.h b/TPC/AliTPCcalibV0.h index 09676cb0eb3..c4628c179a9 100644 --- a/TPC/AliTPCcalibV0.h +++ b/TPC/AliTPCcalibV0.h @@ -2,14 +2,14 @@ #define AliTPCCALIBV0_H -#include +#include class TTreeSRedirector; class AliTPCROC; class AliTPCseed; class AliESDtrack; -class AliESD; +class AliESDEvent; class TH3F; class TH1F; class TH2F; @@ -21,46 +21,62 @@ class AliESDv0; class TArrayI; class TTree; class AliStack; +class AliExternalTrackParam; +class AliTPCCorrection; -class AliTPCcalibV0 : public TNamed { +class AliTPCcalibV0 : public AliTPCcalibBase { public : // List of branches - AliTPCcalibV0(); + AliTPCcalibV0(); + AliTPCcalibV0(const Text_t *name, const Text_t *title); virtual ~AliTPCcalibV0(); - virtual void ProofSlaveBegin(TList * output); - void ProcessESD(AliESD *esd, AliStack *stack=0); + virtual void Process(AliESDEvent *event) {return ProcessESD(event,0);} + Long64_t Merge(TCollection *const li); + void AddTree(TTree * treeInput); + void AddTreeHPT(TTree * treeInput); + static AliExternalTrackParam * RefitTrack(AliTPCseed *seed, AliTPCCorrection * corr, Double_t xstart, Double_t xstop, Double_t mass); + static void MakeFitTreeTrack(const TObjArray * corrArray, Double_t ptCut, Int_t run); + static void MakeFitTreeV0(const TObjArray * corrArray, Double_t ptCut, Int_t run); + // + // + // + void ProcessESD(AliESDEvent *esd, AliStack *stack=0); + void DumpToTree(AliESDEvent *esd); + void DumpToTreeHPT(AliESDEvent *esd); + TTree * GetV0Tree(){return fV0Tree;} + TTree * GetHPTTree(){return fHPTTree;} + // void MakeMC(); void MakeV0s(); void ProcessV0(Int_t ftype); void ProcessPI0(); - Float_t TPCBetheBloch(Float_t bg); - TH2F * GetHistograms(); void BinLogX(TH2F * h); // // // static AliKFParticle * Fit(AliKFVertex & primVtx, AliESDv0 *v0, Int_t PDG1, Int_t PDG2); - + protected: private: - TTreeSRedirector *fDebugStream; //debug stream for - AliStack *fStack; // pointer to kinematic tree - TList *fOutput; //output list - AliESD *fESD; //! current ED to proccess - NOT OWNER - TDatabasePDG *fPdg; // particle database - TObjArray *fParticles; // array of selected MC particles - TObjArray *fV0s; // array of V0s - TObjArray *fGammas; // gamma conversion candidates - // - TArrayI *fV0type; // array of types for V0s - TH2F *fTPCdEdx; // dEdx spectra - TH2F *fTPCdEdxPi; // dEdx spectra - pion anti-pion - TH2F *fTPCdEdxEl; // dEdx spectra - electroen -positrons from gamma - TH2F *fTPCdEdxP; // dEdx spectra - proton antiproton - lambda - antilambda - // - ClassDef(AliTPCcalibV0,1); + + AliTPCcalibV0(const AliTPCcalibV0&); // Not implemented + AliTPCcalibV0& operator=(const AliTPCcalibV0&); // Not implemented + TTree *fV0Tree; // tree with full V0 information + TTree *fHPTTree; // tree with high mometa tracks - full calib info + // + AliStack *fStack; // pointer to kinematic tree + AliESDEvent *fESD; //! current ED to proccess - NOT OWNER + TDatabasePDG *fPdg; //! particle database + TObjArray *fParticles; // array of selected MC particles + TObjArray *fV0s; // array of V0s + TObjArray *fGammas; // gamma conversion candidates + // + void Process(AliESDtrack *track, Int_t runNo=-1){AliTPCcalibBase::Process(track,runNo);}; + void Process(AliTPCseed *track){return AliTPCcalibBase::Process(track);} + // + ClassDef(AliTPCcalibV0,3); };