Splitting pt bin 1-3 GeV in two bins (Chiara)
[u/mrichter/AliRoot.git] / PWG3 / vertexingHF / AliAnalysisTaskSED0Mass.h
CommitLineData
49061176 1#ifndef ALIANALYSISTASKSED0MASS_H
2#define ALIANALYSISTASKSED0MASS_H
3
4/* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7//*************************************************************************
8// Class AliAnalysisTaskSED0Mass
9// AliAnalysisTaskSE for D0 candidates invariant mass histogram
a41f6fad 10// and comparison to MC truth (kinematics stored in the AOD) and cut variables
11// distributions
49061176 12// Authors: A.Dainese, andrea.dainese@ln.infn.it
13// and C.Bianchin, chiara.bianchin@pd.infn.it
14//*************************************************************************
15
16#include <TROOT.h>
17#include <TSystem.h>
18#include <TNtuple.h>
19#include <TH1F.h>
20
21#include "AliAnalysisTaskSE.h"
22#include "AliAnalysisVertexingHF.h"
23
24class AliAnalysisTaskSED0Mass : public AliAnalysisTaskSE
25{
26 public:
27
28 AliAnalysisTaskSED0Mass();
29 AliAnalysisTaskSED0Mass(const char *name);
30 virtual ~AliAnalysisTaskSED0Mass();
31
32
33 // Implementation of interface methods
34 virtual void UserCreateOutputObjects();
35 virtual void Init();
36 virtual void LocalInit() {Init();}
37 virtual void UserExec(Option_t *option);
38 virtual void Terminate(Option_t *option);
39
feb73eca 40 void SetArray(Int_t type=AliAnalysisTaskSED0Mass::kD0){fArray=type;}
41
42 enum{kD0,kLS};
49061176 43
44 private:
45
46 AliAnalysisTaskSED0Mass(const AliAnalysisTaskSED0Mass &source);
47 AliAnalysisTaskSED0Mass& operator=(const AliAnalysisTaskSED0Mass& source);
feb73eca 48 void FillHists(Int_t ptbin, AliAODRecoDecayHF2Prong *part, TClonesArray *arrMC, AliAnalysisVertexingHF *vhf, TList *listout);
9de8c723 49 TList *fOutputPPR; //! list send on output slot 1
feb73eca 50 TList *fOutputloose; //! list send on output slot 2
51 TList *fDistr; //! list send on output slot 4
52 TH1F *fNentries; //! histogram with number of events on output slot 3
9de8c723 53 AliAnalysisVertexingHF *fVHFPPR; // Vertexer heavy flavour (used to pass the cuts)
a4ae02cd 54 AliAnalysisVertexingHF *fVHFloose; // Vertexer heavy flavour (used to pass the cuts)
9de8c723 55 Int_t fArray; // can be D0 or Like Sign candidates
feb73eca 56
57 Int_t fTotPosPairs[5]; //
58 Int_t fTotNegPairs[5]; //
9de8c723 59 Double_t fLsNormalization; // normalization
feb73eca 60
61
a41f6fad 62 ClassDef(AliAnalysisTaskSED0Mass,2); // AliAnalysisTaskSE for the MC association of heavy-flavour decay candidates
49061176 63};
64
65#endif