ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
generate_particle_data_table Namespace Reference

Functions

def main
 
def generate_code
 
def clang_format
 

Variables

string CODE_HEADER
 
 output_file sys.stdout
 

Function Documentation

def generate_particle_data_table.clang_format (   content)
Format the given content using clang-format and return it.

Definition at line 76 of file generate_particle_data_table.py.

View newest version in sPHENIX GitHub at line 76 of file generate_particle_data_table.py

References print().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

def generate_particle_data_table.generate_code (   table)
Generate

Definition at line 49 of file generate_particle_data_table.py.

View newest version in sPHENIX GitHub at line 49 of file generate_particle_data_table.py

Referenced by main().

+ Here is the caller graph for this function:

def generate_particle_data_table.main (   output_file)
Generate the code and write it to the given output file.

Definition at line 12 of file generate_particle_data_table.py.

View newest version in sPHENIX GitHub at line 12 of file generate_particle_data_table.py

References clang_format(), generate_code(), and int().

+ Here is the call graph for this function:

Variable Documentation

string generate_particle_data_table.CODE_HEADER
Initial value:
1 '''\
2 // This file is part of the Acts project.
3 //
4 // Copyright (C) 2020 CERN for the benefit of the Acts project
5 //
6 // This Source Code Form is subject to the terms of the Mozilla Public
7 // License, v. 2.0. If a copy of the MPL was not distributed with this
8 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 
10 // The entries within this file have been automatically created using the
11 // particle data files from the 2019 edition of the Review of Particle Physics
12 // by the Berkeley Particle Data Group.
13 
14 #pragma once
15 
16 #include <cstdint>
17 
18 // Rows within the particle data table are sorted by their signed PDG particle
19 // number and are then stored column-wise. Since the PDG particle number column
20 // is sorted it can be used to quickly search for the index of a particle
21 // within all column arrays.
22 
23 '''

Definition at line 25 of file generate_particle_data_table.py.

View newest version in sPHENIX GitHub at line 25 of file generate_particle_data_table.py

tuple generate_particle_data_table.output_file sys.stdout

Definition at line 94 of file generate_particle_data_table.py.

View newest version in sPHENIX GitHub at line 94 of file generate_particle_data_table.py