/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/HepMCCandidate/src/GenParticle.cc
20 строк
826 B
Dan Riley
fix uninitialized member data identified by valgrind
24 дек 2025, 21:25
24 дек 2025, 21:25
73e9bfe
Код
Авторство
О чём код?
#include "DataFormats/HepMCCandidate/interface/GenParticle.h" #include <iostream> using namespace reco; GenParticle::GenParticle(Charge q, const LorentzVector& p4, const Point& vtx, int pdgId, int status, bool integerCharge) : CompositeRefCandidateT<GenParticleRefVector>(q, p4, vtx, pdgId, status, integerCharge), collisionId_(0), statusFlags_(0) {} GenParticle::GenParticle( Charge q, const PolarLorentzVector& p4, const Point& vtx, int pdgId, int status, bool integerCharge) : CompositeRefCandidateT<GenParticleRefVector>(q, p4, vtx, pdgId, status, integerCharge), collisionId_(0), statusFlags_(0) {} GenParticle::~GenParticle() {} bool GenParticle::overlap(const Candidate& c) const { return &c == this; } GenParticle* GenParticle::clone() const { return new GenParticle(*this); }