#include <CandKinematicVertexFitter.h>
Definition at line 24 of file CandKinematicVertexFitter.h.
◆ CovarianceMatrix
◆ CandKinematicVertexFitter() [1/2]
CandKinematicVertexFitter::CandKinematicVertexFitter |
( |
const edm::ParameterSet & |
cfg | ) |
|
|
inline |
◆ CandKinematicVertexFitter() [2/2]
◆ currentParticle()
◆ fill()
Definition at line 103 of file CandKinematicVertexFitter.cc.
107 size_t nDau =
c.numberOfDaughters();
109 for (
unsigned int j = 0;
j < nDau; ++
j) {
112 ostringstream message;
113 message <<
"Can't access in write mode candidate daughters. "
114 <<
"pdgId = " <<
c.pdgId() <<
".\n";
117 message <<
"Null daughter also found in read-only mode\n";
119 message <<
"Daughter found in read-only mode with id: " <<
d1->pdgId() <<
"\n";
123 if (
d->numberOfDaughters() > 0) {
126 if (vtxDau !=
nullptr && vtxDau->
vertexChi2() > 0) {
128 (*this).set(*vtxDau);
135 float mass_sigma =
mass * 0.000001;
148 trackTypes.push_back(RecoCandidate::noTrackType);
160 float sigma =
mass * 1.e-6;
163 trackTypes.push_back(
type);
165 cerr <<
">>> warning: candidate of type " <<
d->pdgId() <<
" has no track reference." << endl;
References c, EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, hltPixelTracks_cff::chi2, ztail::d, d1, data, BPhysicsValidation_cfi::daughters, Exception, ntuplemaker::fill, KinematicParticleFitter::fit(), edm::errors::InvalidReference, edm::Ref< C, T, F >::isNull(), dqmiolumiharvest::j, EgHLTOffHistBins_cfi::mass, reco::LeafCandidate::massConstraint(), ndof, reco::RecoCandidate::noTrackType, ecalTrigSettings_cff::particles, reco::LeafCandidate::pdgId(), and reco::VertexCompositeCandidate::vertexChi2().
◆ fit()
◆ set() [1/3]
void CandKinematicVertexFitter::set |
( |
const MagneticField * |
bField | ) |
|
|
inline |
◆ set() [2/3]
◆ set() [3/3]
Definition at line 32 of file CandKinematicVertexFitter.cc.
35 <<
"B-Field was not set up CandKinematicVertexFitter.\n"
36 <<
"the following method must be called before fitting a candidate:\n"
37 <<
" CandKinematicVertexFitter:.set( const MagneticField * )" << endl;
38 vector<RefCountedKinematicParticle>
particles;
40 vector<RecoCandidate::TrackType> trackTypes;
48 tree_->movePointerToTheTop();
51 if (
vertex->vertexIsValid()) {
54 vector<RefCountedKinematicParticle> treeParticles =
tree_->daughterParticles();
55 vector<RefCountedKinematicParticle>::const_iterator particleIt = treeParticles.begin();
56 vector<Candidate *>::const_iterator daughterIt =
daughters.begin(), daughtersEnd =
daughters.end();
57 vector<RecoCandidate::TrackType>::const_iterator trackTypeIt = trackTypes.begin();
59 for (; daughterIt != daughtersEnd; ++particleIt, ++daughterIt, ++trackTypeIt) {
68 switch (*trackTypeIt) {
69 case RecoCandidate::gsfTrackType:
78 double mass = (*particleIt)->currentState().mass();
94 c.setCovariance(
cov_);
References cms::cuda::assert(), c, BPhysicsValidation_cfi::daughters, HCALHighEnergyHPDFilter_cfi::energy, reco::Candidate::energy(), submitPVResolutionJobs::err, Exception, ntuplemaker::fill, L1TowerCalibrationProducer_cfi::fit, reco::RecoCandidate::gsfTrackType, edm::errors::InvalidReference, reco::Candidate::longLived(), EgHLTOffHistBins_cfi::mass, AlCaHLTBitMon_ParallelJobs::p, p3, ecalTrigSettings_cff::particles, multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, L1EGammaCrystalsEmulatorProducer_cfi::scale, reco::Candidate::setP4(), reco::Candidate::setVertex(), mathSSE::sqrt(), bphysicsOniaDQM_cfi::vertex, and extraflags_cff::vtx.
◆ bField_
◆ chi2_
double CandKinematicVertexFitter::chi2_ |
|
mutableprivate |
◆ cov_
◆ factory_
◆ fitter_
◆ fitters_
◆ ndof_
double CandKinematicVertexFitter::ndof_ |
|
mutableprivate |
◆ pdt_
◆ tree_
HepPDT::ParticleData ParticleData
RefCountedKinematicParticle particle(const reco::TransientTrack &initialTrack, const ParticleMass &massGuess, float chiSquared, float degreesOfFr, float &m_sigma) const
RefCountedKinematicTree fit(const std::vector< RefCountedKinematicParticle > &particles) const
std::vector< RefCountedKinematicTree > fit(KinematicConstraint *cs, const std::vector< RefCountedKinematicTree > &trees) const