Belle II Software light-2406-ragdoll
|
Public Member Functions | |
def | __init__ (self, particle_lists, features, mcparticle_list, output_file) |
def | initialize (self) |
def | event (self) |
def | terminate (self) |
Public Attributes | |
particle_lists | |
Input particle lists. | |
features | |
Features to save. | |
mcparticle_list | |
MC particle list (Upsilon, B0, B+) | |
output_file | |
Output file name. | |
max_particles | |
Max number of particles It doesn't actually matter what this is as long as it's bigger than the number of particles in any events we'll encounter. | |
eventinfo | |
Event info. | |
root_outfile | |
ROOT output file. | |
tree | |
ROOT tree. | |
event_num | |
Event number. | |
isB | |
bool containing information whether we reconstruct B or Upsilon | |
truth_dict | |
Truth information. | |
n_particles | |
Number of particles. | |
primary | |
Particle-is-primary flag. | |
leaves | |
Leaves in event. | |
b_index | |
B index. | |
feat_dict | |
Features dictionary. | |
mc_pdg | |
True MC PDG. | |
Protected Member Functions | |
def | _reset_LCA (self) |
Save Lowest Common Ancestor matrix of each MC Particle in the given list. Args: particle_lists (list): Name of particle lists to save features of. features (list): List of features to save for each particle. mcparticle_list (str): Name of particle list to build LCAs from (will use as root). output_file (str): Path to output file to save.
Definition at line 205 of file LCASaverModule.py.
def __init__ | ( | self, | |
particle_lists, | |||
features, | |||
mcparticle_list, | |||
output_file | |||
) |
Initialization.
Definition at line 216 of file LCASaverModule.py.
|
protected |
Resets the value of the LCA to 0.
Definition at line 320 of file LCASaverModule.py.
def event | ( | self | ) |
Called for each event.
Definition at line 330 of file LCASaverModule.py.
def initialize | ( | self | ) |
Called once at the beginning.
Definition at line 241 of file LCASaverModule.py.
def terminate | ( | self | ) |
Called at the end.
Definition at line 455 of file LCASaverModule.py.
b_index |
B index.
Definition at line 305 of file LCASaverModule.py.
event_num |
Event number.
Definition at line 256 of file LCASaverModule.py.
eventinfo |
Event info.
Definition at line 248 of file LCASaverModule.py.
feat_dict |
Features dictionary.
Definition at line 309 of file LCASaverModule.py.
features |
Features to save.
Definition at line 230 of file LCASaverModule.py.
isB |
bool containing information whether we reconstruct B or Upsilon
Definition at line 259 of file LCASaverModule.py.
leaves |
Leaves in event.
Definition at line 301 of file LCASaverModule.py.
max_particles |
Max number of particles It doesn't actually matter what this is as long as it's bigger than the number of particles in any events we'll encounter.
ROOT won't save all entries.
Definition at line 239 of file LCASaverModule.py.
mc_pdg |
True MC PDG.
Definition at line 317 of file LCASaverModule.py.
mcparticle_list |
MC particle list (Upsilon, B0, B+)
Definition at line 232 of file LCASaverModule.py.
n_particles |
Number of particles.
Definition at line 293 of file LCASaverModule.py.
output_file |
Output file name.
Definition at line 234 of file LCASaverModule.py.
particle_lists |
Input particle lists.
Definition at line 228 of file LCASaverModule.py.
primary |
Particle-is-primary flag.
Definition at line 297 of file LCASaverModule.py.
root_outfile |
ROOT output file.
Definition at line 251 of file LCASaverModule.py.
tree |
ROOT tree.
Definition at line 253 of file LCASaverModule.py.
truth_dict |
Truth information.
Definition at line 263 of file LCASaverModule.py.