source: branches/Corsika7500Compatibility/fact/resources/sequences.rc@ 20067

Last change on this file since 20067 was 18307, checked in by Daniela Dorner, 9 years ago
added regular expressions for new data taking scheme
File size: 8.4 KB
Line 
1#/////////////////////////////////////////////////////////////////////////
2#
3# This file is compiled from two sections. One defines which transitions
4# are allowed to build a sequence (for example changing L1 Trigger
5# Tables between Calibration and Pedestal runs). The other section
6# defines a regular expression to define the allowed ordering
7# of the P-, C- and D-runs.
8#
9# The sections a introduced by [Transition] and [Regexp]. For further
10# details see below.
11#
12# If a section should be valid only for one telescope use:
13# [Transition] # Valid for all telescope numbers
14# [Transition 5] # Valid for telescope 5
15# [Transition: 5] # Valid for telescope 5
16# [Transition: 5 6] # Valid for telescopes 5 and 6
17#
18#
19# File-Id:
20# A file is uniquely identified by run-number and file-number.
21# If you give just a number it is identical to run-number with
22# file-number 0. To give a dedicated file-number you can use:
23# run.file
24#
25#/////////////////////////////////////////////////////////////////////////
26
27##########################################################################
28#
29# Explanation [Transition]
30#
31# Rules to build blocks which will later be broken into sequences
32#
33# Syntax:
34#
35# [Transition]
36# rule1
37# rule2
38# rule3
39#
40#
41# Colums of rule:
42# 0 [1 2 3 4 [5 [6]]]
43#
44# 0: Table/Column to which the transition is applied
45# 1: Run type of previous run
46# 2: Run type of run to be accepted
47# 3: Key for previous run
48# 4: key for run to be accepted
49# 5: first file-id to apply this rule <default=0>
50# 6: last file-id to apply this rule <default=max>
51#
52# Run Types:
53# D 2
54# P 3
55# C 4
56#
57# The columns 1-4 can be expressed as regular expressions (ala TRegexp)
58# a ^ is prepended and a $ is appended automatically.
59#
60# A single "*" is an abbreviation for the regexp ".*" .
61#
62# As soon as any transition (column 0) is specified this transisiton
63# is checked not to change within a sequence.
64#
65# A "-" is an abbreviation for transitions "to be ignored". For example:
66# [Transition]
67# Test - 4 * 1200 1300
68# would mean:
69# ignore all keys (*) of column test for all current files
70# with run-type 4 if its file-id is between 1200.0 and 1300.0
71# The (former) third column in this case is obsolete.
72#
73# Each Transition which appears at least once is checked.
74#
75
76[Transition: 1]
77
78# Ignore project name for calibration files between 20100 and 45100
79#Project - 4 * 20100 45100
80#HvSettings - 2 * 86094 86094
81#TriggerDelayTable
82#ObservationMode
83
84# Transition setup for L1/2-TriggerTable of very old data
85#L1TriggerTable 3 2 1 [235] 26206 35478
86#L1TriggerTable 2 3 [235] 1 26206 35478
87
88#L1TriggerTable - [^2] * 0 26830
89#L2TriggerTable - [^2] * 0 26830
90
91#L1TriggerTable 2 4 3 1 26816 39429
92
93#L2TriggerTable 3 2 7 2 36049 38012
94#L2TriggerTable 2 3 2 7 36053 38011
95
96#L2TriggerTable 4 3 9 7 20170 37382
97#L2TriggerTable 3 4 7 9 22712 37935
98
99#L2TriggerTable 3 2 7 5 26207 35455
100#L2TriggerTable 2 3 5 7 26207 35477
101
102#L2TriggerTable 4 2 9 2 36157 37938
103#L2TriggerTable 4 3 5 7 26207 35477
104#L2TriggerTable 3 2 7 5 35460 36478
105#L2TriggerTable 2 4 5 9 27170 31869
106
107
108# The Discriminator Thresholds do not influence the pedestal- and
109# calibration-trigger and need therefore not to be checked for these runs.
110# This allows all kind of transitions from P/C to P/C and from C to D.
111#DiscriminatorThresholdTable [34] [34] * *
112#DiscriminatorThresholdTable 4 2 * *
113
114# This defines which changes in the calibration script are allowed
115# P 177: CPedestals_500Hz
116# P 199: Pedestals_500Hz
117# C 180: 23Led_Blue
118# C 181: 10_Led_UV
119# C 182: 1Led_Green
120# C 183: 10Led_Blue
121# C 195: 1Led_Blue
122# C 207: 10Led_UV_PinDiode
123# C 256: 10Led_UV_PEDANDCAL_1kHz
124# D 179: 10Led_UV_50Hz
125# D 209: 10Led_UV_50Hz_PinDiode
126# D 238: 10Led_UV_50Hz_PinDiode. <--- has an additional dot
127# D 188: 10Led_UV_train50Hz
128# D 200: 10Led_UV_train50Hz_PinDiode
129# D 210: 10Led_Blue_50Hz
130# D 245: 10Led_UV_50Hz_Ped
131
132# Current DEFAULT setup. This what is used to build the
133# sequences from the newest data
134#CalibrationScript 2 3 209 199 79266 200000
135#CalibrationScript 3 4 199 207 50640
136#CalibrationScript 4 2 207 209 91301
137#CalibrationScript 4 3 207 199 53875 200000
138#CalibrationScript 4 2 207 245 200000
139#CalibrationScript 3 4 199 256 1007866
140#CalibrationScript 4 2 256 245 1007866
141#CalibrationScript 3 4 199 181 1007844
142#CalibrationScript 4 2 181 245 1007844
143
144# Previous defaults. This are cases which are widely used
145# through our data and can thus be considered old defaults
146#CalibrationScript 4 2 181 179 46305 50600
147#CalibrationScript 4 2 207 209 50641 84570
148#CalibrationScript 4 2 207 179 50879 91252
149#CalibrationScript 2 3 179 199 46313 91423
150#CalibrationScript 2 3 209 199 50784 79256
151#CalibrationScript 3 2 199 179 46313 90220
152
153#CalibrationScript 3 2 199 209 50785 57781
154#CalibrationScript 3 4 199 181 45730 50805
155
156# This was used only in some rare cases (still to be checked!)
157# This are cases used through a big part of our data
158# but take place only in some single cases.
159#CalibrationScript 4 3 181 199 46405 50137
160#CalibrationScript 3 4 199 181 67116 68714
161#CalibrationScript 2 4 179 207 87824 87842
162
163# Single calibration runs inbetween data. Should be
164# excluded differently, because these blocks will not
165# give valid sequences anyhow
166#CalibrationScript 2 4 179 207 68731 68731
167#CalibrationScript 2 4 179 207 61374 61459
168#CalibrationScript 2 4 179 207 53901 53901
169#CalibrationScript 2 4 179 207 51153 51170
170#CalibrationScript 2 4 188 181 50084 50084
171#CalibrationScript 2 4 209 207 96951 96951
172
173# For some reasons here are two consecutive calibration
174# runs with two different colors (still to be checked!)
175#CalibrationScript 4 4 181 183 51173 51173
176
177# Special setup for more than one C-Run. Old data had several
178# calibration runs with different taken sequentually
179#CalibrationScript 4 4 (181|195) (182|183|193|195) 44834 45579
180
181# This was a typo 238 is basically the same as 209
182#CalibrationScript 4 2 207 238 78696 78696
183
184# This is for runs with special calibration scripts (177,188,200,210)
185#CalibrationScript 2 3 (179|188|200) (177|199) 44831 46223
186#CalibrationScript 3 2 (177|199) (179|188|200) 44831 46223
187#CalibrationScript 4 2 (181|182|195) (188|200) 44831 46223
188#CalibrationScript 3 4 177 (181|195) 44831 45718
189#CalibrationScript 4 3 181 177 44831 45717
190#CalibrationScript 4 2 181 188 50083 50273
191#CalibrationScript 3 2 199 188 50083 50273
192#CalibrationScript 2 3 188 199 50083 50273
193#CalibrationScript 4 2 207 210 50687 50746
194#CalibrationScript 2 3 210 199 50687 50746
195#CalibrationScript 3 2 199 210 50687 50746
196
197# Special rules for calibration script 183
198#CalibrationScript 2 4 209 183 50642 50642
199#CalibrationScript 4 3 183 199 51193 51193
200#CalibrationScript 2 4 179 183 51192 51192
201#CalibrationScript 4 2 183 179 51174 51174
202
203#########################################################################
204#
205# Explanation [Regexp]
206#
207# To build sequences a string with the run-types is evaluated.
208# A capital case D or P means: The nearest C-Run is the last C-Run
209# A lower case d or p means: The nearest C-Run is the next C-Run
210#
211# The first expression is evaluated first. The last one last.
212# If one regexp matches the others are not evaluated anymore and
213# the sequence is build from the match.
214#
215# For details on regular expressions check
216# http://perldoc.perl.org/perlre.html
217#
218# The syntax is
219# [Regexp]
220# regexp [firstrun [lastrun]]
221#
222[Regexp: 1]
223
224#BGBB?T(BG)?PP? 0
225BGBB?TU?PP? 0
226PCD+ 0
227BGPP? 20150716
228P?D+ 20150716
229
230#[bB][gG][bB][bB][tT][pP][pP] 0 20120116
231#[bB][gG][bB][bB][tT][pP][pP] 0 20120116
232#[pP][cC][dD]+ 0
Note: See TracBrowser for help on using the repository browser.