|Line 34:||Line 34:|
Revision as of 15:10, 30 March 2018
We have a test MIDAS instance available here (username/pwd: testdaq/testdaq)
The default browser (the one that ROOT provides) for the rootana histograms is available here
Note that in order to use the data from the ROOT web server, we need to proxy both the MIDAS server and the THttpServer through APACHE. Having both the MIDAS server and the ROOT server data proxy through APACHE is necessary because the "same-origin policy" prohibits the custom web display grabbing data directly from the ROOT server. Here is an example of how we tweak the apache ssl.conf file to include the following proxy instructions:
Redirect permanent /rootana http://midastestdaq.triumf.ca/rootana/ ProxyPass /rootana/ http://midastestdaq.triumf.ca:8088/ retry=1 ProxyPass / http://midastestdaq.triumf.ca:8081/ retry=1
Custom web display
Features of this webdisplay include
- The ability to overlay multiple histograms or show two histograms side-by-side.
- The webpage is configured by a JSON configuration file called generic_rootana_setup.json; this defines which histograms to create buttons to look at. The example configuration file shows how to define histograms that have multiple copies for different channels, as well as stand-alone histograms. You can see the example configuration file here:
- All transfers are done with asynchronous Promise-style AJAX transfers.
- When requesting multiple histograms to overlay or plot side-by-side, all the histograms are requested in a single AJAX transfer. This ensures that you are looking at histograms that are updated at the same time, important when, for instance, plotting waveforms from a particular event.
The example page has two different schemes for actually plotting the data:
All these plotting packages seem to work reasonably well. I present the plots with all the packages, so users can compare between them and chose which they prefer.
- The webpage currently only works for looking at the histograms online. You could run rootana on a file and use this webpage to look at the plots; but I don't know how to get the webpage to tell rootana to only process one event at a time, so this isn't so useful. But maybe the idea of using a webpage to look at a particular file doesn't make much sense anyway.
- When you pause the webpage, you can't switch between different channels, display types, etc. That is because the webpage only has the information for the histogram that it is currently plotting; it doesn't have information for any other histograms, so can't show them without un-pausing.
I guess that these problems are probably problems that we also had with roody (not sure about i). They may be problems that are inherent to trying to decouple the generation of the histograms from their display.
There are also the following problems that are specific to the JSROOT style plots (hopefully fixed soon):
- the overlay plotting doesn't work
- the multiple plots are made with multiple AJAX transfers, so the data is not necessarily from the same event.