1 #ifndef BMixingModule_h 2 #define BMixingModule_h 28 namespace MixingCache {
62 static std::unique_ptr<MixingCache::Config> initializeGlobalCache(
edm::ParameterSet const&);
71 double averageNumber()
const {
return inputSources_[0] ? inputSources_[0]->averageNumber() : 0.0; }
73 bool poisson()
const {
return inputSources_[0] ? inputSources_[0]->poisson() : 0.0 ;}
75 virtual void createnewEDProduct();
79 virtual void setBcrOffset ();
80 virtual void setSourceOffset (
const unsigned int s);
86 void dropUnwantedBranches(std::vector<std::string>
const& wantedBranches);
88 void endStream()
override;
edm::ESWatcher< MixingRcd > parameterWatcher_
virtual void addPileups(const int bcr, EventPrincipal *ep, unsigned int eventId, unsigned int worker, const edm::EventSetup &c)
virtual void addSignals(const edm::Event &e, const edm::EventSetup &c)
virtual void finalizeEvent(edm::Event &event, const edm::EventSetup &setup)
std::vector< std::string > sourceNames_
std::vector< float > TrueNumInteractions_
def setup(process, global_tag, zero_tesla=False)
virtual void put(edm::Event &e, const edm::EventSetup &c)
virtual void initializeEvent(const edm::Event &event, const edm::EventSetup &setup)
Config(edm::ParameterSet const &pset, unsigned int maxNbSources)
static const unsigned int maxNbSources_
virtual void reload(const edm::EventSetup &setup)
double averageNumber() const
std::vector< std::shared_ptr< PileUp > > inputSources_
std::vector< std::shared_ptr< PileUpConfig > > inputConfigs_
static void globalEndJob(MixingCache::Config *)