SimMuon
DTDigitizer
plugins
PreMixingDTDigiSimLinkWorker.cc
Go to the documentation of this file.
1
#include "
SimDataFormats/DigiSimLinks/interface/DTDigiSimLinkCollection.h
"
2
#include "
SimGeneral/PreMixingModule/interface/PreMixingDigiSimLinkWorker.h
"
3
#include "
SimGeneral/PreMixingModule/interface/PreMixingWorkerFactory.h
"
4
5
// DT does not use DetSetVector, so have to specialize put()
6
template
<>
7
void
PreMixingDigiSimLinkWorker<DTDigiSimLinkCollection>::addPileups
(
PileUpEventPrincipal
const
&pep,
8
edm::EventSetup
const
&iSetup) {
9
edm::Handle<DTDigiSimLinkCollection>
digis;
10
pep.
getByLabel
(pileupTag_, digis);
11
if
(digis.
isValid
()) {
12
for
(
const
auto
&elem : *digis) {
13
merged_->put(elem.second, elem.first);
14
}
15
}
16
}
17
18
using
PreMixingDTDigiSimLinkWorker
=
PreMixingDigiSimLinkWorker<DTDigiSimLinkCollection>
;
19
20
DEFINE_PREMIXING_WORKER
(
PreMixingDTDigiSimLinkWorker
);
PreMixingDigiSimLinkWorker
Definition:
PreMixingDigiSimLinkWorker.h:16
PreMixingDigiSimLinkWorker::addPileups
void addPileups(PileUpEventPrincipal const &pep, edm::EventSetup const &iSetup) override
Definition:
PreMixingDigiSimLinkWorker.h:61
PileUpEventPrincipal
Definition:
PileUpEventPrincipal.h:19
edm::Handle
Definition:
AssociativeIterator.h:50
PreMixingDigiSimLinkWorker.h
edm::EventSetup
Definition:
EventSetup.h:58
PreMixingWorkerFactory.h
DEFINE_PREMIXING_WORKER
#define DEFINE_PREMIXING_WORKER(TYPE)
Definition:
PreMixingWorkerFactory.h:16
DTDigiSimLinkCollection.h
PileUpEventPrincipal::getByLabel
bool getByLabel(edm::InputTag const &tag, edm::Handle< T > &result) const
Definition:
PileUpEventPrincipal.h:33
edm::HandleBase::isValid
bool isValid() const
Definition:
HandleBase.h:70
Generated for CMSSW Reference Manual by
1.8.16