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