25 def __init__ ( self ):
26 self.const_arg = ""
27 self.default_find = ""
28 self.isMCDB = False
29 self.default_show = ["run","events","time"]
30
31
32
33 self.sortedKeys = [ "run", "time", "duration", "events", "allevents", "projectTag", "partition", "readyforphysics",
34 "trigkeys", "trigger", "release",
35 "ami", "magnets", "larcond", "db", "ctag", "lhc", "lumi", "dq",
36 "streams", "detector", "datasets", "all", "summary", "dqeff", "cosmics", "heavyions" ]
37
38 self.queryArgs = { "run": ("r(uns)", "run", self.InterpretPeriods, self.ShowVariable,
39 'r(uns) [format: "run 91000", "runs 91000-92000", "runs 91000-(+)" (this run and all before (after))]', ""),
40 "all": ("all", "all", self.InterpretString, self.ShowVariable,
41 'all [format: only available as "show" option]', ""),
42 "summary": ("summary", "summary", self.InterpretString, self.ShowVariable,
43 'summary [format: only available as "show" option]', ""),
44 "dqsummary": ("dqsum(mary)", "dqsummary", self.InterpretString, self.ShowVariable,
45 'dqsum(mary) [format: only available as "show" option]', ""),
46 "dqplots": ("dqpl(ots)", "dqplots", self.InterpretString, self.ShowVariable,
47 'dqpl(ots) [format: only available as "show" option]', ""),
48 "dqeff": ("dqeff", "dqeff", self.InterpretString, self.ShowVariable,
49 'dqeff [format: only available as "show" option]', ""),
50 "events": ("ev(ents)", "events", self.InterpretRange, self.ShowVariable,
51 'ev(ents) [format: "events 10000+", ... (same as for run number)]', ""),
52 "allevents": ("alle(vents)", "allevents", self.InterpretRange, self.ShowVariable,
53 'alle(vents) [format: only available as "show" option]', ""),
54 "time": ("t(ime)", "time", self.InterpretRange, self.ShowVariable,
55 't(ime) [format: "time 10.9.2008-30.9.2008", "time 15.10.2008-(+)" (this date and all before (after))]', ""),
56 "duration": ("dur(ation)", "duration", self.InterpretDuration, self.ShowVariable,
57 'dur(ation) [format: "dur 10d/h/m/s+/-", "2000s+" (run duration more than 2000 sec), "dur 3h-" (less than 3 hours)]', ""),
58 "magnets": ("m(agnet)", "bfield", self.InterpretMagnets, self.ShowVariable,
59 'm(agnet) [format: "magnet s(olenoid)", "magnet t(oroid)", "not magnet t(oroid)", ...]', ""),
60 "detector": ("det(ector)", "detmask", self.InterpretDetectorMask, self.ShowVariable,
61 'det(ector) [format: "detector Pixel B" (for Pixel Barrel), "detector Pixel" (for Pixel B & EC), "all" (for all detectors, detector mask = 72551459979255)', ""),
62 "smk": ("smk", "smk", self.InterpretRange, self.ShowVariable,
63 'smk [format: "smk 398", "smk 398,399 (super-master-key labelling trigger menu, format like for run ranges)]', ""),
64 "trigkeys": ("trigk(eys)", "trigkeys", self.InterpretRange, self.ShowVariable,
65 'trigk(eys) [format: "tkeys" (show all trigger keys of run: SMK, L1 and HLT prescale keys)]', ""),
66 "release": ("rel(ease)", "release", self.InterpretString, self.ShowWithArg,
67 'rel(ease) [format: "release 15.1.*" ',""),
68 "projectTag": ("ptag", "projecttag",self.InterpretString, self.ShowVariable,
69 'ptag [format: "ptag data08_cos,data08_cosmag,data09_cos", "ptag data08_cos*,data09_cos" (note: the projectTag in dataset name / denoted "filenamtTag" in COOL)]',"data0*,data1*,data2*"),
70 "partition": ("p(artition)", "partition", self.InterpretString, self.ShowVariable,
71 'p(artition) [format: "partition ATLAS"]', "ATLAS"),
72 "readyforphysics": ("ready(forphysics)", "readyforphysics", self.InterpretString, self.ShowVariable,
73 'ready(forphysics) [format: "readyforphysics T(rue)"]', ""),
74 "db": ("db", "db", self.InterpretString, self.ShowVariable,
75 'db [format: "db <DB>, where <DB> is either DATA, MC, COMP200, CONDBR2, or OFLP200',""),
76 "ctag": ("ctag", "ctag", self.InterpretString, self.ShowVariable,
77 'ctag [format: "ctag COMCOND-HLTC-001-00" ',""),
78 "streams": ("st(reams)", "streams", self.InterpretStreams, self.ShowWithArg,
79 'st(reams) [format: "stream RPCwBeam,TGCwBeam", "stream physics*" ',""),
80 "dq": ("dq", "dq", self.InterpretDQ, self.ShowDQ,
81 'dq [format: "dq <FLAG> <status>", where the data quality status is "g(reen)", "y(ellow)", "r(ed)", "u(known)", example: dq PIXB y+ (means yellow or green status)]', ""),
82 "trigger": ("tr(igger)", "trigger", self.InterpretString, self.ShowWithArg,
83 'tr(igger) [format: "trigger *Electron*" ',""),
84 "lumi": ("lu(minosity)","luminosity", self.InterpretWithTwoArgs, self.ShowWithArg,
85 'lu(minosity) [format: "lumi FOLDER", default: LBLESTOFL]" ',""),
86 "olc": ("olc", "olc", self.InterpretWithTwoArgs, self.ShowWithArg,
87 'olc [format: "olc" (OLC = Online Luminosity Calculator)]" ',""),
88 "bs": ("bs", "beamspot", self.InterpretString, self.ShowWithArg,
89 'bs [format: "bs"]" ',""),
90 "bpm": ("bpm", "bpm", self.InterpretString, self.ShowVariable,
91 'bpm [format: "show bpm"]" ',""),
92 "datasets": ("da(tasets)", "datasets", self.InterpretString, self.ShowWithArg,
93 'da(tasets) [format: show datasets *NTUP*"]" ',""),
94 "ami": ("ami", "ami", self.InterpretString, self.ShowVariable,
95 'ami [format: show ami"]" ',""),
96 "larcond": ("lar(cond)", "larcond", self.InterpretWithTwoArgs, self.ShowVariable,
97 'lar(cond) [format: larcond nsamples 7 / show larcond"]" ',""),
98 "lhc": ("lhc", "lhc", self.InterpretWithTwoArgs, self.ShowVariable,
99 'lhc [format: lhc fill 7 / show lhc"]" ',""),
100 "trigrates": ("trigr(ates)", "trigrates", self.InterpretString, self.ShowWithArg,
101 'trigr(ates) [format: sh trigrates L1_EM*"]" ',""),
102 "dqsumgrl": ("dqsumgrl", "dqsumgrl", self.InterpretString, self.ShowVariable,
103 'dqsumgrl [format: "dqsumgrl PHYS_StandardGRL_All_Good_25ns", Define tolerable/intolerable defects for DQ summary relative to GRL or other virtual defect, default is PHYS_StandardGRL_All_Good_25ns]', "PHYS_StandardGRL_All_Good_25ns"),
104 "cosmics": ("cos(mics)", "cosmics", self.InterpretString, self.ShowVariable,
105 'cos(mics) [format: only available as "show" option]', ""),
106 "heavyions": ("heavy(ions)", "heavyions", self.InterpretString, self.ShowVariable,
107 'heavy(ions) [format: only available as "show" option]', ""),
108 "logictag": ("logictag", "logictag", self.InterpretString, self.ShowVariable,
109 'logictag [format: "logictag "HEAD", Define logic tag for defect database used for DQ summary relative to GRL or other virtual defect, default is "HEAD"]', "HEAD"),
110 "defecttag": ("defecttag", "defecttag", self.InterpretString, self.ShowVariable,
111 'defecttag [format: "defecttag "HEAD", Define defect tag for defect database used for DQ summary relative to GRL or other virtual defect, default is "HEAD"]', "HEAD") }
112
113
114
115 (self.dName, self.NotInAll, self.vetoedbits) = InitDetectorMaskDecoder(lhcRun=3)
116