]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGPP/TRD/AliTRDefficiency.h
updates in the PWGPP/TRD
[u/mrichter/AliRoot.git] / PWGPP / TRD / AliTRDefficiency.h
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                               */
5
6 /* $Id: AliTRDefficiency.h 27496 2008-07-22 08:35:45Z cblume $ */
7
8 ////////////////////////////////////////////////////////////////////////////
9 //                                                                        //
10 //  Reconstruction QA                                                     //
11 //                                                                        //
12 ////////////////////////////////////////////////////////////////////////////
13
14 #ifndef ALITRDRECOTASK_H
15 #include "AliTRDrecoTask.h"
16 #endif
17
18 class AliTRDtrackV1;
19 class TH2;
20 class TH3;
21 class TObjArray;
22 class TList;
23 class TClonesArray;
24 class TTreeSRedirector;
25 class AliTRDefficiency : public AliTRDrecoTask
26 {
27 public:
28   enum ETRDefficiencySteer {
29      kDump    = BIT(18) // dump 3D projections
30   };
31   AliTRDefficiency();
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);
38   TObjArray*    Histos();
39   TH1*          PlotBasicEff(const AliTRDtrackV1 *t=NULL);
40 //  TH1*          PlotMC(const AliTRDtrackV1 *t=NULL);
41   void          MakeSummary();
42   Bool_t        PostProcess();
43   TObjArray*    Results() const {return fProj;}
44   void          SetDump3D(const Bool_t dump=kTRUE)    { SetBit(kDump, dump);}
45 protected:
46   Bool_t        MakeProjectionBasicEff();
47   Bool_t        HasDump3D() const                     { return TestBit(kDump);}
48
49 private:
50   AliTRDefficiency(const AliTRDefficiency&);
51   AliTRDefficiency& operator=(const AliTRDefficiency&);
52   TH2*         Projection2D(TH3 *h3, Int_t ipt);
53
54   TClonesArray     *fMissed;          // Missed ?
55   TObjArray        *fProj;            //! result holder - sigma values
56
57   ClassDef(AliTRDefficiency, 2) // TRD tracking efficiency
58 };
59
60 #endif
61