1 #ifndef ALIANALYSISCENTRALCUTESD_H
2 #define ALIANALYSISCENTRALCUTESD_H
6 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved.
7 * See cxx source for full Copyright notice
11 // ---------------------------------------------------
12 // ESD particle level cuts for azimuthal isotropic
13 // expansion in highly central collisions analysis
14 // author: Cristian Andrei
15 // acristian@niham.nipne.ro
16 // ---------------------------------------------------
22 #include "AliAnalysisCuts.h"
32 class AliAnalysisCentralCutESD: public AliAnalysisCuts {
34 AliAnalysisCentralCutESD(const char *name="AliAnalysisCentralCutESD", const char *title="ESD_cuts");
35 virtual ~AliAnalysisCentralCutESD();
37 Bool_t IsSelected(TObject* obj);
38 Bool_t IsSelected(TList* /*list*/) {return kTRUE;}
40 void SetPartType(PDG_t type) {fReqPID = kTRUE; fPartType = type;}
41 void SetPIDtype(TString type) {fPIDtype = type;}
42 void SetPriorFunctions(Bool_t pfunc) {fPriorsFunc = pfunc;}
44 void SetReqIsCharged() {fReqCharge = kTRUE;}
47 AliAnalysisCentralCutESD(const AliAnalysisCentralCutESD &ref);
48 AliAnalysisCentralCutESD& operator=(const AliAnalysisCentralCutESD &ref);
50 Bool_t fReqPID; //kTRUE -> run the PID
52 Bool_t fReqCharge; //kTRUE -> only charged particles selected
54 PDG_t fPartType; //can be kPi*, kK* or kProton
56 TString fPIDtype; //PID method -> can be Custom or Bayesian
57 Bool_t fPriorsFunc; // if kTRUE -> use function priors
59 Double_t fPartPriors[10]; //prior probabilities
60 TF1 *fElectronFunction; //momentum dependence of the prior probs
61 TF1 *fMuonFunction; //momentum dependence of the prior probs
62 TF1 *fPionFunction; //momentum dependence of the prior probs
63 TF1 *fKaonFunction; //momentum dependence of the prior probs
64 TF1 *fProtonFunction; //momentum dependence of the prior probs
66 Bool_t IsA(AliESDtrack *track, PDG_t type);
68 Bool_t IsCharged (AliESDtrack* const track) const;
70 Double_t GetPriors(Int_t i, Double_t P);
72 ClassDef(AliAnalysisCentralCutESD, 1);