source: trunk/MagicSoft/Mars/resources/sequences.rc@ 8886

Last change on this file since 8886 was 8327, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 7.6 KB
Line 
1##########################################################################
2#
3# Rules to build blocks which will later be broken into sequences
4#
5# Syntax:
6#
7# [keyname]
8# rule1
9# rule2
10# rule3
11#
12#
13# Colums of rule:
14# 1 2 3 4 [5 [6]]
15#
16# 1: Run type of previous run
17# 2: Run type of run to be accepted
18# 3: Key for previous run
19# 4: key for run to be accepted
20# 5: first run to apply this rule <default=0>
21# 6: last run to apply this rule <default=max>
22#
23# Run Types:
24# D 2
25# P 3
26# C 4
27#
28# The columns 1-4 can be expressed as regular expressions (ala TRegexp)
29# a ^ is prepended and a $ is appended automatically.
30#
31# A single "*" is an abbreviation for the regexp ".*" .
32#
33# A "-" is an abbreviation for "to be ignored". For example:
34# [Test]
35# - 4 * 1200 1300
36# would mean:
37# ignore all keys (*) of column test for all current runs
38# with run-type 4 if its run-number is between 1200 and 1300.
39# The (former) third column in this case is obsolete.
40#
41# Ignore project name for calibration runs between 20100 and 45100
42#
43# Each Transition which appears at least once is checked.
44#
45
46[Transition]
47
48Project - 4 * 20100 45100
49HvSettings - 2 * 86094 86094
50TriggerDelayTable
51ObservationMode
52
53# Transition setup for L1/2-TriggerTable of very old data
54L1TriggerTable 3 2 1 [235] 26206 35478
55L1TriggerTable 2 3 [235] 1 26206 35478
56
57L1TriggerTable - [^2] * 0 26830
58L2TriggerTable - [^2] * 0 26830
59
60L1TriggerTable 2 4 3 1 26816 39429
61
62L2TriggerTable 3 2 7 2 36049 38012
63L2TriggerTable 2 3 2 7 36053 38011
64
65L2TriggerTable 4 3 9 7 20170 37382
66L2TriggerTable 3 4 7 9 22712 37935
67
68L2TriggerTable 3 2 7 5 26207 35455
69L2TriggerTable 2 3 5 7 26207 35477
70
71L2TriggerTable 4 2 9 2 36157 37938
72L2TriggerTable 4 3 5 7 26207 35477
73L2TriggerTable 3 2 7 5 35460 36478
74L2TriggerTable 2 4 5 9 27170 31869
75
76
77# The Discriminator Thresholds do not influence the pedestal- and
78# calibration-trigger and nedd therefore not to be chacked for these runs.
79# This allows all kind of transitions from P/C to P/C and from C to D.
80DiscriminatorThresholdTable [34] [34] * *
81DiscriminatorThresholdTable 4 2 * *
82
83# This defines which changes in the calibration script are allowed
84# P 177: CPedestals_500Hz
85# P 199: Pedestals_500Hz
86# C 180: 23Led_Blue
87# C 181: 10_Led_UV
88# C 182: 1Led_Green
89# C 183: 10Led_Blue
90# C 195: 1Led_Blue
91# C 207: 10Led_UV_PinDiode
92# D 179: 10Led_UV_50Hz
93# D 209: 10Led_UV_50Hz_PinDiode
94# D 238: 10Led_UV_50Hz_PinDiode. <--- has an additional dot
95# D 188: 10Led_UV_train50Hz
96# D 200: 10Led_UV_train50Hz_PinDiode
97# D 210: 10Led_Blue_50Hz
98# D 245: 10Led_UV_50Hz_Ped
99
100# Current DEFAULT setup. This what is used to build the
101# sequences from the newest data
102CalibrationScript 2 3 209 199 79266 200000
103CalibrationScript 3 4 199 207 50640
104CalibrationScript 4 2 207 209 91301
105CalibrationScript 4 3 207 199 53875 200000
106CalibrationScript 4 2 207 245 200000
107
108# Previous defaults. This are cases which are widely used
109# through our data and can thus be considered old defaults
110CalibrationScript 4 2 181 179 46305 50600
111CalibrationScript 4 2 207 209 50641 84570
112CalibrationScript 4 2 207 179 50879 91252
113CalibrationScript 2 3 179 199 46313 91423
114CalibrationScript 2 3 209 199 50784 79256
115CalibrationScript 3 2 199 179 46313 90220
116
117CalibrationScript 3 2 199 209 50785 57781
118CalibrationScript 3 4 199 181 45730 50805
119
120# This was used only in some rare cases (still to be checked!)
121# This are cases used through a big part of our data
122# but take place only in some single cases.
123CalibrationScript 4 3 181 199 46405 50137
124CalibrationScript 3 4 199 181 67116 68714
125CalibrationScript 2 4 179 207 87824 87842
126
127# Single calibration runs inbetween data. Should be
128# excluded differently, because these blocks will not
129# give valid sequences anyhow
130CalibrationScript 2 4 179 207 68731 68731
131CalibrationScript 2 4 179 207 61374 61459
132CalibrationScript 2 4 179 207 53901 53901
133CalibrationScript 2 4 179 207 51153 51170
134CalibrationScript 2 4 188 181 50084 50084
135CalibrationScript 2 4 209 207 96951 96951
136
137# For some reasons here are two consecutive calibration
138# runs with two different colors (still to be checked!)
139CalibrationScript 4 4 181 183 51173 51173
140
141# Special setup for more than one C-Run. Old data had several
142# calibration runs with different taken sequentually
143CalibrationScript 4 4 (181|195) (182|183|193|195) 44834 45579
144
145# This was a typo 238 is basically the same as 209
146CalibrationScript 4 2 207 238 78696 78696
147
148# This is for runs with special calibration scripts (177,188,200,210)
149CalibrationScript 2 3 (179|188|200) (177|199) 44831 46223
150CalibrationScript 3 2 (177|199) (179|188|200) 44831 46223
151CalibrationScript 4 2 (181|182|195) (188|200) 44831 46223
152CalibrationScript 3 4 177 (181|195) 44831 45718
153CalibrationScript 4 3 181 177 44831 45717
154CalibrationScript 4 2 181 188 50083 50273
155CalibrationScript 3 2 199 188 50083 50273
156CalibrationScript 2 3 188 199 50083 50273
157CalibrationScript 4 2 207 210 50687 50746
158CalibrationScript 2 3 210 199 50687 50746
159CalibrationScript 3 2 199 210 50687 50746
160
161# Special rules for calibration script 183
162CalibrationScript 2 4 209 183 50642 50642
163CalibrationScript 4 3 183 199 51193 51193
164CalibrationScript 2 4 179 183 51192 51192
165CalibrationScript 4 2 183 179 51174 51174
166
167#########################################################################
168# The regexp section MUST be the last section. This allows
169# regular expressions to start with a [
170
171[Regexp]
172
173# Explanation:
174#
175# To build sequences a string with the run-types is evaluated.
176# A capital case D or P means: The nearest C-Run is the last C-Run
177# A lower case d or p means: The nearest C-Run is the next C-Run
178#
179# The first expression is evaluated first. The last one last.
180# If one regexp matches the others are not evaluated anymore and
181# the sequence is build from the match.
182#
183# For details on regular expressions check
184# http://perldoc.perl.org/perlre.html
185#
186# The syntax is
187# regexp [firstrun [lastrun]]
188#
189
190# Allow almost everything but require at least one run of each run-type
191[dp]*C+[PD]*(PD|DP)[DP]* 0 32734
192[dp]*dp*C+[PD]*P[DP]* 0 32734
193[dp]*p[dp]*C+P*D[PD]* 0 32734
194[dp]*(dp|pd)[dp]*C+[PD]* 0 32734
195
196# This is the "allow as much as possible" solution
197[dp]*(pC+|C+P)[PD]*D 32735 45624
198d[dp]*(pC+|C+P)[PD]* 32735 45624
199
200# Allow intermediate calibration and pedestal runs:
201# Since now we have interleaved calibration events.
202[dD]*[pP]C+((([pP]|C)+[dD])|[dD])+ 45625 46477
203
204# Allow intermediate pedestal runs
205#[dD]*[pP]C+(([pP]+[dD])|[dD])+ 46478 53943
206[dD]*[pP]C+[pPdD]*[dD] 46478 53943
207[dD]*[pP]C+[pPdD]*[dD] 56567 57786
208[dD]*[pP]C+[pPdD]*[dD] 60145 60396
209
210# Use the minimum solution for newest date
211# Do not allow intermediate non-data runs
212[dD]*[pP]C+[dD]+ 53944
Note: See TracBrowser for help on using the repository browser.