CMS 3D CMS Logo

FixedPUGenerator.h

Go to the documentation of this file.
00001 #ifndef FIXED_PU_GENERATOR_H
00002 #define FIXED_PU_GENERATOR_H
00003 
00004 /*----------------------------------------------------------------------
00005 
00006 ----------------------------------------------------------------------*/
00007 #include "Mixing/Base/interface/PUGenerator.h"
00008 
00009 namespace edm 
00010 {
00011 
00012   class FixedPUGenerator: public PUGenerator
00013     {
00014     public:
00015       explicit FixedPUGenerator(int average): nrEvtsPerBunch(average) { }
00016       ~FixedPUGenerator() { }
00017     
00018     private:
00019       virtual unsigned int numberOfEventsPerBunch() const { return nrEvtsPerBunch;}
00020 
00021       unsigned int nrEvtsPerBunch;
00022     };
00023 }//edm
00024 
00025 #endif 

Generated on Tue Jun 9 17:40:38 2009 for CMSSW by  doxygen 1.5.4