New AliAnalysisTaskSE for selection of HF candidates (Andrea)
[u/mrichter/AliRoot.git] / PWG3 / AliAnalysisTaskSESelectHF.h
CommitLineData
0de9de87 1#ifndef ALIANALYSISTASKSESELECTHF_H
2#define ALIANALYSISTASKSESELECTHF_H
3
4/* Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7//*************************************************************************
8// Class AliAnalysisTaskSESelectHF
9// AliAnalysisTaskSE for the selection of heavy-flavour decay candidates
10// and creation of a stand-alone AOD
11// Author: A.Dainese, andrea.dainese@lnl.infn.it
12//*************************************************************************
13
14
15#include <TClonesArray.h>
16
17#include "AliAnalysisTaskSE.h"
18#include "AliAnalysisVertexingHF.h"
19
20
21class AliAnalysisTaskSESelectHF : public AliAnalysisTaskSE
22{
23 public:
24
25 AliAnalysisTaskSESelectHF();
26 AliAnalysisTaskSESelectHF(const char *name);
27 virtual ~AliAnalysisTaskSESelectHF();
28
29 AliAnalysisTaskSESelectHF(const AliAnalysisTaskSESelectHF &source);
30 AliAnalysisTaskSESelectHF& operator=(const AliAnalysisTaskSESelectHF& source);
31
32 // Implementation of interface methods
33 virtual void UserCreateOutputObjects();
34 virtual void Init();
35 virtual void LocalInit() {Init();}
36 virtual void UserExec(Option_t *option);
37 virtual void Terminate(Option_t *option);
38
39 void SetD0toKpiCuts(Double_t cut0=1000.,Double_t cut1=100000.,
40 Double_t cut2=1.1,Double_t cut3=0.,Double_t cut4=0.,
41 Double_t cut5=100000.,Double_t cut6=100000.,
42 Double_t cut7=100000000.,Double_t cut8=-1.1);
43 // cuts[0] = inv. mass half width [GeV]
44 // cuts[1] = dca [cm]
45 // cuts[2] = cosThetaStar
46 // cuts[3] = pTK [GeV/c]
47 // cuts[4] = pTPi [GeV/c]
48 // cuts[5] = d0K [cm] upper limit!
49 // cuts[6] = d0Pi [cm] upper limit!
50 // cuts[7] = d0d0 [cm^2]
51 // cuts[8] = cosThetaPoint
52 void SetD0toKpiCuts(const Double_t cuts[9]);
53
54 private:
55
56 TClonesArray *fVerticesHFTClArr; // Array of heavy-flavour vertices
57 TClonesArray *fD0toKpiTClArr; // Array of D0->Kpi
58 Double_t fD0toKpiCuts[9]; // cuts for D0->Kpi selection
59
60 ClassDef(AliAnalysisTaskSESelectHF,1); // AliAnalysisTaskSE for the reconstruction of heavy-flavour decay candidates
61};
62
63#endif
64