Index: trunk/FACT++/ScriptsForDimCtrl/ServiceScripts/TakeDrsCalibration.dim
===================================================================
--- trunk/FACT++/ScriptsForDimCtrl/ServiceScripts/TakeDrsCalibration.dim	(revision 13727)
+++ trunk/FACT++/ScriptsForDimCtrl/ServiceScripts/TakeDrsCalibration.dim	(revision 13727)
@@ -0,0 +1,86 @@
+#!dimctrl --exec
+
+>
+> -----------
+> script for DRS-Calibration before Data taking
+> starting up...
+> -----------
+>
+#> ... This script will wait 10sec for you
+#.w 10000
+
+# enable feedback output
+FEEDBACK/ENABLE_OUTPUT 1
+
+# Making sure bias is off, before the DRS calibration starts
+BIAS_CONTROL/SET_ZERO_VOLTAGE
+.s BIAS_CONTROL 7       # Voltage Off
+
+# starting the DRS calibration
+FAD_CONTROL/START_DRS_CALIBRATION
+> bias voltage is switched off
+>
+# taking first DRS:Pedestal with 1000 Events and ROI 1024
+> taking DRS:Pedestal 1000 ...
+.s FAD_CONTROL 4        # Connected
+MCP/START -1 1000 drs-pedestal
+.s FAD_CONTROL 8        # Writing Data
+.s FAD_CONTROL 4        # Connected
+> ... done
+
+# taking DRS:Gain with 1000 Events and ROI 1024
+> taking DRS:Gain 1000 ...
+MCP/START -1 1000 drs-gain
+.s FAD_CONTROL 8        # Writing Data
+.s FAD_CONTROL 4        # Connected
+> ... done
+
+# taking DRS:Pedestal 1000 Events and ROI 1024
+> taking DRS:Pedestal 1000 ...
+MCP/START -1 1000 drs-pedestal
+.s FAD_CONTROL 8        # Writing Data
+.s FAD_CONTROL 4        # Connected
+> ... done
+
+# taking again a DRS:Pedestal with 1000 Events and ROI 1024 for a crosscheck of calculated calibrations constants
+> taking crosscheck DRS:Pedestal 1000 ...
+FAD_CONTROL/SET_FILE_FORMAT 2
+MCP/START -1 1000 drs-pedestal
+.s FAD_CONTROL 8        # Writing Data
+.s FAD_CONTROL 4        # Connected
+> ... done
+
+# taking DRS:Time with 1000 Events and ROI 1024
+> taking DRS:Time 1000 ...
+MCP/START -1 1000 drs-time
+.s FAD_CONTROL 8        # Writing Data
+.s FAD_CONTROL 4        # Connected
+> ... done
+
+# taking DRS:Time upshifted 1000 Events and ROI 1024
+> taking DRS:Time upshifted 1000 ...
+MCP/START -1 1000 drs-time-upshifted
+.s FAD_CONTROL 8        # Writing Data
+.s FAD_CONTROL 4        # Connected
+> ... done
+
+# taking a Pedestal with 1000 Events and ROI 300 for secondary baseline...
+> taking Pedestal 1000 for secondary baseline...
+FAD_CONTROL/RESET_SECONDARY_DRS_BASELINE
+MCP/START -1 1000 pedestal
+.s FAD_CONTROL 8        # Writing Data
+.s FAD_CONTROL 4        # Connected
+> ... done
+
+# taking crosscheck Pedestal 1000 Events and ROI 300
+> taking crosscheck Pedestal 1000 ...
+FAD_CONTROL/SET_FILE_FORMAT 2
+MCP/START -1 1000 pedestal
+.s FAD_CONTROL 8        # Writing Data
+.s FAD_CONTROL 4        # Connected
+> ... done
+
+> ----------------------------------------------------
+> This is the end of the
+> DRS-Calibration before Data taking
+> ----------------------------------------------------
