]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGHF/hfe/AliHFEpidTOF.h
Update to run on AOD
[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 AliPID;
18
19 class AliHFEpidQAmanager;
20
21 class AliHFEpidTOF : public AliHFEpidBase{
22   public:
23     AliHFEpidTOF();
24     AliHFEpidTOF(const Char_t *name);
25     virtual ~AliHFEpidTOF();
26     AliHFEpidTOF(const AliHFEpidTOF &c);
27     AliHFEpidTOF &operator=(const AliHFEpidTOF &c);
28   
29     virtual Bool_t    InitializePID(Int_t /*run*/);
30     virtual Int_t     IsSelected(const AliHFEpidObject *track, AliHFEpidQAmanager *piqa) const;
31   
32     void SetTOFnSigma(Float_t nSigma) { fNsigmaTOF = nSigma; };
33     void SetTOFnSigmaBand(Float_t lower, Float_t upper) { fSigmaBordersTOF[0] = lower; fSigmaBordersTOF[1] = upper; SetBit(kSigmaBand, kTRUE); }
34
35   protected:
36     void Copy(TObject &ref) const;
37   private:
38     enum {
39       kSigmaBand = BIT(15)
40     };
41     Float_t    fNsigmaTOF;          // TOF sigma band
42     Float_t    fSigmaBordersTOF[2]; // Min. and Max TOF sigma cut
43
44     ClassDef(AliHFEpidTOF, 1)
45 };
46
47 #endif