|
||||
File indexing completed on 2025-01-18 09:11:48
0001 // This file is part of the ACTS project. 0002 // 0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project 0004 // 0005 // This Source Code Form is subject to the terms of the Mozilla Public 0006 // License, v. 2.0. If a copy of the MPL was not distributed with this 0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/. 0008 0009 #include "ActsExamples/EventData/SimParticle.hpp" 0010 0011 std::ostream& ActsExamples::operator<<(std::ostream& os, 0012 const SimParticle& particle) { 0013 // compact format w/ only identity information but no kinematics 0014 os << "id=" << particle.particleId().value() << "(" << particle.particleId() 0015 << ")"; 0016 os << "|pdg=" << particle.pdg(); 0017 os << "|q=" << particle.charge(); 0018 os << "|m=" << particle.mass(); 0019 os << "|p=" << particle.absoluteMomentum(); 0020 return os; 0021 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |