]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/RESONANCES/AliRsnSimpleAnalysis.h
Package revised - New AnalysisTask's - Added more functions
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnSimpleAnalysis.h
CommitLineData
2a445445 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * See cxx source for full Copyright notice *
4 **************************************************************************/
5
6//-------------------------------------------------------------------------
7// Class AliRsnSimpleAnalysis
8// Reconstruction and analysis of K* Rsn
9// ........................................
10// ........................................
11// ........................................
12// ........................................
13//
14// author: A. Pulvirenti (email: alberto.pulvirenti@ct.infn.it)
15//-------------------------------------------------------------------------
16
17#ifndef AliRsnSimpleAnalysis_H
18#define AliRsnSimpleAnalysis_H
19
20class TTree;
21class AliRsnPID;
22class AliRsnSimpleAnalyzer;
23
24class AliRsnSimpleAnalysis : public TObject
25{
aec0ec32 26 public:
2a445445 27
28 AliRsnSimpleAnalysis(AliRsnSimpleAnalyzer *ana = 0x0, AliRsnPID *pid = 0x0);
29 virtual ~AliRsnSimpleAnalysis() {Clear();}
30 virtual void Clear(Option_t *option = "");
31
32 void SetPID(AliRsnPID *pid) {fPID = pid;}
33 void SetAnalyzer(AliRsnSimpleAnalyzer *analyzer) {fAnalyzer = analyzer;}
34 void SetEventsTree(TTree *tree);
35 void SetFileName(char *fname) {strcpy(fFileName, fname);}
36 void SetStep(Int_t step) {fStep = step;}
37
38 Bool_t Initialize();
39 Stat_t Process();
40 void SaveOutput() const;
41
aec0ec32 42 private:
2a445445 43
44 AliRsnSimpleAnalysis(const AliRsnSimpleAnalysis &copy) :
aec0ec32 45 TObject(copy),fInitialized(kFALSE),fStep(1000),fTree(0x0),fPID(0x0),fAnalyzer(0x0) { }
46 AliRsnSimpleAnalysis& operator=(const AliRsnSimpleAnalysis & /*copy*/)
47 { return (*this); }
2a445445 48
49 Bool_t fInitialized; // flag to check initialization
50 Int_t fStep; // progress step
51 Char_t fFileName[250]; // output file name
52 TTree *fTree; //! TTree of events
53 AliRsnPID *fPID; //! PID manager
54 AliRsnSimpleAnalyzer *fAnalyzer; //! analyzer
55
56 ClassDef(AliRsnSimpleAnalysis,1) // dictionary
57};
58
59#endif