Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • athena athena
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Jira
    • Jira
  • Merge requests 138
    • Merge requests 138
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • atlasatlas
  • athenaathena
  • Merge requests
  • !61616

Print attributes hepmc3

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Andrii Verbytskyi requested to merge averbyts/athena:print_attributes_hepmc3 into 23.0 Mar 17, 2023
  • Overview 45
  • Commits 7
  • Pipelines 4
  • Changes 3

Advanced print functions for HepMC

GenParticlePtr p;
std::cout<<p<<std::endl;

Would print just the particle. But sometimes it is needed to print the attributes.

So

GenParticlePtr p;
std::cout<<(p<<true)<<std::endl;

Would do the job.

This syntax is quite safe -- the missing brackets would not cause any harm.

Tag @jchapman @pclark

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: print_attributes_hepmc3