#include <CompositeRefCandidateT.h>
Public Types | |
typedef D | daughters |
collection of references to daughters | |
typedef D | mothers |
collection of references to daughters | |
Public Member Functions | |
void | addDaughter (const typename daughters::value_type &) |
add a daughter via a reference | |
void | addMother (const typename mothers::value_type &) |
add a daughter via a reference | |
virtual const_iterator | begin () const |
first daughter const_iterator | |
virtual iterator | begin () |
first daughter iterator | |
void | clearDaughters () |
clear daughter references | |
void | clearMothers () |
clear mother references | |
virtual CompositeRefCandidateT < D > * | clone () const |
returns a clone of the candidate | |
CompositeRefCandidateT (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true) | |
constructor from values | |
CompositeRefCandidateT (const LeafCandidate &c) | |
constructor from a particle | |
CompositeRefCandidateT (Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true) | |
constructor from values | |
CompositeRefCandidateT () | |
default constructor | |
virtual const Candidate * | daughter (size_type) const |
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) | |
virtual Candidate * | daughter (size_type) |
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 | |
daughters::value_type | daughterRef (size_type i) const |
reference to daughter at given position | |
const daughters & | daughterRefVector () const |
references to daughtes | |
virtual const_iterator | end () const |
last daughter const_iterator | |
virtual iterator | end () |
last daughter iterator | |
virtual const Candidate * | mother (size_type=0) const |
return mother at a given position, i = 0, ... numberOfMothers() - 1 (read only mode) | |
daughters::value_type | motherRef (size_type i=0) const |
reference to mother at given position | |
const mothers & | motherRefVector () const |
references to mothers | |
virtual size_t | numberOfDaughters () const |
number of daughters | |
virtual size_t | numberOfMothers () const |
number of mothers | |
void | resetDaughters (const edm::ProductID &id) |
set daughters product ID | |
void | resetMothers (const edm::ProductID &id) |
set mother product ID | |
virtual | ~CompositeRefCandidateT () |
destructor | |
Private Types | |
typedef candidate::const_iterator_imp_specific < daughters > | const_iterator_imp_specific |
const iterator implementation | |
typedef candidate::iterator_imp_specific_dummy < daughters > | iterator_imp_specific |
iterator implementation | |
Private Member Functions | |
virtual bool | overlap (const Candidate &) const |
check overlap with another candidate | |
Private Attributes | |
daughters | dau |
collection of references to daughters | |
daughters | mom |
collection of references to mothers |
a reco::Candidate composed of daughters. The daughters has persistent references (edm::Ref <...>) to reco::Candidate stored in a separate collection.
Definition at line 20 of file CompositeRefCandidateT.h.
typedef candidate::const_iterator_imp_specific<daughters> reco::CompositeRefCandidateT< D >::const_iterator_imp_specific [private] |
const iterator implementation
Reimplemented from reco::LeafCandidate.
Definition at line 85 of file CompositeRefCandidateT.h.
typedef D reco::CompositeRefCandidateT< D >::daughters |
collection of references to daughters
Reimplemented from reco::LeafCandidate.
Definition at line 23 of file CompositeRefCandidateT.h.
typedef candidate::iterator_imp_specific_dummy<daughters> reco::CompositeRefCandidateT< D >::iterator_imp_specific [private] |
iterator implementation
Reimplemented from reco::LeafCandidate.
Definition at line 87 of file CompositeRefCandidateT.h.
typedef D reco::CompositeRefCandidateT< D >::mothers |
collection of references to daughters
Definition at line 25 of file CompositeRefCandidateT.h.
reco::CompositeRefCandidateT< D >::CompositeRefCandidateT | ( | ) | [inline] |
reco::CompositeRefCandidateT< D >::CompositeRefCandidateT | ( | Charge | q, |
const LorentzVector & | p4, | ||
const Point & | vtx = Point( 0, 0, 0 ) , |
||
int | pdgId = 0 , |
||
int | status = 0 , |
||
bool | integerCharge = true |
||
) | [inline] |
constructor from values
Definition at line 29 of file CompositeRefCandidateT.h.
: LeafCandidate( q, p4, vtx, pdgId, status, integerCharge ) { }
reco::CompositeRefCandidateT< D >::CompositeRefCandidateT | ( | Charge | q, |
const PolarLorentzVector & | p4, | ||
const Point & | vtx = Point( 0, 0, 0 ) , |
||
int | pdgId = 0 , |
||
int | status = 0 , |
||
bool | integerCharge = true |
||
) | [inline] |
constructor from values
Definition at line 33 of file CompositeRefCandidateT.h.
: LeafCandidate( q, p4, vtx, pdgId, status, integerCharge ) { }
reco::CompositeRefCandidateT< D >::CompositeRefCandidateT | ( | const LeafCandidate & | c | ) | [inline, explicit] |
constructor from a particle
Definition at line 37 of file CompositeRefCandidateT.h.
: LeafCandidate( c ) { }
reco::CompositeRefCandidateT< D >::~CompositeRefCandidateT | ( | ) | [virtual] |
void reco::CompositeRefCandidateT< D >::addDaughter | ( | const typename daughters::value_type & | cand | ) | [inline] |
add a daughter via a reference
Definition at line 97 of file CompositeRefCandidateT.h.
Referenced by GenParticleDecaySelector::add(), GenParticlePruner::addDaughterRefs(), pat::GenPlusSimParticleProducer::addGenParticle(), TopDecaySubset::fillReferences(), and pat::GenPlusSimParticleProducer::produce().
{ dau.push_back( cand ); }
void reco::CompositeRefCandidateT< D >::addMother | ( | const typename mothers::value_type & | ) |
add a daughter via a reference
Referenced by GenParticlePruner::addMotherRefs(), pat::PATGenCandsFromSimTracksProducer::makeGenParticle_(), pat::PATGenCandsFromSimTracksProducer::produce(), and pat::GenPlusSimParticleProducer::produce().
Candidate::const_iterator reco::CompositeRefCandidateT< D >::begin | ( | void | ) | const [virtual] |
first daughter const_iterator
Reimplemented from reco::LeafCandidate.
Definition at line 116 of file CompositeRefCandidateT.h.
Referenced by TopDecaySubset::checkShowerModel(), TopDecaySubset::checkWBosons(), TopGenEvent::daughterQuarkOfTop(), and TopDecaySubset::fillListing().
{ return const_iterator( new const_iterator_imp_specific( dau.begin() ) ); }
Candidate::iterator reco::CompositeRefCandidateT< D >::begin | ( | void | ) | [virtual] |
first daughter iterator
Reimplemented from reco::LeafCandidate.
Definition at line 126 of file CompositeRefCandidateT.h.
{ return iterator( new iterator_imp_specific ); }
void reco::CompositeRefCandidateT< D >::clearDaughters | ( | ) | [inline] |
void reco::CompositeRefCandidateT< D >::clearMothers | ( | ) | [inline] |
CompositeRefCandidateT< D > * reco::CompositeRefCandidateT< D >::clone | ( | void | ) | const [virtual] |
returns a clone of the candidate
Reimplemented from reco::LeafCandidate.
Reimplemented in reco::GenParticle.
Definition at line 111 of file CompositeRefCandidateT.h.
{ return new CompositeRefCandidateT( * this ); }
const Candidate * reco::CompositeRefCandidateT< D >::daughter | ( | size_type | i | ) | const [virtual] |
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode)
Reimplemented from reco::LeafCandidate.
Definition at line 136 of file CompositeRefCandidateT.h.
References i.
Referenced by FBaseSimEvent::addParticles(), TtFullHadronicEvent::b(), TtFullHadronicEvent::bBar(), GeneratorTau::computeStableDecayProducts(), GeneratorTau::decayToPDGClassification(), TtSemiLeptonicEvent::hadronicDecayB(), TtSemiLeptonicEvent::hadronicDecayQuark(), TtSemiLeptonicEvent::hadronicDecayQuarkBar(), TtSemiLeptonicEvent::hadronicDecayW(), invalidateTree(), TtSemiLeptonicEvent::leptonicDecayB(), TtSemiLeptonicEvent::leptonicDecayW(), TtFullHadronicEvent::lightP(), TtFullHadronicEvent::lightPBar(), TtFullHadronicEvent::lightQ(), TtFullHadronicEvent::lightQBar(), PartonSelector::produce(), FSRWeightProducer::produce(), TtSemiLeptonicEvent::singleLepton(), TtSemiLeptonicEvent::singleNeutrino(), InputGenJetsParticleSelector::testPartonChildren(), TtFullHadronicEvent::wMinus(), and TtFullHadronicEvent::wPlus().
{ return ( i < numberOfDaughters() ) ? & * dau[ i ] : 0; }
Candidate * reco::CompositeRefCandidateT< D >::daughter | ( | size_type | i | ) | [virtual] |
return daughter at a given position, i = 0, ... numberOfDaughters() - 1
Reimplemented from reco::LeafCandidate.
Definition at line 146 of file CompositeRefCandidateT.h.
{
return 0;
}
daughters::value_type reco::CompositeRefCandidateT< D >::daughterRef | ( | size_type | i | ) | const [inline] |
reference to daughter at given position
Definition at line 70 of file CompositeRefCandidateT.h.
Referenced by GenParticleDecaySelector::add(), ISRGammaWeightProducer::produce(), and FSRWeightProducer::produce().
const daughters& reco::CompositeRefCandidateT< D >::daughterRefVector | ( | ) | const [inline] |
references to daughtes
Definition at line 72 of file CompositeRefCandidateT.h.
Referenced by GenParticlePruner::flagDaughters(), GenParticlePruner::produce(), and pat::GenPlusSimParticleProducer::produce().
{ return dau; }
Candidate::iterator reco::CompositeRefCandidateT< D >::end | ( | void | ) | [virtual] |
last daughter iterator
Reimplemented from reco::LeafCandidate.
Definition at line 131 of file CompositeRefCandidateT.h.
{ return iterator( new iterator_imp_specific ); }
Candidate::const_iterator reco::CompositeRefCandidateT< D >::end | ( | void | ) | const [virtual] |
last daughter const_iterator
Reimplemented from reco::LeafCandidate.
Definition at line 121 of file CompositeRefCandidateT.h.
Referenced by TopDecaySubset::checkShowerModel(), TopDecaySubset::checkWBosons(), TopGenEvent::daughterQuarkOfTop(), and TopDecaySubset::fillListing().
{ return const_iterator( new const_iterator_imp_specific( dau.end() ) ); }
const Candidate * reco::CompositeRefCandidateT< D >::mother | ( | size_type | i = 0 | ) | const [virtual] |
return mother at a given position, i = 0, ... numberOfMothers() - 1 (read only mode)
Reimplemented from reco::LeafCandidate.
Definition at line 141 of file CompositeRefCandidateT.h.
References i.
Referenced by FBaseSimEvent::addParticles(), ResolutionCreator::analyze(), ZMuPtScaleAnalyzer::analyze(), ZMuMu_Radiative_analyzer::analyze(), zPdfUnc::analyze(), ZLONLOHistogrammer::analyze(), EWKSystUnc::analyze(), gamma_radiative_analyzer::analyze(), TopDecaySubset::fillListing(), InputGenJetsParticleSelector::fromResonance(), HiPhotonType::IsPrompt(), McSelector::isSelected(), and FSRWeightProducer::produce().
{ return ( i < numberOfMothers() ) ? & * mom[ i ] : 0; }
daughters::value_type reco::CompositeRefCandidateT< D >::motherRef | ( | size_type | i = 0 | ) | const [inline] |
reference to mother at given position
Definition at line 74 of file CompositeRefCandidateT.h.
Referenced by BCToEFilterAlgo::hasBCAncestors(), doubleEMEnrichingFilterAlgo::hasBCAncestors(), WeakEffectsWeightProducer::produce(), and ISRGammaWeightProducer::produce().
const mothers& reco::CompositeRefCandidateT< D >::motherRefVector | ( | ) | const [inline] |
references to mothers
Definition at line 76 of file CompositeRefCandidateT.h.
Referenced by GenParticlePruner::flagMothers(), GenParticlesHelper::hasAncestor(), GenParticlePruner::produce(), and pat::GenPlusSimParticleProducer::produce().
{ return mom; }
size_t reco::CompositeRefCandidateT< D >::numberOfDaughters | ( | ) | const [virtual] |
number of daughters
Reimplemented from reco::LeafCandidate.
Definition at line 151 of file CompositeRefCandidateT.h.
Referenced by GenParticleDecaySelector::add(), FBaseSimEvent::addParticles(), ZMuPtScaleAnalyzer::analyze(), TopDecaySubset::checkShowerModel(), GeneratorTau::computeStableDecayProducts(), GeneratorTau::decayToPDGClassification(), invalidateTree(), PartonSelector::produce(), InputGenJetsParticleSelector::produce(), pat::GenPlusSimParticleProducer::produce(), ISRGammaWeightProducer::produce(), FSRWeightProducer::produce(), and InputGenJetsParticleSelector::testPartonChildren().
{ return dau.size(); }
size_t reco::CompositeRefCandidateT< D >::numberOfMothers | ( | ) | const [virtual] |
number of mothers
Reimplemented from reco::LeafCandidate.
Definition at line 156 of file CompositeRefCandidateT.h.
Referenced by FBaseSimEvent::addParticles(), ResolutionCreator::analyze(), ZMuPtScaleAnalyzer::analyze(), zPdfUnc::analyze(), ZLONLOHistogrammer::analyze(), EWKSystUnc::analyze(), TopDecaySubset::fillListing(), InputGenJetsParticleSelector::fromResonance(), BCToEFilterAlgo::hasBCAncestors(), doubleEMEnrichingFilterAlgo::hasBCAncestors(), McSelector::isSelected(), WeakEffectsWeightProducer::produce(), pat::GenPlusSimParticleProducer::produce(), ISRGammaWeightProducer::produce(), and FSRWeightProducer::produce().
{ return mom.size(); }
bool reco::CompositeRefCandidateT< D >::overlap | ( | const Candidate & | c2 | ) | const [private, virtual] |
check overlap with another candidate
Reimplemented from reco::LeafCandidate.
Reimplemented in reco::GenParticle.
Definition at line 161 of file CompositeRefCandidateT.h.
References Exception.
{ throw cms::Exception( "Error" ) << "can't check overlap internally for CompositeRefCanddate"; }
void reco::CompositeRefCandidateT< D >::resetDaughters | ( | const edm::ProductID & | id | ) | [inline] |
set daughters product ID
Definition at line 78 of file CompositeRefCandidateT.h.
Referenced by GenParticleProducer::produce(), and pat::GenPlusSimParticleProducer::produce().
void reco::CompositeRefCandidateT< D >::resetMothers | ( | const edm::ProductID & | id | ) | [inline] |
set mother product ID
Definition at line 80 of file CompositeRefCandidateT.h.
Referenced by pat::GenPlusSimParticleProducer::produce().
daughters reco::CompositeRefCandidateT< D >::dau [private] |
collection of references to daughters
Definition at line 89 of file CompositeRefCandidateT.h.
Referenced by reco::CompositeRefCandidateT< GenParticleRefVector >::clearDaughters(), reco::CompositeRefCandidateT< GenParticleRefVector >::daughterRef(), reco::CompositeRefCandidateT< GenParticleRefVector >::daughterRefVector(), and reco::CompositeRefCandidateT< GenParticleRefVector >::resetDaughters().
daughters reco::CompositeRefCandidateT< D >::mom [private] |
collection of references to mothers
Definition at line 91 of file CompositeRefCandidateT.h.
Referenced by reco::CompositeRefCandidateT< GenParticleRefVector >::clearMothers(), reco::CompositeRefCandidateT< GenParticleRefVector >::motherRef(), reco::CompositeRefCandidateT< GenParticleRefVector >::motherRefVector(), and reco::CompositeRefCandidateT< GenParticleRefVector >::resetMothers().