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;}
34 Bool_t operator == (const AliTOFPID & tofpid) const ;
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
45 char* foutfileName; // destination file name for histos
46 Int_t fNevents; // number of events
52 ClassDef(AliTOFPID,1) // Task class for TOF pid