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