1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: Yvonne Pachmayer <pachmay@physi.uni-heidelberg.de> *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
17 // stores TPC TRD matching quantities in a THnSparse
20 // Yvonne Pachmayer <pachmay@physi.uni-heidelberg.de>
23 #ifndef ALITRDPIDMATCHING_H
24 #define ALITRDPIDMATCHING_H
26 #include "AliAnalysisTaskSE.h"
27 #include "AliTRDPIDTree.h"
32 typedef class THnSparseT<TArrayF> THnSparseF;
37 class AliESDtrackCuts;
38 class AliAnalysisTask;
39 class AliESDInputHandler;
40 class AliAnalysisManager;
51 class AliTRDPIDmatching : public AliTRDPIDTree {
53 AliTRDPIDmatching(const char *name= "trd_pid_matching");
54 virtual ~AliTRDPIDmatching();
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;
63 AliESDEvent *fESD; //! ESD event
64 AliMCEvent *fMC; //! MC event
65 THnSparseF *fTHntrdmatch; //! THnSparse containing the data
67 TObjArray *fOutputContainer; //! output data container
68 AliESDtrackCuts *fesdTrackCuts; //! ESD track cuts
69 Bool_t fHasMC; //! MC boolean
71 AliTRDPIDmatching(const AliTRDPIDmatching&); // not implemented
72 AliTRDPIDmatching& operator=(const AliTRDPIDmatching&); // not implemented
74 ClassDef(AliTRDPIDmatching, 1); // example of analysis