Belle II Software development
MCTrajectoryHarvester Class Reference
Inheritance diagram for MCTrajectoryHarvester:
HarvestingModule

Public Member Functions

def __init__ (self)
 
def peel (self, mc_particle_trajectory)
 

Static Public Attributes

refiners save_tree = refiners.SaveTreeRefiner()
 Refiners to be executed at the end of the harvesting / termination of the module Save a tree of all collected variables in a sub folder.
 

Detailed Description

 A harvester to check for the positions of the track points in the MCParticleTrajectories

Definition at line 67 of file harvester.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Constructor

Reimplemented from HarvestingModule.

Definition at line 71 of file harvester.py.

71 def __init__(self):
72 """Constructor"""
73 HarvestingModule.__init__(self, foreach="MCParticleTrajectorys", output_file_name="mc_trajectory.root")
74

Member Function Documentation

◆ peel()

def peel (   self,
  mc_particle_trajectory 
)
Aggregate track-point position information for the trajectory

Reimplemented from HarvestingModule.

Definition at line 75 of file harvester.py.

75 def peel(self, mc_particle_trajectory):
76 """Aggregate track-point position information for the trajectory"""
77 for track_point in mc_particle_trajectory:
78 yield {"x": track_point.x, "y": track_point.y, "z": track_point.z, "index": self.counter}
79

Member Data Documentation

◆ save_tree

refiners save_tree = refiners.SaveTreeRefiner()
static

Refiners to be executed at the end of the harvesting / termination of the module Save a tree of all collected variables in a sub folder.

Definition at line 82 of file harvester.py.


The documentation for this class was generated from the following file: