◆ TrackingParticleBHadronRefSelector()
TrackingParticleBHadronRefSelector::TrackingParticleBHadronRefSelector |
( |
const edm::ParameterSet & |
iConfig | ) |
|
◆ fillDescriptions()
◆ produce()
Definition at line 43 of file TrackingParticleBHadronRefSelector.cc.
47 auto ret = std::make_unique<TrackingParticleRefVector>();
50 for (
size_t i = 0,
end = h_tps->size();
i <
end; ++
i) {
55 for (
const auto &particle : recoGenParticleTrail) {
58 ret->push_back(tpRef);
References end, HistoryBase::evaluate(), mps_fire::i, iEvent, eostools::move(), EgammaObjectsElectrons_cfi::particleID, LHEGenericFilter_cfi::ParticleID, HistoryBase::recoGenParticleTrail(), runTheMatrix::ret, tpToken_, and tracer_.
◆ tpToken_
◆ tracer_
HistoryBase TrackingParticleBHadronRefSelector::tracer_ |
|
private |
const RecoGenParticleTrail & recoGenParticleTrail() const
Return all reco::GenParticle in the history.
std::vector< const reco::GenParticle * > RecoGenParticleTrail
reco::GenParticle trail type.
edm::EDGetTokenT< TrackingParticleCollection > tpToken_
edm::Ref< TrackingParticleCollection > TrackingParticleRef
bool evaluate(TrackingParticleRef tpr)
Evaluate track history using a TrackingParticleRef.
void depth(int d)
Set the depth of the history.