]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG3/base/AliAnalysisTaskPtMothFromPtDaugh.h
modified histo ranges
[u/mrichter/AliRoot.git] / PWG3 / base / AliAnalysisTaskPtMothFromPtDaugh.h
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 ///////////////////////////////////////////////////////////////////////////
6 //                                                                       //
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.                                                //
11 //                                                                       //
12 //   Contact: Giuseppe.Bruno@ba.infn.it & Fiorella.Fionda@ba.infn.it     //
13 //                                                                       //
14 ///////////////////////////////////////////////////////////////////////////
15
16 #include "AliAnalysisTaskSE.h"
17
18 class AliPtMothFromPtDaugh;
19 class TNtuple;
20 class TH1F;
21 class TList;
22
23 class AliAnalysisTaskPtMothFromPtDaugh : public AliAnalysisTaskSE {
24   
25 public:
26   AliAnalysisTaskPtMothFromPtDaugh();
27   AliAnalysisTaskPtMothFromPtDaugh(Bool_t IsNtuplaCreated);
28   virtual ~AliAnalysisTaskPtMothFromPtDaugh();
29
30   virtual void  UserExec(Option_t *option);
31   virtual void  UserCreateOutputObjects();
32   virtual void  Terminate(Option_t *option); 
33  
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;}   
42
43 private:
44   
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)
51
52   AliAnalysisTaskPtMothFromPtDaugh(const AliAnalysisTaskPtMothFromPtDaugh &c);
53   AliAnalysisTaskPtMothFromPtDaugh& operator= (const AliAnalysisTaskPtMothFromPtDaugh &c);
54   
55   ClassDef(AliAnalysisTaskPtMothFromPtDaugh,1);  // task for analysis of mother pt spectrum from daughter pt spectrum
56 };
57 #endif