d ped-monitor (Jan)


L2-pedestal monitor-Algo ( 100% accept)

  1. Goal: accumulate pedestals for all towers of ETOW & BTOW.
  2. RTS params:
      par_pedSubtr  =rc_ints[0]!=0;
      par_speedFact =rc_ints[1];
      par_dbg       =rc_ints[3];
  3. Meaning of speed 
    time spent in L2-ped is proportional to # of towers processed per event.
    speed=1 means for every event process all 4800+720 towers, takes 1mSec
    speed=2 means 
      for the first event process tower 1,2, 5,6, 9,10,...., takes 500 uSec
      for the second event process tower 3,4, 7,8, 11,12,...., takes 500 uSec 
      So L2ped runs 2x faster but effectively you get 1/2 of stats for all towers.
    speed=4 means : 
        1st eve works with towers: 1,2,3,4, 17,18,19,20,... takes 250 uSec
        2nd eve works with towers: 5,6,7,8, 21,22,23,24,... 
        3rd  ...
        4th eve ...
    You got the pattern. Allowed 'speeds' are common divider of 4800 & 768.  
    Allowed speed values: 1,2,4,8,16,32,64,192
    But even if you type sth absurd L2ped will correct it to the closest correct value.