# Analyzer output definition file used by THaOutput class. # See http://hallaweb.jlab.org/root/THaOutput.html # R. Michaels, June 2003 # Comments start with '# ' (careful, need a space after #) # # There are at present 3 places where output is defined # in the C++ analyzer, and this is one of them. # The other two are THaRun (run-dependent info) and # THaEvent (event-dependent info), which provide quantities # like run number and event number that you always need. # In this place, the "outdef" file, one can define # global variables, formulas, and histograms, as well # as cuts on histograms. The results of the formulas appear # in the tree with the formula-name given. # # Syntax of file -- by example: # # variable L.vdc.u2.nclust # variable R.s1.lt # formula targetX 1.464*BB.bpm4b.x-0.464*BB.bpm4a.x # TH1F rv1n 'R-arm vdc hits on V1' R.vdc.v1.nhit 100 0 10 # TH1F rv1w 'R-arm vdc wiremap on V1' R.vdc.v1.wire 100 0 500 # TH1F tgtx 'Target X position' targetX 100 -2 2 # TH2F t12 'Time stamps on roc1 vs roc2' D.timeroc1 D.timeroc2 # 100 0 1000 100 0 1000 # TH1F Rv1n 'R-arm VDC nhit (cut)' R.vdc.v1.nhit 100 0 10 R.vdc.v1.nhit>3 # (note, the cut R.vdc.v1.nhit appears optionally at the end, also # this variable cannot be a variable-sized array) # # # The lines are of the form # keyword rest-of-line # # where the keywords are as follows : # (the keywords are case-insensitive, the rest of the line is not) # # VARIABLE -- indicates that a global variable is to # be added to the tree. # The next string is the name of the variable. # You can see a list of variables by typing # gHaVars->Print() at the analyzer's root shell prompt. # A variable can also be an array, e.g. R.s1.lt # Then the values in the tree will be R.s1.lt.data[0], # R.s1.lt.data[1], etc, up to the array size which # is Ndata.R.s1.lt # # BLOCK -- An entire block of variables are written to the # output. E.g. "L.*" writes all Left HRS variables. # # FORMULA -- indicates a THaFormula to add to the output. # The next word will be the "name" of the formula result # in the tree. The 3rd string is the formula to evaluate. # Note, it cannot have spaces in it. # Formulas can be vectors if the arrays are fixed size. # # CUT -- Like a formula, but the data are 0 (false) or 1 (true) # # TH1F, TH2F, TH1D, TH2D -- defines histograms (1D or 2D). # The next word is the name of the object. # The following string (must be in single quotes) is # the title of the histogram. Next, the variables # or formulas names that are put into the histogram # are listed together with bin info: nbin, xlo, xhi and if 2D # the same bin info for y. Optional cuts can be specified # at the end of the line. See examples below. # # ------------------------------------ # List of the variable blocks to be written out block NA.* #------------------------------------------------- # Neutron Detector below #------------------------------------------------- # HAND Package Scintillator planes TH1F V_L_adc_ 'Veto Plane Left Raw ADC' NA.veto.la_c 200 0 10000 NA.veto.la>=0 TH1F V_R_adc_ 'Veto Plane Right Raw ADC' NA.veto.ra_c 200 0 10000 NA.veto.ra>=0 TH1F V_L_tdc_ 'Veto Plane Left Raw TDC' NA.veto.lt 200 0 1675 NA.veto.lt>0 TH1F V_R_tdc_ 'Veto Plane Right Raw ADC' NA.veto.rt 200 0 1675 NA.veto.rt>0 TH1F N1_L_adc_ 'N1 Plane Left Raw ADC' NA.nd.p1.la_c 200 0 10000 NA.nd.p1.la>=0 TH1F N1_R_adc_ 'N1 Plane Right Raw ADC' NA.nd.p1.ra_c 200 0 10000 NA.nd.p1.ra>=0 TH1F N1_L_tdc_ 'N1 Plane Left Raw TDC' NA.nd.p1.lt 200 0 1675 NA.nd.p1.lt>0 TH1F N1_R_tdc_ 'N1 Place Right Raw TDC' NA.nd.p1.rt 200 0 1675 NA.nd.p1.rt>0 TH1F N2_L_adc_ 'N2 Plane Left Raw ADC' NA.nd.p2.la_c 200 0 10000 NA.nd.p2.la>=0 TH1F N2_R_adc_ 'N2 Plane Right Raw ADC' NA.nd.p2.ra_c 200 0 10000 NA.nd.p2.ra>=0 TH1F N2_L_tdc_ 'N2 Plane Left Raw TDC' NA.nd.p2.lt 200 0 1675 NA.nd.p2.lt>0 TH1F N2_R_tdc_ 'N2 Plane Right Raw TDC' NA.nd.p2.rt 200 0 1675 NA.nd.p2.rt>0 TH1F N3_L_adc_ 'N3 Plane Left Raw ADC' NA.nd.p3.la_c 200 0 10000 NA.nd.p3.la>=0 TH1F N3_R_adc_ 'N3 Plane Right Raw ADC' NA.nd.p3.ra_c 200 0 10000 NA.nd.p3.ra>=0 TH1F N3_L_tdc_ 'N3 Plane Left Raw TDC' NA.nd.p3.lt 200 0 1675 NA.nd.p3.lt>0 TH1F N3_R_tdc_ 'N3 Plane Right Raw TDC' NA.nd.p3.rt 200 0 1675 NA.nd.p3.rt>0 TH1F N4_L_adc_ 'N4 Plane Left Raw ADC' NA.nd.p4.la_c 200 0 10000 NA.nd.p4.la>=0 TH1F N4_R_adc_ 'N4 Plane Right Raw ADC' NA.nd.p4.ra_c 200 0 10000 NA.nd.p4.ra>=0 TH1F N4_L_tdc_ 'N4 Plane Left Raw TDC' NA.nd.p4.lt 200 0 1675 NA.nd.p4.lt>0 TH1F N4_R_tdc_ 'N4 Plane Right Raw TDC' NA.nd.p4.rt 200 0 1675 NA.nd.p4.rt>0 TH1F N5_L_adc_ 'N5 Plane Left Raw ADC' NA.nd.p5.la_c 200 0 10000 NA.nd.p5.la>=0 TH1F N5_R_adc_ 'N5 Plane Right Raw ADC' NA.nd.p5.ra_c 200 0 10000 NA.nd.p5.ra>=0 TH1F N5_L_tdc_ 'N5 Plane Left Raw TDC' NA.nd.p5.lt 200 0 1675 NA.nd.p5.lt>0 TH1F N5_R_tdc_ 'N5 Plane Right Raw TDC' NA.nd.p5.rt 200 0 1675 NA.nd.p5.rt>0 TH1F N6_L_adc_ 'N6 Plane Left Raw ADC' NA.nd.p6.la_c 200 0 10000 NA.nd.p6.la>=0 TH1F N6_R_adc_ 'N6 Plane Right Raw ADC' NA.nd.p6.ra_c 200 0 10000 NA.nd.p6.ra>=0 TH1F N6_L_tdc_ 'N6 Plane Left Raw TDC' NA.nd.p6.lt 200 0 1675 NA.nd.p6.lt>0 TH1F N6_R_tdc_ 'N6 Plane Right Raw TDC' NA.nd.p6.rt 200 0 1675 NA.nd.p6.rt>0 TH1F V_L_adcp_ 'Veto Plane Left Raw ADC' NA.veto.la 200 0 1000 NA.veto.la>=0 TH1F V_R_adcp_ 'Veto Plane Right Raw ADC' NA.veto.ra 200 0 1000 NA.veto.ra>=0 TH1F N1_L_adcp_ 'N1 Plane Left Raw ADC' NA.nd.p1.la 200 0 1000 NA.nd.p1.la>=0 TH1F N1_R_adcp_ 'N1 Plane Right Raw ADC' NA.nd.p1.ra 200 0 1000 NA.nd.p1.ra>=0 TH1F N2_L_adcp_ 'N2 Plane Left Raw ADC' NA.nd.p2.la 200 0 1000 NA.nd.p2.la>=0 TH1F N2_R_adcp_ 'N2 Plane Right Raw ADC' NA.nd.p2.ra 200 0 1000 NA.nd.p2.ra>=0 TH1F N3_L_adcp_ 'N3 Plane Left Raw ADC' NA.nd.p3.la 200 0 1000 NA.nd.p3.la>=0 TH1F N3_R_adcp_ 'N3 Plane Right Raw ADC' NA.nd.p3.ra 200 0 1000 NA.nd.p3.ra>=0 TH1F N4_L_adcp_ 'N4 Plane Left Raw ADC' NA.nd.p4.la 200 0 1000 NA.nd.p4.la>=0 TH1F N4_R_adcp_ 'N4 Plane Right Raw ADC' NA.nd.p4.ra 200 0 1000 NA.nd.p4.ra>=0 TH1F N5_L_adcp_ 'N5 Plane Left Raw ADC' NA.nd.p5.la 200 0 1000 NA.nd.p5.la>=0 TH1F N5_R_adcp_ 'N5 Plane Right Raw ADC' NA.nd.p5.ra 200 0 1000 NA.nd.p5.ra>=0 TH1F N6_L_adcp_ 'N6 Plane Left Raw ADC' NA.nd.p6.la 200 0 1000 NA.nd.p6.la>=0 TH1F N6_R_adcp_ 'N6 Plane Right Raw ADC' NA.nd.p6.ra 200 0 1000 NA.nd.p6.ra>=0 TH1F N1_position_ 'N1 Plane position' NA.nd.p1.ypos 100 -100 100 NA.nd.p1.ypos!=0 TH1F N2_position_ 'N2 Plane position' NA.nd.p2.ypos 100 -100 100 NA.nd.p2.ypos!=0 TH1F N3_position_ 'N3 Plane position' NA.nd.p3.ypos 100 -100 100 NA.nd.p3.ypos!=0 TH1F N4_position_ 'N4 Plane position' NA.nd.p4.ypos 100 -100 100 NA.nd.p4.ypos!=0 TH1F N5_position_ 'N5 Plane position' NA.nd.p5.ypos 100 -100 100 NA.nd.p5.ypos!=0 TH1F N6_position_ 'N6 Plane position' NA.nd.p6.ypos 100 -100 100 NA.nd.p6.ypos!=0