Main INDEX
Monthly INDEX
PREV
NEXT
User name R. Michaels
Log entry time 11:03:01 on April13,2007
Entry number 198870
keyword=scaler history data in hex
The scaler history file in ~a-onl/scaler/scaler_history.dat
records the end-of-run scalers for each run.
The code that reads these (go there by "goxscaler", then see
README, it is "tscalhist") had a problem: For some time now
the scaler history data was in hexidecimal format due to some
recent history with the scripts. I've decided to leave this
format alone for now. I fixed the code by asks the users
whether the format is hex or plain decimal.
"tscalhist" can do anything the more popular scripts can do.
It uses the THaScaler class in Podd.
Example:
[adaq@adaql1 scaler]$ ./tscalhist
Enter bank 'Right','Left' (spectr) ->
Right
enter [runlo, runhi] = interval of runs to summarize ->
runlo:
2390
runhi:
2408
is data in hex(1) or decimal(0) format ?
1
Opened scaler map file scaler.map
Bdate : day = 22 month = 2 year = 2007
Run Events Time Current Charge(uC) T1 T3 T5
2390 741508 15.9 89.62 85673.24 21246980 1435766 9146
2391 1400610 28.9 92.96 161041.92 40105745 2710694 17285
2392 1402120 30.7 87.63 161543.08 40083597 2714144 17503
2393 1401852 30.5 89.07 162738.55 40174184 2713365 17468
2394 1402134 29.3 90.95 159870.30 39948562 2715299 17495
2395 1401339 28.8 92.46 159670.98 39854899 2713271 17191
2396 1402234 41.3 67.77 167951.78 40414035 2709303 19704
2397 1402467 33.2 83.96 167391.42 40558212 2710351 17888
2398 1400271 31.0 88.25 163951.61 40326047 2707412 17536
2399 1402266 39.7 70.29 167553.50 40505676 2709014 19413
2400 1401536 30.0 90.10 162431.09 40224004 2711013 17187
2401 1399399 29.9 89.64 161025.11 40024551 2708477 17398
2402 1007356 23.3 84.80 118293.02 28954821 1948271 12785
2403 1402669 31.7 85.95 163273.39 40111051 2714122 17795
2404 1401937 30.2 88.89 161324.78 39928238 2714655 17523
2405 1401944 29.9 89.37 160238.23 39839086 2716129 17460
2406 678071 22.8 55.92 76578.72 19029139 1312023 10260
2407 1401916 30.3 90.63 164791.56 40656575 2709537 17207
2408 1401227 34.3 81.93 168531.38 40830963 2706194 18039
Total charge from run 2390 to run 2408 = 2.89387 Coul