File indexing completed on 2024-04-06 12:30:43
0001 #include "SimDataFormats/DigiSimLinks/interface/DTDigiSimLinkCollection.h"
0002 #include "SimGeneral/PreMixingModule/interface/PreMixingDigiSimLinkWorker.h"
0003 #include "SimGeneral/PreMixingModule/interface/PreMixingWorkerFactory.h"
0004
0005
0006 template <>
0007 void PreMixingDigiSimLinkWorker<DTDigiSimLinkCollection>::addPileups(PileUpEventPrincipal const &pep,
0008 edm::EventSetup const &iSetup) {
0009 edm::Handle<DTDigiSimLinkCollection> digis;
0010 pep.getByLabel(pileupTag_, digis);
0011 if (digis.isValid()) {
0012 for (const auto &elem : *digis) {
0013 merged_->put(elem.second, elem.first);
0014 }
0015 }
0016 }
0017
0018 using PreMixingDTDigiSimLinkWorker = PreMixingDigiSimLinkWorker<DTDigiSimLinkCollection>;
0019
0020 DEFINE_PREMIXING_WORKER(PreMixingDTDigiSimLinkWorker);