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