-
Notifications
You must be signed in to change notification settings - Fork 0
/
coinc.odef
executable file
·859 lines (712 loc) · 32.6 KB
/
coinc.odef
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
# Right HRS
#
#block R.*
block R.s2.*
block R.s0.*
block R.ps.*
block R.sh.*
block R.cer.*
block R.vdc.*
block R.tr.*
block R.fpp.*
block R.trg.*
#block g.*
block DR.*
# Physics variables
block R.gold.*
block rpr.*
block exR.*
block PKR.*
block PKRc.*
block PKRx.*
# Left HRS
#
block L.s2.*
block L.s0.*
block L.prl1.*
block L.prl2.*
block L.cer.*
block L.vdc.*
block L.tr.*
block L.fpp.*
block L.trg.*
#unclear if this works
#block DL.*
# Physics variables
block L.gold.*
block rpl.*
block exL.*
block EKL.*
block EKLc.*
block EKLx.*
# Normalization variables
block N*
#BPM/Raster Variables
FORMULA rbax 1000.*RrbGmp.BPMA.x
FORMULA rbay 1000.*RrbGmp.BPMA.y
FORMULA rbbx 1000.*RrbGmp.BPMB.x
FORMULA rbby 1000.*RrbGmp.BPMB.y
FORMULA rbx 1000.*RrbGmp.x
FORMULA rby 1000.*RrbGmp.y
FORMULA bpmaws RrbGmp.BPMA.rawcur.1+RrbGmp.BPMA.rawcur.2+RrbGmp.BPMA.rawcur.3+RrbGmp.BPMA.rawcur.4
FORMULA bpmbws RrbGmp.BPMB.rawcur.1+RrbGmp.BPMB.rawcur.2+RrbGmp.BPMB.rawcur.3+RrbGmp.BPMB.rawcur.4
Variable RrbGmp.Raster.rawcur.x
Variable RrbGmp.Raster.rawcur.y
Variable RrbGmp.Raster2.rawcur.x
Variable RrbGmp.Raster2.rawcur.y
Variable RrbGmp.dir.x
Variable RrbGmp.dir.y
Variable RrbGmp.e
#-------------------------------------------------------------------
# RIGHT ARM S0
#
TH1F Rs0la 'Right arm S0-Top(B) ADC' R.s0.la 3000 0 3000 R.s0.la>0.
TH1F Rs0ra 'Right arm S0-Bottom(A) ADC' R.s0.ra 3000 0 3000 R.s0.ra>0.
TH1F Rs0lt 'Right arm S0-Top(B) TDC' R.s0.lt 900 1 2500 R.s0.lt>0.
TH1F Rs0rt 'Right arm S0-Bottom(A) TDC' R.s0.rt 900 1 2500 R.s0.rt>0.
TH1F Rs0la_p 'Right arm S0-Top(B) ADC (PedSub)' R.s0.la_p 3050 -50 3000 R.s0.la_p>-50.
TH1F Rs0ra_p 'Right arm S0-Bottom(A) ADC (PedSub)' R.s0.ra_p 3050 -50 3000 R.s0.ra_p>-50.
#-------------------------------------------------------------------
# RIGHT ARM S2
#
TH1F Rs2la 'Right arm S2 L-PMT ADCs' R.s2.la 1000 0 1000 R.s2.la>0.
TH1F Rs2ra 'Right arm S2 R-PMT ADCs' R.s2.ra 1000 0 1000 R.s2.ra>0.
TH1F Rs2lt 'Right arm S2 L-PMT TDCs' R.s2.lt 900 1 2500 R.s2.lt>0.
TH1F Rs2rt 'Right arm S2 R-PMT TDCs' R.s2.rt 900 1 2500 R.s2.rt>0.
TH1F Rs2la_p 'Right arm S2 L-PMT ADCs (PedSub)' R.s2.la_p 350 -50 300 R.s2.la_p>-50.
TH1F Rs2ra_p 'Right arm S2 R-PMT ADCs (PedSub)' R.s2.ra_p 350 -50 300 R.s2.ra_p>-50.
# ------------------------------------------------------------------
# RIGHT ARM GAS CHERENKOV ADC and TDC :
#
TH1F Rcera 'Right arm Cerenkov' R.cer.a 4100 -99.5 4000.5 R.cer.a>0
TH1F Rcersum 'Right arm Cerenkov sum (corrected)' R.cer.asum_c 1550 -99.5 3000.5 R.cer.asum_c>-100
TH1F Rcera_p 'Right arm Cerenkov PMT (PedSub)' R.cer.a_p 550 -50.5 499.5 R.cer.a_p>-50.
TH1F Rcert 'Right arm Cerenkov TDCs' R.cer.t 900 1 2500 R.cer.t>0
TH2F Rcer_x 'Right arm Cerenkov sum (corrected) vs. X' R.cer.trx R.cer.asum_c 60 -1.2 1.2 775 -99.5 3000 R.tr.n>0&&R.cer.asum_c>-100
TH2F Rcer_y 'Right arm Cerenkov sum (corrected) vs. Y' R.cer.try R.cer.asum_c 60 -0.12 0.12 775 -99.5 3000 R.tr.n>0&&R.cer.asum_c>-100
# ------------------------------------------------------------------
# RIGHT ARM Pion Rejector 1,2 (Preshower/Shower):
#
#TH1F Rpsa 'PionRejector1 ADCs' R.ps.a 200 10 2000 R.ps.a>0.
TH1F Rpsa 'Preshower ADCs' R.ps.a 2000 0.5 2000.5 R.ps.a>0.
TH1F Rpsa_p 'Preshower ADCs (PedSub)' R.ps.a_p 550 -49.5 500.5 R.ps.a_p>-50
TH1F Rpssum 'Preshower sum' R.ps.asum_c 200 1 2000
TH1F Rsha 'Shower ADCs' R.sh.a 2000 0.5 2000.5 R.sh.a>0.
TH1F Rsha_p 'Shower ADCs (PedSub)' R.sh.a_p 550 -49.5 500.5 R.sh.a_p>-50
TH1F Rshsum 'Shower sum' R.sh.asum_c 200 10 2000
TH2F Rpr1_2 'Preshower vs. Shower' R.sh.asum_c R.ps.asum_c 200 1 2500 200 1 2500
TH2F Rp1sumx 'Preshower sum vs. x' R.ps.trx R.ps.asum_c 200 -1.2 1.2 200 1 2000 R.tr.n>0
TH2F Rp2sumx 'Shower sum vs. x' R.sh.trx R.sh.asum_c 200 -1.2 1.2 200 1 2000 R.tr.n>0
TH2F Rp1sumy 'Preshower sum vs. y' R.ps.try R.ps.asum_c 200 -0.2 0.2 200 1 2000 R.tr.n>0
TH2F Rp2sumy 'Shower sum vs. y' R.sh.try R.sh.asum_c 200 -0.2 0.2 200 1 2000 R.tr.n>0
# ------------------------------------------------------------------
# RIGHT ARM VDC wires and timing :
#
TH1F Rvu1t 'R-arm VDC u1 time' R.vdc.u1.rawtime 250 0 2500
TH1F Rvu2t 'R-arm VDC u2 time' R.vdc.u2.rawtime 250 0 2500
TH1F Rvv1t 'R-arm VDC v1 time' R.vdc.v1.rawtime 250 0 2500
TH1F Rvv2t 'R-arm VDC v2 time' R.vdc.v2.rawtime 250 0 2500
TH1F Rvu1w 'R-arm VDC u1 wires' R.vdc.u1.wire 400 0 400
TH1F Rvu2w 'R-arm VDC u2 wires' R.vdc.u2.wire 400 0 400
TH1F Rvv1w 'R-arm VDC v1 wires' R.vdc.v1.wire 400 0 400
TH1F Rvv2w 'R-arm VDC v2 wires' R.vdc.v2.wire 400 0 400
#-------------------------------------------------------------------------------
#RIGHT ARM Straws
#
### Corrected Straw Number of hit
TH1F Rv1_stn_c 'Straw Number of hit on V1' R.fpp.v1.straw_c 200 0 200
TH1F Rv2_stn_c 'Straw Number of hit on V2' R.fpp.v2.straw_c 200 0 200
TH1F Rv3_stn_c 'Straw Number of hit on V3' R.fpp.v3.straw_c 200 0 200
TH1F Ru1_stn_c 'Straw Number of hit on U1' R.fpp.u1.straw_c 200 0 200
TH1F Ru2_stn_c 'Straw Number of hit on U2' R.fpp.u2.straw_c 200 0 200
TH1F Ru3_stn_c 'Straw Number of hit on U3' R.fpp.u3.straw_c 200 0 200
### Wire group hits
TH1F Rv1_wn 'Number of hits Per WG on V1' R.fpp.v1.wire 250 0 25
TH1F Rv2_wn 'Number of hits Per WG on V2' R.fpp.v2.wire 250 0 25
TH1F Rv3_wn 'Number of hits Per WG on V3' R.fpp.v3.wire 250 0 25
TH1F Ru1_wn 'Number of hits Per WG on U1' R.fpp.u1.wire 250 0 25
TH1F Ru2_wn 'Number of hits Per WG on U2' R.fpp.u2.wire 250 0 25
TH1F Ru3_wn 'Number of hits Per WG on U3' R.fpp.u3.wire 250 0 25
### Wire Vs. Hit Histograms (FPP)
TH2F Rv1_nh_wn 'Number of hits vs. Wire Number on V1' R.fpp.v1.nhit R.fpp.v1.wire 250 0 10 250 0 20
TH2F Rv2_nh_wn 'Number of hits vs. Wire Number on V2' R.fpp.v2.nhit R.fpp.v2.wire 250 0 10 250 0 20
TH2F Rv3_nh_wn 'Number of hits vs. Wire Number on V3' R.fpp.v3.nhit R.fpp.v3.wire 250 0 10 250 0 20
TH2F Ru1_nh_wn 'Number of hits vs. Wire Number on U1' R.fpp.u1.nhit R.fpp.u1.wire 250 0 10 250 0 22
TH2F Ru2_nh_wn 'Number of hits vs. Wire Number on U2' R.fpp.u2.nhit R.fpp.u2.wire 250 0 10 250 0 22
TH2F Ru3_nh_wn 'Number of hits vs. Wire Number on U3' R.fpp.u3.nhit R.fpp.u3.wire 250 0 10 250 0 22
### Track X position Vs. Straw Number (FPP)
TH2F Rv1_X_stn 'Track X vs Straw Number on V1' R.fpp.v1.straw_c R.fpp.trx 200 0 200 200 -2 2 R.tr.n>0
TH2F Rv2_X_stn 'Track X vs Straw Number on V2' R.fpp.v2.straw_c R.fpp.trx 200 0 200 200 -2 2 R.tr.n>0
TH2F Rv3_X_stn 'Track X vs Straw Number on V3' R.fpp.v3.straw_c R.fpp.trx 200 0 200 200 -2 2 R.tr.n>0
TH2F Ru1_X_stn 'Track X vs Straw Number on U1' R.fpp.u1.straw_c R.fpp.trx 200 0 200 200 -2 2 R.tr.n>0
TH2F Ru2_X_stn 'Track X vs Straw Number on U2' R.fpp.u2.straw_c R.fpp.trx 200 0 200 200 -2 2 R.tr.n>0
TH2F Ru3_X_stn 'Track X vs Straw Number on U3' R.fpp.u3.straw_c R.fpp.trx 200 0 200 200 -2 2 R.tr.n>0
##TDC Width Histograms
TH1F Ru1_tdc 'TDC Widths for U1' R.fpp.u1.width 100 0 160
TH1F Ru2_tdc 'TDC Widths for U2' R.fpp.u2.width 100 0 160
TH1F Ru3_tdc 'TDC Widths for U3' R.fpp.u3.width 100 0 160
TH1F Rv1_tdc 'TDC Widths for V1' R.fpp.v1.width 100 0 160
TH1F Rv2_tdc 'TDC Widths for V2' R.fpp.v2.width 100 0 160
TH1F Rv3_tdc 'TDC Widths for V3' R.fpp.v3.width 100 0 160
##TDC Width Vs. Wire Group hits
TH2F Ru1_tdc_wg 'TDC Widths Vs. WG for U1' R.fpp.u1.width R.fpp.u1.wire 100 0 200 250 0 25
TH2F Ru2_tdc_wg 'TDC Widths Vs. WG for U2' R.fpp.u2.width R.fpp.u2.wire 100 0 200 250 0 25
TH2F Ru3_tdc_wg 'TDC Widths Vs. WG for U3' R.fpp.u3.width R.fpp.u3.wire 100 0 200 250 0 25
TH2F Rv1_tdc_wg 'TDC Widths Vs. WG for V1' R.fpp.v1.width R.fpp.v1.wire 100 0 200 250 0 25
TH2F Rv2_tdc_wg 'TDC Widths Vs. WG for V2' R.fpp.v2.width R.fpp.v2.wire 100 0 200 250 0 25
TH2F Rv3_tdc_wg 'TDC Widths Vs. WG for V3' R.fpp.v3.width R.fpp.v3.wire 100 0 200 250 0 25
### Leading Edge TDC Histograms
TH1F Ru1_ltdc 'Leading Edge TDC for U1' R.fpp.u1.ltdc 100 1100 1800
TH1F Ru2_ltdc 'Leading Edge TDC for U2' R.fpp.u2.ltdc 100 1100 1800
TH1F Ru3_ltdc 'Leading Edge TDC for U3' R.fpp.u3.ltdc 100 1100 1800
TH1F Rv1_ltdc 'Leading Edge TDC for V1' R.fpp.v1.ltdc 100 1100 1800
TH1F Rv2_ltdc 'Leading Edge TDC for V2' R.fpp.v2.ltdc 100 1100 1800
TH1F Rv3_ltdc 'Leading Edge TDC for V3' R.fpp.v3.ltdc 100 1100 1800
### Leading Edge TDC Histograms (corrected)
TH1F Ru1_ltdc_c 'Leading Edge TDC for U1(Corrected)' R.fpp.u1.ltdc_c 80 -40 240
TH1F Ru2_ltdc_c 'Leading Edge TDC for U2(Corrected)' R.fpp.u2.ltdc_c 80 -40 240
TH1F Ru3_ltdc_c 'Leading Edge TDC for U3(Corrected)' R.fpp.u3.ltdc_c 80 -40 240
TH1F Rv1_ltdc_c 'Leading Edge TDC for V1(Corrected)' R.fpp.v1.ltdc_c 80 -40 240
TH1F Rv2_ltdc_c 'Leading Edge TDC for V2(Corrected)' R.fpp.v2.ltdc_c 80 -40 240
TH1F Rv3_ltdc_c 'Leading Edge TDC for V3(Corrected)' R.fpp.v3.ltdc_c 80 -40 240
### Leading Edge Drift distance Histograms (corrected)
TH1F Ru1_dd_c 'Drift Distance for U1(Corrected)' R.fpp.u1.drfdst 70 -0.1 0.6
TH1F Ru2_dd_c 'Drift Distance for U2(Corrected)' R.fpp.u2.drfdst 70 -0.1 0.6
TH1F Ru3_dd_c 'Drift Distance for U3(Corrected)' R.fpp.u3.drfdst 70 -0.1 0.6
TH1F Rv1_dd_c 'Drift Distance for V1(Corrected)' R.fpp.v1.drfdst 70 -0.1 0.6
TH1F Rv2_dd_c 'Drift Distance for V2(Corrected)' R.fpp.v2.drfdst 70 -0.1 0.6
TH1F Rv3_dd_c 'Drift Distance for V3(Corrected)' R.fpp.v3.drfdst 70 -0.1 0.6
### Number of Hits Spectra
TH1F Rfpp_nhit 'Total number of hits Spectra' R.fpp.u1.nhit+R.fpp.u2.nhit+R.fpp.u3.nhit+R.fpp.v1.nhit+R.fpp.v2.nhit+R.fpp.v3.nhit 40 0 40
TH1F Rfpp_ufront 'U chamber hits' R.fpp.u1.nhit+R.fpp.u2.nhit+R.fpp.u3.nhit 20 0 20
TH1F Rfpp_vfront 'V chamber hits' R.fpp.v1.nhit+R.fpp.v2.nhit+R.fpp.v3.nhit 20 0 20
#--------------------------------------------------------------------------------
# RIGHT Arm Tracking & Reconstruction Histograms :
#
TH1F Rtry 'R-arm FP Transport y' R.tr.y 200 -.2 .2
TH1F Rtrx 'R-arm FP Transport x' R.tr.x 200 -1.5 1.5
TH1F Rtrph 'R-arm FP Transport phi' R.tr.ph 200 -.2 .2
TH1F Rtrth 'R-arm FP Transport theta' R.tr.th 200 -.8 .8
TH1F Rtryd 'R-arm FP Detector y' R.tr.d_y 200 -.2 .2
TH1F Rtrxd 'R-arm FP Detector x' R.tr.d_x 200 -1.5 1.5
TH1F Rtrphd 'R-arm FP Detector phi' R.tr.d_ph 200 -.3 .3
TH1F Rtrthd 'R-arm FP Detector theta' R.tr.d_th 200 0. 2.
TH1F Rtryr 'R-arm FP Rotated y' R.tr.r_y 200 -.2 .2
TH1F Rtrxr 'R-arm FP Rotated x' R.tr.r_x 200 -1.5 1.5
TH1F Rtrphr 'R-arm FP Rotated phi' R.tr.r_ph 200 -.2 .2
TH1F Rtrthr 'R-arm FP Rotated theta' R.tr.r_th 200 -.8 .8
TH2F R_tfpa 'R-arm FP Transport x vs. y' R.tr.y R.tr.x 200 -.2 .2 200 -1.5 1.5
TH2F R_tfpb 'R-arm FP Transport theta vs. phi' R.tr.ph R.tr.th 200 -.075 .075 200 -.2 .2
TH2F R_tfpc 'R-arm FP Rotated x vs. y' R.tr.r_y R.tr.r_x 200 -.2 .2 200 -1.5 1.5
TH2F R_tfpd 'R-arm FP Rotated theta vs. phi' R.tr.r_ph R.tr.r_th 200 -.075 .075 200 -.2 .2
TH1F R_dp 'R-arm delta' R.tr.tg_dp 200 -.1 .1
TH1F R_tgth 'R-arm target theta' R.tr.tg_th 200 -.2 .2
TH1F R_tgph 'R-arm target phi' R.tr.tg_ph 200 -.1 .1
TH1F R_tgy 'R-arm target y' R.tr.tg_y 200 -.1 .1
TH1F Rtrn 'R-arm number of tracks' R.tr.n 20 -0.5 10.5
TH1F R_tr_beta 'R-arm Track Beta' R.tr.beta 100 -2 2 R.tr.n>0
TH2F R_tr_betax 'R-arm Track Beta vs. Track X' R.tr.x R.tr.beta 100 -1 1 100 -2 2 R.tr.n>0
TH2F R_tr_betay 'R-arm Track Beta vs. Track Y' R.tr.y R.tr.beta 100 -.1 .1 100 -2 2 R.tr.n>0
TH2F R_tga 'R-arm tgt theta vs. phi' R.tr.tg_ph R.tr.tg_th 200 -0.1 0.1 200 -0.2 0.2
TH2F R_tgb 'R-arm tgt delta vs. phi' R.tr.tg_ph R.tr.tg_dp 200 -0.1 0.1 1000 -0.1 0.1
TH2F R_tgc 'R-arm tgt phi vs. y' R.tr.tg_y R.tr.tg_ph 200 -0.1 0.1 200 -0.1 0.1
#-------------------------------------------------------------------------------
# RIGHT Arm Physics Histograms:
TH1F R_pmiss 'Missing Momentum' PKR.pmiss 1000 0 1
TH1F R_emiss 'Missing Energy' PKR.emiss 1000 -0.5 0.5
TH1F R_KE 'Proton Kinetic Energy (GeV)' PKR.tx 1000 0 1
TH1F R_KECM 'Proton Kinetic Energy in CM (GeV)' PKR.tx_cm 1000 0 1
TH1F R_tot_KECM 'Total Center of Mass Kinetic Energy' PKR.t_tot_cm 100 0 1
TH1F R_thpq 'Polar Angle between q and detected particle' PKR.th_xq*180/3.1415 200 0 100
TH1F R_diffangle 'Angle between electron and detected particle' PKR.xangle*180/3.1415 100 30 80
#Cut on Trigger 1
TH1F R_pmiss_T1 'Missing Momentum - T1' PKR.pmiss 1000 0 1 (DR.evtypebits>>1)&1
TH1F R_emiss_T1 'Missing Energy - T1' PKR.emiss 1000 -0.5 0.5 (DR.evtypebits>>1)&1
TH1F R_KE_T1 'Proton Kinetic Energy (GeV) - T1' PKR.tx 1000 0 1 (DR.evtypebits>>1)&1
TH1F R_KECM_T1 'Proton Kinetic Energy in CM (GeV) - T1' PKR.tx_cm 1000 0 1 (DR.evtypebits>>1)&1
TH1F R_tot_KECM_T1 'Total Center of Mass Kinetic Energy - T1' PKR.t_tot_cm 100 0 1 (DR.evtypebits>>1)&1
TH1F R_thpq_T1 'Polar Angle between q and detected particle - T1' PKR.th_xq*180/3.1415 200 0 100 (DR.evtypebits>>1)&1
TH1F R_diffangle_T1 'Angle between electron and detected particle - T1' PKR.xangle*180/3.1415 100 30 80 (DR.evtypebits>>1)&1
#-------------------------------------------------------------------------------
# RIGHT Arm Reaction Vertex Histograms :
#
TH1F R_reactx 'R-arm Reaction X vertex' rpr.x 200 -.1 .1
TH1F R_reacty 'R-arm Reaction Y vertex' rpr.y 200 -.1 .1
TH1F R_reactz 'R-arm Reaction Z vertex' rpr.z 200 -.15 .15
#-------------------------------------------------------------------
# LEFT ARM S0
#
TH1F Ls0la 'Left arm S0-Bottom(B) ADC' L.s0.la 2000 0 2000 L.s0.la>0.
TH1F Ls0ra 'Left arm S0-Top(A) ADC' L.s0.ra 2000 0 2000 L.s0.ra>0.
TH1F Ls0lt 'Left arm S0-Bottom(B) TDC' L.s0.lt 900 1 8000 L.s0.lt>0.
TH1F Ls0rt 'Left arm S0-Top(A) TDC' L.s0.rt 900 1 8000 L.s0.rt>0.
TH1F Ls0la_p 'Left arm S0-Bottom(B) ADC (PedSub)' L.s0.la_p 850 -50 800 L.s0.la_p>-50.
TH1F Ls0ra_p 'Left arm S0-Top(A) ADC (PedSub)' L.s0.ra_p 850 -50 800 L.s0.ra_p>-50.
#-------------------------------------------------------------------
# LEFT ARM S2
#
TH1F Ls2la 'Left arm S2 L-PMT ADCs' L.s2.la 1000 0 1000 L.s2.la>0.
TH1F Ls2ra 'Left arm S2 R-PMT ADCs' L.s2.ra 1000 0 1000 L.s2.ra>0.
TH1F Ls2lt 'Left arm S2 L-PMT TDCs' L.s2.lt 900 1 8000 L.s2.lt>0.
TH1F Ls2rt 'Left arm S2 R-PMT TDCs' L.s2.rt 900 1 8000 L.s2.rt>0.
TH1F Ls2la_p 'Left arm S2 L-PMT ADCs (PedSub)' L.s2.la_p 350 -50 300 L.s2.la_p>-50.
TH1F Ls2ra_p 'Left arm S2 R-PMT ADCs (PedSub)' L.s2.ra_p 350 -50 300 L.s2.ra_p>-50.
# ------------------------------------------------------------------
# LEFT ARM GAS CHERENKOV ADC and TDC :
#
TH1F Lcera 'Left arm Cerenkov' L.cer.a 4100 -99.5 4000.5 L.cer.a>0
TH1F Lcersum 'Left arm Cerenkov sum (corrected)' L.cer.asum_c 1550 -99.5 3000.5 L.cer.asum_c>-100
TH1F Lcera_p 'Left arm Cerenkov PMT (PedSub)' L.cer.a_p 550 -50.5 499.5 L.cer.a_p>-50.
TH1F Lcert 'Left arm Cerenkov TDCs' L.cer.t 900 1 8000 L.cer.t>0
TH2F Lcer_x 'Left arm Cerenkov sum (corrected) vs. X' L.cer.trx L.cer.asum_c 60 -1.2 1.2 775 -99.5 3000 L.tr.n>0&&L.cer.asum_c>-100
TH2F Lcer_y 'Left arm Cerenkov sum (corrected) vs. Y' L.cer.try L.cer.asum_c 60 -0.12 0.12 775 -99.5 3000 L.tr.n>0&&L.cer.asum_c>-100
# ------------------------------------------------------------------
# LEFT ARM Pion Rejector 1,2 (Preshower/Shower):
#
#TH1F Lpsa 'PionRejector1 ADCs' L.prl1.a 200 10 2000 L.prl1.a>0.
TH1F Lpsa 'PionRejector1 ADCs' L.prl1.a 2000 0.5 2000.5 L.prl1.a>0.
TH1F Lpsa_p 'PionRejector1 ADCs (PedSub)' L.prl1.a_p 2100 -99.5 2000.5 L.prl1.a_p>=-50.
TH1F Lpssum 'PionRejector1 sum' L.prl1.asum_c 200 1 2000
#TH1F Lsha 'PionRejecotr2 ADCs' L.prl2.a 200 10 2000 L.prl2.a>0.
TH1F Lsha 'PionRejecotr2 ADCs' L.prl2.a 2000 0.5 2000.5 L.prl2.a>0.
TH1F Lsha_p 'PionRejector2 ADCs (PedSub)' L.prl2.a_p 2100 -99.5 2000.5 L.prl2.a_p>=-50.
TH1F Lshsum 'PionRejecotr2 sum' L.prl2.asum_c 200 10 2000
TH2F Lpr1_2 'Pion Rejector_1 sum vs. PR_2 sum' L.prl2.asum_c L.prl1.asum_c 200 1 2500 200 1 2500
TH2F Lp1sumx 'Pion Rejector_1 sum vs. x' L.prl1.trx L.prl1.asum_c 200 -1.2 1.2 200 1 2000 L.tr.n>0
TH2F Lp2sumx 'Pion Rejector_2 sum vs. x' L.prl2.trx L.prl2.asum_c 200 -1.2 1.2 200 1 2000 L.tr.n>0
TH2F Lp1sumy 'Pion Rejector_1 sum vs. y' L.prl1.try L.prl1.asum_c 200 -0.2 0.2 200 1 2000 L.tr.n>0
TH2F Lp2sumy 'Pion Rejector_2 sum vs. y' L.prl2.try L.prl2.asum_c 200 -0.2 0.2 200 1 2000 L.tr.n>0
# ------------------------------------------------------------------
# LEFT ARM VDC wires and timing :
#
TH1F Lvu1t 'L-arm VDC u1 time' L.vdc.u1.rawtime 300 0 3000
TH1F Lvu2t 'L-arm VDC u2 time' L.vdc.u2.rawtime 300 0 3000
TH1F Lvv1t 'L-arm VDC v1 time' L.vdc.v1.rawtime 300 0 3000
TH1F Lvv2t 'L-arm VDC v2 time' L.vdc.v2.rawtime 300 0 3000
TH1F Lvu1w 'L-arm VDC u1 wires' L.vdc.u1.wire 400 0 400
TH1F Lvu2w 'L-arm VDC u2 wires' L.vdc.u2.wire 400 0 400
TH1F Lvv1w 'L-arm VDC v1 wires' L.vdc.v1.wire 400 0 400
TH1F Lvv2w 'L-arm VDC v2 wires' L.vdc.v2.wire 400 0 400
#-------------------------------------------------------------------------------
# LEFT ARM STRAWS
#
### Corrected Straw Number of hit
TH1F Lv1_stn_c 'Straw Number of hit on V1' L.fpp.v1.straw_c 200 0 200
TH1F Lv2_stn_c 'Straw Number of hit on V2' L.fpp.v2.straw_c 200 0 200
TH1F Lv3_stn_c 'Straw Number of hit on V3' L.fpp.v3.straw_c 200 0 200
TH1F Lu1_stn_c 'Straw Number of hit on U1' L.fpp.u1.straw_c 200 0 200
TH1F Lu2_stn_c 'Straw Number of hit on U2' L.fpp.u2.straw_c 200 0 200
TH1F Lu3_stn_c 'Straw Number of hit on U3' L.fpp.u3.straw_c 200 0 200
### Wire group hits
TH1F Lv1_wn 'Number of hits Per WG on V1' L.fpp.v1.wire 250 0 25
TH1F Lv2_wn 'Number of hits Per WG on V2' L.fpp.v2.wire 250 0 25
TH1F Lv3_wn 'Number of hits Per WG on V3' L.fpp.v3.wire 250 0 25
TH1F Lu1_wn 'Number of hits Per WG on U1' L.fpp.u1.wire 250 0 25
TH1F Lu2_wn 'Number of hits Per WG on U2' L.fpp.u2.wire 250 0 25
TH1F Lu3_wn 'Number of hits Per WG on U3' L.fpp.u3.wire 250 0 25
### Wire Vs. Hit Histograms (FPP)
TH2F Lv1_nh_wn 'Number of hits vs. Wire Number on V1' L.fpp.v1.nhit L.fpp.v1.wire 250 0 10 250 0 20
TH2F Lv2_nh_wn 'Number of hits vs. Wire Number on V2' L.fpp.v2.nhit L.fpp.v2.wire 250 0 10 250 0 20
TH2F Lv3_nh_wn 'Number of hits vs. Wire Number on V3' L.fpp.v3.nhit L.fpp.v3.wire 250 0 10 250 0 20
TH2F Lu1_nh_wn 'Number of hits vs. Wire Number on U1' L.fpp.u1.nhit L.fpp.u1.wire 250 0 10 250 0 22
TH2F Lu2_nh_wn 'Number of hits vs. Wire Number on U2' L.fpp.u2.nhit L.fpp.u2.wire 250 0 10 250 0 22
TH2F Lu3_nh_wn 'Number of hits vs. Wire Number on U3' L.fpp.u3.nhit L.fpp.u3.wire 250 0 10 250 0 22
### Track X position Vs. Straw Number (FPP)
TH2F Lv1_X_stn 'Track X vs Straw Number on V1' L.fpp.v1.straw_c L.fpp.trx 200 0 200 200 -2 2 L.tr.n>0
TH2F Lv2_X_stn 'Track X vs Straw Number on V2' L.fpp.v2.straw_c L.fpp.trx 200 0 200 200 -2 2 L.tr.n>0
TH2F Lv3_X_stn 'Track X vs Straw Number on V3' L.fpp.v3.straw_c L.fpp.trx 200 0 200 200 -2 2 L.tr.n>0
TH2F Lu1_X_stn 'Track X vs Straw Number on U1' L.fpp.u1.straw_c L.fpp.trx 200 0 200 200 -2 2 L.tr.n>0
TH2F Lu2_X_stn 'Track X vs Straw Number on U2' L.fpp.u2.straw_c L.fpp.trx 200 0 200 200 -2 2 L.tr.n>0
TH2F Lu3_X_stn 'Track X vs Straw Number on U3' L.fpp.u3.straw_c L.fpp.trx 200 0 200 200 -2 2 L.tr.n>0
##TDC Width Histograms
TH1F Lu1_tdc 'TDC Widths for U1' L.fpp.u1.width 100 0 160
TH1F Lu2_tdc 'TDC Widths for U2' L.fpp.u2.width 100 0 160
TH1F Lu3_tdc 'TDC Widths for U3' L.fpp.u3.width 100 0 160
TH1F Lv1_tdc 'TDC Widths for V1' L.fpp.v1.width 100 0 160
TH1F Lv2_tdc 'TDC Widths for V2' L.fpp.v2.width 100 0 160
TH1F Lv3_tdc 'TDC Widths for V3' L.fpp.v3.width 100 0 160
##TDC Width Vs. Wire Group hits
TH2F Lu1_tdc_wg 'TDC Widths Vs. WG for U1' L.fpp.u1.width L.fpp.u1.wire 100 0 200 250 0 25
TH2F Lu2_tdc_wg 'TDC Widths Vs. WG for U2' L.fpp.u2.width L.fpp.u2.wire 100 0 200 250 0 25
TH2F Lu3_tdc_wg 'TDC Widths Vs. WG for U3' L.fpp.u3.width L.fpp.u3.wire 100 0 200 250 0 25
TH2F Lv1_tdc_wg 'TDC Widths Vs. WG for V1' L.fpp.v1.width L.fpp.v1.wire 100 0 200 250 0 25
TH2F Lv2_tdc_wg 'TDC Widths Vs. WG for V2' L.fpp.v2.width L.fpp.v2.wire 100 0 200 250 0 25
TH2F Lv3_tdc_wg 'TDC Widths Vs. WG for V3' L.fpp.v3.width L.fpp.v3.wire 100 0 200 250 0 25
### Leading Edge TDC Histograms
TH1F Lu1_ltdc 'Leading Edge TDC for U1' L.fpp.u1.ltdc 100 1100 1800
TH1F Lu2_ltdc 'Leading Edge TDC for U2' L.fpp.u2.ltdc 100 1100 1800
TH1F Lu3_ltdc 'Leading Edge TDC for U3' L.fpp.u3.ltdc 100 1100 1800
TH1F Lv1_ltdc 'Leading Edge TDC for V1' L.fpp.v1.ltdc 100 1100 1800
TH1F Lv2_ltdc 'Leading Edge TDC for V2' L.fpp.v2.ltdc 100 1100 1800
TH1F Lv3_ltdc 'Leading Edge TDC for V3' L.fpp.v3.ltdc 100 1100 1800
### Leading Edge TDC Histograms (corrected)
TH1F Lu1_ltdc_c 'Leading Edge TDC for U1(Corrected)' L.fpp.u1.ltdc_c 80 -40 240
TH1F Lu2_ltdc_c 'Leading Edge TDC for U2(Corrected)' L.fpp.u2.ltdc_c 80 -40 240
TH1F Lu3_ltdc_c 'Leading Edge TDC for U3(Corrected)' L.fpp.u3.ltdc_c 80 -40 240
TH1F Lv1_ltdc_c 'Leading Edge TDC for V1(Corrected)' L.fpp.v1.ltdc_c 80 -40 240
TH1F Lv2_ltdc_c 'Leading Edge TDC for V2(Corrected)' L.fpp.v2.ltdc_c 80 -40 240
TH1F Lv3_ltdc_c 'Leading Edge TDC for V3(Corrected)' L.fpp.v3.ltdc_c 80 -40 240
### Leading Edge Drift distance Histograms (corrected)
TH1F Lu1_dd_c 'Drift Distance for U1(Corrected)' L.fpp.u1.drfdst 100 -0.05 0.55
TH1F Lu2_dd_c 'Drift Distance for U2(Corrected)' L.fpp.u2.drfdst 100 -0.05 0.55
TH1F Lu3_dd_c 'Drift Distance for U3(Corrected)' L.fpp.u3.drfdst 100 -0.05 0.55
TH1F Lv1_dd_c 'Drift Distance for V1(Corrected)' L.fpp.v1.drfdst 100 -0.05 0.55
TH1F Lv2_dd_c 'Drift Distance for V2(Corrected)' L.fpp.v2.drfdst 100 -0.05 0.55
TH1F Lv3_dd_c 'Drift Distance for V3(Corrected)' L.fpp.v3.drfdst 100 -0.05 0.55
### Number of Hits Spectra
TH1F Lfpp_nhit 'Total number of hits Spectra' L.fpp.u1.nhit+L.fpp.u2.nhit+L.fpp.u3.nhit+L.fpp.v1.nhit+L.fpp.v2.nhit+L.fpp.v3.nhit 40 0 40
TH1F Lfpp_ufront 'U chamber hits' L.fpp.u1.nhit+L.fpp.u2.nhit+L.fpp.u3.nhit 20 0 20
TH1F Lfpp_vfront 'V chamber hits' L.fpp.v1.nhit+L.fpp.v2.nhit+L.fpp.v3.nhit 20 0 20
#-------------------------------------------------------------------------------
# LEFT Arm Tracking & Reconstruction Histograms :
#
TH1F Ltry 'L-arm FP Transport y' L.tr.y 200 -.2 .2
TH1F Ltrx 'L-arm FP Transport x' L.tr.x 200 -1.5 1.5
TH1F Ltrph 'L-arm FP Transport phi' L.tr.ph 200 -.2 .2
TH1F Ltrth 'L-arm FP Transport theta' L.tr.th 200 -.8 .8
TH1F Ltryd 'L-arm FP Detector y' L.tr.d_y 200 -.2 .2
TH1F Ltrxd 'L-arm FP Detector x' L.tr.d_x 200 -1.5 1.5
TH1F Ltrphd 'L-arm FP Detector phi' L.tr.d_ph 200 -.3 .3
TH1F Ltrthd 'L-arm FP Detector theta' L.tr.d_th 200 0. 2.
TH1F Ltryr 'L-arm FP Rotated y' L.tr.r_y 200 -.2 .2
TH1F Ltrxr 'L-arm FP Rotated x' L.tr.r_x 200 -1.5 1.5
TH1F Ltrphr 'L-arm FP Rotated phi' L.tr.r_ph 200 -2. 2.
TH1F Ltrthr 'L-arm FP Rotated theta' L.tr.r_th 200 -.8 .8
TH2F L_tfpa 'L-arm FP Transport x vs. y' L.tr.y L.tr.x 200 -.2 .2 200 -1.5 1.5
TH2F L_tfpb 'L-arm FP Transport theta vs. phi' L.tr.ph L.tr.th 200 -.075 .075 200 -.2 .2
TH2F L_tfpc 'L-arm FP Rotated x vs. y' L.tr.r_y L.tr.r_x 200 -.2 .2 200 -1.5 1.5
TH2F L_tfpd 'L-arm FP Rotated theta vs. phi' L.tr.r_ph L.tr.r_th 200 -.075 .075 200 -.2 .2
TH1F L_dp 'L-arm delta' L.tr.tg_dp 100 -.1 .1
TH1F L_tgth 'L-arm target theta' L.tr.tg_th 200 -.2 .2
TH1F L_tgph 'L-arm target phi' L.tr.tg_ph 200 -.1 .1
TH1F L_tgy 'L-arm target y' L.tr.tg_y 200 -.1 .1
TH1F Ltrn 'L-arm number of tracks' L.tr.n 20 -0.5 10.5
TH1F L_tr_beta 'L-arm Track Beta' L.tr.beta 100 -2 2 L.tr.n>0
TH2F L_tr_betax 'L-arm Track Beta vs. Track X' L.tr.x L.tr.beta 100 -1 1 100 -2 2 L.tr.n>0
TH2F L_tr_betay 'L-arm Track Beta vs. Track Y' L.tr.y L.tr.beta 100 -.1 .1 100 -2 2 L.tr.n>0
TH2F L_tga 'L-arm tgt theta vs. phi' L.tr.tg_ph L.tr.tg_th 200 -0.1 0.1 200 -0.2 0.2
TH2F L_tgb 'L-arm tgt delta vs. phi' L.tr.tg_ph L.tr.tg_dp 200 -0.1 0.1 1000 -0.1 0.1
TH2F L_tgc 'L-arm tgt phi vs. y' L.tr.tg_y L.tr.tg_ph 200 -0.1 0.1 200 -0.1 0.1
#-------------------------------------------------------------------------------
# LEFT Arm Physics Histograms:
TH1F EKLQ2 'L-arm Q2, 4-momentum transfer' EKL.Q2 200 -0 2
TH1F EKLNU 'L-arm nu, energy transfer' EKL.omega 400 0 2
TH1F EKLW2 'L-arm W, Invariant mass' sqrt(EKL.W2) 100 -1 3
TH1F EKLTH_E 'L-arm Electron Angle of scattering (deg)' EKL.angle*180./3.14159 180 0 30
TH1F EKLXBJ 'L-arm x Bjorken (GeV)' EKL.x_bj 100 -0.5 1.5
TH1F EKLTH_Q 'L-arm Virtual photon angle (deg)' EKL.th_q*180./3.14159 60 0 60
#TH2F L_thqQ2 'L-arm Q2 vs theta q' PKL.th_q PKL.Q2 100 0 1 100 0 0.5
#TH2F L_W2Q2 'L-arm Q2 vs W2' PKL.W2 PKL.Q2 100 0 2 100 0 0.5
#TH2F L_thqW2 'L-arm W2 vs theta_q' PKL.th_q PKL.Q2 100 0 2 100 0 0.5
#-------------------------------------------------------------------------------
# LEFT Arm Reaction Vertex Histograms :
#
TH1F L_reactx 'L-arm Reaction X vertex' rpl.x 200 -.1 .1
TH1F L_reacty 'L-arm Reaction Y vertex' rpl.y 200 -.1 .1
TH1F L_reactz 'L-arm Reaction Z vertex' rpl.z 200 -.1 .1
#-------------------------------------------------------------------------------
#Beam Information
#
TH1F bpma_x 'BPMA x [mm]' rbax 4000 -15. 15.
TH1F bpma_y 'BPMA y [mm]' rbay 4000 -15. 15.
TH1F bpmb_x 'BPMB x [mm]' rbbx 4000 -15. 15.
TH1F bpmb_y 'BPMB y [mm]' rbby 4000 -15. 15.
TH1F beam_rasterx 'x at target (from Rasters) [mm]' rbx 4000 -15. 15.
TH1F beam_rastery 'y at target (from Rasters) [mm]' rby 4000 -15. 15.
TH2F bpma_xy 'BPMA y vs x' rbax rbay 2000 -15. 15. 2000 -15. 15.
TH2F bpmb_xy 'BPMB y vs x' rbbx rbby 2000 -15. 15. 2000 -15. 15.
TH2F beam_rasterxy 'Beam at target y vs x (from Rasters)' rbx rby 200 -15. 15. 200 -15. 15.
#Note that rawcur1.y refers to the current for the magnetic field in the y-direction (but electron deflection in x-direction!!!)
#This was changed back to the standard definitions by Barak in July 2015 (avoids off-diagonal terms in Raster current-to-position matrix)
TH1F rastx1 'Fast Raster 1 X current' RrbGmp.Raster.rawcur.x 500 4000 9000
TH1F rasty1 'Fast Raster 1 Y current' RrbGmp.Raster.rawcur.y 500 4000 9000
TH1F rastx2 'Fast Raster 2 X current' RrbGmp.Raster2.rawcur.x 500 4000 9000
TH1F rasty2 'Fast Raster 2 Y current' RrbGmp.Raster2.rawcur.y 500 4000 9000
TH2F rastxy1 'Fast Raster 1 X vs Y (current)' RrbGmp.Raster.rawcur.x RrbGmp.Raster.rawcur.y 300 0 9000 300 0 9000
TH2F rastxy2 'Fast Raster 2 X vs Y (current)' RrbGmp.Raster2.rawcur.x RrbGmp.Raster2.rawcur.y 300 0 9000 300 0 9000
TH2F rastx1x2 'Fast Raster 1 X vs 2 X (current)' RrbGmp.Raster2.rawcur.x RrbGmp.Raster.rawcur.x 300 0 9000 300 0 9000
TH2F rasty1y2 'Fast Raster 1 Y vs 2 Y (current)' RrbGmp.Raster2.rawcur.y RrbGmp.Raster.rawcur.y 300 0 9000 300 0 9000
TH2F rastx1y2 'Fast Raster 1 X vs 2 Y (current)' RrbGmp.Raster2.rawcur.y RrbGmp.Raster.rawcur.x 300 0 9000 300 0 9000
TH2F rastx2y1 'Fast Raster 2 X vs 1 Y (current)' RrbGmp.Raster.rawcur.y RrbGmp.Raster2.rawcur.x 300 0 9000 300 0 9000
TH2F urastraw_bpma_x 'Up Fast Raster Current vs BPMA X' RrbGmp.Raster.rawcur.x rbax 500 4000 9000 200 -5. 5.
TH2F urastraw_bpma_y 'Up Fast Raster Current vs BPMA Y' RrbGmp.Raster.rawcur.y rbay 500 4000 9000 200 -3. 7.
TH2F urastraw_bpmb_x 'Up Fast Raster Current vs BPMB X' RrbGmp.Raster.rawcur.x rbbx 500 4000 9000 200 -5. 5.
TH2F urastraw_bpmb_y 'Up Fast Raster Current vs BPMB Y' RrbGmp.Raster.rawcur.y rbby 500 4000 9000 200 -3. 7.
TH2F urastraw_y_bpma_x 'Up Fast Raster Current Y vs BPMA X' RrbGmp.Raster.rawcur.y rbax 500 4000 9000 200 -5. 5.
TH2F urastraw_x_bpma_y 'Up Fast Raster Current X vs BPMA Y' RrbGmp.Raster.rawcur.x rbay 500 4000 9000 200 -3. 7.
TH2F urastraw_y_bpmb_x 'Up Fast Raster Current Y vs BPMB X' RrbGmp.Raster.rawcur.y rbbx 500 4000 9000 200 -5. 5.
TH2F urastraw_x_bpmb_y 'Up Fast Raster Current X vs BPMB Y' RrbGmp.Raster.rawcur.x rbby 500 4000 9000 200 -3. 7.
TH2F drastraw_bpma_x 'Down Fast Raster Current vs BPMA X' RrbGmp.Raster2.rawcur.x rbax 500 4000 9000 200 -5. 5.
TH2F drastraw_bpma_y 'Down Fast Raster Current vs BPMA Y' RrbGmp.Raster2.rawcur.y rbay 500 4000 9000 200 -3. 7.
TH2F drastraw_bpmb_x 'Down Fast Raster Current vs BPMB X' RrbGmp.Raster2.rawcur.x rbbx 500 4000 9000 200 -5. 5.
TH2F drastraw_bpmb_y 'Down Fast Raster Current vs BPMB Y' RrbGmp.Raster2.rawcur.y rbby 500 4000 9000 200 -3. 7.
TH2F drastraw_y_bpma_x 'Down Fast Raster Current Y vs BPMA X' RrbGmp.Raster2.rawcur.y rbax 500 4000 9000 200 -5. 5.
TH2F drastraw_x_bpma_y 'Down Fast Raster Current X vs BPMA Y' RrbGmp.Raster2.rawcur.x rbay 500 4000 9000 200 -3. 7.
TH2F drastraw_y_bpmb_x 'Down Fast Raster Current Y vs BPMB X' RrbGmp.Raster2.rawcur.y rbbx 500 4000 9000 200 -5. 5.
TH2F drastraw_x_bpmb_y 'Down Fast Raster Current X vs BPMB Y' RrbGmp.Raster2.rawcur.x rbby 500 4000 9000 200 -3. 7.
begin scalers Right
# 1024 Hz clock
clkcount 1 7 counts
# 103700 Hz clock
fastclkcount 1 9 counts
# counts in triggers, BCM, etc.
clkcountr 1 7
fastclkcountr 1 9
t1c 1 0 counts
t2c 1 1 counts
t3c 1 2 counts
t4c 1 3 counts
t5c 1 4 counts
t6c 1 5 counts
t7c 1 6 counts
t8c 1 7 counts
l1ac 1 12 counts
t1r 1 0
t2r 1 1
t3r 1 2
t4r 1 3
t5r 1 4
t6r 1 5
t7r 1 6
t8r 1 7
l1ar 1 12
bcm_unewc 4 9 counts
bcm_dnewc 4 10 counts
unser_c 4 11 counts
bcm_u1c 4 12 counts
bcm_d1c 4 13 counts
bcm_d3c 4 14 counts
bcm_d10c 4 15 counts
bcm_unewr 4 9
bcm_dnewr 4 10
unser_r 4 11
bcm_u1r 4 12
bcm_d1r 4 13
bcm_d3r 4 14
bcm_d10r 4 15
end scalers
# Crate 10 scalers
begin scalers evright
# 1024 Hz clock
clkcount 1 7 counts
# 103700 Hz clock
fastclkcount 1 9 counts
# counts in triggers, BCM, etc.
clkcountr 1 7
fastclkcountr 1 9
t1c 1 0 counts
t2c 1 1 counts
t3c 1 2 counts
t4c 1 3 counts
t5c 1 4 counts
t6c 1 5 counts
t7c 1 6 counts
t8c 1 7 counts
l1ac 1 12 counts
t1r 1 0
t2r 1 1
t3r 1 2
t4r 1 3
t5r 1 4
t6r 1 5
t7r 1 6
t8r 1 7
l1ar 1 12
bcm_unewc 4 9 counts
bcm_dnewc 4 10 counts
unser_c 4 11 counts
bcm_u1c 4 12 counts
bcm_d1c 4 13 counts
bcm_d3c 4 14 counts
bcm_d10c 4 15 counts
bcm_unewr 4 9
bcm_dnewr 4 10
unser_r 4 11
bcm_u1r 4 12
bcm_d1r 4 13
bcm_d3r 4 14
bcm_d10r 4 15
end scalers
#---------------------------------------------
begin scalers Left
# 103.7 kHz clock
clkcount 3 7 counts
# counts in triggers, BCM, etc.
clkcountr 3 7
t1c 3 0 counts
t2c 3 1 counts
t3c 3 2 counts
t4c 3 3 counts
t5c 3 4 counts
t6c 3 5 counts
t7c 3 6 counts
t8c 3 7 counts
l1ac 3 14 counts
t1r 3 0
t2r 3 1
t3r 3 2
t4r 3 3
t5r 3 4
t6r 3 5
t7r 3 6
t8r 3 7
l1ar 3 14
unser_c 3 8 counts
bcm_u1c 3 9 counts
bcm_d1c 3 10 counts
bcm_d3c 3 11 counts
bcm_d10c 3 12 counts
unser_r 3 8
bcm_u1r 3 9
bcm_d1r 3 10
bcm_d3r 3 11
bcm_d10r 3 12
bcm_unewr 7 6
bcm_dnewr 7 7
bcm_unewc 7 6 counts
bcm_dnewc 7 7 counts
cher_1 5 16
cher_5 5 20
cher_6 5 21
cher_sum 5 26
cher_1c 5 16 counts
cher_5c 5 20 counts
cher_6c 5 21 counts
cher_sumc 5 26 counts
s2m_l1 4 0
s2m_l2 4 1
s2m_l3 4 2
s2m_l4 4 3
s2m_l5 4 4
s2m_l12 4 11
s2m_r1 4 16
s2m_r2 4 17
s2m_r3 4 18
s2m_r4 4 19
s2m_r5 4 20
s2m_r12 4 27
s2m_l1c 4 0 counts
s2m_l2c 4 1 counts
s2m_l3c 4 2 counts
s2m_l4c 4 3 counts
s2m_l5c 4 4 counts
s2m_l12c 4 11 counts
s2m_r1c 4 16 counts
s2m_r2c 4 17 counts
s2m_r3c 4 18 counts
s2m_r4c 4 19 counts
s2m_r5c 4 20 counts
s2m_r12c 4 27 counts
s0_A 5 27
s0_B 5 28
s0_coin 5 29
s0_Ac 5 27 counts
s0_Bc 5 28 counts
s0_coinc 5 29 counts
sh_sum 5 30
sh_sumc 5 30 counts
end scalers
# ------------------------------------------------------------------
# Crate 11 scalers
begin scalers evleft
# 103.7 kHz clock
clkcount 3 7 counts
# counts in triggers, BCM, etc.
clkcountr 3 7
t1c 3 0 counts
t2c 3 1 counts
t3c 3 2 counts
t4c 3 3 counts
t5c 3 4 counts
t6c 3 5 counts
t7c 3 6 counts
t8c 3 7 counts
l1ac 3 14 counts
t1r 3 0
t2r 3 1
t3r 3 2
t4r 3 3
t5r 3 4
t6r 3 5
t7r 3 6
t8r 3 7
l1ar 3 14
unser_c 3 8 counts
bcm_u1c 3 9 counts
bcm_d1c 3 10 counts
bcm_d3c 3 11 counts
bcm_d10c 3 12 counts
unser_r 3 8
bcm_u1r 3 9
bcm_d1r 3 10
bcm_d3r 3 11
bcm_d10r 3 12
bcm_unewr 7 6
bcm_dnewr 7 7
bcm_unewc 7 6 counts
bcm_dnewc 7 7 counts
cher_1 5 16
cher_5 5 20
cher_6 5 21
cher_sum 5 26
cher_1c 5 16 counts
cher_5c 5 20 counts
cher_6c 5 21 counts
cher_sumc 5 26 counts
s2m_l1 4 0
s2m_l2 4 1
s2m_l3 4 2
s2m_l4 4 3
s2m_l5 4 4
s2m_l12 4 11
s2m_r1 4 16
s2m_r2 4 17
s2m_r3 4 18
s2m_r4 4 19
s2m_r5 4 20
s2m_r12 4 27
s2m_l1c 4 0 counts
s2m_l2c 4 1 counts
s2m_l3c 4 2 counts
s2m_l4c 4 3 counts
s2m_l5c 4 4 counts
s2m_l12c 4 11 counts
s2m_r1c 4 16 counts
s2m_r2c 4 17 counts
s2m_r3c 4 18 counts
s2m_r4c 4 19 counts
s2m_r5c 4 20 counts
s2m_r12c 4 27 counts
s0_A 5 27
s0_B 5 28
s0_coin 5 29
s0_Ac 5 27 counts
s0_Bc 5 28 counts
s0_coinc 5 29 counts
sh_sum 5 30
sh_sumc 5 30 counts
end scalers
# ------------------------------------------------------------------
begin epics
hac_bcm_average
hac_bcm_dvm1_read
hac_bcm_dvm2_read
hac_unser_read
hac_unser_current
hac_bcm_dvm1_current
hac_bcm_dvm2_current
IBC0L02Current
IBC3H00CRCUR4
HA:K224:Current
IPM1H05XPM1HZ
IPM1H05YPM1HZ
IPM1C12.XPOS
IPM1C12.YPOS
IPM1H04A.XPOS
IPM1H04A.YPOS
IPM1H04E.XPOS
IPM1H04E.YPOS
IPM1H04.XPOS
IPM1H04.YPOS
FCupsCORRECTED.VAL
end epics