Skip to content
Snippets Groups Projects
Commit abab0391 authored by Eric Pooser's avatar Eric Pooser
Browse files

Incorporate trigger and hodoscope readout into hdc test stand replay script. ...

Incorporate trigger and hodoscope readout into hdc test stand replay script.  Tidying up before making individual replay scripts.
parent aa1b1477
No related branches found
No related tags found
No related merge requests found
# See $ANALYZER/examples/output_example.def for examples # See $ANALYZER/examples/output_example.def for examples
# #
block H.dc.* block H.dc.*
#block H.scin.* block T.hms.*
block H.hod.*
TH1F hdc_ref1 'HDC Reference Time 1' T.hms.hDCREF1_tdc 10000 -50000 50000
TH1F hdc_ref2 'HDC Reference Time 2' T.hms.hDCREF2_tdc 10000 -50000 50000
TH1F hdc_ref3 'HDC Reference Time 3' T.hms.hDCREF3_tdc 10000 -50000 50000
TH1F hdc_ref4 'HDC Reference Time 4' T.hms.hDCREF4_tdc 10000 -50000 50000
TH1F hdc_refdiff_1m2 'HDC Reference time 1 minus 2' T.hms.hDCREF1_tdc-T.hms.hDCREF2_tdc 10000 -50000 50000
TH1F hdc_refdiff_1m3 'HDC Reference time 1 minus 3' T.hms.hDCREF1_tdc-T.hms.hDCREF3_tdc 10000 -50000 50000
TH1F hdc_refdiff_1m4 'HDC Reference time 1 minus 4' T.hms.hDCREF1_tdc-T.hms.hDCREF4_tdc 10000 -50000 50000
TH1F hdc_refdiff_2m3 'HDC Reference time 2 minus 3' T.hms.hDCREF2_tdc-T.hms.hDCREF3_tdc 10000 -50000 5000
TH1F hdc_refdiff_2m4 'HDC Reference time 2 minus 4' T.hms.hDCREF2_tdc-T.hms.hDCREF4_tdc 10000 -50000 50000
TH1F hdc_refdiff_3m4 'HDC Reference time 3 minus 4' T.hms.hDCREF3_tdc-T.hms.hDCREF4_tdc 10000 -50000 50000
TH1F hdc1x1_wm 'HDC 1X1 Wiremap' H.dc.1x1.wirenum 113 0.5 113.5 TH1F hdc1x1_wm 'HDC 1X1 Wiremap' H.dc.1x1.wirenum 113 0.5 113.5
TH1F hdc1y1_wm 'HDC 1Y1 Wiremap' H.dc.1y1.wirenum 52 0.5 52.5 TH1F hdc1y1_wm 'HDC 1Y1 Wiremap' H.dc.1y1.wirenum 52 0.5 52.5
...@@ -17,19 +32,19 @@ TH1F hdc2v1_wm 'HDC 2V1 Wiremap' H.dc.2v1.wirenum 107 0.5 107.5 ...@@ -17,19 +32,19 @@ TH1F hdc2v1_wm 'HDC 2V1 Wiremap' H.dc.2v1.wirenum 107 0.5 107.5
TH1F hdc2y2_wm 'HDC 2Y2 Wiremap' H.dc.2y2.wirenum 52 0.5 52.5 TH1F hdc2y2_wm 'HDC 2Y2 Wiremap' H.dc.2y2.wirenum 52 0.5 52.5
TH1F hdc2x2_wm 'HDC 2X2 Wiremap' H.dc.2x2.wirenum 113 0.5 113.5 TH1F hdc2x2_wm 'HDC 2X2 Wiremap' H.dc.2x2.wirenum 113 0.5 113.5
TH2F hdc1x1_wire_num_vs_raw_tdc 'HDC 1X1 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.1x1.wirenum H.dc.1x1.rawtdc 113 0.5 113.5 5000 0 50000 TH2F hdc1x1_wire_num_vs_raw_tdc 'HDC 1X1 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.1x1.wirenum H.dc.1x1.rawtdc 113 0.5 113.5 10000 -50000 50000
TH2F hdc1y1_wire_num_vs_raw_tdc 'HDC 1Y1 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.1y1.wirenum H.dc.1y1.rawtdc 52 0.5 52.5 5000 0 50000 TH2F hdc1y1_wire_num_vs_raw_tdc 'HDC 1Y1 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.1y1.wirenum H.dc.1y1.rawtdc 52 0.5 52.5 10000 -50000 50000
TH2F hdc1u1_wire_num_vs_raw_tdc 'HDC 1U1 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.1u1.wirenum H.dc.1u1.rawtdc 107 0.5 107.5 5000 0 50000 TH2F hdc1u1_wire_num_vs_raw_tdc 'HDC 1U1 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.1u1.wirenum H.dc.1u1.rawtdc 107 0.5 107.5 10000 -50000 50000
TH2F hdc1v1_wire_num_vs_raw_tdc 'HDC 1V1 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.1v1.wirenum H.dc.1v1.rawtdc 107 0.5 107.5 5000 0 50000 TH2F hdc1v1_wire_num_vs_raw_tdc 'HDC 1V1 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.1v1.wirenum H.dc.1v1.rawtdc 107 0.5 107.5 10000 -50000 50000
TH2F hdc1y2_wire_num_vs_raw_tdc 'HDC 1Y2 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.1y2.wirenum H.dc.1y2.rawtdc 52 0.5 52.5 5000 0 50000 TH2F hdc1y2_wire_num_vs_raw_tdc 'HDC 1Y2 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.1y2.wirenum H.dc.1y2.rawtdc 52 0.5 52.5 10000 -50000 50000
TH2F hdc1x2_wire_num_vs_raw_tdc 'HDC 1X2 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.1x2.wirenum H.dc.1x2.rawtdc 113 0.5 113.5 5000 0 50000 TH2F hdc1x2_wire_num_vs_raw_tdc 'HDC 1X2 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.1x2.wirenum H.dc.1x2.rawtdc 113 0.5 113.5 10000 -50000 50000
TH2F hdc2x1_wire_num_vs_raw_tdc 'HDC 2X1 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.2x1.wirenum H.dc.2x1.rawtdc 113 0.5 113.5 5000 0 50000 TH2F hdc2x1_wire_num_vs_raw_tdc 'HDC 2X1 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.2x1.wirenum H.dc.2x1.rawtdc 113 0.5 113.5 10000 -50000 50000
TH2F hdc2y1_wire_num_vs_raw_tdc 'HDC 2Y1 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.2y1.wirenum H.dc.2y1.rawtdc 52 0.5 52.5 5000 0 50000 TH2F hdc2y1_wire_num_vs_raw_tdc 'HDC 2Y1 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.2y1.wirenum H.dc.2y1.rawtdc 52 0.5 52.5 10000 -50000 50000
TH2F hdc2u1_wire_num_vs_raw_tdc 'HDC 2U1 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.2u1.wirenum H.dc.2u1.rawtdc 107 0.5 107.5 5000 0 50000 TH2F hdc2u1_wire_num_vs_raw_tdc 'HDC 2U1 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.2u1.wirenum H.dc.2u1.rawtdc 107 0.5 107.5 10000 -50000 50000
TH2F hdc2v1_wire_num_vs_raw_tdc 'HDC 2V1 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.2v1.wirenum H.dc.2v1.rawtdc 107 0.5 107.5 5000 0 50000 TH2F hdc2v1_wire_num_vs_raw_tdc 'HDC 2V1 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.2v1.wirenum H.dc.2v1.rawtdc 107 0.5 107.5 10000 -50000 50000
TH2F hdc2y2_wire_num_vs_raw_tdc 'HDC 2Y2 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.2y2.wirenum H.dc.2y2.rawtdc 52 0.5 52.5 5000 0 50000 TH2F hdc2y2_wire_num_vs_raw_tdc 'HDC 2Y2 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.2y2.wirenum H.dc.2y2.rawtdc 52 0.5 52.5 10000 -50000 50000
TH2F hdc2x2_wire_num_vs_raw_tdc 'HDC 2X2 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.2x2.wirenum H.dc.2x2.rawtdc 113 0.5 113.5 5000 0 50000 TH2F hdc2x2_wire_num_vs_raw_tdc 'HDC 2X2 Wiremap; Wire Number; Raw TDC Value (clicks)' H.dc.2x2.wirenum H.dc.2x2.rawtdc 113 0.5 113.5 10000 -50000 50000
TH2F hdc1x1_wire_num_vs_tdc_time 'HDC 1X1 Wiremap; Wire Number; TDC Time (ns)' H.dc.1x1.wirenum H.dc.1x1.time 113 0.5 113.5 6000 -1000 5000 TH2F hdc1x1_wire_num_vs_tdc_time 'HDC 1X1 Wiremap; Wire Number; TDC Time (ns)' H.dc.1x1.wirenum H.dc.1x1.time 113 0.5 113.5 6000 -1000 5000
TH2F hdc1y1_wire_num_vs_tdc_time 'HDC 1Y1 Wiremap; Wire Number; TDC Time (ns)' H.dc.1y1.wirenum H.dc.1y1.time 52 0.5 52.5 6000 -1000 5000 TH2F hdc1y1_wire_num_vs_tdc_time 'HDC 1Y1 Wiremap; Wire Number; TDC Time (ns)' H.dc.1y1.wirenum H.dc.1y1.time 52 0.5 52.5 6000 -1000 5000
......
...@@ -6,6 +6,8 @@ detector=11 ! HMS chambers ...@@ -6,6 +6,8 @@ detector=11 ! HMS chambers
! Caen 1190 VME Modules >> DC1 ! Caen 1190 VME Modules >> DC1
SLOT=5 SLOT=5
REFINDEX=0
111,1000,0,0
! channel,plane,wire ! channel,plane,wire
96,3,1 ! Plane U, wire 1 96,3,1 ! Plane U, wire 1
97,3,2 ! Plane U, wire 2 97,3,2 ! Plane U, wire 2
...@@ -116,6 +118,7 @@ SLOT=5 ...@@ -116,6 +118,7 @@ SLOT=5
14,3,106 ! Plane U, wire 106 14,3,106 ! Plane U, wire 106
15,3,107 ! Plane U, wire 107 15,3,107 ! Plane U, wire 107
SLOT=7 SLOT=7
REFINDEX=0
! channel,plane,wire ! channel,plane,wire
96,4,1 ! Plane V, wire 1 96,4,1 ! Plane V, wire 1
97,4,2 ! Plane V, wire 2 97,4,2 ! Plane V, wire 2
...@@ -148,6 +151,8 @@ SLOT=7 ...@@ -148,6 +151,8 @@ SLOT=7
125,4,28 ! Plane V, wire 28 125,4,28 ! Plane V, wire 28
126,4,29 ! Plane V, wire 29 126,4,29 ! Plane V, wire 29
SLOT=8 SLOT=8
REFINDEX=0
127,1000,0,1
! channel,plane,wire ! channel,plane,wire
0,4,30 ! Plane V, wire 30 0,4,30 ! Plane V, wire 30
1,4,31 ! Plane V, wire 31 1,4,31 ! Plane V, wire 31
...@@ -212,6 +217,7 @@ SLOT=8 ...@@ -212,6 +217,7 @@ SLOT=8
61,4,90 ! Plane V, wire 90 61,4,90 ! Plane V, wire 90
62,4,91 ! Plane V, wire 91 62,4,91 ! Plane V, wire 91
SLOT=4 SLOT=4
REFINDEX=0
! channel,plane,wire ! channel,plane,wire
96,4,92 ! Plane V, wire 92 96,4,92 ! Plane V, wire 92
97,4,93 ! Plane V, wire 93 97,4,93 ! Plane V, wire 93
...@@ -326,6 +332,7 @@ SLOT=4 ...@@ -326,6 +332,7 @@ SLOT=4
14,1,95 ! Plane X, wire 95 14,1,95 ! Plane X, wire 95
15,1,96 ! Plane X, wire 96 15,1,96 ! Plane X, wire 96
SLOT=7 SLOT=7
REFINDEX=0
! channel,plane,wire ! channel,plane,wire
80,1,97 ! Plane X, wire 97 80,1,97 ! Plane X, wire 97
81,1,98 ! Plane X, wire 98 81,1,98 ! Plane X, wire 98
...@@ -344,6 +351,7 @@ SLOT=7 ...@@ -344,6 +351,7 @@ SLOT=7
94,1,111 ! Plane X, wire 111 94,1,111 ! Plane X, wire 111
95,1,112 ! Plane X, wire 112 95,1,112 ! Plane X, wire 112
SLOT=4 SLOT=4
REFINDEX=0
! channel,plane,wire ! channel,plane,wire
112,6,1 ! Plane X', wire 1 112,6,1 ! Plane X', wire 1
113,6,2 ! Plane X', wire 2 113,6,2 ! Plane X', wire 2
...@@ -362,6 +370,7 @@ SLOT=4 ...@@ -362,6 +370,7 @@ SLOT=4
126,6,15 ! Plane X', wire 15 126,6,15 ! Plane X', wire 15
127,6,16 ! Plane X', wire 16 127,6,16 ! Plane X', wire 16
SLOT=5 SLOT=5
REFINDEX=0
! channel,plane,wire ! channel,plane,wire
112,6,17 ! Plane X', wire 17 112,6,17 ! Plane X', wire 17
113,6,18 ! Plane X', wire 18 113,6,18 ! Plane X', wire 18
...@@ -380,6 +389,7 @@ SLOT=5 ...@@ -380,6 +389,7 @@ SLOT=5
126,6,31 ! Plane X', wire 31 126,6,31 ! Plane X', wire 31
127,6,32 ! Plane X', wire 32 127,6,32 ! Plane X', wire 32
SLOT=7 SLOT=7
REFINDEX=0
! channel,plane,wire ! channel,plane,wire
0,6,33 ! Plane X', wire 33 0,6,33 ! Plane X', wire 33
1,6,34 ! Plane X', wire 34 1,6,34 ! Plane X', wire 34
...@@ -462,6 +472,7 @@ SLOT=7 ...@@ -462,6 +472,7 @@ SLOT=7
78,6,111 ! Plane X', wire 111 78,6,111 ! Plane X', wire 111
79,6,112 ! Plane X', wire 112 79,6,112 ! Plane X', wire 112
SLOT=8 SLOT=8
REFINDEX=0
! channel,plane,wire ! channel,plane,wire
64,2,1 ! Plane Y, wire 1 64,2,1 ! Plane Y, wire 1
65,2,2 ! Plane Y, wire 2 65,2,2 ! Plane Y, wire 2
...@@ -516,6 +527,8 @@ SLOT=8 ...@@ -516,6 +527,8 @@ SLOT=8
123,2,51 ! Plane Y, wire 51 123,2,51 ! Plane Y, wire 51
124,2,52 ! Plane Y, wire 52 124,2,52 ! Plane Y, wire 52
SLOT=10 SLOT=10
REFINDEX=0
127,1000,0,2
! channel,plane,wire ! channel,plane,wire
0,5,1 ! Plane Y', wire 1 0,5,1 ! Plane Y', wire 1
1,5,2 ! Plane Y', wire 2 1,5,2 ! Plane Y', wire 2
...@@ -572,6 +585,7 @@ SLOT=10 ...@@ -572,6 +585,7 @@ SLOT=10
! Caen 1190 VME Modules >> DC2 ! Caen 1190 VME Modules >> DC2
SLOT=16 SLOT=16
REFINDEX=0
! channel,plane,wire ! channel,plane,wire
96,9,1 ! Plane U, wire 1 96,9,1 ! Plane U, wire 1
97,9,2 ! Plane U, wire 2 97,9,2 ! Plane U, wire 2
...@@ -604,6 +618,7 @@ SLOT=16 ...@@ -604,6 +618,7 @@ SLOT=16
125,9,28 ! Plane U, wire 28 125,9,28 ! Plane U, wire 28
126,9,29 ! Plane U, wire 29 126,9,29 ! Plane U, wire 29
SLOT=14 SLOT=14
REFINDEX=0
! channel,plane,wire ! channel,plane,wire
0,9,30 ! Plane U, wire 30 0,9,30 ! Plane U, wire 30
1,9,31 ! Plane U, wire 31 1,9,31 ! Plane U, wire 31
...@@ -684,6 +699,7 @@ SLOT=14 ...@@ -684,6 +699,7 @@ SLOT=14
94,9,106 ! Plane U, wire 106 94,9,106 ! Plane U, wire 106
95,9,107 ! Plane U, wire 107 95,9,107 ! Plane U, wire 107
SLOT=16 SLOT=16
REFINDEX=0
! channel,plane,wire ! channel,plane,wire
80,10,1 ! Plane V, wire 1 80,10,1 ! Plane V, wire 1
81,10,2 ! Plane V, wire 2 81,10,2 ! Plane V, wire 2
...@@ -701,6 +717,7 @@ SLOT=16 ...@@ -701,6 +717,7 @@ SLOT=16
93,10,14 ! Plane V, wire 14 93,10,14 ! Plane V, wire 14
94,12,113 ! Plane X', wire 113 94,12,113 ! Plane X', wire 113
SLOT=14 SLOT=14
REFINDEX=0
! channel,plane,wire ! channel,plane,wire
96,10,15 ! Plane V, wire 15 96,10,15 ! Plane V, wire 15
97,10,16 ! Plane V, wire 16 97,10,16 ! Plane V, wire 16
...@@ -734,6 +751,8 @@ SLOT=14 ...@@ -734,6 +751,8 @@ SLOT=14
126,10,44 ! Plane V, wire 44 126,10,44 ! Plane V, wire 44
127,10,45 ! Plane V, wire 45 127,10,45 ! Plane V, wire 45
SLOT=17 SLOT=17
REFINDEX=0
127,1000,0,3
! channel,plane,wire ! channel,plane,wire
0,10,46 ! Plane V, wire 46 0,10,46 ! Plane V, wire 46
1,10,47 ! Plane V, wire 47 1,10,47 ! Plane V, wire 47
...@@ -798,6 +817,7 @@ SLOT=17 ...@@ -798,6 +817,7 @@ SLOT=17
62,10,106 ! Plane V, wire 106 62,10,106 ! Plane V, wire 106
63,10,107 ! Plane V, wire 107 63,10,107 ! Plane V, wire 107
SLOT=13 SLOT=13
REFINDEX=0
! channel,plane,wire ! channel,plane,wire
0,7,1 ! Plane X, wire 1 0,7,1 ! Plane X, wire 1
1,7,2 ! Plane X, wire 2 1,7,2 ! Plane X, wire 2
...@@ -928,6 +948,7 @@ SLOT=13 ...@@ -928,6 +948,7 @@ SLOT=13
126,12,15 ! Plane X', wire 15 126,12,15 ! Plane X', wire 15
127,12,16 ! Plane X', wire 16 127,12,16 ! Plane X', wire 16
SLOT=14 SLOT=14
REFINDEX=0
! channel,plane,wire ! channel,plane,wire
16,12,17 ! Plane X', wire 17 16,12,17 ! Plane X', wire 17
17,12,18 ! Plane X', wire 18 17,12,18 ! Plane X', wire 18
...@@ -946,6 +967,7 @@ SLOT=14 ...@@ -946,6 +967,7 @@ SLOT=14
30,12,31 ! Plane X', wire 31 30,12,31 ! Plane X', wire 31
31,12,32 ! Plane X', wire 32 31,12,32 ! Plane X', wire 32
SLOT=16 SLOT=16
REFINDEX=0
! channel,plane,wire ! channel,plane,wire
0,12,33 ! Plane X', wire 33 0,12,33 ! Plane X', wire 33
1,12,34 ! Plane X', wire 34 1,12,34 ! Plane X', wire 34
...@@ -1028,6 +1050,7 @@ SLOT=16 ...@@ -1028,6 +1050,7 @@ SLOT=16
78,12,111 ! Plane X', wire 111 78,12,111 ! Plane X', wire 111
79,12,112 ! Plane X', wire 112 79,12,112 ! Plane X', wire 112
SLOT=17 SLOT=17
REFINDEX=0
! channel,plane,wire ! channel,plane,wire
64,8,1 ! Plane Y, wire 1 64,8,1 ! Plane Y, wire 1
65,8,2 ! Plane Y, wire 2 65,8,2 ! Plane Y, wire 2
...@@ -1082,6 +1105,8 @@ SLOT=17 ...@@ -1082,6 +1105,8 @@ SLOT=17
123,8,51 ! Plane Y, wire 51 123,8,51 ! Plane Y, wire 51
124,8,52 ! Plane Y, wire 52 124,8,52 ! Plane Y, wire 52
SLOT=10 SLOT=10
REFINDEX=0
127,1000,0,1
! channel,plane,wire ! channel,plane,wire
64,11,1 ! Plane Y', wire 1 64,11,1 ! Plane Y', wire 1
65,11,2 ! Plane Y', wire 2 65,11,2 ! Plane Y', wire 2
......
This diff is collapsed.
This diff is collapsed.
...@@ -4,8 +4,7 @@ ...@@ -4,8 +4,7 @@
! Plane = 1 >> ADC Only ! Plane = 1 >> ADC Only
! Plane = 2 >> TDC Only ! Plane = 2 >> TDC Only
detector=10
detector=5
ROC=1 ROC=1
...@@ -45,4 +44,20 @@ SLOT=2 ...@@ -45,4 +44,20 @@ SLOT=2
SLOT=20 SLOT=20
! D1 ! D1
! chan plane bar sig ! chan plane bar sig
127, 2, 17 1! hT2 127, 2, 17, 1! hT2
ROC=3
!CAEN1190 module
SLOT=5
! chan plane bar sig
111, 2, 18, 1! hDCREF1
SLOT=8
! chan plane bar sig
127, 2, 19, 1! hDCREF2
SLOT=10
! chan plane bar sig
127, 2, 20, 1! hDCREF3
SLOT=17
! chan plane bar sig
127, 2, 21, 1! hDCREF4
\ No newline at end of file
t_hms_numAdc = 8 t_hms_numAdc = 8
t_hms_numTdc = 17 t_hms_numTdc = 21
; bar num: 1 2 3 4 5 6 7 8 ; bar num: 1 2 3 4 5 6 7 8
t_hms_adcNames = "hASUM hBSUM hCSUM hDSUM hPSHWR hSHWR hAERSUM hCERSUM" t_hms_adcNames = "hASUM hBSUM hCSUM hDSUM hPSHWR hSHWR hAERSUM hCERSUM"
; bar num: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 ; bar num: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
t_hms_tdcNames = "h1X h1Y h2X h2Y h1T h2T hT1 hASUM hBSUM hCSUM hDSUM hPSHWRLO hPSHWRHI hSHWR hAERSUM hCERSUM hT2" t_hms_tdcNames = "h1X h1Y h2X h2Y h1T h2T hT1 hASUM hBSUM hCSUM hDSUM hPSHWRLO hPSHWRHI hSHWR hAERSUM hCERSUM hT2 hDCREF1 hDCREF2 hDCREF3 hDCREF4"
...@@ -16,7 +16,9 @@ void replay_hdc_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) { ...@@ -16,7 +16,9 @@ void replay_hdc_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
} }
// Create file name patterns. // Create file name patterns.
const char* RunFileNamePattern = "raw/test_%d.dat"; //const char* RunFileNamePattern = "raw/test_%d.dat"
//const char* RunFileNamePattern = "raw/hms_dc_000%d.dat";
const char* RunFileNamePattern = "raw/hms_all_000%d.dat";
const char* ROOTFileNamePattern = "ROOTfiles/test_%d.root"; const char* ROOTFileNamePattern = "ROOTfiles/test_%d.root";
// Add variables to global list. // Add variables to global list.
gHcParms->Define("gen_run_number", "Run Number", RunNumber); gHcParms->Define("gen_run_number", "Run Number", RunNumber);
...@@ -31,27 +33,45 @@ void replay_hdc_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) { ...@@ -31,27 +33,45 @@ void replay_hdc_test_stand(Int_t RunNumber=0, Int_t MaxEvent=0) {
// Load params for HMS DC test stand configuration // Load params for HMS DC test stand configuration
gHcParms->Load("PARAM/HMS/DC/hdc_test_stand.param"); gHcParms->Load("PARAM/HMS/DC/hdc_test_stand.param");
gHcParms->Load("PARAM/TRIG/thms.param");
// Load the Hall C style detector map // Load the Hall C style detector map
gHcDetectorMap = new THcDetectorMap(); gHcDetectorMap = new THcDetectorMap();
//gHcDetectorMap->Load(gHcParms->GetString("g_decode_map_filename")); //gHcDetectorMap->Load(gHcParms->GetString("g_decode_map_filename"));
gHcDetectorMap->Load("MAPS/HMS/DETEC/hdc.map"); // Load the HMS dc map
// gHcDetectorMap->Load("MAPS/HMS/DETEC/hdc.map");
// Load the trigger map
// gHcDetectorMap->Load("MAPS/HMS/DETEC/htrig.map");
// Load combined map
// gHcDetectorMap->Load("MAPS/hdc_htrig.map");
gHcDetectorMap->Load("MAPS/HMS/DETEC/hdc_hhodo_htrig.map");
// Set up the equipment to be analyzed. // Set up the equipment to be analyzed.
THaApparatus* HMS = new THcHallCSpectrometer("H", "HMS"); THaApparatus* HMS = new THcHallCSpectrometer("H", "HMS");
gHaApps->Add(HMS); gHaApps->Add(HMS);
// Add HMS drift chambers // Add drift chambers to HMS apparatus
HMS->AddDetector(new THcDC("dc", "Drift Chambers")); THcDC* dc = new THcDC("dc", "Drift Chambers");
HMS->AddDetector(dc);
// Add hodoscope to HMS apparatus
THcHodoscope* hod = new THcHodoscope("hod", "Hodoscope");
HMS->AddDetector(hod);
// // Add calorimeter to HMS apparatus
// THcShower* cal = new THcShower("cal", "Calorimeter");
// HMS->AddDetector(cal);
// // Add cherenkov to HMS appratus
// THcCherenkov* cherenkov = new THcCherenkov("cher", "Gas Cerenkov");
// HMS->AddDetector(cherenkov);
// // Add aerogel to HMS apparatus
// THcAerogel* aerogel = new THcAerogel("aero", "Aerogel Cerenkov");
// HMS->AddDetector(aerogel);
// Additional detectors: // Add trigger apparatus
//HMS->AddDetector(new THcHodoscope("hod", "Hodoscope")); THaApparatus* TRG = new THcTrigApp("T", "TRG");
//HMS->AddDetector(new THcShower("cal", "Shower")); gHaApps->Add(TRG);
// // Add trigger detector to trigger apparatus
//THcCherenkov* cherenkov = new THcCherenkov("cher", "Gas Cerenkov"); THcTrigDet* hms = new THcTrigDet("hms", "HMS Trigger Information");
//HMS->AddDetector(cherenkov); TRG->AddDetector(hms);
//THcAerogel* aerogel = new THcAerogel("aero", "Aerogel Cerenkov");
//HMS->AddDetector(aerogel);
//
//THcScalerEvtHandler *hscaler = new THcScalerEvtHandler("HS", "HC scaler event type 0"); //THcScalerEvtHandler *hscaler = new THcScalerEvtHandler("HS", "HC scaler event type 0");
//hscaler->SetDebugFile("HScaler.txt"); //hscaler->SetDebugFile("HScaler.txt");
//gHaEvtHandlers->Add(hscaler); //gHaEvtHandlers->Add(hscaler);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment