#include <CandCommonVertexFitter.h>
Definition at line 19 of file CandCommonVertexFitter.h.
◆ CovarianceMatrix
◆ CandCommonVertexFitterBase()
◆ ~CandCommonVertexFitterBase()
virtual CandCommonVertexFitterBase::~CandCommonVertexFitterBase |
( |
| ) |
|
|
inlinevirtual |
◆ fill()
Definition at line 60 of file CandCommonVertexFitter.cc.
References HltBtagPostValidation_cff::c, DMR_cfg::cerr, ztail::d, d1, BPhysicsValidation_cfi::daughters, Exception, ntuplemaker::fill, edm::errors::InvalidReference, dqmiolumiharvest::j, and DiMuonV_cfg::tracks.
64 size_t nDau =
c.numberOfDaughters();
65 for (
unsigned int j = 0;
j < nDau; ++
j) {
68 ostringstream message;
69 message <<
"Can't access in write mode candidate daughters. " 70 <<
"pdgId = " <<
c.pdgId() <<
".\n";
73 message <<
"Null daughter also found in read-only mode\n";
75 message <<
"Daughter found in read-only mode with id: " <<
d1->pdgId() <<
"\n";
78 if (
d->numberOfDaughters() > 0)
86 trackTypes.push_back(
type);
88 cerr <<
">>> warning: candidate of type " <<
d->pdgId() <<
" has no track reference." << endl;
const MagneticField * bField_
void fill(std::vector< reco::TransientTrack > &, std::vector< reco::Candidate *> &, std::vector< reco::RecoCandidate::TrackType > &, reco::Candidate &) const
static constexpr float d1
◆ fit()
◆ set() [1/2]
void CandCommonVertexFitterBase::set |
( |
const MagneticField * |
bField | ) |
|
|
inline |
◆ set() [2/2]
Definition at line 9 of file CandCommonVertexFitter.cc.
References cms::cuda::assert(), HltBtagPostValidation_cff::c, BPhysicsValidation_cfi::daughters, hcalRecHitTable_cff::energy, reco::Candidate::energy(), Exception, ntuplemaker::fill, l1tPhase2CaloJetEmulator_cfi::fit, edm::errors::InvalidReference, EgHLTOffHistBins_cfi::mass, reco::Candidate::mass(), AlCaHLTBitMon_ParallelJobs::p, multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, reco::RecoCandidate::recoTrackType, pfClustersFromCombinedCaloHF_cfi::scale, reco::Candidate::setP4(), reco::Candidate::setVertex(), mathSSE::sqrt(), HLT_2024v14_cff::track, DiMuonV_cfg::tracks, findQualityFiles::v, bphysicsOniaDQM_cfi::vertex, and L1BJetProducer_cff::vtx.
12 <<
"B-Field was not set up CandCommonVertexFitter.\n" 13 <<
"the following method must be called before fitting a candidate:\n" 14 <<
" CandCommonVertexFitter:.set( const MagneticField * )" << endl;
15 vector<TransientTrack>
tracks;
17 vector<RecoCandidate::TrackType> trackTypes;
25 vector<TransientTrack>::const_iterator trackIt =
tracks.begin(), tracksEnd =
tracks.end();
26 vector<Candidate *>::const_iterator daughterIt =
daughters.begin();
27 vector<RecoCandidate::TrackType>::const_iterator trackTypeIt = trackTypes.begin();
29 for (; trackIt != tracksEnd; ++trackIt, ++daughterIt, ++trackTypeIt) {
35 if (*trackTypeIt == RecoCandidate::recoTrackType) {
53 c.setCovariance(
cov_);
const MagneticField * bField_
virtual double energy() const =0
energy
virtual void setP4(const LorentzVector &p4)=0
set 4-momentum
virtual double mass() const =0
mass
reco::Vertex::CovarianceMatrix CovarianceMatrix
void fill(std::vector< reco::TransientTrack > &, std::vector< reco::Candidate *> &, std::vector< reco::RecoCandidate::TrackType > &, reco::Candidate &) const
CovarianceMatrix cov_
covariance matrix (3x3)
virtual void setVertex(const Point &vertex)=0
set vertex
double ndof_
number of degrees of freedom
math::XYZTLorentzVector LorentzVector
Lorentz vector.
math::XYZPoint Point
point in the space
virtual bool fit(TransientVertex &, const std::vector< reco::TransientTrack > &) const =0
◆ bField_
◆ chi2_
double CandCommonVertexFitterBase::chi2_ |
|
mutableprotected |
◆ cov_
◆ ndof_
double CandCommonVertexFitterBase::ndof_ |
|
mutableprotected |