bug fix in post analysis macro
[u/mrichter/AliRoot.git] / PWGPP / pid / AliPIDmaxProb.h
1 #ifndef ALIPIDMAXPROB_H
2 #define ALIPIDMAXPROB_H
3
4
5 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
6  * See cxx source for full Copyright notice                               */
7
8 /* $Id: AliPIDmaxProb.h 49869 2013-07-10 04:49:51Z fnoferin $ */
9
10 /////////////////////////////////////////////////
11 //                                             //
12 //             PID cut max prob                //
13 //           noferini@bo.infn.it               //
14 /////////////////////////////////////////////////
15
16 #include"AliPIDperfCut.h"
17 #include"AliPIDCombined.h"
18
19 class AliPIDmaxProb : public AliPIDperfCut
20 {
21  public:
22   AliPIDmaxProb(const char *name);
23   AliPIDmaxProb();
24
25   void SetPIDMask(Int_t mask){fMaskPID=mask;}; // set the PID mask to be used
26
27   void RequireTPC(){fTPCin=kTRUE;};
28   void RequireTOF(){fTOFin=kTRUE;};
29
30   Bool_t IsSelected(AliVTrack *track,AliPID::EParticleType type) const;
31
32  private:
33   AliPIDmaxProb(const AliPIDmaxProb &old);
34   AliPIDmaxProb& operator=(const AliPIDmaxProb &source);
35
36   AliPIDCombined *fPIDCombined;         //! PID combined object
37   Int_t fMaskPID;                       // PID mask
38   Bool_t fTPCin;                        // TPC required
39   Bool_t fTOFin;                        // TOF required
40
41
42   ClassDef(AliPIDmaxProb,1)             // PID cut virtual class
43 };
44 #endif