How to check and visualize the EPD mapping from tile to QT channel

Executive summary:

A code is presented that
  • checks the EPD QT database for consistency and logic
  • makes useful visual representation of the maps
  • generates .txt files needed for the online monitoring and QA plots
By agreement with Jack Engelage, this page will be updated, so that the following list is the most recent version.
  • latest version, 15 April 2024: Visual representation of mapping here.   Text file version here.
If there are changes, they will be noted and discussed below, but the above two links will always point to the most recent version.


Instructions for shift crew.

if the online plot for EPD shows many "low" (zero) <ADC> values, for example like this:

Then do the following
  • stop the run and restart it
  • if that does not fix it then...
    • scroll (it's easy and fast, don't worry) through the this pdf to see which EQ crate these tiles correspond to.  (For the example above, you will see this pattern on page 46 you will see the image below, telling you that the problem is in EQ4.)
    • reboot the crate
    • reboot TRG and DAQ at Run Control
    • take trigger pedestals with rhic_clock_clean
    • restart the run
    • report in the shiftlog which crate and which board was the problem (see image below).
  • if that does not fix it, then call an expert


If the failure pattern looks like the image above, the label tells you which crate to reboot (EQ4 in this case) and what to report in the shiftlog.


Discussion

The connection between the readout electronics space (Crate,Board,Channel) and geometrical space (EastWest,Position,Tile) is non-trivial, but it must be right, for any detector that claims to find an event plane.  That mapping is stored, as a function of time in epdQTMap, one of STAR's many databases.  Whenever the physical map changes (cabling changes, boards moved, etc), this database must be updated to reflect the physical reality, or else the data is random telephone numbers.

The Seven Patterns test is the ultimate check of the entire reconstruction chain, including the database, from tile (well, FEE channel) through the picoDst that the physics analyzer relies upon.  The Seven Patterns test is discussed here, and instructions on how to perform it are discussed here.

But for QA, online monitoring, and database-checking, is is also useful to visualize the mapping itself.  (E.g. if we see groupings of "dead tiles" during the run, is it due to a bad daughter card?)  Accessible at the bottom of this page is a macro VerifyEPDqtDB.C, which can be run in root4star.  It queries the epdQTMap database, for a given date and time, and (1) checks it for consistency; (2) makes useful visuals of the mapping; (3) generates .txt files that are needed for the online monitoring and QA plots during the run.

Also at the bottom of the page is the .pdf file and .txt file it produces, for date and time 20230607,120004 (7 June 2023 at 12:00:04).

Here are the maps for one of the 32 QT boards used for the EPD:




And here are the tiles connected to each channel in EQ3.  (Yellow is ADC, blue is TAC.)



Broad strokes can be seen zoomed-out.  If you want to see the actual tile identifiers or channel details, you need to zoom in on the pdf file.