/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/JetReco/src/GenericJet.cc
28 строк
957 B
Cms Build
Clang-Format
03 июн 2019, 06:38
03 июн 2019, 06:38
0f65aee
Код
Авторство
О чём код?
// GenericJet.cc // Fedor Ratnikov, UMd #include <sstream> //Own header file #include "DataFormats/JetReco/interface/GenericJet.h" using namespace reco; GenericJet::GenericJet(const LorentzVector& fP4, const Point& fVertex, const std::vector<CandidateBaseRef>& fConstituents) : CompositeRefBaseCandidate(0, fP4, fVertex) { for (unsigned i = 0; i < fConstituents.size(); i++) addDaughter(fConstituents[i]); } int GenericJet::nConstituents() const { return numberOfDaughters(); } std::string GenericJet::print() const { std::ostringstream out; out << "GenericJet p/px/py/pz/pt: " << p() << '/' << px() << '/' << py() << '/' << pz() << '/' << pt() << std::endl << " eta/phi: " << eta() << '/' << phi() << std::endl << " # of constituents: " << nConstituents() << std::endl; out << " No Constituents details available for this version" << std::endl; return out.str(); }