1 #ifndef SimGeneral_PreMixingModule_PreMixingMuonWorker_h
2 #define SimGeneral_PreMixingModule_PreMixingMuonWorker_h
14 template <
typename DigiCollection>
29 std::vector<PileupSummaryInfo>
const& ps,
30 int bunchSpacing)
override {
44 template <
typename DigiCollection>
49 pileupTag_(ps.getParameter<
edm::
InputTag>(
"pileInputTag")),
50 collectionDM_(ps.getParameter<
std::
string>(
"collectionDM")) {
54 template <
typename DigiCollection>
57 iEvent.getByToken(signalToken_, digis);
59 accumulated_ = std::make_unique<DigiCollection>(*digis);
62 template <
typename DigiCollection>
66 for (
const auto& elem : *digis) {
67 accumulated_->put(elem.second, elem.first);
71 template <
typename DigiCollection>