Use x,y bin boundaries for histogram horizontal and vertical axes.

Set the hmm frequency with the ::histogram_memory::set_frame_freq command to make sure that the maximum time bin is set properly.

r2207 | ffr | 2007-10-31 17:03:01 +1100 (Wed, 31 Oct 2007) | 3 lines
This commit is contained in:
Ferdi Franceschini
2007-10-31 17:03:01 +11:00
committed by Douglas Clowes
parent 03b583655c
commit 5b5b3b4cc8

View File

@@ -51,14 +51,11 @@ proc ::histogram_memory::pre_count {} {
#TODO Add tolerance parameters to choppercontroller
if {abs($freq - 0) <= [expr 2.0/60.0]} {
hmm configure fat_frame_source INTERNAL
hmm configure fat_frame_frequency 50
::histogram_memory::set_frame_freq 50
} else {
hmm configure fat_frame_source EXTERNAL
hmm configure fat_frame_frequency $freq
::histogram_memory::set_frame_freq $freq
}
hmm stop
hmm init 0
hmm init
}
proc ::histogram_memory::post_count {} {}
proc ::histogram_memory::initialize {} {
@@ -69,6 +66,10 @@ proc ::histogram_memory::initialize {} {
set x_bb0 -210.5; set xbbmax 210.5
set y_bb0 -110.5; set ybbmax 110.5
hmm configure FAT_SIMULATED_EVENT_Y0 $y_bb0
hmm configure FAT_SIMULATED_EVENT_Y1 $ybbmax
hmm configure FAT_SIMULATED_EVENT_X0 $x_bb0
hmm configure FAT_SIMULATED_EVENT_X1 $xbbmax
set x_binwidth 1
if {[expr {$xbbmax - $x_bb0}] > 0} {
set x_bb1 [expr {$x_bb0+$x_binwidth}]
@@ -88,6 +89,6 @@ proc ::histogram_memory::initialize {} {
OAT_TABLE X "$x_bb0 $x_bb1" Y "$y_bb0 $y_bb1" T "$t_bb0 $t_bb1"
::histogram_memory::configure_server Filler_defaults
::nexus::data alias ::histogram_memory::vertical_axis ::histogram_memory::y_pixel_offset
::nexus::data alias ::histogram_memory::horizontal_axis ::histogram_memory::x_pixel_offset
::nexus::data alias ::histogram_memory::vertical_axis ::histogram_memory::y_bin
::nexus::data alias ::histogram_memory::horizontal_axis ::histogram_memory::x_bin
}