Difference between revisions of "RCDB Standard Searches"

From GlueXWiki
Jump to: navigation, search
Line 20: Line 20:
  
 
Corresponding RCDB queris:
 
Corresponding RCDB queris:
<syntaxhighlight lang="python" line="1" >
+
<syntaxhighlight lang="python">
 
@is_production = run_type == 'hd_all.tsg' and  # Production Run
 
@is_production = run_type == 'hd_all.tsg' and  # Production Run
 
                 daq_run == 'PHYSICS' and  
 
                 daq_run == 'PHYSICS' and  
Line 27: Line 27:
 
                 radiator_id !=5 and  
 
                 radiator_id !=5 and  
 
                 solenoid_current > 100
 
                 solenoid_current > 100
 +
  
 
@is_cosmic = run_type == 'hd_all.tsg_cosmic' and
 
@is_cosmic = run_type == 'hd_all.tsg_cosmic' and
 
             'COSMIC' in daq_run and
 
             'COSMIC' in daq_run and
 
             beam_current < 1.
 
             beam_current < 1.
 +
  
 
@is_empty_target = target_type == "EMPTY & Ready" # Empty Target
 
@is_empty_target = target_type == "EMPTY & Ready" # Empty Target
 +
  
 
@is_amorph_radiator = radiator_id == 0 and target_type == "FULL & Ready"  # Amorphous Radiator
 
@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_coherent_beam = radiator_id != 5  and radiator_id != 0 # Coherent Beam
 +
  
 
@is_field_off = solenoid_current < 100  # Field Off
 
@is_field_off = solenoid_current < 100  # Field Off
 +
  
 
@is_field_on = solenoid_current >= 100  # Field On
 
@is_field_on = solenoid_current >= 100  # Field On
 +
  
 
@status_approved = status == 1
 
@status_approved = status == 1
 +
  
 
@status_unchecked = status == -1
 
@status_unchecked = status == -1
 +
  
 
@status_reject = status == 0
 
@status_reject = status == 0

Revision as of 14:25, 18 February 2016

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 queris:

@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?