New classes plus some renamed for a better user friendly interface
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnSimpleAnalysis.h
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
20 class TTree;
21 class AliRsnPID;
22 class AliRsnSimpleAnalyzer;
23
24 class AliRsnSimpleAnalysis : public TObject
25 {
26 public:
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
42 private:
43
44     AliRsnSimpleAnalysis(const AliRsnSimpleAnalysis &copy) :
45       TObject(copy),fInitialized(kFALSE),fStep(1000),fTree(0x0),fPID(0x0),fAnalyzer(0x0) { }
46     AliRsnSimpleAnalysis& operator=(const AliRsnSimpleAnalysis & /*copy*/) 
47       { return (*this); }
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