]>
Commit | Line | Data |
---|---|---|
75d81601 | 1 | #ifndef ALIHFEPIDTOF_H |
2 | #define ALIHFEPIDTOF_H | |
809a4336 | 3 | |
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
50685501 | 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 | // | |
75d81601 | 12 | #ifndef ALIHFEPIDBASE_H |
809a4336 | 13 | #include "AliHFEpidBase.h" |
14 | #endif | |
15 | ||
3a72645a | 16 | class AliVParticle; |
4437a0d2 | 17 | class AliVTrack; |
bf892a6a | 18 | class AliPID; |
19 | ||
3a72645a | 20 | class AliHFEpidQAmanager; |
809a4336 | 21 | |
22 | class AliHFEpidTOF : public AliHFEpidBase{ | |
50685501 | 23 | public: |
3a72645a | 24 | AliHFEpidTOF(); |
50685501 | 25 | AliHFEpidTOF(const Char_t *name); |
26 | virtual ~AliHFEpidTOF(); | |
27 | AliHFEpidTOF(const AliHFEpidTOF &c); | |
28 | AliHFEpidTOF &operator=(const AliHFEpidTOF &c); | |
29 | ||
8c1c76e9 | 30 | virtual Bool_t InitializePID(Int_t /*run*/); |
6555e2ad | 31 | virtual Int_t IsSelected(const AliHFEpidObject *track, AliHFEpidQAmanager *piqa) const; |
50685501 | 32 | |
c2690925 | 33 | void SetTOFnSigma(Float_t nSigma) { fNsigmaTOF = nSigma; }; |
959ea9d8 | 34 | void SetTOFnSigmaBand(Float_t lower, Float_t upper); |
5cd679b7 | 35 | void SetTOFnSigmaBandCentrality(Float_t lower, Float_t upper, Int_t centralityBin); |
4437a0d2 | 36 | void UseTOFonlyIfAvailable() { fUseOnlyIfAvailable = kTRUE; } |
37 | void SetRejectTOFmismatch() { fRejectMismatch = kTRUE; } | |
9bcfd1ab | 38 | |
50685501 | 39 | protected: |
40 | void Copy(TObject &ref) const; | |
4437a0d2 | 41 | Bool_t IsMismatch(const AliVTrack *const track) const; |
42 | ||
50685501 | 43 | private: |
11ff28c5 | 44 | enum { |
45 | kSigmaBand = BIT(15) | |
46 | }; | |
47 | Float_t fNsigmaTOF; // TOF sigma band | |
5cd679b7 | 48 | Float_t fSigmaBordersTOFLower[12]; // Min. sigma cut |
49 | Float_t fSigmaBordersTOFUpper[12]; // Max. sigma cut | |
4437a0d2 | 50 | Bool_t fUseOnlyIfAvailable; // Use TOF obly if available |
51 | Bool_t fRejectMismatch; // Reject TOF mismatch | |
50685501 | 52 | |
9bcfd1ab | 53 | ClassDef(AliHFEpidTOF, 1) |
809a4336 | 54 | }; |
55 | ||
56 | #endif |