template<typename Selector, typename PairSelector = AnyPairSelector, typename Cloner = ::combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta, typename Init = typename ::reco::modules::EventSetupInit<Setup>::type>
class reco::modules::CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup, Init >
Definition at line 129 of file CandCombiner.h.
template<typename Selector, typename PairSelector = AnyPairSelector, typename Cloner = ::combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta, typename Init = typename ::reco::modules::EventSetupInit<Setup>::type>
constructor from parameter settypedef
Definition at line 132 of file CandCombiner.h.
134 combiner_(reco::modules::make<Selector>(
cfg, consumesCollector()),
135 reco::modules::make<PairSelector>(
cfg),
137 cfg.existsAs<
bool>(
"checkCharge") ?
cfg.getParameter<
bool>(
"checkCharge") :
true,
138 cfg.existsAs<
bool>(
"checkOverlap") ?
cfg.getParameter<
bool>(
"checkOverlap") :
true,
141 produces<OutputCollection>();
template<typename Selector, typename PairSelector = AnyPairSelector, typename Cloner = ::combiner::helpers::NormalClone, typename OutputCollection = reco::CompositeCandidateCollection, typename Setup = AddFourMomenta, typename Init = typename ::reco::modules::EventSetupInit<Setup>::type>
process an event
Definition at line 148 of file CandCombiner.h.
151 std::vector<edm::Handle<CandidateView> > colls(
n);
152 for (
int i = 0;
i <
n; ++
i)
157 typename OutputCollection::iterator
i =
out->begin(),
e =
out->end();
158 for (;
i !=
e; ++
i) {
163 i->setMassConstraint();
References MillePedeFileConverter_cfg::e, edm::Event::getByToken(), mps_fire::i, init, reco::modules::CandCombinerBase::labels_, eostools::move(), dqmiodumpmetadata::n, MillePedeFileConverter_cfg::out, reco::modules::CandCombinerBase::pdgId_, edm::Event::put(), reco::modules::CandCombinerBase::setLongLived_, reco::modules::CandCombinerBase::setMassConstraint_, reco::modules::CandCombinerBase::setPdgId_, and reco::modules::CandCombinerBase::tokens_.