Minor fix for software triggers.
[u/mrichter/AliRoot.git] / PWG3 / base / AliAnalysisTaskPtMothFromPtDaugh.h
CommitLineData
c4df3c2a 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
18class AliPtMothFromPtDaugh;
19class TNtuple;
20class TH1F;
21class TList;
22
23class AliAnalysisTaskPtMothFromPtDaugh : public AliAnalysisTaskSE {
24
25public:
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
43private:
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