]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGPP/TRD/TRDPID/AliTRDPIDmatching.h
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGPP / TRD / TRDPID / AliTRDPIDmatching.h
1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 *                                                                        *
4 * Author: Yvonne Pachmayer <pachmay@physi.uni-heidelberg.de>             *
5 * Contributors are mentioned in the code where appropriate.              *
6 *                                                                        *
7 * Permission to use, copy, modify and distribute this software and its   *
8 * documentation strictly for non-commercial purposes is hereby granted   *
9 * without fee, provided that the above copyright notice appears in all   *
10 * copies and that both the copyright notice and this permission notice   *
11 * appear in the supporting documentation. The authors make no claims     *
12 * about the suitability of this software for any purpose. It is          *
13 * provided "as is" without express or implied warranty.                  *
14 **************************************************************************/
15 //
16 // The task:
17 // stores TPC TRD matching quantities in a THnSparse
18 //
19 //  Author:
20 //  Yvonne Pachmayer <pachmay@physi.uni-heidelberg.de>
21 //
22
23 #ifndef ALITRDPIDMATCHING_H
24 #define ALITRDPIDMATCHING_H
25
26 #include "AliAnalysisTaskSE.h"
27 #include "AliTRDPIDTree.h"
28
29 class TArrayF;
30 template <class X>
31 class THnSparseT;
32 typedef class THnSparseT<TArrayF> THnSparseF;
33 class TFile;
34 class AliESDEvent;
35 class AliESDpid;
36 class AliESD;
37 class AliESDtrackCuts;
38 class AliAnalysisTask;
39 class AliESDInputHandler;
40 class AliAnalysisManager;
41 class AliCentrality;
42 class TTree;
43 class TSystem;
44 class TStyle;
45 class TROOT;
46 class Riostream;
47 class TChain;
48
49
50
51 class AliTRDPIDmatching : public AliTRDPIDTree {
52  public:
53   AliTRDPIDmatching(const char *name= "trd_pid_matching");
54   virtual ~AliTRDPIDmatching();
55   
56   virtual void   UserCreateOutputObjects();
57   virtual void   UserExec(Option_t *);
58   virtual void   ProcessData(AliESDEvent *const esdEvent=0);
59   virtual void   Terminate(const Option_t*);
60   Int_t          CompareFloat(Float_t f1=1, Float_t f2=0) const;
61
62  private:
63   AliESDEvent *fESD;      //! ESD event
64   AliMCEvent  *fMC;       //! MC event
65   THnSparseF  *fTHntrdmatch;  //! THnSparse containing the data
66
67   TObjArray   *fOutputContainer; //! output data container
68   AliESDtrackCuts *fesdTrackCuts; //! ESD track cuts
69   Bool_t fHasMC;          //! MC boolean
70    
71   AliTRDPIDmatching(const AliTRDPIDmatching&); // not implemented
72   AliTRDPIDmatching& operator=(const AliTRDPIDmatching&); // not implemented
73   
74   ClassDef(AliTRDPIDmatching, 1); // example of analysis
75 };
76
77 #endif