/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ /************************************************************************** * * * QA class of primary vertex study for Heavy Flavor electrons * * * **************************************************************************/ #ifndef _ALIHFEPRIVTX_H_ #define _ALIHFEPRIVTX_H_ #ifndef ROOT_TObject #include #endif class TH1F; class TH1I; class TH2F; class TString; class AliESDEvent; class AliESDtrack; class AliStack; //________________________________________________________________ class AliHFEpriVtx : public TObject { public: AliHFEpriVtx(); AliHFEpriVtx(const AliHFEpriVtx &p); // copy constructor AliHFEpriVtx &operator=(const AliHFEpriVtx &); // assignment operator virtual ~AliHFEpriVtx(); void CreateHistograms(TString hnopt=""); // create histograms void Init(); void SetEvent(AliESDEvent* ESD){fESD1=ESD;}; // set ESD pointer void SetStack(AliStack* stack){fStack=stack;} // set stack pointer void CountNtracks(Int_t sourcePart, Int_t recpid, Double_t recprob); // count number of tracks passed certain cut void FillNtracks(); // fill counted number of tracks void CountPriVxtElecContributor(AliESDtrack *ESDelectron, Int_t sourcePart, Int_t recpid, Double_t recprob); void GetNPriVxtContributor(); void FillNprimVtxContributor(); Int_t GetMCPID(AliESDtrack *track); // return mc pid private: AliESDEvent* fESD1; // ESD event AliStack* fStack; // MC Stack TString fkSourceLabel[10]; // storing source label enum kSources {kAll, kDirectCharm, kDirectBeauty, kBeautyCharm, kGamma, kPi0, kElse, kBeautyGamma, kBeautyPi0, kBeautyElse}; struct hists{ TH1F *fNtracks; // histogram to fill number of counted tracks for different sources TH1F *fNprimVtxContributor; // histogram to fill number of tracks contributing primary vertex TH1F *fPtElec; // histogram to fill pt of electron tracks TH1F *fPtElecContributor; // histogram to fill pt of electron tracks contributing primary vertex Int_t fNtrackCount; // number of counted track Int_t fNprimVtxContributorCount; // number of tracks contributing primary vertex }; hists fPrimVtx[10]; // Int_t fNtrackswoPid; // number of track counted TH1F *fHNtrackswoPid; // histogram to fill number of track counted TH1I *fNESDprimVtxContributor; // histogram to fill number of primary vertex contributor for given event TH1I *fNESDprimVtxIndices; // histogram to fill number of primary vertex indices for given event TH2F *fDiffDCAvsPt; // histogram to fill DCA difference as a function of pT TH2F *fDiffDCAvsNt; // histogram to fill DCA difference as a function of pT ClassDef(AliHFEpriVtx,0); }; #endif