Added IsInFiducualAcceptance() (Alessandro)
[u/mrichter/AliRoot.git] / PWG3 / vertexingHF / AliRDHFCutsDStartoKpipi.h
CommitLineData
45bc9115 1#ifndef ALIRDHFCUTSDSTARTOKPIPI_H
2#define ALIRDHFCUTSDSTARTOKPIPI_H
3/* Copyright(c) 1998-2010, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6//***********************************************************
7// Class AliRDHFCutsDStartoKpipi
8// class for cuts on AOD reconstructed DStar->Kpipi
9// Author: A.Grelli, alessandro.grelli@uu.nl
10//***********************************************************
11
12#include "AliRDHFCuts.h"
13
14class AliRDHFCutsDStartoKpipi : public AliRDHFCuts
15{
16 public:
17
da6fefc3 18 AliRDHFCutsDStartoKpipi(const char* name="CutsDStartoKpipi");
45bc9115 19
20 virtual ~AliRDHFCutsDStartoKpipi(){}
21
22 AliRDHFCutsDStartoKpipi(const AliRDHFCutsDStartoKpipi& source);
23 AliRDHFCutsDStartoKpipi& operator=(const AliRDHFCutsDStartoKpipi& source);
24
25 virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgD0daughters);
26
27 using AliRDHFCuts::IsSelected;
28 virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel);
da6fefc3 29 Int_t IsD0FromDStarSelected(Double_t pt, TObject* obj,Int_t selectionLevel) const;
96462a8c 30 virtual Bool_t IsInFiducialAcceptance(Double_t pt,Double_t y) const;
da6fefc3 31 Float_t GetMassCut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(9,iPtBin)] : 1.e6);} // for the Dstar
32 Float_t GetDCACut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(1,iPtBin)] : 1.e6);} // for the D0
33
34 void AddTrackCutsSoftPi(const AliESDtrackCuts *cuts)
35 {fTrackCutsSoftPi=new AliESDtrackCuts(*cuts); return;}
36 AliESDtrackCuts *GetTrackCutsSoftPi() const {return fTrackCutsSoftPi;}
45bc9115 37
38 protected:
39
da6fefc3 40 AliESDtrackCuts *fTrackCutsSoftPi; // cuts for soft pion (AOD converted to ESD on the flight!)
45bc9115 41
da6fefc3 42 ClassDef(AliRDHFCutsDStartoKpipi,2); // class for cuts on AOD reconstructed D0->Kpipi
45bc9115 43};
44
45#endif