]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGHF/hfe/AliHFEpidTOF.h
Yvonne for the TPC-TOF MB pPb analysis
[u/mrichter/AliRoot.git] / PWGHF / hfe / AliHFEpidTOF.h
1 #ifndef ALIHFEPIDTOF_H
2 #define ALIHFEPIDTOF_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice   */   
6
7 //
8 // Class for TOF PID
9 // Rejects protons and kaons at the TPC dE/dx line crossings
10 // For more information please check the implementation file
11 //
12 #ifndef ALIHFEPIDBASE_H
13 #include "AliHFEpidBase.h"
14 #endif
15
16 class AliVParticle;
17 class AliVTrack;
18 class AliPID;
19
20 class AliHFEpidQAmanager;
21
22 class AliHFEpidTOF : public AliHFEpidBase{
23   public:
24     AliHFEpidTOF();
25     AliHFEpidTOF(const Char_t *name);
26     virtual ~AliHFEpidTOF();
27     AliHFEpidTOF(const AliHFEpidTOF &c);
28     AliHFEpidTOF &operator=(const AliHFEpidTOF &c);
29   
30     virtual Bool_t    InitializePID(Int_t /*run*/);
31     virtual Int_t     IsSelected(const AliHFEpidObject *track, AliHFEpidQAmanager *piqa) const;
32   
33     void SetTOFnSigma(Float_t nSigma) { fNsigmaTOF = nSigma; };
34     void SetTOFnSigmaBand(Float_t lower, Float_t upper);
35     void SetTOFnSigmaBandCentrality(Float_t lower, Float_t upper, Int_t centralityBin); 
36     void UseTOFonlyIfAvailable() { fUseOnlyIfAvailable = kTRUE; }
37     void SetRejectTOFmismatch() { fRejectMismatch = kTRUE; }
38
39   protected:
40     void Copy(TObject &ref) const;
41     Bool_t IsMismatch(const AliVTrack *const track) const;
42
43   private:
44     enum {
45       kSigmaBand = BIT(15)
46     };
47     Float_t    fNsigmaTOF;          // TOF sigma band
48     Float_t    fSigmaBordersTOFLower[12]; // Min.  sigma cut
49     Float_t    fSigmaBordersTOFUpper[12]; // Max.  sigma cut
50     Bool_t     fUseOnlyIfAvailable;       // Use TOF obly if available
51     Bool_t     fRejectMismatch;           // Reject TOF mismatch
52
53     ClassDef(AliHFEpidTOF, 1)
54 };
55
56 #endif