Difference between revisions of "RCDB Standard Searches"

From GlueXWiki
Jump to: navigation, search
Line 1: Line 1:
 +
= New =
 +
 +
Suggested update:
 +
 +
<syntaxhighlight lang="python">
 +
@is_production = (run_type == 'hd_all.tsg' or run_type == 'hd_all.tsg.ps') and  # Production Run?  Should double-check this with Sascha. It might not be true for mode 8?
 +
                daq_run == 'PHYSICS' and
 +
                beam_current > 2 and
 +
                num_events > 100000 and
 +
                (radiator_id !=5 or radiator_id == 0) and  # diamond or amorphous radiator is in
 +
                solenoid_current > 100
 +
 +
 +
@is_cosmic = run_type == 'hd_all.tsg_cosmic' and
 +
            'COSMIC' in daq_run and
 +
            beam_current < 1.
 +
 +
 +
@is_empty_target = target_type == "EMPTY & Ready" # Empty Target
 +
 +
 +
@is_amorph_radiator = radiator_id == 0 and target_type == "FULL & Ready"  # Amorphous Radiator
 +
 +
 +
@is_coherent_beam = radiator_id != 5  and radiator_id != 0 # Coherent Beam
 +
 +
 +
@is_field_off = solenoid_current < 100  # Field Off
 +
 +
 +
@is_field_on = solenoid_current >= 100  # Field On
 +
 +
 +
@status_approved = status == 1
 +
 +
 +
@status_unchecked = status == -1
 +
 +
 +
@status_reject = status == 0
 +
 +
</syntaxhighlight>
 +
 +
 +
= Old =
 +
 
Goal: Classify and search for non-DAQ test runs
 
Goal: Classify and search for non-DAQ test runs
  
Line 19: Line 65:
 
*** solenoid_current < 100.
 
*** solenoid_current < 100.
  
Corresponding RCDB queris:
+
Corresponding RCDB queries:
 
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
 
@is_production = run_type == 'hd_all.tsg' and  # Production Run
 
@is_production = run_type == 'hd_all.tsg' and  # Production Run

Revision as of 13:46, 22 February 2016

New

Suggested update:

@is_production = (run_type == 'hd_all.tsg' or run_type == 'hd_all.tsg.ps') and   # Production Run?  Should double-check this with Sascha. It might not be true for mode 8?
                 daq_run == 'PHYSICS' and 
                 beam_current > 2 and 
                 num_events > 100000 and 
                 (radiator_id !=5 or radiator_id == 0) and   # diamond or amorphous radiator is in
                 solenoid_current > 100
 
 
@is_cosmic = run_type == 'hd_all.tsg_cosmic' and
            'COSMIC' in daq_run and
             beam_current < 1.
 
 
@is_empty_target = target_type == "EMPTY & Ready" # Empty Target
 
 
@is_amorph_radiator = radiator_id == 0 and target_type == "FULL & Ready"  # Amorphous Radiator
 
 
@is_coherent_beam = radiator_id != 5  and radiator_id != 0 # Coherent Beam
 
 
@is_field_off = solenoid_current < 100  # Field Off
 
 
@is_field_on = solenoid_current >= 100  # Field On
 
 
@status_approved = status == 1
 
 
@status_unchecked = status == -1
 
 
@status_reject = status == 0


Old

Goal: Classify and search for non-DAQ test runs

  • Type: Production Run
    • run_type == hd_all.tsg
    • daq_run == PHYSICS
    • beam_current > 2.
    • num_events > 10000
    • radiator id !=5 # NOT RETRACTED
    • solenoid_current > 100. (?)
    • Subtype: Empty Target
      • target_type == "EMPTY & Ready"
    • Subtype: Amorphous Radiator
      • radiator_id = 0
      • target_type == "FULL & Ready"
    • Subtype: Coherent Beam
      • radiator_id != 5 AND radiator_id != 0.
      • target_type == "FULL & Ready"
    • Subtype: Field Off
      • solenoid_current < 100.

Corresponding RCDB queries:

@is_production = run_type == 'hd_all.tsg' and   # Production Run
                 daq_run == 'PHYSICS' and 
                 beam_current > 2 and 
                 num_events > 10000 and 
                 radiator_id !=5 and 
                 solenoid_current > 100
 
 
@is_cosmic = run_type == 'hd_all.tsg_cosmic' and
            'COSMIC' in daq_run and
             beam_current < 1.
 
 
@is_empty_target = target_type == "EMPTY & Ready" # Empty Target
 
 
@is_amorph_radiator = radiator_id == 0 and target_type == "FULL & Ready"  # Amorphous Radiator
 
 
@is_coherent_beam = radiator_id != 5  and radiator_id != 0 # Coherent Beam
 
 
@is_field_off = solenoid_current < 100  # Field Off
 
 
@is_field_on = solenoid_current >= 100  # Field On
 
 
@status_approved = status == 1
 
 
@status_unchecked = status == -1
 
 
@status_reject = status == 0


  • status flag
    • unchecked = -1
    • rejected = 0
    • approved = 1


  • Type: Cosmic run
    • run_type == hd_all.tsg_cosmic
    • daq_run == COSMIC*
    • beam_current < 1.
    • Subtype: Magnet off
      • solenoid_current < 100.
    • Subtype: Magnet on
      • solenoid_current > 100.
  • Other types?
    • Normalization run (super-low-current, tagger trigger, TAC in, definitions need input from Somov)
    • PS-only? (needs input from Somov)
    • LED Pulser only?