1 #ifndef ALITRDEFFICIENCY_H
2 #define ALITRDEFFICIENCY_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 /* $Id: AliTRDefficiency.h 27496 2008-07-22 08:35:45Z cblume $ */
8 ////////////////////////////////////////////////////////////////////////////
10 // Reconstruction QA //
12 ////////////////////////////////////////////////////////////////////////////
14 #ifndef ALITRDRECOTASK_H
15 #include "AliTRDrecoTask.h"
24 class TTreeSRedirector;
25 class AliTRDefficiency : public AliTRDrecoTask
28 enum ETRDefficiencySteer {
29 kDump = BIT(18) // dump 3D projections
32 AliTRDefficiency(char* name);
33 virtual ~AliTRDefficiency();
34 // void UserCreateOutputObjects();
35 void LocalUserExec(Option_t *);
36 Bool_t GetRefFigure(Int_t ifig);
37 static Int_t GetPtBin(Float_t pt);
39 TH1* PlotBasicEff(const AliTRDtrackV1 *t=NULL);
40 // TH1* PlotMC(const AliTRDtrackV1 *t=NULL);
43 TObjArray* Results() const {return fProj;}
44 void SetDump3D(const Bool_t dump=kTRUE) { SetBit(kDump, dump);}
46 Bool_t MakeProjectionBasicEff();
47 Bool_t HasDump3D() const { return TestBit(kDump);}
50 AliTRDefficiency(const AliTRDefficiency&);
51 AliTRDefficiency& operator=(const AliTRDefficiency&);
52 TH2* Projection2D(TH3 *h3, Int_t ipt);
54 TClonesArray *fMissed; // Missed ?
55 TObjArray *fProj; //! result holder - sigma values
57 ClassDef(AliTRDefficiency, 2) // TRD tracking efficiency