]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/UNICOR/AliDLoop.h
Removing obsolete files
[u/mrichter/AliRoot.git] / PWG2 / UNICOR / AliDLoop.h
1 // Author: Dariusz Miskowiec 2007
2
3 //=============================================================================
4 // simple event loop manager
5 //=============================================================================
6
7 #ifndef ALIDLOOP_H
8 #define ALIDLOOP_H
9
10 #include <TObject.h>
11
12 class TTree;
13 class AliDEvent;
14
15 //=============================================================================
16 class AliDLoop : public TObject {
17    
18  public:
19                                         // constructor
20   AliDLoop(TTree *tr, AliDEvent *ev0, char *outfil="result.root"); 
21   AliDLoop(const AliDLoop &loop);             // copy constructor
22   AliDLoop &operator=(const AliDLoop &loop);  // substitution operator
23   virtual ~AliDLoop() {}                   // destructor
24   void Run(int n=-1) const;             // process n events; n=-1 means all
25
26  protected:
27   TTree *fTree0;                        //! input event tree
28   TTree *fTree1;                        //! clone of fTree0 for event mixing
29   AliDEvent *fEv0;                         //! event
30   AliDEvent *fEv1;                         //! clone of fEv0 for event mixing
31   TString fOutputFilename;              //! output filename
32   Int_t Mem() const;                    // virtual memory in MB
33
34   ClassDef(AliDLoop,1)
35 };
36 //=============================================================================
37
38 #endif