Belle II Software development
|
Public Member Functions | |
def | __init__ (self, output_folder=tempfile.gettempdir(), interactive=True) |
def | drawoptions (self) |
def | all_drawoptions (self) |
def | draw_wires (self) |
def | draw_wires (self, draw_wires) |
def | initialize (self) |
def | beginRun (self) |
def | event (self) |
def | endRun (self) |
def | terminate (self) |
def | new_output_basename (self) |
def | new_output_filename (self) |
Public Attributes | |
interactive | |
Switch if the module shall show the event to the user and wait to continue or just generate the images. | |
output_folder | |
Folder the images shall be saved to. | |
animate | |
Switch to make an animated event display by means of animated SVG. | |
forward_fade | |
Switch to make the color of segments and tracks fade out in the forward direction. | |
use_cpp | |
Flag to use cpp. | |
use_python | |
Flag to use python. | |
draw_interaction_point | |
Switch to draw the interaction point. | |
draw_superlayer_boundaries | |
Switch to draw the superlayer boundaries. | |
draw_walls | |
Switch to draw the superlayer boundaries. | |
draw_hits | |
Switch to draw the CDCHits. | |
draw_takenflag | |
Switch to draw the CDCHits colored by the associated CDCWireHit taken flag. | |
draw_mcparticle_id | |
Switch to draw the MCParticle::getArrayIndex property. | |
draw_mcparticle_pdgcode | |
Switch to draw the MCParticle::getPDGCode property. | |
draw_mcparticle_primary | |
Switch to draw the MCParticle::hasStatus(c_PrimaryParticle) property. | |
draw_mcparticle_trajectories | |
Switch to draw the ideal trajectory of the MCParticle. | |
draw_simhits | |
Switch to draw the CDCSimHits with momentum information. | |
draw_simhit_tof | |
Switch to draw the CDCSimHits color coded by their time of flight. | |
draw_simhit_posflag | |
Switch to draw the CDCSimHits color coded by their getPosFlag() property. | |
draw_simhit_pdgcode | |
Switch to draw the CDCSimHits color coded by their getPDGCode() property. | |
draw_simhit_bkgtag | |
Switch to draw the CDCSimHits color coded by their getBackgroundTag() property. | |
draw_simhit_isbkg | |
Switch to draw the CDCSimHits red for getBackgroundTag() != bg_none. | |
draw_nloops | |
Switch to draw the CDCHit colored by the number of loops passed. | |
draw_connect_tof | |
Switch to draw the CDCSimHits connected in the order of their getFlightTime for each Monte Carlo particle. | |
draw_rlinfo | |
Switch to draw the CDCSimHits color coded by their local right left passage information. | |
draw_reassigned | |
Switch to draw the CDCSimHits color coded by their reassignement information to a different MCParticle. | |
draw_mcsegments | |
Switch to draw the Monte Carlo segments as generated in CDCMCTrackStore. | |
draw_mcaxialsegmentpairs | |
Switch to draw the axial to axial segment pairs from Monte Carlo truth. | |
draw_mcsegmentpairs | |
Switch to draw the axial to stereo segment pairs from Monte Carlo truth. | |
draw_mcsegmenttriples | |
Switch to draw the segment triples from Monte Carlo truth. | |
draw_superclusters | |
Switch to draw the clusters generated by the finder. | |
draw_clusters | |
Switch to draw the clusters generated by the finder. | |
draw_segments | |
Switch to draw the segments generated by the finder. | |
draw_segment_trajectories | |
Switch to draw the trajectories fitted to the segments generated by the finder. | |
draw_tangentsegments | |
Switch to draw the tangent segments generated by the finder. | |
draw_segment_mctrackids | |
Switch to draw the segments generated by the finder colored with the Monte Carlo track id. | |
draw_segment_fbinfos | |
Switch to draw the segments generated by the finder colored by the coalignment information (forward, backward, undetermined) | |
draw_segment_firstInTrackIds | |
Switch to draw the segments generated by the finder colored by the first in track hit id. | |
draw_segment_lastInTrackIds | |
Switch to draw the segments generated by the finder colored by the second in track hit id. | |
draw_segment_firstNPassedSuperLayers | |
Switch to draw the segments generated by the finder colored by the number of passed superlayers associated to the first hit in the segment. | |
draw_segment_lastNPassedSuperLayers | |
Switch to draw the segments generated by the finder colored by the number of passed superlayers associated to the last hit in the segment. | |
draw_axialsegmentpairs | |
Switch to draw the axial stereo segment pairs generated by the finder. | |
draw_segmentpairs | |
Switch to draw the axial stereo segment pairs generated by the finder. | |
draw_segmenttriples | |
Switch to draw the segment triples generated by the finder. | |
draw_segmenttriple_trajectories | |
Switch to draw the trajectories fitted to the segment triples generated by the finder. | |
draw_tracks | |
Switch to draw the tracks generated by the finder. | |
draw_track_trajectories | |
Switch to draw the trajectories of the tracks generated by the finder. | |
draw_recotracks | |
Draw the output RecoTracks. | |
draw_mcrecotracks | |
Draw the MC reference RecoTracks. | |
draw_recotrack_matching | |
Draw the output RecoTracks pattern recognition matching status. | |
draw_mcrecotrack_matching | |
Draw the MC reference RecoTracks pattern recognition matching status. | |
draw_recotrack_seed_trajectories | |
Draw the output track seed trajectories. | |
draw_recotrack_fit_trajectories | |
Draw the output trackpoint trajectories. | |
draw_wrong_rl_infos_in_segments | |
Draw a red cdc hit of the rl info of the segment reco hits is wrong, else a green one. | |
draw_wrong_rl_infos_in_tracks | |
Draw a red cdc hit of the rl info of the track reco hits is wrong, else a green one. | |
cdc_hits_store_array_name | |
Name of the CDC Hits store array. | |
reco_tracks_store_array_name | |
Name of the RecoTracks store array. | |
mc_reco_tracks_store_array_name | |
Name of the Monte Carlo reference RecoTracks store array. | |
cdc_wire_hit_cluster_store_obj_name | |
Name of the CDC Wire Hit Clusters. | |
cdc_segment_vector_store_obj_name | |
Name of the CDC Reco Segment Vector. | |
file_number | |
Current file's number (used for making output filename) | |
filename_prefix | |
Filename prefix. | |
use_time_in_filename | |
Use time instead of prefix in filename. | |
prefilled_cppplotter | |
prefilled default is to use the C++ plotter | |
prefilled_plotter | |
prefilled default is to use the python plotter | |
Protected Attributes | |
_draw_wires | |
Switch to draw the wires. | |
Personal two dimensional event display based on scalable vector graphics
Definition at line 27 of file __init__.py.
def __init__ | ( | self, | |
output_folder = tempfile.gettempdir() , |
|||
interactive = True |
|||
) |
Constructor method Parameters ---------- output_folder : str Target folder for the output interactive : bool, optional Switch to display each event to the user and ask to continue after each event Defaults to True
Reimplemented in QueueDrawer.
Definition at line 33 of file __init__.py.
def all_drawoptions | ( | self | ) |
Property that collects the all names of the draw options to a list. Note that some draw options only make sense after running the CDC cellular automaton track finder. @return list of strings naming the different switches that can be activated.
Definition at line 328 of file __init__.py.
def beginRun | ( | self | ) |
Begin run method of the module. Empty here.
Definition at line 411 of file __init__.py.
def draw_wires | ( | self | ) |
Getter for the draw option that indicates if all wires shall be drawn. Since this has some performance impact in animated events the wires are prevented from being drawn in this case.
Definition at line 349 of file __init__.py.
def draw_wires | ( | self, | |
draw_wires | |||
) |
Setter for the option to draw all wires.
Definition at line 359 of file __init__.py.
def drawoptions | ( | self | ) |
Property that collects the various names of the draw options to a list that are not related to the CDC cellular automaton track finder. @return list of strings naming the different switches that can be activated.
Definition at line 263 of file __init__.py.
def endRun | ( | self | ) |
endRun method of the module. Empty here.
Definition at line 1049 of file __init__.py.
def event | ( | self | ) |
Event method of the module. Draws the event into a new svg file.
Definition at line 418 of file __init__.py.
def initialize | ( | self | ) |
Initialisation method of the module. Creates the output folder if it is not present yet.
Definition at line 366 of file __init__.py.
def new_output_basename | ( | self | ) |
Generates a new unique name for the current event without the folder prefix
Definition at line 1063 of file __init__.py.
def new_output_filename | ( | self | ) |
Generates a new unique name for the current event with the folder prefix
Reimplemented in QueueDrawer.
Definition at line 1074 of file __init__.py.
def terminate | ( | self | ) |
terminate method of the module. Empty here.
Reimplemented in QueueDrawer.
Definition at line 1056 of file __init__.py.
|
protected |
Switch to draw the wires.
Definition at line 76 of file __init__.py.
animate |
Switch to make an animated event display by means of animated SVG.
Definition at line 61 of file __init__.py.
cdc_hits_store_array_name |
Name of the CDC Hits store array.
Definition at line 239 of file __init__.py.
cdc_segment_vector_store_obj_name |
Name of the CDC Reco Segment Vector.
Definition at line 251 of file __init__.py.
cdc_wire_hit_cluster_store_obj_name |
Name of the CDC Wire Hit Clusters.
Definition at line 248 of file __init__.py.
draw_axialsegmentpairs |
Switch to draw the axial stereo segment pairs generated by the finder.
Definition at line 195 of file __init__.py.
draw_clusters |
Switch to draw the clusters generated by the finder.
Definition at line 162 of file __init__.py.
draw_connect_tof |
Switch to draw the CDCSimHits connected in the order of their getFlightTime for each Monte Carlo particle.
Default: inactive
Definition at line 132 of file __init__.py.
draw_hits |
draw_interaction_point |
draw_mcaxialsegmentpairs |
Switch to draw the axial to axial segment pairs from Monte Carlo truth.
Default: inactive
Definition at line 147 of file __init__.py.
draw_mcparticle_id |
Switch to draw the MCParticle::getArrayIndex property.
Default: inactive
Definition at line 96 of file __init__.py.
draw_mcparticle_pdgcode |
Switch to draw the MCParticle::getPDGCode property.
Default: inactive
Definition at line 99 of file __init__.py.
draw_mcparticle_primary |
Switch to draw the MCParticle::hasStatus(c_PrimaryParticle) property.
Default: inactive
Definition at line 102 of file __init__.py.
draw_mcparticle_trajectories |
Switch to draw the ideal trajectory of the MCParticle.
Default: inactive
Definition at line 105 of file __init__.py.
draw_mcrecotrack_matching |
Draw the MC reference RecoTracks pattern recognition matching status.
Definition at line 224 of file __init__.py.
draw_mcrecotracks |
Draw the MC reference RecoTracks.
Definition at line 218 of file __init__.py.
draw_mcsegmentpairs |
Switch to draw the axial to stereo segment pairs from Monte Carlo truth.
Default: inactive
Definition at line 150 of file __init__.py.
draw_mcsegments |
Switch to draw the Monte Carlo segments as generated in CDCMCTrackStore.
Default: inactive
Definition at line 144 of file __init__.py.
draw_mcsegmenttriples |
Switch to draw the segment triples from Monte Carlo truth.
Default: inactive
Definition at line 153 of file __init__.py.
draw_nloops |
Switch to draw the CDCHit colored by the number of loops passed.
Definition at line 127 of file __init__.py.
draw_reassigned |
Switch to draw the CDCSimHits color coded by their reassignement information to a different MCParticle.
Default: inactive
Definition at line 141 of file __init__.py.
draw_recotrack_fit_trajectories |
Draw the output trackpoint trajectories.
Definition at line 230 of file __init__.py.
draw_recotrack_matching |
Draw the output RecoTracks pattern recognition matching status.
Definition at line 221 of file __init__.py.
draw_recotrack_seed_trajectories |
Draw the output track seed trajectories.
Definition at line 227 of file __init__.py.
draw_recotracks |
Draw the output RecoTracks.
Definition at line 215 of file __init__.py.
draw_rlinfo |
Switch to draw the CDCSimHits color coded by their local right left passage information.
Default: inactive
Definition at line 136 of file __init__.py.
draw_segment_fbinfos |
Switch to draw the segments generated by the finder colored by the coalignment information (forward, backward, undetermined)
Definition at line 178 of file __init__.py.
draw_segment_firstInTrackIds |
Switch to draw the segments generated by the finder colored by the first in track hit id.
Definition at line 181 of file __init__.py.
draw_segment_firstNPassedSuperLayers |
Switch to draw the segments generated by the finder colored by the number of passed superlayers associated to the first hit in the segment.
Definition at line 188 of file __init__.py.
draw_segment_lastInTrackIds |
Switch to draw the segments generated by the finder colored by the second in track hit id.
Definition at line 184 of file __init__.py.
draw_segment_lastNPassedSuperLayers |
Switch to draw the segments generated by the finder colored by the number of passed superlayers associated to the last hit in the segment.
Definition at line 192 of file __init__.py.
draw_segment_mctrackids |
Switch to draw the segments generated by the finder colored with the Monte Carlo track id.
Definition at line 174 of file __init__.py.
draw_segment_trajectories |
Switch to draw the trajectories fitted to the segments generated by the finder.
Definition at line 168 of file __init__.py.
draw_segmentpairs |
Switch to draw the axial stereo segment pairs generated by the finder.
Definition at line 198 of file __init__.py.
draw_segments |
Switch to draw the segments generated by the finder.
Definition at line 165 of file __init__.py.
draw_segmenttriple_trajectories |
Switch to draw the trajectories fitted to the segment triples generated by the finder.
Definition at line 204 of file __init__.py.
draw_segmenttriples |
Switch to draw the segment triples generated by the finder.
Definition at line 201 of file __init__.py.
draw_simhit_bkgtag |
Switch to draw the CDCSimHits color coded by their getBackgroundTag() property.
Default: inactive
Definition at line 121 of file __init__.py.
draw_simhit_isbkg |
Switch to draw the CDCSimHits red for getBackgroundTag() != bg_none.
Default: inactive
Definition at line 124 of file __init__.py.
draw_simhit_pdgcode |
Switch to draw the CDCSimHits color coded by their getPDGCode() property.
Default: inactive
Definition at line 117 of file __init__.py.
draw_simhit_posflag |
Switch to draw the CDCSimHits color coded by their getPosFlag() property.
Default: inactive
Definition at line 114 of file __init__.py.
draw_simhit_tof |
Switch to draw the CDCSimHits color coded by their time of flight.
Default: inactive
Definition at line 111 of file __init__.py.
draw_simhits |
Switch to draw the CDCSimHits with momentum information.
Default: inactive
Definition at line 108 of file __init__.py.
draw_superclusters |
Switch to draw the clusters generated by the finder.
Definition at line 159 of file __init__.py.
draw_superlayer_boundaries |
Switch to draw the superlayer boundaries.
Default: inactive
Definition at line 84 of file __init__.py.
draw_takenflag |
Switch to draw the CDCHits colored by the associated CDCWireHit taken flag.
Default: active
Definition at line 93 of file __init__.py.
draw_tangentsegments |
Switch to draw the tangent segments generated by the finder.
Definition at line 171 of file __init__.py.
draw_track_trajectories |
Switch to draw the trajectories of the tracks generated by the finder.
Definition at line 210 of file __init__.py.
draw_tracks |
Switch to draw the tracks generated by the finder.
Definition at line 207 of file __init__.py.
draw_walls |
Switch to draw the superlayer boundaries.
Default: inactive
Definition at line 87 of file __init__.py.
draw_wrong_rl_infos_in_segments |
Draw a red cdc hit of the rl info of the segment reco hits is wrong, else a green one.
Definition at line 233 of file __init__.py.
draw_wrong_rl_infos_in_tracks |
Draw a red cdc hit of the rl info of the track reco hits is wrong, else a green one.
Definition at line 236 of file __init__.py.
file_number |
Current file's number (used for making output filename)
Definition at line 254 of file __init__.py.
filename_prefix |
Filename prefix.
Definition at line 257 of file __init__.py.
forward_fade |
Switch to make the color of segments and tracks fade out in the forward direction.
Definition at line 64 of file __init__.py.
interactive |
Switch if the module shall show the event to the user and wait to continue or just generate the images.
Definition at line 50 of file __init__.py.
mc_reco_tracks_store_array_name |
Name of the Monte Carlo reference RecoTracks store array.
Definition at line 245 of file __init__.py.
output_folder |
Folder the images shall be saved to.
Definition at line 53 of file __init__.py.
prefilled_cppplotter |
prefilled default is to use the C++ plotter
Definition at line 403 of file __init__.py.
prefilled_plotter |
prefilled default is to use the python plotter
Definition at line 406 of file __init__.py.
reco_tracks_store_array_name |
Name of the RecoTracks store array.
Definition at line 242 of file __init__.py.
use_cpp |
Flag to use cpp.
Definition at line 70 of file __init__.py.
use_python |
Flag to use python.
Definition at line 73 of file __init__.py.
use_time_in_filename |
Use time instead of prefix in filename.
Definition at line 260 of file __init__.py.