Monitor additions to BRAT

From: Kris Hagel (hagel@CyclotronMail.tamu.edu)
Date: Wed Jul 26 2000 - 19:07:48 EDT

  • Next message: Anders Holm: "Re: Monitor additions to BRAT"

    Hello,
    This message is to detail enhancements I made to the
    monitoring.  The most substantial enhancement is to
    implement a BrMonitorEvent which can be used in the
    various detector monitors and be seen across the
    monitors.  The way it works is follows:
    
    1. If you have a variable that you have worked hard to
    unpack and want to give it to your friend in the monitor
    next door, you would simply put in your code for
    example:
    SetEventVal(\"ZDC\",\"LeftAdcSum\",leftAdcSum);
    SetEventVal(\"ZDC\",\"RightAdcSum\",rightAdcSum);
    This is obviously if the ZDC monitor wishes to make the
    variables leftAdcSum and rightAdcSum public to other
    monitors.
    
    2. If you are working with another monitor and wish to
    use for example the leftAdcSum and rightAdcSum
    information that the ZDC monitor put into the event, the
    way to access that information would be:
    GetEventVal(\"ZDC\",\"LeftAdcSum\",leftAdcSum);
    GetEventVal(\"ZDC\",\"RightAdcSum\",rightAdcSum);
    Of course, this monitor could create his own information
    and put it in using another table eg
    SetEventVal(\"BB\",\"RightMult\",rightMult);
    
    It should be noted that order of execution of the
    monitors is important.  For example, in the example
    above, the ZDC monitor supplies some information that BB
    can use, but any information BB adds to the event cannot
    be used by ZDC because it has already executed.  The
    different monitor writers therefore will need to
    negotiate their placement in the BrSuperMonitor list.
    
    The other semi-substantial enhancement to
    BrDetectorMonitor is that it now prints on the right
    hand side under the buttons how much array space is
    being used by the monitor.
    
    These changes are committed to the repository.
    
    Enjoy
    
    Kris
    



    This archive was generated by hypermail 2b29 : Wed Jul 26 2000 - 19:08:15 EDT