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