set up a composite reco::Candidate adding its daughters four-momenta and electric charge
- Author
- Luca Lista, INFN
- Version
- Revision:
- 1.1
- Id:
- AddFourMomenta.h,v 1.1 2009/02/26 09:17:33 llista Exp
set up a composite reco::Candidate adding its daughters four-momenta and electric charge
- Author
- Luca Lista, INFN
- Version
- Revision:
- 1.9
- Id:
- AddFourMomenta.h,v 1.9 2007/01/09 09:14:42 llista Exp
Definition at line 18 of file AddFourMomenta.h.
set up a candidate
Definition at line 6 of file AddFourMomenta.cc.
References trackerHits::c, DeDxDiscriminatorTools::charge(), reco::Candidate::charge(), reco::Candidate::daughter(), i, n, reco::Candidate::numberOfDaughters(), reco::Candidate::p4(), p4, reco::Candidate::setCharge(), and reco::Candidate::setP4().
Referenced by reco::tau::RecoTauPiZeroStripPlugin2::addCandsToStrip(), V0Fitter::fitAll(), betterConfigParser.BetterConfigParser::getGeneral(), TtFullHadHypothesis::hypo(), TtFullLepHypothesis::hypo(), TtSemiLepHypothesis::hypo(), reco::tau::xclean::CrossCleanPiZeros< PtrIter >::operator()(), reco::tau::RecoTauPiZeroCombinatoricPlugin::operator()(), reco::tau::RecoTauPiZeroStripPlugin::operator()(), reco::tau::RecoTauPiZeroStripPlugin2::operator()(), RecoTauPiZeroProducer::produce(), TruthTauDecayModeProducer::produce(), PatJPsiProducer::produce(), TtSemiEvtSolution::setupHyp(), reco::WMuNuCandidate::WMuNuCandidate(), and reco::WMuNuCandidatePtr::WMuNuCandidatePtr().
10 for(
size_t i = 0;
i <
n; ++
i) {
int Charge
electric charge type
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
virtual void setP4(const LorentzVector &p4)=0
set 4-momentum
virtual size_type numberOfDaughters() const =0
number of daughters
virtual int charge() const =0
electric charge
math::XYZTLorentzVector LorentzVector
Lorentz vector.
virtual void setCharge(Charge q)=0
set electric charge
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector