Public Member Functions | |
__init__ (self, output_folder=tempfile.gettempdir(), interactive=True) | |
drawoptions (self) | |
all_drawoptions (self) | |
draw_wires (self) | |
draw_wires (self, draw_wires) | |
initialize (self) | |
beginRun (self) | |
event (self) | |
endRun (self) | |
terminate (self) | |
new_output_basename (self) | |
new_output_filename (self) | |
Public Attributes | |
interactive = interactive | |
Switch if the module shall show the event to the user and wait to continue or just generate the images. | |
output_folder = output_folder | |
Folder the images shall be saved to. | |
bool | animate = False |
Switch to make an animated event display by means of animated SVG. | |
bool | forward_fade = False |
Switch to make the color of segments and tracks fade out in the forward direction. | |
bool | use_cpp = True |
Flag to use cpp. | |
bool | use_python = False |
Flag to use python. | |
bool | draw_interaction_point = True |
Switch to draw the interaction point. | |
bool | draw_superlayer_boundaries = False |
Switch to draw the superlayer boundaries. | |
bool | draw_walls = False |
Switch to draw the superlayer boundaries. | |
bool | draw_hits = True |
Switch to draw the CDCHits. | |
bool | draw_takenflag = False |
Switch to draw the CDCHits colored by the associated CDCWireHit taken flag. | |
bool | draw_mcparticle_id = False |
Switch to draw the MCParticle::getArrayIndex property. | |
bool | draw_mcparticle_pdgcode = False |
Switch to draw the MCParticle::getPDGCode property. | |
bool | draw_mcparticle_primary = False |
Switch to draw the MCParticle::hasStatus(c_PrimaryParticle) property. | |
bool | draw_mcparticle_trajectories = False |
Switch to draw the ideal trajectory of the MCParticle. | |
bool | draw_simhits = False |
Switch to draw the CDCSimHits with momentum information. | |
bool | draw_simhit_tof = False |
Switch to draw the CDCSimHits color coded by their time of flight. | |
bool | draw_simhit_posflag = False |
Switch to draw the CDCSimHits color coded by their getPosFlag() property. | |
bool | draw_simhit_pdgcode = False |
Switch to draw the CDCSimHits color coded by their getPDGCode() property. | |
bool | draw_simhit_bkgtag = False |
Switch to draw the CDCSimHits color coded by their getBackgroundTag() property. | |
bool | draw_simhit_isbkg = False |
Switch to draw the CDCSimHits red for getBackgroundTag() != bg_none. | |
bool | draw_nloops = False |
Switch to draw the CDCHit colored by the number of loops passed. | |
bool | draw_connect_tof = False |
Switch to draw the CDCSimHits connected in the order of their getFlightTime for each Monte Carlo particle. | |
bool | draw_rlinfo = False |
Switch to draw the CDCSimHits color coded by their local right left passage information. | |
bool | draw_reassigned = False |
Switch to draw the CDCSimHits color coded by their reassignement information to a different MCParticle. | |
bool | draw_mcsegments = False |
Switch to draw the Monte Carlo segments as generated in CDCMCTrackStore. | |
bool | draw_mcaxialsegmentpairs = False |
Switch to draw the axial to axial segment pairs from Monte Carlo truth. | |
bool | draw_mcsegmentpairs = False |
Switch to draw the axial to stereo segment pairs from Monte Carlo truth. | |
bool | draw_mcsegmenttriples = False |
Switch to draw the segment triples from Monte Carlo truth. | |
bool | draw_superclusters = False |
Switch to draw the clusters generated by the finder. | |
bool | draw_clusters = False |
Switch to draw the clusters generated by the finder. | |
bool | draw_segments = False |
Switch to draw the segments generated by the finder. | |
bool | draw_segment_trajectories = False |
Switch to draw the trajectories fitted to the segments generated by the finder. | |
bool | draw_tangentsegments = False |
Switch to draw the tangent segments generated by the finder. | |
bool | draw_segment_mctrackids = False |
Switch to draw the segments generated by the finder colored with the Monte Carlo track id. | |
bool | draw_segment_fbinfos = False |
Switch to draw the segments generated by the finder colored by the coalignment information (forward, backward, undetermined) | |
bool | draw_segment_firstInTrackIds = False |
Switch to draw the segments generated by the finder colored by the first in track hit id. | |
bool | draw_segment_lastInTrackIds = False |
Switch to draw the segments generated by the finder colored by the second in track hit id. | |
bool | draw_segment_firstNPassedSuperLayers = False |
Switch to draw the segments generated by the finder colored by the number of passed superlayers associated to the first hit in the segment. | |
bool | draw_segment_lastNPassedSuperLayers = False |
Switch to draw the segments generated by the finder colored by the number of passed superlayers associated to the last hit in the segment. | |
bool | draw_axialsegmentpairs = False |
Switch to draw the axial stereo segment pairs generated by the finder. | |
bool | draw_segmentpairs = False |
Switch to draw the axial stereo segment pairs generated by the finder. | |
bool | draw_segmenttriples = False |
Switch to draw the segment triples generated by the finder. | |
bool | draw_segmenttriple_trajectories = False |
Switch to draw the trajectories fitted to the segment triples generated by the finder. | |
bool | draw_tracks = False |
Switch to draw the tracks generated by the finder. | |
bool | draw_track_trajectories = False |
Switch to draw the trajectories of the tracks generated by the finder. | |
bool | draw_recotracks = False |
Draw the output RecoTracks. | |
bool | draw_mcrecotracks = False |
Draw the MC reference RecoTracks. | |
bool | draw_recotrack_matching = False |
Draw the output RecoTracks pattern recognition matching status. | |
bool | draw_mcrecotrack_matching = False |
Draw the MC reference RecoTracks pattern recognition matching status. | |
bool | draw_recotrack_seed_trajectories = False |
Draw the output track seed trajectories. | |
bool | draw_recotrack_fit_trajectories = False |
Draw the output trackpoint trajectories. | |
bool | draw_wrong_rl_infos_in_segments = False |
Draw a red cdc hit of the rl info of the segment reco hits is wrong, else a green one. | |
bool | draw_wrong_rl_infos_in_tracks = False |
Draw a red cdc hit of the rl info of the track reco hits is wrong, else a green one. | |
str | cdc_hits_store_array_name = "CDCHits" |
Name of the CDC Hits store array. | |
str | reco_tracks_store_array_name = "RecoTracks" |
Name of the RecoTracks store array. | |
str | mc_reco_tracks_store_array_name = "MCRecoTracks" |
Name of the Monte Carlo reference RecoTracks store array. | |
str | cdc_wire_hit_cluster_store_obj_name = "CDCWireHitClusterVector" |
Name of the CDC Wire Hit Clusters. | |
str | cdc_segment_vector_store_obj_name = 'CDCSegment2DVector' |
Name of the CDC Reco Segment Vector. | |
int | file_number = 0 |
Current file's number (used for making output filename) | |
str | filename_prefix = "CDCDisplay" |
Filename prefix. | |
bool | use_time_in_filename = False |
Use time instead of prefix in filename. | |
draw_wires = svgdrawing.CDCSVGPlotter(animate=self.animate) | |
prefilled_cppplotter = cppplotter | |
prefilled default is to use the C++ plotter | |
prefilled_plotter = plotter | |
prefilled default is to use the python plotter | |
Protected Attributes | |
bool | _draw_wires = True |
Switch to draw the wires. | |
Personal two dimensional event display based on scalable vector graphics
Definition at line 27 of file __init__.py.
__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
Definition at line 33 of file __init__.py.
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.
beginRun | ( | self | ) |
Begin run method of the module. Empty here.
Definition at line 411 of file __init__.py.
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.
draw_wires | ( | self, | |
draw_wires ) |
Setter for the option to draw all wires.
Definition at line 359 of file __init__.py.
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.
endRun | ( | self | ) |
endRun method of the module. Empty here.
Definition at line 1049 of file __init__.py.
event | ( | self | ) |
Event method of the module. Draws the event into a new svg file.
Definition at line 418 of file __init__.py.
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.
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.
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.
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.
bool animate = False |
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 = "CDCHits" |
Name of the CDC Hits store array.
Definition at line 239 of file __init__.py.
cdc_segment_vector_store_obj_name = 'CDCSegment2DVector' |
Name of the CDC Reco Segment Vector.
Definition at line 251 of file __init__.py.
cdc_wire_hit_cluster_store_obj_name = "CDCWireHitClusterVector" |
Name of the CDC Wire Hit Clusters.
Definition at line 248 of file __init__.py.
bool draw_axialsegmentpairs = False |
Switch to draw the axial stereo segment pairs generated by the finder.
Definition at line 195 of file __init__.py.
bool draw_clusters = False |
Switch to draw the clusters generated by the finder.
Definition at line 162 of file __init__.py.
bool draw_connect_tof = False |
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.
bool draw_hits = True |
bool draw_interaction_point = True |
bool draw_mcaxialsegmentpairs = False |
Switch to draw the axial to axial segment pairs from Monte Carlo truth.
Default: inactive
Definition at line 147 of file __init__.py.
bool draw_mcparticle_id = False |
Switch to draw the MCParticle::getArrayIndex property.
Default: inactive
Definition at line 96 of file __init__.py.
bool draw_mcparticle_pdgcode = False |
Switch to draw the MCParticle::getPDGCode property.
Default: inactive
Definition at line 99 of file __init__.py.
bool draw_mcparticle_primary = False |
Switch to draw the MCParticle::hasStatus(c_PrimaryParticle) property.
Default: inactive
Definition at line 102 of file __init__.py.
bool draw_mcparticle_trajectories = False |
Switch to draw the ideal trajectory of the MCParticle.
Default: inactive
Definition at line 105 of file __init__.py.
bool draw_mcrecotrack_matching = False |
Draw the MC reference RecoTracks pattern recognition matching status.
Definition at line 224 of file __init__.py.
bool draw_mcrecotracks = False |
Draw the MC reference RecoTracks.
Definition at line 218 of file __init__.py.
bool draw_mcsegmentpairs = False |
Switch to draw the axial to stereo segment pairs from Monte Carlo truth.
Default: inactive
Definition at line 150 of file __init__.py.
bool draw_mcsegments = False |
Switch to draw the Monte Carlo segments as generated in CDCMCTrackStore.
Default: inactive
Definition at line 144 of file __init__.py.
bool draw_mcsegmenttriples = False |
Switch to draw the segment triples from Monte Carlo truth.
Default: inactive
Definition at line 153 of file __init__.py.
bool draw_nloops = False |
Switch to draw the CDCHit colored by the number of loops passed.
Definition at line 127 of file __init__.py.
bool draw_reassigned = False |
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.
bool draw_recotrack_fit_trajectories = False |
Draw the output trackpoint trajectories.
Definition at line 230 of file __init__.py.
bool draw_recotrack_matching = False |
Draw the output RecoTracks pattern recognition matching status.
Definition at line 221 of file __init__.py.
bool draw_recotrack_seed_trajectories = False |
Draw the output track seed trajectories.
Definition at line 227 of file __init__.py.
bool draw_recotracks = False |
Draw the output RecoTracks.
Definition at line 215 of file __init__.py.
bool draw_rlinfo = False |
Switch to draw the CDCSimHits color coded by their local right left passage information.
Default: inactive
Definition at line 136 of file __init__.py.
bool draw_segment_fbinfos = False |
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.
bool draw_segment_firstInTrackIds = False |
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.
bool draw_segment_firstNPassedSuperLayers = False |
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.
bool draw_segment_lastInTrackIds = False |
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.
bool draw_segment_lastNPassedSuperLayers = False |
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.
bool draw_segment_mctrackids = False |
Switch to draw the segments generated by the finder colored with the Monte Carlo track id.
Definition at line 174 of file __init__.py.
bool draw_segment_trajectories = False |
Switch to draw the trajectories fitted to the segments generated by the finder.
Definition at line 168 of file __init__.py.
bool draw_segmentpairs = False |
Switch to draw the axial stereo segment pairs generated by the finder.
Definition at line 198 of file __init__.py.
bool draw_segments = False |
Switch to draw the segments generated by the finder.
Definition at line 165 of file __init__.py.
bool draw_segmenttriple_trajectories = False |
Switch to draw the trajectories fitted to the segment triples generated by the finder.
Definition at line 204 of file __init__.py.
bool draw_segmenttriples = False |
Switch to draw the segment triples generated by the finder.
Definition at line 201 of file __init__.py.
bool draw_simhit_bkgtag = False |
Switch to draw the CDCSimHits color coded by their getBackgroundTag() property.
Default: inactive
Definition at line 121 of file __init__.py.
bool draw_simhit_isbkg = False |
Switch to draw the CDCSimHits red for getBackgroundTag() != bg_none.
Default: inactive
Definition at line 124 of file __init__.py.
bool draw_simhit_pdgcode = False |
Switch to draw the CDCSimHits color coded by their getPDGCode() property.
Default: inactive
Definition at line 117 of file __init__.py.
bool draw_simhit_posflag = False |
Switch to draw the CDCSimHits color coded by their getPosFlag() property.
Default: inactive
Definition at line 114 of file __init__.py.
bool draw_simhit_tof = False |
Switch to draw the CDCSimHits color coded by their time of flight.
Default: inactive
Definition at line 111 of file __init__.py.
bool draw_simhits = False |
Switch to draw the CDCSimHits with momentum information.
Default: inactive
Definition at line 108 of file __init__.py.
bool draw_superclusters = False |
Switch to draw the clusters generated by the finder.
Definition at line 159 of file __init__.py.
bool draw_superlayer_boundaries = False |
Switch to draw the superlayer boundaries.
Default: inactive
Definition at line 84 of file __init__.py.
bool draw_takenflag = False |
Switch to draw the CDCHits colored by the associated CDCWireHit taken flag.
Default: active
Definition at line 93 of file __init__.py.
bool draw_tangentsegments = False |
Switch to draw the tangent segments generated by the finder.
Definition at line 171 of file __init__.py.
bool draw_track_trajectories = False |
Switch to draw the trajectories of the tracks generated by the finder.
Definition at line 210 of file __init__.py.
bool draw_tracks = False |
Switch to draw the tracks generated by the finder.
Definition at line 207 of file __init__.py.
bool draw_walls = False |
Switch to draw the superlayer boundaries.
Default: inactive
Definition at line 87 of file __init__.py.
draw_wires = svgdrawing.CDCSVGPlotter(animate=self.animate) |
Definition at line 392 of file __init__.py.
bool draw_wrong_rl_infos_in_segments = False |
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.
bool draw_wrong_rl_infos_in_tracks = False |
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.
int file_number = 0 |
Current file's number (used for making output filename)
Definition at line 254 of file __init__.py.
str filename_prefix = "CDCDisplay" |
Filename prefix.
Definition at line 257 of file __init__.py.
bool forward_fade = False |
Switch to make the color of segments and tracks fade out in the forward direction.
Definition at line 64 of file __init__.py.
interactive = 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 = "MCRecoTracks" |
Name of the Monte Carlo reference RecoTracks store array.
Definition at line 245 of file __init__.py.
output_folder = output_folder |
Folder the images shall be saved to.
Definition at line 53 of file __init__.py.
prefilled_cppplotter = cppplotter |
prefilled default is to use the C++ plotter
Definition at line 403 of file __init__.py.
prefilled_plotter = plotter |
prefilled default is to use the python plotter
Definition at line 406 of file __init__.py.
reco_tracks_store_array_name = "RecoTracks" |
Name of the RecoTracks store array.
Definition at line 242 of file __init__.py.
bool use_cpp = True |
Flag to use cpp.
Definition at line 70 of file __init__.py.
bool use_python = False |
Flag to use python.
Definition at line 73 of file __init__.py.
bool use_time_in_filename = False |
Use time instead of prefix in filename.
Definition at line 260 of file __init__.py.