]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HMPID/AliHMPIDAnalysisTask.h
Coding conventions, simplifications
[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 #ifndef AliHMPIDAnalysisTASK_H
18 #define AliHMPIDAnalysisTASK_H
19
20 #include "AliAnalysisTaskSE.h"
21
22 class TH1I;
23 class TParticle ;
24 class TFile ;
25 class AliStack ;
26 class AliESDtrack;
27
28 class AliHMPIDAnalysisTask : public AliAnalysisTaskSE {
29   public:
30
31   enum {kChamber = 7};
32
33   AliHMPIDAnalysisTask();
34   AliHMPIDAnalysisTask(const Char_t* name);
35   AliHMPIDAnalysisTask& operator= (const AliHMPIDAnalysisTask& c);
36   AliHMPIDAnalysisTask(const AliHMPIDAnalysisTask& c);
37   virtual ~AliHMPIDAnalysisTask();
38
39   // ANALYSIS FRAMEWORK STUFF
40   void     UserCreateOutputObjects();
41   void     UserExec(Option_t *option);
42   void     Terminate(Option_t *);
43
44   // setter
45   void   SetTrigger(Int_t trigger) {fTrigger = trigger;}
46
47  protected:
48   TList          *fHistList ;  // list of histograms
49   
50   //Number of events
51   TH1I  *fHistEventsProcessed ;  // simple histo for monitoring number of processed events
52   Int_t          fNevts       ;  //event numbering
53   Int_t          fTrigNevts   ;  //event numbering with the requested trigger
54   Int_t          fTrigger     ;  //requested trigger
55   
56   ClassDef(AliHMPIDAnalysisTask,1);
57 };
58
59 #endif