Bunch Current Transformers

There are two tables on the database which are updated every 4 seconds when there is beam. M_BCT_P for positrons and M_BCT_E for electrons. M_BCT_P also contains the total DC current.

In the second example below I make the assumption that only two bunches per train will be used in 1996.

Get BCT data - simple old fashioned query

Get BCT data - using structures

Test program which calls the above