Belle II Software  release-08-01-10
constants.py
1 
8 
9 from enum import Enum
10 
11 
12 class RunTypes(Enum):
13  """Enum of possible run types"""
14 
15  beam = "beam"
16 
17  cosmic = "cosmic"
18 
19 
21  """Enum of possible software trigger modes"""
22 
23  monitor = "monitor"
24 
25  filter = "filter"
26 
27 
28 class Location(Enum):
29  """Enum of possible run locations"""
30 
31  hlt = "hlt"
32 
33  expressreco = "expressreco"
34 
35 
36 class DQMModes(Enum):
37  """Split between DQM modules that need to run on all events and on the filtered ones"""
38 
39  all_events = "all_events"
40 
41  before_filter = "before_filter"
42 
43  filtered = "filtered"
44 
45  dont_care = "dont_care"
46 
47 
48 
49 ALWAYS_SAVE_OBJECTS = ["EventMetaData", "RawFTSWs", "ROIpayload", "SoftwareTriggerResult", "SoftwareTriggerVariables",
50  "TRGSummary"]
51 
52 
53 RAWDATA_OBJECTS = [
54  "RawCDCs",
55  "RawSVDs",
56  "RawPXDs",
57  "RawTOPs",
58  "RawARICHs",
59  "RawKLMs",
60  "RawECLs",
61  "RawTRGs",
62  "ROIs",
63  "OnlineEventT0s"]
64 
65 
66 PROCESSED_OBJECTS = ['Tracks', 'TrackFitResults',
67  'SVDClusters', 'PXDClusters',
68  'CDCHits', 'TOPDigits',
69  'ARICHHits', 'ECLClusters',
70  'KLMHit2ds', 'SoftwareTriggerResult']
71 
72 
73 HLT_INPUT_OBJECTS = RAWDATA_OBJECTS + ["EventMetaData", "RawFTSWs"]
74 HLT_INPUT_OBJECTS.remove("ROIs")
75 
76 
77 EXPRESSRECO_INPUT_OBJECTS = RAWDATA_OBJECTS + ALWAYS_SAVE_OBJECTS
78 
79 # Detectors to be included in hlt
80 DEFAULT_HLT_COMPONENTS = ["CDC", "SVD", "ECL", "TOP", "ARICH", "KLM", "TRG"]
81 
82 # Detectors to be included in expressreco
83 DEFAULT_EXPRESSRECO_COMPONENTS = DEFAULT_HLT_COMPONENTS + ["PXD"]
84 
85 
86 DEFAULT_DB_FILE_LOCATION = "/cvmfs/basf2.daqnet.kek.jp/conditions"