]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/RESONANCES/AliRsnCutDelta.h
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGLF / RESONANCES / AliRsnCutDelta.h
CommitLineData
d96c8eaf 1#ifndef ALIRSNCUTDELTA_H
2#define ALIRSNCUTDELTA_H
3
4//
5// This cut implements all the checks done to accept a track as a proton and a pion
6// for the pp analysis using 2010 runs.
7// It is based on standard cuts on track quality and nsigma cuts
8// with respect to the TPC and TOF signals for the PID.
9//
10
11#include "AliVTrack.h"
12#include "AliRsnCut.h"
13#include "AliRsnCutTrackQuality.h"
14#include <string.h>
15
16
17
18
19class AliRsnCutDelta : public AliRsnCut {
20
21public:
22
23 AliRsnCutDelta(const char *name = "", AliPID::EParticleType pid = AliPID::kPion, Bool_t TPCMethod=kFALSE);
24 virtual ~AliRsnCutDelta() { }
25 void SetPID(AliPID::EParticleType type) {fPID = type;}
26 void SetTPCNSigma (Double_t v) {fNSigmaTPC = v;}
27 void SetTPCLimit (Double_t v) {fLimitTPC = v;}
28 void SetTOFNSigma (Double_t v) {fNSigmaTOF = v;}
29 void SetTPCNSigmaProton (Double_t v) {fNSigmaTPCProton = v;}
30 void SetTPCNSigmaPion (Double_t v) {fNSigmaTPCPion = v;}
31 void SetTOFNSigmaProton (Double_t v) {fNSigmaTOFProton = v;}
32 void SetTOFNSigmaPion (Double_t v) {fNSigmaTOFPion = v;}
33 void SetTPCMomProton (Double_t v) {fTPCMomProton = v;}
34 void SetTOFMomProton (Double_t v) {fTOFMomProton = v;}
35 void SetEtaRange (Double_t v) {fEtaRange = v;}
36 void SetTPCNCluster (Int_t v) {fTPCNCluster = v;}
37 void SetPtDepDCASigma (Double_t v) {fPtDepDCASigma = v;}
38
39
40
41
42 virtual Bool_t IsSelected(TObject *obj);
43
44 AliRsnCutTrackQuality *CutQuality() {return &fCutQuality;}
45
46 private:
47
48 Bool_t MatchTOF(const AliVTrack *vtrack);
49
50 AliPID::EParticleType fPID; // PID for track
51 Double_t fNSigmaTPC; // TPC: nsigma cut below limit
52 Double_t fLimitTPC; // TPC: momentum limit
53 Double_t fNSigmaTOF; // TOF: nsigma cut (unique)
54 Bool_t fTPCMethod; // Flag for selection of TPC or TOF Methods kTRUE->TPC kFALSE->TOF
55 Double_t fNSigmaTPCProton;// TPC: proton nsigma cut
56 Double_t fNSigmaTPCPion; // TPC: pion nsigma cut
57 Double_t fNSigmaTOFProton;// TOF: proton nsigma cut
58 Double_t fNSigmaTOFPion; // TOF: pion nsigma cut
59 Double_t fTPCMomProton; // TPC: proton mom cut
60 Double_t fTOFMomProton; // TOF: proton mom. cut
61 Double_t fEtaRange; // Eta range
62 Int_t fTPCNCluster; // Number of TPC clusters
63 Double_t fPtDepDCASigma; // Pt dep. DCA n-sigma
64
65 AliRsnCutTrackQuality fCutQuality; // track quality cut
66
67 ClassDef(AliRsnCutDelta,1)
68
69};
70
71#endif