]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFPID.h
t0 classes added and material update (steel added)
[u/mrichter/AliRoot.git] / TOF / AliTOFPID.h
1 #ifndef ALITOFPID_H
2 #define ALITOFPID_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6
7 //_________________________________________________________________________
8 //  Task Class for PID in TOF      
9 //                  
10 //-- Authors: B. Zagreev, F. Pierella
11
12
13 #include "TTask.h"
14 #include "TCutG.h"
15 #include "TString.h"
16 #include <TF1.h>
17 #include <TF2.h>
18 #include <TH1.h>
19 #include <TH2.h>
20 #include <TNtuple.h>
21
22 class AliTOFPID: public TTask {
23
24 public:
25   AliTOFPID() ;          // ctor
26   AliTOFPID(char* headerFile, char *cutsFile, const Option_t* opt="pp") ; 
27   virtual ~AliTOFPID() ; // dtor   
28   virtual void  Exec(const Option_t *eventType, const Option_t *outputmode, const Option_t *outputsavemode); // do the main work
29   void          Init(const Option_t* opt);
30   void          SetNEvents(Int_t Nevents) {fNevents = Nevents;}
31   Int_t         GetNEvents() const {return fNevents;}
32   void  SetDbg(Int_t dbgflag)                        {fdbg=dbgflag;}
33
34   Bool_t   operator == (const AliTOFPID & tofpid) const ;
35
36 private:
37   TCutG *felectron; // pointer to cut for electron
38   TCutG *fpion;     // pointer to cut for pion
39   TCutG *fkaon;     // pointer to cut for kaon
40   TCutG *fproton;   // pointer to cut for proton
41   TFile *fcut;      // pointer to file containing cuts
42   TNtuple *fNtuple; // pointer to ntuple 
43   TFile *fhfile;
44   TFile *fgen;
45   char* foutfileName; // destination file name for histos
46   Int_t fNevents; // number of events
47   Int_t fdbg;
48   Int_t fTask;
49
50  protected:
51
52   ClassDef(AliTOFPID,1)  // Task class for TOF pid
53
54 };
55
56 #endif // AliTOFPID_H