ROOT logo
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
*                                                                        *
* Author: Yvonne Pachmayer <pachmay@physi.uni-heidelberg.de>             *
* Contributors are mentioned in the code where appropriate.              *
*                                                                        *
* Permission to use, copy, modify and distribute this software and its   *
* documentation strictly for non-commercial purposes is hereby granted   *
* without fee, provided that the above copyright notice appears in all   *
* copies and that both the copyright notice and this permission notice   *
* appear in the supporting documentation. The authors make no claims     *
* about the suitability of this software for any purpose. It is          *
* provided "as is" without express or implied warranty.                  *
**************************************************************************/
//
// The task:
// stores TPC TRD matching quantities in a THnSparse
//
//  Author:
//  Yvonne Pachmayer <pachmay@physi.uni-heidelberg.de>
//

#ifndef ALITRDPIDMATCHING_H
#define ALITRDPIDMATCHING_H

#include "AliAnalysisTaskSE.h"
#include "AliTRDPIDTree.h"

class TArrayF;
template <class X>
class THnSparseT;
typedef class THnSparseT<TArrayF> THnSparseF;
class TFile;
class AliESDEvent;
class AliESDpid;
class AliESD;
class AliESDtrackCuts;
class AliAnalysisTask;
class AliESDInputHandler;
class AliAnalysisManager;
class AliCentrality;
class TTree;
class TSystem;
class TStyle;
class TROOT;
class Riostream;
class TChain;



class AliTRDPIDmatching : public AliTRDPIDTree {
 public:
  AliTRDPIDmatching(const char *name= "trd_pid_matching");
  virtual ~AliTRDPIDmatching();
  
  virtual void   UserCreateOutputObjects();
  virtual void   UserExec(Option_t *);
  virtual void   ProcessData(AliESDEvent *const esdEvent=0);
  virtual void   Terminate(const Option_t*);
  Int_t          CompareFloat(Float_t f1=1, Float_t f2=0) const;

 private:
  AliESDEvent *fESD;      //! ESD event
  AliMCEvent  *fMC;       //! MC event
  THnSparseF  *fTHntrdmatch;  //! THnSparse containing the data

  TObjArray   *fOutputContainer; //! output data container
  AliESDtrackCuts *fesdTrackCuts; //! ESD track cuts
  Bool_t fHasMC;          //! MC boolean
   
  AliTRDPIDmatching(const AliTRDPIDmatching&); // not implemented
  AliTRDPIDmatching& operator=(const AliTRDPIDmatching&); // not implemented
  
  ClassDef(AliTRDPIDmatching, 1); // example of analysis
};

#endif
 AliTRDPIDmatching.h:1
 AliTRDPIDmatching.h:2
 AliTRDPIDmatching.h:3
 AliTRDPIDmatching.h:4
 AliTRDPIDmatching.h:5
 AliTRDPIDmatching.h:6
 AliTRDPIDmatching.h:7
 AliTRDPIDmatching.h:8
 AliTRDPIDmatching.h:9
 AliTRDPIDmatching.h:10
 AliTRDPIDmatching.h:11
 AliTRDPIDmatching.h:12
 AliTRDPIDmatching.h:13
 AliTRDPIDmatching.h:14
 AliTRDPIDmatching.h:15
 AliTRDPIDmatching.h:16
 AliTRDPIDmatching.h:17
 AliTRDPIDmatching.h:18
 AliTRDPIDmatching.h:19
 AliTRDPIDmatching.h:20
 AliTRDPIDmatching.h:21
 AliTRDPIDmatching.h:22
 AliTRDPIDmatching.h:23
 AliTRDPIDmatching.h:24
 AliTRDPIDmatching.h:25
 AliTRDPIDmatching.h:26
 AliTRDPIDmatching.h:27
 AliTRDPIDmatching.h:28
 AliTRDPIDmatching.h:29
 AliTRDPIDmatching.h:30
 AliTRDPIDmatching.h:31
 AliTRDPIDmatching.h:32
 AliTRDPIDmatching.h:33
 AliTRDPIDmatching.h:34
 AliTRDPIDmatching.h:35
 AliTRDPIDmatching.h:36
 AliTRDPIDmatching.h:37
 AliTRDPIDmatching.h:38
 AliTRDPIDmatching.h:39
 AliTRDPIDmatching.h:40
 AliTRDPIDmatching.h:41
 AliTRDPIDmatching.h:42
 AliTRDPIDmatching.h:43
 AliTRDPIDmatching.h:44
 AliTRDPIDmatching.h:45
 AliTRDPIDmatching.h:46
 AliTRDPIDmatching.h:47
 AliTRDPIDmatching.h:48
 AliTRDPIDmatching.h:49
 AliTRDPIDmatching.h:50
 AliTRDPIDmatching.h:51
 AliTRDPIDmatching.h:52
 AliTRDPIDmatching.h:53
 AliTRDPIDmatching.h:54
 AliTRDPIDmatching.h:55
 AliTRDPIDmatching.h:56
 AliTRDPIDmatching.h:57
 AliTRDPIDmatching.h:58
 AliTRDPIDmatching.h:59
 AliTRDPIDmatching.h:60
 AliTRDPIDmatching.h:61
 AliTRDPIDmatching.h:62
 AliTRDPIDmatching.h:63
 AliTRDPIDmatching.h:64
 AliTRDPIDmatching.h:65
 AliTRDPIDmatching.h:66
 AliTRDPIDmatching.h:67
 AliTRDPIDmatching.h:68
 AliTRDPIDmatching.h:69
 AliTRDPIDmatching.h:70
 AliTRDPIDmatching.h:71
 AliTRDPIDmatching.h:72
 AliTRDPIDmatching.h:73
 AliTRDPIDmatching.h:74
 AliTRDPIDmatching.h:75
 AliTRDPIDmatching.h:76
 AliTRDPIDmatching.h:77