HepMC3 event record library
search_example.cc File Reference

Detailed Description

Basic example of use of HepMC3 search library: profiling the search of relatives of particles.

Definition in file search_example.cc.

#include "HepMC3/GenEvent.h"
#include "HepMC3/Print.h"
#include "HepMC3/GenParticle.h"
#include "HepMC3/GenVertex.h"
#include "HepMC3/Relatives.h"
+ Include dependency graph for search_example.cc:

Go to the source code of this file.

Functions

HepMC3::GenEventgenerate_event (const size_t n, const size_t iterations)
 
int main ()
 

Function Documentation

◆ generate_event()

HepMC3::GenEvent * generate_event ( const size_t n,
const size_t iterations )

Definition at line 17 of file search_example.cc.

◆ main()

int main ( )

Definition at line 51 of file search_example.cc.