1 #ifndef ALIANALYSISTASKPTMOTHFROMPTDAUGH_H
2 #define ALIANALYSISTASKPTMOTHFROMPTDAUGH_H
3 /* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5 ///////////////////////////////////////////////////////////////////////////
7 // Class AnalysisTaskAliPtMothFromPtDaugh //
8 // AnalysisTaskSE used for the reconstruction of mothers particles //
9 // spectra (pT and pTMin) starting from the pT-spectra of //
10 // daughters particles. //
12 // Contact: Giuseppe.Bruno@ba.infn.it & Fiorella.Fionda@ba.infn.it //
14 ///////////////////////////////////////////////////////////////////////////
16 #include "AliAnalysisTaskSE.h"
18 class AliPtMothFromPtDaugh;
23 class AliAnalysisTaskPtMothFromPtDaugh : public AliAnalysisTaskSE {
26 AliAnalysisTaskPtMothFromPtDaugh();
27 AliAnalysisTaskPtMothFromPtDaugh(Bool_t IsNtuplaCreated);
28 virtual ~AliAnalysisTaskPtMothFromPtDaugh();
30 virtual void UserExec(Option_t *option);
31 virtual void UserCreateOutputObjects();
32 virtual void Terminate(Option_t *option);
34 void SetPtMothFromPtDaugh(AliPtMothFromPtDaugh * const ptExtr)
35 { fPtMothDaugh = ptExtr; } // set AliPtMothFromPtDaugh object
36 void SetReadKineFromNtupla(Bool_t ReadKinematic)
37 {fReadKineFromNtupla = ReadKinematic;} // set flag to read kinematics from Ntupla
38 void SetNtuplaFileName(char *fileNtuplaName)
39 {fFileNtuplaName=fileNtuplaName;} // set file name from which Ntupla is read
40 TNtuple *ReadNtuplaFromFile(char * inFileName); // get the Ntupla from the file
41 AliPtMothFromPtDaugh *GetPtMothFromPtDaugh(){return fPtMothDaugh;}
45 AliPtMothFromPtDaugh *fPtMothDaugh; //Pointer to AliPtMothFromPtDaugh object
46 TNtuple *fDecayKine; //Ntupla to store kinematic information of Decay (optional output)
47 Bool_t fReadKineFromNtupla; //kTRUE: read kinematics from Ntupla
48 //kFALSE: loops on events to evaluate Ntupla
49 char *fFileNtuplaName; //file name from which Ntupla is read
50 TList *fList; //List of mothers histograms (standard output)
52 AliAnalysisTaskPtMothFromPtDaugh(const AliAnalysisTaskPtMothFromPtDaugh &c);
53 AliAnalysisTaskPtMothFromPtDaugh& operator= (const AliAnalysisTaskPtMothFromPtDaugh &c);
55 ClassDef(AliAnalysisTaskPtMothFromPtDaugh,1); // task for analysis of mother pt spectrum from daughter pt spectrum