ROOT logo
#ifndef ALIEVENTPOOLLOOP_H
#define ALIEVENTPOOLLOOP_H
 
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice                               */

/* $Id$ */

// Realisation of an AliVEventPool which allows the user to
// run the analysis in a loop, i.e. passing several times over 
// the same event chain.
// Author Andreas Morsch
// andreas.morsch@cern.ch

#include <AliVEventPool.h>
class AliRunTagCuts;
class AliLHCTagCuts;
class AliDetectorTagCuts;
class AliEventTagCuts;
class AliTagAnalysis;
class TChain;

class AliEventPoolLoop : public AliVEventPool
{
 public:
    AliEventPoolLoop();
    AliEventPoolLoop(Int_t nit);
    AliEventPoolLoop(const char* name, const char* title);

    virtual ~AliEventPoolLoop() {;}
    // Interface
    virtual TChain* GetNextChain();
    virtual void  GetCurrentBin(Float_t* /*bin*/);
    virtual Int_t GetDimension();
    virtual void  Init();
    virtual Int_t BinNumber() const {return fNIteration;}
	    
 private:
    AliEventPoolLoop(const AliEventPoolLoop& obj);
    AliEventPoolLoop& operator=(const AliEventPoolLoop& other);
 protected:
    Int_t fMaxIterations; // Maximum number of iterations 
    Int_t fNIteration;    // Number of iterations
    TChain* fChainClone; // Clone of the original 
    ClassDef(AliEventPoolLoop, 0); 
};
 
#endif
 AliEventPoolLoop.h:1
 AliEventPoolLoop.h:2
 AliEventPoolLoop.h:3
 AliEventPoolLoop.h:4
 AliEventPoolLoop.h:5
 AliEventPoolLoop.h:6
 AliEventPoolLoop.h:7
 AliEventPoolLoop.h:8
 AliEventPoolLoop.h:9
 AliEventPoolLoop.h:10
 AliEventPoolLoop.h:11
 AliEventPoolLoop.h:12
 AliEventPoolLoop.h:13
 AliEventPoolLoop.h:14
 AliEventPoolLoop.h:15
 AliEventPoolLoop.h:16
 AliEventPoolLoop.h:17
 AliEventPoolLoop.h:18
 AliEventPoolLoop.h:19
 AliEventPoolLoop.h:20
 AliEventPoolLoop.h:21
 AliEventPoolLoop.h:22
 AliEventPoolLoop.h:23
 AliEventPoolLoop.h:24
 AliEventPoolLoop.h:25
 AliEventPoolLoop.h:26
 AliEventPoolLoop.h:27
 AliEventPoolLoop.h:28
 AliEventPoolLoop.h:29
 AliEventPoolLoop.h:30
 AliEventPoolLoop.h:31
 AliEventPoolLoop.h:32
 AliEventPoolLoop.h:33
 AliEventPoolLoop.h:34
 AliEventPoolLoop.h:35
 AliEventPoolLoop.h:36
 AliEventPoolLoop.h:37
 AliEventPoolLoop.h:38
 AliEventPoolLoop.h:39
 AliEventPoolLoop.h:40
 AliEventPoolLoop.h:41
 AliEventPoolLoop.h:42
 AliEventPoolLoop.h:43
 AliEventPoolLoop.h:44
 AliEventPoolLoop.h:45
 AliEventPoolLoop.h:46
 AliEventPoolLoop.h:47
 AliEventPoolLoop.h:48