00001 #ifndef MixingWorkerBase_h 00002 #define MixingWorkerBase_h 00003 00015 #include "FWCore/Framework/interface/Event.h" 00016 #include "FWCore/Framework/interface/Principal.h" 00017 #include "FWCore/Framework/interface/Selector.h" 00018 #include "Mixing/Base/interface/PileUp.h" 00019 #include "DataFormats/Provenance/interface/EventID.h" 00020 00021 namespace edm 00022 { 00023 class MixingModule; 00024 00028 class MixingWorkerBase 00029 { 00030 public: 00031 00032 /*Normal constructor*/ 00033 MixingWorkerBase() {} 00034 00036 virtual ~MixingWorkerBase(); 00037 00039 virtual bool checkSignal(const edm::Event &e)=0; 00040 virtual void createnewEDProduct()=0; 00041 virtual void addSignals(const edm::Event &e) =0; 00042 virtual void addPileups(const int bcr, const edm::EventPrincipal&, 00043 unsigned int EventNr, int vertexOffset=0)=0; 00044 virtual void setBcrOffset()=0; 00045 virtual void setSourceOffset(const unsigned int s)=0; 00046 virtual void setTof()=0; 00047 virtual void put(edm::Event &e) =0; 00048 }; 00049 }//edm 00050 00051 #endif