MINT2
IUnweightedEventGenerator.h
Go to the documentation of this file.
1 #ifndef IUNWEIGHTED_EVENT_GENERATOR_HH
2 #define IUNWEIGHTED_EVENT_GENERATOR_HH
3 // author: Jonas Rademacker (Jonas.Rademacker@bristol.ac.uk)
4 // status: Mon 9 Feb 2009 19:17:54 GMT
5 
6 #include "Mint/counted_ptr.h"
7 #include "Mint/IEventGenerator.h"
8 //#include "TRandom.h"
9 
10 class TRandom;
11 
12 namespace MINT{
13  // (maybe this belongs in the fitter, not in mint)
14 
15 template<typename RETURN_TYPE>
16 class IUnweightedEventGenerator : public virtual IEventGenerator<RETURN_TYPE>{
17  public:
20 
21  virtual bool ensureFreshEvents()=0;
22  virtual bool setRnd(TRandom* rnd)=0;
23 
25 
26  // not really nice, but I need it now for debugging:
28  return true;
29  };
31  return true;
32  }
33 };
34 
35 }//namespace MINT
36 #endif
37 //
virtual bool setRnd(TRandom *rnd)=0
virtual bool ensureFreshEvents()=0
virtual bool am_I_generating_what_I_think_I_am_generating(int)
virtual counted_ptr< RETURN_TYPE > newEvent()=0
virtual counted_ptr< RETURN_TYPE > newUnweightedEvent()=0