2 // Class to check the reconstruction versus the generated
5 // - add a lot of histograms (much more on tracks vs mc particle)
19 #ifndef ROOT_TParticle
20 #include "TParticle.h"
23 #include "AliESDtrack.h"
25 class AliRecoVsGeneCheck : public TObject
31 void Event(Double_t* vtx, Double_t* vtx_res, Double_t* mcvtx, Int_t n_part=-1);
33 void Track(AliESDtrack* esdTrack, TParticle* mcParticle);
35 void SetNPartAxisTitle(Char_t* t)
36 {fhVtxZResVsNPart ->SetXTitle(t);
37 fhVtxDzNormVsNPart->SetXTitle(t);
38 fhNPart->SetXTitle(t);}
40 void SaveHistograms(Char_t* dir="reco_vs_gene");
44 // event specific histograms
45 TH2F* fhVtzZRecoVsMC; // z pos of vertex reco vs MC
47 TH1F* fhVtxZRes; // estimated z res. of vertex
48 TH2F* fhVtxZResVsZ; // estimated z res. of vertex vs z
49 TH2F* fhVtxZResVsNPart; // estimated z res. of vertex vs n part
51 TH1F* fhVtxDzNorm; // (z_mc - z_reco)/estimated res.
52 TH2F* fhVtxDzNormVsZ; // (z_mc - z_reco)/estimated res. vs vtx z
53 TH2F* fhVtxDzNormVsNPart; // (z_mc - z_reco)/estimated res. vs n part.
55 TH1F* fhVtxZMC; // vtz z mc
56 TH1F* fhVtxZReco; // vtx z reco
58 TH1F* fhNPart; // n charged primary particles
60 // track specific histograms
62 TH3F* fhDEtaVsPtVsEta;
65 AliRecoVsGeneCheck(const AliRecoVsGeneCheck&);
66 AliRecoVsGeneCheck& operator=(const AliRecoVsGeneCheck&);
68 ClassDef(AliRecoVsGeneCheck, 1)