Main Page
Namespaces
Classes
Package Documentation
SimMuon
DTDigitizer
plugins
PreMixingDTDigiSimLinkWorker.cc
Go to the documentation of this file.
1
#include "
SimGeneral/PreMixingModule/interface/PreMixingDigiSimLinkWorker.h
"
2
#include "
SimGeneral/PreMixingModule/interface/PreMixingWorkerFactory.h
"
3
#include "
SimDataFormats/DigiSimLinks/interface/DTDigiSimLinkCollection.h
"
4
5
// DT does not use DetSetVector, so have to specialize put()
6
template
<>
7
void
PreMixingDigiSimLinkWorker<DTDigiSimLinkCollection>::addPileups
(
PileUpEventPrincipal
const
& pep,
edm::EventSetup
const
& iSetup) {
8
edm::Handle<DTDigiSimLinkCollection>
digis;
9
pep.
getByLabel
(pileupTag_, digis);
10
if
(digis.
isValid
()) {
11
for
(
const
auto
&
elem
: *digis) {
12
merged_->put(
elem
.second,
elem
.first);
13
}
14
}
15
}
16
17
using
PreMixingDTDigiSimLinkWorker
=
PreMixingDigiSimLinkWorker<DTDigiSimLinkCollection>
;
18
19
DEFINE_PREMIXING_WORKER
(
PreMixingDTDigiSimLinkWorker
);
edm::Handle
Definition:
AssociativeIterator.h:48
edm::EventSetup
Definition:
EventSetup.h:54
PreMixingDigiSimLinkWorker::addPileups
void addPileups(PileUpEventPrincipal const &pep, edm::EventSetup const &iSetup) override
Definition:
PreMixingDigiSimLinkWorker.h:57
edm::HandleBase::isValid
bool isValid() const
Definition:
HandleBase.h:74
PreMixingDigiSimLinkWorker.h
HTMLExport.elem
def elem(elemtype, innerHTML='', html_class='', kwargs)
Definition:
HTMLExport.py:18
DTDigiSimLinkCollection.h
PileUpEventPrincipal
Definition:
PileUpEventPrincipal.h:19
PileUpEventPrincipal::getByLabel
bool getByLabel(edm::InputTag const &tag, edm::Handle< T > &result) const
Definition:
PileUpEventPrincipal.h:44
PreMixingDigiSimLinkWorker
Definition:
PreMixingDigiSimLinkWorker.h:16
DEFINE_PREMIXING_WORKER
#define DEFINE_PREMIXING_WORKER(TYPE)
Definition:
PreMixingWorkerFactory.h:15
PreMixingWorkerFactory.h
Generated for CMSSW Reference Manual by
1.8.11