3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
7 //_________________________________________________________________________
8 // Task Class for PID in TOF
10 //-- Authors: B. Zagreev, F. Pierella
22 class AliTOFPID: public TTask {
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 // getter for pointers to cuts
34 TCutG* GetElectronCut() const {return felectron;}
35 TCutG* GetPionCut() const {return fpion;}
36 TCutG* GetKaonCut() const {return fkaon;}
37 TCutG* GetProtonCut() const {return fproton;}
39 TFile * GetFileCuts() const {return fcut;}
40 TNtuple* GetInputNtuple() const {return fNtuple;}
42 Bool_t operator == (const AliTOFPID & tofpid) const ;
45 TCutG *felectron; // pointer to cut for electron
46 TCutG *fpion; // pointer to cut for pion
47 TCutG *fkaon; // pointer to cut for kaon
48 TCutG *fproton; // pointer to cut for proton
49 TFile *fcut; // pointer to file containing cuts
50 TNtuple *fNtuple; // pointer to ntuple
53 char* foutfileName; // destination file name for histos
54 Int_t fNevents; // number of events
60 ClassDef(AliTOFPID,0) // Task class for TOF pid