]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HMPID/AliHMPIDAnalysisTask.h
For Pythia with tune don't switch off MI in ConfigHeavyFlavor
[u/mrichter/AliRoot.git] / HMPID / AliHMPIDAnalysisTask.h
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
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 //==============================================================================
17 // AliHMPIDAnalysysTask - Class representing a basic analysis tool of HMPID data at  
18 // level of ESD.
19 // A set of histograms is created.
20 //==============================================================================
21
22 #ifndef ALIHMPIDANALYSISTASK_H
23 #define ALIHMPIDANALYSISTASK_H
24
25 #include "AliAnalysisTaskSE.h"
26
27 class TH1;
28 class TH2;
29 class TParticle ;
30 class AliStack ;
31 class AliESDtrack;
32 class AliESDEvent;
33
34 class AliHMPIDAnalysisTask : public AliAnalysisTaskSE {
35   public:
36
37   enum {kChamber = 7};
38
39   AliHMPIDAnalysisTask();
40   AliHMPIDAnalysisTask(const Char_t* name);
41   AliHMPIDAnalysisTask& operator= (const AliHMPIDAnalysisTask& c);
42   AliHMPIDAnalysisTask(const AliHMPIDAnalysisTask& c);
43   virtual ~AliHMPIDAnalysisTask();
44   
45   virtual void   ConnectInputData(Option_t *);
46   virtual void   CreateOutputObjects();
47   virtual void   Exec(Option_t *option);
48   virtual void   Terminate(Option_t *);
49           Bool_t Equal(Double_t x, Double_t y, Double_t tolerance);
50   
51  protected:
52      
53  private:     
54  
55   void   SetTrigger(Int_t trigger) {fTrigger = trigger;}
56   AliESDEvent   *fESD;             //! ESD object
57   TList         *fHmpHistList ;    // list of histograms 
58   Int_t          fNevts       ;    //event numbering
59   Int_t          fTrigNevts   ;    //event numbering with the requested trigger
60   Int_t          fTrigger     ;    //requested trigger
61   TH2F          *fHmpPesdPhmp;     // HMP momentum vs ESD momentum
62   TH2F          *fHmpCkovPesd;     // Ckov angle vs ESD momentum
63   TH2F          *fHmpCkovPhmp;     // Ckov angle vs HMP momenutm
64   TH1F          *fHmpMipTrkDist;   // Track-Mip distance distribution
65   TH1F          *fHmpMipTrkDistX;  // Xtrk - Xmip
66   TH1F          *fHmpMipTrkDistY;  // Ytrk - Ymip
67   TH1F          *fHmpMipCharge3cm; // Mip charge with 3 cm distance cut 
68   TH1F          *fHmpMipCharge1cm; // Mip charge with 1 cm distance cut
69   TH1F          *fHmpNumPhots;     // Number of reconstructed photo-electrons
70   TH1F          *fHmpTrkFlags;     // track flags
71   
72   ClassDef(AliHMPIDAnalysisTask,2);
73 };
74
75 #endif