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

Last change on this file since 7957 was 7957, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 7.4 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
99# Current DEFAULT setup. This what is used to build the
100# sequences from the newest data
101CalibrationScript 2 3 209 199 79266
102CalibrationScript 3 4 199 207 50640
103CalibrationScript 4 2 207 209 91301
104CalibrationScript 4 3 207 199 53875
105
106# Previous defaults. This are cases which are widely used
107# through our data and can thus be considered old defaults
108CalibrationScript 4 2 181 179 46305 50600
109CalibrationScript 4 2 207 209 50641 84570
110CalibrationScript 4 2 207 179 50879 91252
111CalibrationScript 2 3 179 199 46313 91423
112CalibrationScript 2 3 209 199 50784 79256
113CalibrationScript 3 2 199 179 46313 90220
114
115CalibrationScript 3 2 199 209 50785 57781
116CalibrationScript 3 4 199 181 45730 50805
117
118# This was used only in some rare cases (still to be checked!)
119# This are cases used through a big part of our data
120# but take place only in some single cases.
121CalibrationScript 4 3 181 199 46405 50137
122CalibrationScript 3 4 199 181 67116 68714
123CalibrationScript 2 4 179 207 87824 87842
124
125# Single calibration runs inbetween data. Should be
126# excluded differently, because these blocks will not
127# give valid sequences anyhow
128CalibrationScript 2 4 179 207 68731 68731
129CalibrationScript 2 4 179 207 61374 61459
130CalibrationScript 2 4 179 207 53901 53901
131CalibrationScript 2 4 179 207 51153 51170
132CalibrationScript 2 4 188 181 50084 50084
133CalibrationScript 2 4 209 207 96951 96951
134
135# For some reasons here are two consecutive calibration
136# runs with two different colors (still to be checked!)
137CalibrationScript 4 4 181 183 51173 51173
138
139# Special setup for more than one C-Run. Old data had several
140# calibration runs with different taken sequentually
141CalibrationScript 4 4 (181|195) (182|183|193|195) 44834 45579
142
143# This was a typo 238 is basically the same as 209
144CalibrationScript 4 2 207 238 78696 78696
145
146# This is for runs with special calibration scripts (177,188,200,210)
147CalibrationScript 2 3 (179|188|200) (177|199) 44831 46223
148CalibrationScript 3 2 (177|199) (179|188|200) 44831 46223
149CalibrationScript 4 2 (181|182|195) (188|200) 44831 46223
150CalibrationScript 3 4 177 (181|195) 44831 45718
151CalibrationScript 4 3 181 177 44831 45717
152CalibrationScript 4 2 181 188 50083 50273
153CalibrationScript 3 2 199 188 50083 50273
154CalibrationScript 2 3 188 199 50083 50273
155CalibrationScript 4 2 207 210 50687 50746
156CalibrationScript 2 3 210 199 50687 50746
157CalibrationScript 3 2 199 210 50687 50746
158
159# Special rules for calibration script 183
160CalibrationScript 2 4 209 183 50642 50642
161CalibrationScript 4 3 183 199 51193 51193
162CalibrationScript 2 4 179 183 51192 51192
163CalibrationScript 4 2 183 179 51174 51174
164
165#########################################################################
166# The regexp section MUST be the last section. This allows
167# regular expressions to start with a [
168
169[Regexp]
170
171# Explanation:
172#
173# To build sequences a string with the run-types is evaluated.
174# A capital case D or P means: The nearest C-Run is the last C-Run
175# A lower case d or p means: The nearest C-Run is the next C-Run
176#
177# The first expression is evaluated first. The last one last.
178# If one regexp matches the others are not evaluated anymore and
179# the sequence is build from the match.
180#
181# For details on regular expressions check
182# http://perldoc.perl.org/perlre.html
183#
184# The syntax is
185# regexp [firstrun [lastrun]]
186#
187
188# Allow almost everything but require at least one run of each run-type
189[dp]*C+[PD]*(PD|DP)[DP]* 0 32734
190[dp]*dp*C+[PD]*P[DP]* 0 32734
191[dp]*p[dp]*C+P*D[PD]* 0 32734
192[dp]*(dp|pd)[dp]*C+[PD]* 0 32734
193
194# This is the "allow as much as possible" solution
195[dp]*(pC+|C+P)[PD]*D 32735 45624
196d[dp]*(pC+|C+P)[PD]* 32735 45624
197
198# Allow intermediate calibration and pedestal runs:
199# Since now we have interleaved calibration events.
200[dD]*[pP]C+((([pP]|C)+[dD])|[dD])+ 45625 46477
201
202# Allow intermediate pedestal runs
203#[dD]*[pP]C+(([pP]+[dD])|[dD])+ 46478 53943
204[dD]*[pP]C+[pPdD]*[dD] 46478 53943
205
206# Use the minimum solution for newest date
207# Do not allow intermediate non-data runs
208[dD]*[pP]C+[dD]+ 53944
Note: See TracBrowser for help on using the repository browser.