]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/SPECTRA/AliAnalysisCentralCutESD.h
Protection from C.Andrei plus some cosmetics and coding conventions
[u/mrichter/AliRoot.git] / PWG2 / SPECTRA / AliAnalysisCentralCutESD.h
CommitLineData
8a993eac 1#ifndef ALIANALYSISCENTRALCUTESD_H
2#define ALIANALYSISCENTRALCUTESD_H
bde49c8a 3/*
4 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved.
5 * See cxx source for full Copyright notice
6 * $Id$
7 */
8
8a993eac 9// ***************************************************
10// * ESD particle level cuts for azimuthal isotropic *
11// * expansion in highly central collisions analysis *
12// * author: Cristian Andrei *
13// * acristian@niham.nipne.ro *
14// ***************************************************
bde49c8a 15
bde49c8a 16#include <TPDGCode.h>
17
18#include "AliAnalysisCuts.h"
19
bde49c8a 20class TObject;
21class TList;
22class TF1;
8a993eac 23class TString;
bde49c8a 24
25class AliESDtrack;
26
27
28class AliAnalysisCentralCutESD: public AliAnalysisCuts {
29public:
30 AliAnalysisCentralCutESD(const char *name="AliAnalysisCentralCutESD", const char *title="ESD_cuts");
31 virtual ~AliAnalysisCentralCutESD();
32
33 Bool_t IsSelected(TObject* obj);
34 Bool_t IsSelected(TList* /*list*/) {return kTRUE;}
35
36 void SetPartType(PDG_t type) {fReqPID = kTRUE; fPartType = type;}
37 void SetPIDtype(TString type) {fPIDtype = type;}
38 void SetPriorFunctions(Bool_t pfunc) {fPriorsFunc = pfunc;}
39
40 void SetReqIsCharged() {fReqCharge = kTRUE;}
41
42private:
43 AliAnalysisCentralCutESD(const AliAnalysisCentralCutESD &ref);
44 AliAnalysisCentralCutESD& operator=(const AliAnalysisCentralCutESD &ref);
45
46 Bool_t fReqPID; //kTRUE -> run the PID
47
48 Bool_t fReqCharge; //kTRUE -> only charged particles selected
49
50 PDG_t fPartType; //can be kPi*, kK* or kProton
51
52 TString fPIDtype; //PID method -> can be Custom or Bayesian
53 Bool_t fPriorsFunc; // if kTRUE -> use function priors
54
55 Double_t fPartPriors[10]; //prior probabilities
56 TF1 *fElectronFunction; //momentum dependence of the prior probs
57 TF1 *fMuonFunction; //momentum dependence of the prior probs
58 TF1 *fPionFunction; //momentum dependence of the prior probs
59 TF1 *fKaonFunction; //momentum dependence of the prior probs
60 TF1 *fProtonFunction; //momentum dependence of the prior probs
61
62 Bool_t IsA(AliESDtrack *track, PDG_t type);
63
64 Bool_t IsCharged (AliESDtrack* const track) const;
65
66 Double_t GetPriors(Int_t i, Double_t P);
67
68 ClassDef(AliAnalysisCentralCutESD, 1);
69};
70
71#endif