Analysis Software
Documentation for sPHENIX simulation 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 84 of file generate_particle_data_table.py.

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

References material_mapping_optimisation.format, and 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 52 of file generate_particle_data_table.py.

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

References Acts.enumerate(), and join().

Referenced by main().

+ Here is the call graph for this function:

+ 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 13 of file generate_particle_data_table.py.

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

References clang_format(), and generate_code().

+ 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 27 of file generate_particle_data_table.py.

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