ATLAS Offline Software
L1CTPFiles.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 const std::map<TrigConf::L1CTPFiles::MuctpiAccess, std::string> TrigConf::L1CTPFiles::s_keyMap = {
8  { RoiMaskA, "roimasking_lut_A" },
9  { RoiMaskC, "roimasking_lut_C" },
10  { PtLutBarrel, "pt_lut_BA" },
11  { PtLutEndcap, "pt_lut_EF" }
12 };
13 
15  for(auto x : s_keyMap) {
16  m_muctpi[x.second];
17  }
22 }
23 
24 void
26 {
27  std::cout << "CTP Files (" << (m_hasCompleteCtpData? "complete" : "incomplete") << ")" << std::endl;
28  std::cout << " LUT: " << m_Ctpcore_LUT.size() << std::endl;
29  std::cout << " CAM: " << m_Ctpcore_CAM.size() << std::endl;
30  std::cout << " SMX: " << m_Ctpcore_SMX.size() << std::endl;
31  std::cout << " CTPIN Mon Sel 7: " << m_Ctpin_MonSelector_Slot7.size() << std::endl;
32  std::cout << " CTPIN Mon Sel 8: " << m_Ctpin_MonSelector_Slot8.size() << std::endl;
33  std::cout << " CTPIN Mon Sel 9: " << m_Ctpin_MonSelector_Slot9.size() << std::endl;
34  std::cout << " CTPIN Mon Dec 7: " << m_Ctpin_MonDecoder_Slot7.size() << std::endl;
35  std::cout << " CTPIN Mon Dec 8: " << m_Ctpin_MonDecoder_Slot8.size() << std::endl;
36  std::cout << " CTPIN Mon Dec 9: " << m_Ctpin_MonDecoder_Slot9.size() << std::endl;
37  std::cout << " CTPMON Mon Sel: " << m_Ctpmon_MonSelector.size() << std::endl;
38  std::cout << " CTPMON Mon Dec: " << m_Ctpmon_MonDecoder.size() << std::endl;
39  std::cout << " CTPMON DMX: " << m_Ctpmon_DMX.size() << std::endl;
40  std::cout << "CTP SMX (" << (m_hasCompleteSmxData? "complete" : "incomplete") << ")" << std::endl;
41  std::cout << " Output: " << m_Smx_Output.size() << std::endl;
42  std::cout << " VHDL 7: " << m_Smx_Vhdl_Slot7.size() << std::endl;
43  std::cout << " VHDL 8: " << m_Smx_Vhdl_Slot8.size() << std::endl;
44  std::cout << " VHDL 9: " << m_Smx_Vhdl_Slot9.size() << std::endl;
45  std::cout << " SVFI 7: " << m_Smx_Svfi_Slot7.size() << std::endl;
46  std::cout << " SVFI 8: " << m_Smx_Svfi_Slot8.size() << std::endl;
47  std::cout << " SVFI 9: " << m_Smx_Svfi_Slot9.size() << std::endl;
48  std::cout << "MUCTPI Files (" << (m_hasCompleteMuctpiData? "complete" : "incomplete") << ")" << std::endl;
49  std::cout << " required:" << std::endl;
50  std::cout << " RoiMask A: " << m_muctpi.at("roimasking_lut_A").size() << std::endl;
51  std::cout << " RoiMask C: " << m_muctpi.at("roimasking_lut_C").size() << std::endl;
52  std::cout << " pt Barrel: " << m_muctpi.at("pt_lut_BA").size() << std::endl;
53  std::cout << " pt EC/FW : " << m_muctpi.at("pt_lut_EF").size() << std::endl;
54  std::cout << " extra pt lut:" << std::endl;
55  for(auto x: m_muctpi_Extra_Ptlut) {
56  std::cout << " " << x.first << ": " << x.second.size() << std::endl;
57  }
58  std::cout << " nbits: " << m_muctpi_Nbits.size() << std::endl;
59  std::cout << "TMC information (" << (m_hasCompleteTmcData? "complete" : "incomplete") << ")" << std::endl;
60  std::cout << " CTPCore inputs : " << m_Tmc_CtpcoreInputs.size() << std::endl;
61  std::cout << " CTPIN counters : " << m_Tmc_CtpinCounters.size() << std::endl;
62  std::cout << " CTPMON counters : " << m_Tmc_CtpmonCounters.size() << std::endl;
63 }
64 
68 bool
70  return m_hasCompleteCtpData;
71 }
72 
73 bool
75  return m_hasCompleteSmxData;
76 }
77 
78 bool
80  return m_hasCompleteMuctpiData;
81 }
82 
83 bool
85  return m_hasCompleteTmcData;
86 }
87 
88 const std::vector<uint32_t> &
90  return m_Ctpcore_LUT;
91 }
92 
93 const std::vector<uint32_t> &
95  return m_Ctpcore_CAM;
96 }
97 
98 const std::vector<uint32_t> &
100  return m_Ctpcore_SMX;
101 }
102 
103 const std::vector<uint32_t> &
105  return m_Ctpin_MonSelector_Slot7;
106 
107 }
108 
109 const std::vector<uint32_t> &
111  return m_Ctpin_MonSelector_Slot8;
112 }
113 
114 const std::vector<uint32_t> &
116  return m_Ctpin_MonSelector_Slot9;
117 }
118 
119 const std::vector<uint32_t> &
121  return m_Ctpin_MonDecoder_Slot7;
122 }
123 
124 const std::vector<uint32_t> &
126  return m_Ctpin_MonDecoder_Slot8;
127 }
128 
129 const std::vector<uint32_t> &
131  return m_Ctpin_MonDecoder_Slot9;
132 }
133 
134 const std::vector<uint32_t> &
136  return m_Ctpmon_MonSelector;
137 }
138 
139 const std::vector<uint32_t> &
141  return m_Ctpmon_MonDecoder;
142 }
143 
144 const std::vector<uint32_t> &
146  return m_Ctpmon_DMX;
147 }
148 
149 const std::string &
151  return m_Smx_Output;
152 }
153 
154 const std::string &
156  return m_Smx_Vhdl_Slot7;
157 }
158 
159 const std::string &
161  return m_Smx_Vhdl_Slot8;
162 }
163 
164 const std::string &
166  return m_Smx_Vhdl_Slot9;
167 }
168 
169 const std::string &
171  return m_Smx_Svfi_Slot7;
172 }
173 
174 const std::string &
176  return m_Smx_Svfi_Slot8;
177 }
178 
179 const std::string &
181  return m_Smx_Svfi_Slot9;
182 }
183 
184 const std::vector<uint32_t> &
186  return m_muctpi.at(s_keyMap.at(key));
187 }
188 
189 const std::vector<uint32_t> &
190 TrigConf::L1CTPFiles::muctpi_Extra_Ptlut(const std::string & sector) const {
191  return m_muctpi_Extra_Ptlut.at(sector);
192 }
193 
194 const std::vector<uint32_t> &
196  return m_muctpi_Nbits;
197 }
198 
199 const std::vector<TrigConf::L1CTPFiles::CTPCoreInput> &
201  return m_Tmc_CtpcoreInputs;
202 }
203 
204 const std::vector<TrigConf::L1CTPFiles::CTPInCounter> &
206  return m_Tmc_CtpinCounters;
207 }
208 
209 const std::vector<TrigConf::L1CTPFiles::CTPMonCounter> &
211  return m_Tmc_CtpmonCounters;
212 }
213 
214 
218 void
220  m_hasCompleteCtpData = flag;
221 }
222 
223 void
225  m_hasCompleteSmxData = flag;
226 }
227 
228 void
230  m_hasCompleteMuctpiData = flag;
231 }
232 
233 void
235  m_hasCompleteTmcData = flag;
236 }
237 
238 void
240  m_Ctpcore_LUT = std::move(data);
241 }
242 
243 void
245  m_Ctpcore_CAM = std::move(data);
246 }
247 
248 void
250  m_Ctpcore_SMX = std::move(data);
251 }
252 
253 void
255  m_Ctpin_MonSelector_Slot7 = std::move(data);
256 }
257 
258 void
260  m_Ctpin_MonSelector_Slot8 = std::move(data);
261 }
262 
263 void
265  m_Ctpin_MonSelector_Slot9 = std::move(data);
266 }
267 
268 void
270  m_Ctpin_MonDecoder_Slot7 = std::move(data);
271 }
272 
273 void
275  m_Ctpin_MonDecoder_Slot8 = std::move(data);
276 }
277 
278 void
280  m_Ctpin_MonDecoder_Slot9 = std::move(data);
281 }
282 
283 void
285  m_Ctpmon_MonSelector = std::move(data);
286 }
287 
288 void
290  m_Ctpmon_MonDecoder = std::move(data);
291 }
292 
293 void
295  m_Ctpmon_DMX = std::move(data);
296 }
297 
298 void
300  m_Smx_Output = data;
301 }
302 
303 void
305  m_Smx_Vhdl_Slot7 = data;
306 }
307 
308 void
310  m_Smx_Vhdl_Slot8 = data;
311 }
312 
313 void
315  m_Smx_Vhdl_Slot9 = data;
316 }
317 
318 void
320  m_Smx_Svfi_Slot7 = data;
321 }
322 
323 void
325  m_Smx_Svfi_Slot8 = data;
326 }
327 
328 void
330  m_Smx_Svfi_Slot9 = data;
331 }
332 
333 void
335  m_muctpi[s_keyMap.at(key)] = std::move(data);
336 }
337 
338 void
339 TrigConf::L1CTPFiles::set_Muctpi_Extra_Ptlut(const std::string & key, std::vector<uint32_t> data) {
340  m_muctpi_Extra_Ptlut[key] = std::move(data);
341 }
342 
343 void
345  m_muctpi_Nbits = std::move(data);
346 }
347 
348 void
349 TrigConf::L1CTPFiles::set_Tmc_CtpcoreInputs(std::vector<TrigConf::L1CTPFiles::CTPCoreInput> data) {
350  m_Tmc_CtpcoreInputs = std::move(data);
351 }
352 
353 void
354 TrigConf::L1CTPFiles::set_Tmc_CtpcoreCTPXInputs(std::vector<TrigConf::L1CTPFiles::CTPCoreCTPXInput> data) {
355  m_Tmc_CtpcoreCTPXInputs = std::move(data);
356 }
357 
358 void
359 TrigConf::L1CTPFiles::set_Tmc_CtpinCounters(std::vector<TrigConf::L1CTPFiles::CTPInCounter> data) {
360  m_Tmc_CtpinCounters = std::move(data);
361 }
362 
363 void
364 TrigConf::L1CTPFiles::set_Tmc_CtpmonCounters(std::vector<TrigConf::L1CTPFiles::CTPMonCounter> data) {
365  m_Tmc_CtpmonCounters = std::move(data);
366 }
367 
368 void
370  m_Tmc = std::move(data);
371 }
TrigConf::L1CTPFiles::ctpmon_DMX
const std::vector< uint32_t > & ctpmon_DMX() const
Definition: L1CTPFiles.cxx:145
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
TrigConf::L1CTPFiles::smx_Svfi_Slot9
const std::string & smx_Svfi_Slot9() const
Definition: L1CTPFiles.cxx:180
TrigConf::L1CTPFiles::tmc_CtpinCounters
const std::vector< TrigConf::L1CTPFiles::CTPInCounter > & tmc_CtpinCounters() const
Definition: L1CTPFiles.cxx:205
TrigConf::L1CTPFiles::set_Ctpin_MonSelector_Slot7
void set_Ctpin_MonSelector_Slot7(std::vector< uint32_t > data)
Definition: L1CTPFiles.cxx:254
TrigConf::L1CTPFiles::set_Muctpi_Nbits
void set_Muctpi_Nbits(std::vector< uint32_t > data)
Definition: L1CTPFiles.cxx:344
TrigConf::L1CTPFiles::set_Smx_Svfi_Slot7
void set_Smx_Svfi_Slot7(const std::string &data)
Definition: L1CTPFiles.cxx:319
TrigConf::L1CTPFiles::set_Muctpi
void set_Muctpi(MuctpiAccess key, std::vector< uint32_t > data)
Definition: L1CTPFiles.cxx:334
TrigConf::L1CTPFiles::smx_Vhdl_Slot8
const std::string & smx_Vhdl_Slot8() const
Definition: L1CTPFiles.cxx:160
TrigConf::L1CTPFiles::set_Smx_Vhdl_Slot9
void set_Smx_Vhdl_Slot9(const std::string &data)
Definition: L1CTPFiles.cxx:314
TrigConf::L1CTPFiles::set_Tmc_CtpinCounters
void set_Tmc_CtpinCounters(std::vector< TrigConf::L1CTPFiles::CTPInCounter > data)
Definition: L1CTPFiles.cxx:359
TrigConf::L1CTPFiles::smx_Svfi_Slot8
const std::string & smx_Svfi_Slot8() const
Definition: L1CTPFiles.cxx:175
TrigConf::L1CTPFiles::s_keyMap
static const std::map< MuctpiAccess, std::string > s_keyMap
Definition: L1CTPFiles.h:48
TrigConf::L1CTPFiles::L1CTPFiles
L1CTPFiles()
Constructor.
Definition: L1CTPFiles.cxx:14
TrigConf::L1CTPFiles::set_Tmc_Data
void set_Tmc_Data(DataStructure data)
Definition: L1CTPFiles.cxx:369
TrigConf::L1CTPFiles::tmc_CtpcoreInputs
const std::vector< TrigConf::L1CTPFiles::CTPCoreInput > & tmc_CtpcoreInputs() const
Definition: L1CTPFiles.cxx:200
TrigConf::L1CTPFiles::ctpmon_MonSelector
const std::vector< uint32_t > & ctpmon_MonSelector() const
Definition: L1CTPFiles.cxx:135
x
#define x
TrigConf::L1CTPFiles::ctpin_MonSelector_Slot8
const std::vector< uint32_t > & ctpin_MonSelector_Slot8() const
Definition: L1CTPFiles.cxx:110
TrigConf::L1CTPFiles::set_HasCompleteTmcData
void set_HasCompleteTmcData(bool flag)
Definition: L1CTPFiles.cxx:234
TrigConf::L1CTPFiles::PtLutBarrel
@ PtLutBarrel
Definition: L1CTPFiles.h:47
TrigConf::L1CTPFiles::smx_Vhdl_Slot7
const std::string & smx_Vhdl_Slot7() const
Definition: L1CTPFiles.cxx:155
TrigConf::L1CTPFiles::ctpin_MonDecoder_Slot9
const std::vector< uint32_t > & ctpin_MonDecoder_Slot9() const
Definition: L1CTPFiles.cxx:130
TrigConf::L1CTPFiles::set_Smx_Vhdl_Slot7
void set_Smx_Vhdl_Slot7(const std::string &data)
Definition: L1CTPFiles.cxx:304
TrigConf::L1CTPFiles::set_Smx_Svfi_Slot9
void set_Smx_Svfi_Slot9(const std::string &data)
Definition: L1CTPFiles.cxx:329
TrigConf::L1CTPFiles::ctpin_MonDecoder_Slot8
const std::vector< uint32_t > & ctpin_MonDecoder_Slot8() const
Definition: L1CTPFiles.cxx:125
TrigConf::L1CTPFiles::m_muctpi
std::map< std::string, std::vector< uint32_t > > m_muctpi
L1 Muon files.
Definition: L1CTPFiles.h:239
TrigConf::L1CTPFiles::set_Ctpcore_LUT
void set_Ctpcore_LUT(std::vector< uint32_t > data)
Definition: L1CTPFiles.cxx:239
TrigConf::L1CTPFiles::muctpiRoi
const std::vector< uint32_t > & muctpiRoi(MuctpiAccess key) const
Definition: L1CTPFiles.cxx:185
TrigConf::L1CTPFiles::ctpcore_SMX
const std::vector< uint32_t > & ctpcore_SMX() const
Definition: L1CTPFiles.cxx:99
TrigConf::L1CTPFiles::ctpmon_MonDecoder
const std::vector< uint32_t > & ctpmon_MonDecoder() const
Definition: L1CTPFiles.cxx:140
TrigConf::L1CTPFiles::set_Ctpcore_CAM
void set_Ctpcore_CAM(std::vector< uint32_t > data)
Definition: L1CTPFiles.cxx:244
TrigConf::L1CTPFiles::ctpcore_LUT
const std::vector< uint32_t > & ctpcore_LUT() const
Definition: L1CTPFiles.cxx:89
TrigConf::L1CTPFiles::set_HasCompleteMuctpiData
void set_HasCompleteMuctpiData(bool flag)
Definition: L1CTPFiles.cxx:229
master.flag
bool flag
Definition: master.py:29
TrigConf::L1CTPFiles::ctpin_MonDecoder_Slot7
const std::vector< uint32_t > & ctpin_MonDecoder_Slot7() const
Definition: L1CTPFiles.cxx:120
TrigConf::L1CTPFiles::ctpcore_CAM
const std::vector< uint32_t > & ctpcore_CAM() const
Definition: L1CTPFiles.cxx:94
TrigConf::L1CTPFiles::ctpin_MonSelector_Slot9
const std::vector< uint32_t > & ctpin_MonSelector_Slot9() const
Definition: L1CTPFiles.cxx:115
TrigConf::L1CTPFiles::MuctpiAccess
MuctpiAccess
Definition: L1CTPFiles.h:47
TrigConf::L1CTPFiles::smx_Svfi_Slot7
const std::string & smx_Svfi_Slot7() const
Definition: L1CTPFiles.cxx:170
TrigConf::L1CTPFiles::set_Ctpcore_SMX
void set_Ctpcore_SMX(std::vector< uint32_t > data)
Definition: L1CTPFiles.cxx:249
TrigConf::L1CTPFiles::RoiMaskC
@ RoiMaskC
Definition: L1CTPFiles.h:47
TrigConf::L1CTPFiles::set_Ctpmon_MonSelector
void set_Ctpmon_MonSelector(std::vector< uint32_t > data)
Definition: L1CTPFiles.cxx:284
TrigConf::L1CTPFiles::set_Ctpmon_DMX
void set_Ctpmon_DMX(std::vector< uint32_t > data)
Definition: L1CTPFiles.cxx:294
TrigConf::L1CTPFiles::set_Tmc_CtpmonCounters
void set_Tmc_CtpmonCounters(std::vector< TrigConf::L1CTPFiles::CTPMonCounter > data)
Definition: L1CTPFiles.cxx:364
TrigConf::L1CTPFiles::hasCompleteSmxData
bool hasCompleteSmxData() const
Definition: L1CTPFiles.cxx:74
TrigConf::L1CTPFiles::set_Ctpin_MonDecoder_Slot7
void set_Ctpin_MonDecoder_Slot7(std::vector< uint32_t > data)
Definition: L1CTPFiles.cxx:269
TrigConf::L1CTPFiles::set_Muctpi_Extra_Ptlut
void set_Muctpi_Extra_Ptlut(const std::string &key, std::vector< uint32_t > data)
Definition: L1CTPFiles.cxx:339
TrigConf::L1CTPFiles::set_Smx_Vhdl_Slot8
void set_Smx_Vhdl_Slot8(const std::string &data)
Definition: L1CTPFiles.cxx:309
TrigConf::L1CTPFiles::PtLutEndcap
@ PtLutEndcap
Definition: L1CTPFiles.h:47
TrigConf::DataStructure
Base class for Trigger configuration data and wrapper around underlying representation.
Definition: DataStructure.h:37
TrigConf::L1CTPFiles::tmc_CtpmonCounters
const std::vector< TrigConf::L1CTPFiles::CTPMonCounter > & tmc_CtpmonCounters() const
Definition: L1CTPFiles.cxx:210
TrigConf::L1CTPFiles::set_Smx_Svfi_Slot8
void set_Smx_Svfi_Slot8(const std::string &data)
Definition: L1CTPFiles.cxx:324
TrigConf::L1CTPFiles::set_Tmc_CtpcoreInputs
void set_Tmc_CtpcoreInputs(std::vector< TrigConf::L1CTPFiles::CTPCoreInput > data)
Definition: L1CTPFiles.cxx:349
TrigConf::L1CTPFiles::set_Ctpin_MonSelector_Slot9
void set_Ctpin_MonSelector_Slot9(std::vector< uint32_t > data)
Definition: L1CTPFiles.cxx:264
TrigConf::L1CTPFiles::muctpi_Extra_Ptlut
const std::vector< uint32_t > & muctpi_Extra_Ptlut(const std::string &sector) const
Definition: L1CTPFiles.cxx:190
TrigConf::L1CTPFiles::hasCompleteMuctpiData
bool hasCompleteMuctpiData() const
Definition: L1CTPFiles.cxx:79
TrigConf::L1CTPFiles::set_Smx_Output
void set_Smx_Output(const std::string &data)
Definition: L1CTPFiles.cxx:299
TrigConf::L1CTPFiles::set_Ctpin_MonDecoder_Slot8
void set_Ctpin_MonDecoder_Slot8(std::vector< uint32_t > data)
Definition: L1CTPFiles.cxx:274
TrigConf::L1CTPFiles::muctpi_Nbits
const std::vector< uint32_t > & muctpi_Nbits() const
Definition: L1CTPFiles.cxx:195
TrigConf::L1CTPFiles::set_Tmc_CtpcoreCTPXInputs
void set_Tmc_CtpcoreCTPXInputs(std::vector< TrigConf::L1CTPFiles::CTPCoreCTPXInput > data)
Definition: L1CTPFiles.cxx:354
TrigConf::L1CTPFiles::smx_Output
const std::string & smx_Output() const
Definition: L1CTPFiles.cxx:150
TrigConf::L1CTPFiles::set_Ctpin_MonSelector_Slot8
void set_Ctpin_MonSelector_Slot8(std::vector< uint32_t > data)
Definition: L1CTPFiles.cxx:259
L1CTPFiles.h
TrigConf::L1CTPFiles::smx_Vhdl_Slot9
const std::string & smx_Vhdl_Slot9() const
Definition: L1CTPFiles.cxx:165
TrigConf::L1CTPFiles::ctpin_MonSelector_Slot7
const std::vector< uint32_t > & ctpin_MonSelector_Slot7() const
Definition: L1CTPFiles.cxx:104
TrigConf::L1CTPFiles::set_Ctpmon_MonDecoder
void set_Ctpmon_MonDecoder(std::vector< uint32_t > data)
Definition: L1CTPFiles.cxx:289
TrigConf::L1CTPFiles::hasCompleteTmcData
bool hasCompleteTmcData() const
Definition: L1CTPFiles.cxx:84
TrigConf::L1CTPFiles::set_HasCompleteSmxData
void set_HasCompleteSmxData(bool flag)
Definition: L1CTPFiles.cxx:224
TrigConf::L1CTPFiles::hasCompleteCtpData
bool hasCompleteCtpData() const
Accessors to the various CTP data.
Definition: L1CTPFiles.cxx:69
TrigConf::L1CTPFiles::print
void print() const
Definition: L1CTPFiles.cxx:25
TrigConf::L1CTPFiles::set_HasCompleteCtpData
void set_HasCompleteCtpData(bool flag)
Setters of the various CTP data.
Definition: L1CTPFiles.cxx:219
TrigConf::L1CTPFiles::set_Ctpin_MonDecoder_Slot9
void set_Ctpin_MonDecoder_Slot9(std::vector< uint32_t > data)
Definition: L1CTPFiles.cxx:279
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37
TrigConf::L1CTPFiles::RoiMaskA
@ RoiMaskA
Definition: L1CTPFiles.h:47