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 */
8 ///////////////////////////////////////////////////////////////////////////
10 // Class AnalysisTaskAliPtMothFromPtDaugh //
11 // AnalysisTaskSE used for the reconstruction of mothers particles //
12 // spectra (pT and pTMin) starting from the pT-spectra of //
13 // daughters particles. //
15 // Contact: Giuseppe.Bruno@ba.infn.it & Fiorella.Fionda@ba.infn.it //
17 ///////////////////////////////////////////////////////////////////////////
19 #include "AliAnalysisTaskSE.h"
21 class AliPtMothFromPtDaugh;
26 class AliAnalysisTaskPtMothFromPtDaugh : public AliAnalysisTaskSE {
29 AliAnalysisTaskPtMothFromPtDaugh();
30 AliAnalysisTaskPtMothFromPtDaugh(Bool_t IsNtuplaCreated);
31 virtual ~AliAnalysisTaskPtMothFromPtDaugh();
33 virtual void UserExec(Option_t *option);
34 virtual void UserCreateOutputObjects();
35 virtual void Terminate(Option_t *option);
37 void SetPtMothFromPtDaugh(AliPtMothFromPtDaugh * const ptExtr)
38 { fPtMothDaugh = ptExtr; } // set AliPtMothFromPtDaugh object
39 void SetReadKineFromNtupla(Bool_t ReadKinematic)
40 {fReadKineFromNtupla = ReadKinematic;} // set flag to read kinematics from Ntupla
41 void SetNtuplaFileName(char *fileNtuplaName)
42 {fFileNtuplaName=fileNtuplaName;} // set file name from which Ntupla is read
43 TNtuple *ReadNtuplaFromFile(char * inFileName); // get the Ntupla from the file
44 AliPtMothFromPtDaugh *GetPtMothFromPtDaugh(){return fPtMothDaugh;}
48 AliPtMothFromPtDaugh *fPtMothDaugh; //Pointer to AliPtMothFromPtDaugh object
49 TNtuple *fDecayKine; //Ntupla to store kinematic information of Decay (optional output)
50 Bool_t fReadKineFromNtupla; //kTRUE: read kinematics from Ntupla
51 //kFALSE: loops on events to evaluate Ntupla
52 char *fFileNtuplaName; //file name from which Ntupla is read
53 TList *fList; //List of mothers histograms (standard output)
55 AliAnalysisTaskPtMothFromPtDaugh(const AliAnalysisTaskPtMothFromPtDaugh &c);
56 AliAnalysisTaskPtMothFromPtDaugh& operator= (const AliAnalysisTaskPtMothFromPtDaugh &c);
58 ClassDef(AliAnalysisTaskPtMothFromPtDaugh,1); // task for analysis of mother pt spectrum from daughter pt spectrum