#!dimctrl --exec

# ==========================================================================
# Data taking and tracking script for Mrk 421
# ==========================================================================

# call it by: .x ScriptsForDimCtrl/TakeMrk421.dim

# ----------------------------------------------------

>
> ======================================
> Data taking and tracking script for
> Mrk 421
> ======================================
> starting up...
>

# changing tracking to Mrk 421 Wobble 1
.x ScriptsForDimCtrl/ServiceScripts/TrackMrk421Wobble1.dim

# Wait for drivectrl to reply that its tracking the given source
.x ScriptsForDimCtrl/ServiceScripts/WaitForTracking.dim

# starting data taking of Mrk 421 Wobble 1
.x ScriptsForDimCtrl/DataTaking1.dim

# --------------------------------------
# Label for processing only Wobble position 2
# call like this .x ScriptsForDimCtrl/TakeMrk421.dim:2
:2
# --------------------------------------

# changing tracking to Mrk 421 Wobble 2
.x ScriptsForDimCtrl/ServiceScripts/TrackMrk421Wobble2.dim

# Wait for drivectrl to reply that its tracking the given source
.x ScriptsForDimCtrl/ServiceScripts/WaitForTracking.dim

# data taking to Mrk 421 Wobble 2
.x ScriptsForDimCtrl/DataTaking2.dim

# Stop tracking
.x ScriptsForDimCtrl/ServiceScripts/StopTracking.dim

> ======================================
> Data taking and tracking script for
> Mrk 421 --> FINISHED
> ======================================
>


