]>
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 | ||
ff8249bd | 16 | #ifndef ROOT_TARRAY |
17 | #include <TArrayD.h> | |
18 | #endif | |
19 | ||
3a72645a | 20 | class AliVParticle; |
4437a0d2 | 21 | class AliVTrack; |
bf892a6a | 22 | class AliPID; |
23 | ||
3a72645a | 24 | class AliHFEpidQAmanager; |
809a4336 | 25 | |
26 | class AliHFEpidTOF : public AliHFEpidBase{ | |
50685501 | 27 | public: |
3a72645a | 28 | AliHFEpidTOF(); |
50685501 | 29 | AliHFEpidTOF(const Char_t *name); |
30 | virtual ~AliHFEpidTOF(); | |
31 | AliHFEpidTOF(const AliHFEpidTOF &c); | |
32 | AliHFEpidTOF &operator=(const AliHFEpidTOF &c); | |
33 | ||
8c1c76e9 | 34 | virtual Bool_t InitializePID(Int_t /*run*/); |
6555e2ad | 35 | virtual Int_t IsSelected(const AliHFEpidObject *track, AliHFEpidQAmanager *piqa) const; |
50685501 | 36 | |
c2690925 | 37 | void SetTOFnSigma(Float_t nSigma) { fNsigmaTOF = nSigma; }; |
959ea9d8 | 38 | void SetTOFnSigmaBand(Float_t lower, Float_t upper); |
5cd679b7 | 39 | void SetTOFnSigmaBandCentrality(Float_t lower, Float_t upper, Int_t centralityBin); |
ff8249bd | 40 | void SetGenerateTOFmismatch(Bool_t gen = kTRUE, Int_t ntrk = 10) { fGenerateTOFmismatch = gen; fNmismatchTracks = ntrk; } |
41 | Bool_t IsGenerateTOFmismatch() const { return fGenerateTOFmismatch; } | |
42 | Int_t GetNmismatchTracks() const { return fNmismatchTracks; } | |
4437a0d2 | 43 | void UseTOFonlyIfAvailable() { fUseOnlyIfAvailable = kTRUE; } |
44 | void SetRejectTOFmismatch() { fRejectMismatch = kTRUE; } | |
ff8249bd | 45 | void GenerateTOFmismatch(const AliVTrack * const trk, int ntrk, TArrayD &sigmaEl); |
9bcfd1ab | 46 | |
50685501 | 47 | protected: |
48 | void Copy(TObject &ref) const; | |
4437a0d2 | 49 | Bool_t IsMismatch(const AliVTrack *const track) const; |
50 | ||
50685501 | 51 | private: |
11ff28c5 | 52 | enum { |
53 | kSigmaBand = BIT(15) | |
54 | }; | |
55 | Float_t fNsigmaTOF; // TOF sigma band | |
5cd679b7 | 56 | Float_t fSigmaBordersTOFLower[12]; // Min. sigma cut |
57 | Float_t fSigmaBordersTOFUpper[12]; // Max. sigma cut | |
4437a0d2 | 58 | Bool_t fUseOnlyIfAvailable; // Use TOF obly if available |
59 | Bool_t fRejectMismatch; // Reject TOF mismatch | |
ff8249bd | 60 | Bool_t fGenerateTOFmismatch; // Generate TOF mismatch |
61 | Int_t fNmismatchTracks; // Number of mismatch tracks to generate | |
50685501 | 62 | |
9bcfd1ab | 63 | ClassDef(AliHFEpidTOF, 1) |
809a4336 | 64 | }; |
65 | ||
66 | #endif |