Belle II Software  release-05-01-25
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  dont_care = "dont_care"
38 
39 
40 DOOM_NCDCHITSMAX = 6000
41 DOOM_NSVDSHAPERDIGITSMAX = 70000
42 
43 
44 ALWAYS_SAVE_OBJECTS = ["EventMetaData", "RawFTSWs", "ROIpayload", "SoftwareTriggerResult", "SoftwareTriggerVariables",
45  "TRGSummary"]
46 
47 
48 RAWDATA_OBJECTS = ["RawCDCs", "RawSVDs", "RawPXDs", "RawTOPs", "RawARICHs", "RawKLMs", "RawECLs", "RawTRGs", "ROIs"]
49 
50 
51 PROCESSED_OBJECTS = ['Tracks', 'TrackFitResults',
52  'SVDClusters', 'PXDClusters',
53  'CDCHits', 'TOPDigits',
54  'ARICHHits', 'ECLClusters',
55  'BKLMHit1ds', 'BKLMHit2ds',
56  'EKLMHit2ds', 'SoftwareTriggerResult']
57 
58 
59 HLT_INPUT_OBJECTS = RAWDATA_OBJECTS + ["EventMetaData", "RawFTSWs"]
60 HLT_INPUT_OBJECTS.remove("ROIs")
61 
62 
63 EXPRESSRECO_INPUT_OBJECTS = RAWDATA_OBJECTS + ALWAYS_SAVE_OBJECTS
64 
65 # Detectors to be included in hlt
66 DEFAULT_HLT_COMPONENTS = ["CDC", "SVD", "ECL", "TOP", "ARICH", "KLM", "TRG"]
67 
68 # Detectors to be included in expressreco
69 DEFAULT_EXPRESSRECO_COMPONENTS = DEFAULT_HLT_COMPONENTS + ["PXD"]
70 
71 
72 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