]>
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 | ||
16 | class TList; | |
17 | class TH2F; | |
18 | ||
722347d8 | 19 | class AliAODTrack; |
20 | class AliAODMCParticle; | |
21 | class AliESDtrack; | |
22 | class AliMCParticle; | |
10d100d4 | 23 | class AliESDpid; |
809a4336 | 24 | |
25 | class AliHFEpidTOF : public AliHFEpidBase{ | |
50685501 | 26 | public: |
27 | AliHFEpidTOF(const Char_t *name); | |
28 | virtual ~AliHFEpidTOF(); | |
29 | AliHFEpidTOF(const AliHFEpidTOF &c); | |
30 | AliHFEpidTOF &operator=(const AliHFEpidTOF &c); | |
31 | ||
32 | virtual Bool_t InitializePID(); | |
33 | virtual Int_t IsSelected(AliHFEpidObject *track); | |
34 | virtual Bool_t HasQAhistos() const { return kTRUE; }; | |
35 | ||
9bcfd1ab | 36 | void SetTOFnSigma(Short_t nSigma) { fNsigmaTOF = nSigma; }; |
37 | ||
38 | Double_t Likelihood(const AliESDtrack *track, Int_t species, Float_t rsig = 2.); | |
39 | ||
50685501 | 40 | protected: |
41 | void Copy(TObject &ref) const; | |
42 | void AddQAhistograms(TList *qaHist); | |
43 | Int_t MakePIDesd(AliESDtrack *esdTrack, AliMCParticle *mcTrack); | |
44 | Int_t MakePIDaod(AliAODTrack *aodTrack, AliAODMCParticle *mcTrack); | |
45 | ||
46 | private: | |
47 | typedef enum{ | |
48 | kHistTOFpidFlags = 0, | |
75d81601 | 49 | kHistTOFpidBetavP = 1, |
809a4336 | 50 | kHistTOFsignal = 2, |
51 | kHistTOFlength =3, | |
75d81601 | 52 | kHistTOFpid0 = 4, |
53 | kHistTOFpid1 = 5, | |
54 | kHistTOFpid2 = 6, | |
55 | kHistTOFpid3 = 7, | |
56 | kHistTOFpid4 = 8 | |
50685501 | 57 | } QAHist_t; |
9bcfd1ab | 58 | |
59 | AliPID *fPID; //! PID Object | |
60 | TList *fQAList; //! QA histograms | |
10d100d4 | 61 | AliESDpid *fESDpid; //! ESD pid object |
9bcfd1ab | 62 | |
63 | Short_t fNsigmaTOF; // TOF sigma band | |
50685501 | 64 | |
9bcfd1ab | 65 | ClassDef(AliHFEpidTOF, 1) |
809a4336 | 66 | }; |
67 | ||
68 | #endif |