48 """Create PEBInfoWriterTool configuration for the eventBuildType"""
51 HLT_ROB = SourceIdentifier(SubDetector.TDAQ_HLT, DataScoutingInfo.getFullHLTResultID())
54 if 'BeamSpotPEB' == eventBuildType:
57 subDets = [SubDetector.PIXEL_BARREL,
58 SubDetector.PIXEL_DISK_SIDE,
59 SubDetector.PIXEL_B_LAYER,
60 SubDetector.PIXEL_IBL,
61 SubDetector.SCT_BARREL_A_SIDE,
62 SubDetector.SCT_BARREL_C_SIDE,
63 SubDetector.SCT_ENDCAP_A_SIDE,
64 SubDetector.SCT_ENDCAP_C_SIDE,
65 SubDetector.TDAQ_CTP] )
67 elif 'MuonTrkPEB' == eventBuildType:
70 regSelDets = [
'Pixel',
'SCT',
'TRT',
'MDT',
'RPC',
'TGC',
'CSC',
'MM',
'sTGC'],
74 subDets = [SubDetector.TDAQ_CTP],
77 elif 'IDCalibPEB' == eventBuildType:
80 regSelDets = [
'Pixel',
'SCT',
'TRT'],
83 subDets = [SubDetector.TDAQ_CTP] )
85 elif 'LArPEBCalib' == eventBuildType:
88 subDets = [SubDetector.LAR_EM_BARREL_A_SIDE,
89 SubDetector.LAR_EM_BARREL_C_SIDE,
90 SubDetector.LAR_EM_ENDCAP_A_SIDE,
91 SubDetector.LAR_EM_ENDCAP_C_SIDE,
92 SubDetector.LAR_HAD_ENDCAP_A_SIDE,
93 SubDetector.LAR_HAD_ENDCAP_C_SIDE,
94 SubDetector.LAR_FCAL_A_SIDE,
95 SubDetector.LAR_FCAL_C_SIDE,
96 SubDetector.LAR_EM_BARREL_ENDCAP_A_SIDE,
97 SubDetector.LAR_EM_BARREL_ENDCAP_C_SIDE,
98 SubDetector.LAR_EM_HAD_ENDCAP_A_SIDE,
99 SubDetector.LAR_EM_HAD_ENDCAP_C_SIDE,
100 SubDetector.TDAQ_CTP] )
102 elif eventBuildType
in (
'LArPEBHLT',
'LArPEB'):
105 regSelDets = [
'Pixel',
'SCT',
'TRT',
'TTEM',
'TTHEC',
'FCALEM',
'FCALHAD'],
107 ROBs = [HLT_ROB] + LATOMESourceIDs,
108 subDets = [SubDetector.TDAQ_CTP] )
110 elif 'LATOMEPEB' == eventBuildType:
113 ROBs = LATOMESourceIDs,
114 subDets = [SubDetector.TDAQ_CTP] )
116 elif 'SCTPEB' == eventBuildType:
119 subDets = [SubDetector.SCT_BARREL_A_SIDE,
120 SubDetector.SCT_BARREL_C_SIDE,
121 SubDetector.SCT_ENDCAP_A_SIDE,
122 SubDetector.SCT_ENDCAP_C_SIDE,
123 SubDetector.TDAQ_CTP] )
125 elif 'TilePEB' == eventBuildType:
128 subDets = [SubDetector.TILECAL_LASER_CRATE,
129 SubDetector.TILECAL_BARREL_A_SIDE,
130 SubDetector.TILECAL_BARREL_C_SIDE,
131 SubDetector.TILECAL_EXT_A_SIDE,
132 SubDetector.TILECAL_EXT_C_SIDE,
133 SubDetector.TDAQ_CTP,
134 SubDetector.TDAQ_CALO_PREPROC,
135 SubDetector.TDAQ_CALO_CLUSTER_PROC_DAQ,
136 SubDetector.TDAQ_CALO_CLUSTER_PROC_ROI,
137 SubDetector.TDAQ_CALO_JET_PROC_DAQ,
138 SubDetector.TDAQ_CALO_JET_PROC_ROI
140 MatchTriggerType = [0x31, 0x32, 0x34]
if '_L1CALREQ' in name
else [] )
142 elif 'LArPEBNoise' == eventBuildType:
145 regSelDets = [
'Pixel',
'SCT',
'TRT',
'TTEM',
'TTHEC',
'FCALEM',
'FCALHAD'],
147 ROBs = [HLT_ROB] + LATOMESourceIDs,
148 subDets = [SubDetector.MUON_MMEGA_ENDCAP_A_SIDE,
149 SubDetector.MUON_MMEGA_ENDCAP_C_SIDE,
150 SubDetector.MUON_STGC_ENDCAP_A_SIDE,
151 SubDetector.MUON_STGC_ENDCAP_C_SIDE,
152 SubDetector.TDAQ_CTP] )
154 elif 'ZDCPEB' == eventBuildType:
157 subDets = [SubDetector.FORWARD_ZDC,
158 SubDetector.TDAQ_CTP],
159 MatchTriggerType = [0x69, 0x6a, 0x6c]
if '_L1CALREQ' in name
else [] )
161 elif 'AFPPEB' == eventBuildType:
164 subDets = [SubDetector.FORWARD_AFP,
165 SubDetector.TDAQ_CTP] )
167 elif 'LumiPEB' == eventBuildType:
171 subDets = [SubDetector.PIXEL_IBL,
172 SubDetector.PIXEL_BARREL,
173 SubDetector.PIXEL_DISK_SIDE,
174 SubDetector.PIXEL_B_LAYER,
175 SubDetector.SCT_BARREL_A_SIDE,
176 SubDetector.SCT_BARREL_C_SIDE,
177 SubDetector.SCT_ENDCAP_A_SIDE,
178 SubDetector.SCT_ENDCAP_C_SIDE,
179 SubDetector.PIXEL_DBM,
180 SubDetector.TDAQ_CTP] )
182 elif 'Lvl1CaloPEB' == eventBuildType:
187 subDets = [SubDetector.TDAQ_CALO_PREPROC,
188 SubDetector.TDAQ_CALO_CLUSTER_PROC_DAQ,
189 SubDetector.TDAQ_CALO_CLUSTER_PROC_ROI,
190 SubDetector.TDAQ_CALO_JET_PROC_DAQ,
191 SubDetector.TDAQ_CALO_JET_PROC_ROI,
192 SubDetector.TDAQ_CTP] )
194 elif 'DarkJetPEBTLA' == eventBuildType:
198 regSelDets = [
'Pixel',
'SCT',
'TRT',
'TTEM',
'TTHEC',
'FCALEM',
'FCALHAD',
'TILE',
'MDT',
'RPC',
'TGC',
'CSC',
'MM',
'STGC'],
200 ROBs = [SourceIdentifier(SubDetector.TDAQ_HLT,
201 DataScoutingInfo.getDataScoutingResultID(eventBuildType))],
206 elif 'EgammaPEBTLA' == eventBuildType:
210 regSelDets = [
'Pixel',
'SCT',
'TRT',
'TTEM',
'TTHEC',
'FCALEM',
'FCALHAD',
'TILE'],
212 ROBs = [SourceIdentifier(SubDetector.TDAQ_HLT,
213 DataScoutingInfo.getDataScoutingResultID(eventBuildType))],
217 elif 'FTagPEBTLA' == eventBuildType:
221 regSelDets = [
'Pixel',
'SCT'],
223 ROBs = [SourceIdentifier(SubDetector.TDAQ_HLT,
224 DataScoutingInfo.getDataScoutingResultID(eventBuildType))],
229 elif eventBuildType
in DataScoutingInfo.getAllDataScoutingIdentifiers():
233 ROBs = [SourceIdentifier(SubDetector.TDAQ_HLT,
234 DataScoutingInfo.getDataScoutingResultID(eventBuildType))] )
238 log.error(
'PEBInfoWriterTool configuration is missing for event building identifier \'%s\'', eventBuildType)