calib
zdc
umnio
Definition at line 173 of file HcalRawToDigi.cc.
186 std::vector<HBHEDataFrame>
hbhe;
187 std::vector<HODataFrame>
ho;
188 std::vector<HFDataFrame>
hf;
189 std::vector<HcalTriggerPrimitiveDigi> htp;
190 std::vector<HcalCalibDataFrame> hc;
191 std::vector<ZDCDataFrame>
zdc;
192 std::vector<HcalTTPDigi> ttp;
193 std::vector<HOTriggerPrimitiveDigi> hotp;
195 auto report = std::make_unique<HcalUnpackerReport>();
222 colls.
umnio = &umnio;
239 if (fed.
size() == 0) {
245 }
else if (fed.
size() < 8 * 3) {
282 std::unordered_set<uint32_t> cacheForHFdup;
283 unsigned int cntHFdup = 0;
284 for (
auto& hf_digi :
hf) {
285 if (!cacheForHFdup.insert(hf_digi.id().rawId()).
second)
289 edm::LogError(
"HcalRawToDigi") <<
"Duplicated HF digis found for " << cntHFdup <<
" times" << std::endl;
294 if (addtl.second->samples() == colls.
qie10->
samples()) {
296 edm::LogWarning(
"HcalRawToDigi") <<
"QIE10 data requested to be stored in tag " <<
tag
297 <<
" is already stored in the default QIE10 collection. "
298 <<
"To avoid duplicating, remove the tag " <<
tag
299 <<
" from the saveQIE10DataTags and the value of " << addtl.second->samples()
300 <<
" from the saveQIE10DataNSamples "
301 <<
"configurables to HcalRawToDigi" << std::endl;
305 if (addtl.second->samples() == colls.
qie11->
samples()) {
307 edm::LogWarning(
"HcalRawToDigi") <<
"QIE11 data requested to be stored in tag " <<
tag
308 <<
" is already stored in the default QIE11 collection. "
309 <<
"To avoid duplicating, remove the tag " <<
tag
310 <<
" from the saveQIE11DataTags and the value of " << addtl.second->samples()
311 <<
" from the saveQIE11DataNSamples "
312 <<
"configurables to HcalRawToDigi" << std::endl;
317 auto hbhe_prod = std::make_unique<HBHEDigiCollection>();
318 auto hf_prod = std::make_unique<HFDigiCollection>();
319 auto ho_prod = std::make_unique<HODigiCollection>();
320 auto htp_prod = std::make_unique<HcalTrigPrimDigiCollection>();
321 auto hotp_prod = std::make_unique<HOTrigPrimDigiCollection>();
323 if (colls.
qie10 ==
nullptr) {
326 std::unique_ptr<QIE10DigiCollection> qie10_prod(colls.
qie10);
332 std::unique_ptr<QIE10DigiCollection> qie10ZDC_prod(colls.
qie10ZDC);
338 std::unique_ptr<QIE10DigiCollection> qie10Lasermon_prod(colls.
qie10Lasermon);
340 if (colls.
qie11 ==
nullptr) {
343 std::unique_ptr<QIE11DigiCollection> qie11_prod(colls.
qie11);
347 std::unordered_map<int, std::unique_ptr<QIE10DigiCollection>> qie10_prodAddtl;
348 std::unordered_map<int, std::unique_ptr<QIE11DigiCollection>> qie11_prodAddtl;
350 qie10_prodAddtl[orig.first] = std::unique_ptr<QIE10DigiCollection>(orig.second);
353 qie11_prodAddtl[orig.first] = std::unique_ptr<QIE11DigiCollection>(orig.second);
356 hbhe_prod->swap_contents(
hbhe);
358 hf_prod->swap_contents(
hf);
359 ho_prod->swap_contents(
ho);
360 htp_prod->swap_contents(htp);
361 hotp_prod->swap_contents(hotp);
371 hbhe_prod->
swap(filtered_hbhe);
372 ho_prod->swap(filtered_ho);
373 hf_prod->swap(filtered_hf);
374 qie10_prod->swap(filtered_qie10);
375 qie11_prod->swap(filtered_qie11);
378 for (
auto&
prod : qie10_prodAddtl) {
380 prod.second->swap(filtered_qie10);
383 for (
auto&
prod : qie11_prodAddtl) {
385 prod.second->swap(filtered_qie11);
397 qie10ZDC_prod->sort();
398 qie10Lasermon_prod->sort();
402 for (
auto&
prod : qie10_prodAddtl) {
405 for (
auto&
prod : qie11_prodAddtl) {
416 e.put(
std::move(qie10Lasermon_prod),
"LASERMON");
420 for (
auto&
prod : qie10_prodAddtl) {
425 for (
auto&
prod : qie11_prodAddtl) {
432 auto hc_prod = std::make_unique<HcalCalibDigiCollection>();
433 hc_prod->swap_contents(hc);
437 hc_prod->
swap(filtered_calib);
446 auto prod = std::make_unique<ZDCDigiCollection>();
451 prod->swap(filtered_zdc);
459 auto prod = std::make_unique<HcalTTPDigiCollection>();
460 prod->swap_contents(ttp);
468 if (colls.
umnio !=
nullptr) {
469 e.put(std::make_unique<HcalUMNioDigi>(umnio));
References HcalDataFrameFilter::active(), HcalRawToDigi::Statistics::ave_calib, HcalRawToDigi::Statistics::ave_hbhe, HcalRawToDigi::Statistics::ave_hf, HcalRawToDigi::Statistics::ave_ho, HcalRawToDigi::Statistics::ave_tp, HcalRawToDigi::Statistics::ave_tpho, HcalUnpacker::Collections::calibCont, complainEmptyData_, MillePedeFileConverter_cfg::e, electronicsMapLabel_, FEDRawDataCollection::FEDData(), fedUnpackList_, HcalDataFrameFilter::filter(), filter_, edm::EventSetup::get(), get, photonIsolationHIProducer_cfi::hbhe, HcalUnpacker::Collections::hbheCont, es_hardcode_cfi::hf, HcalUnpacker::Collections::hfCont, es_hardcode_cfi::ho, HcalUnpacker::Collections::hoCont, mps_fire::i, info(), B2GTnPMonitor_cfi::item, SiStripPI::max, HcalRawToDigi::Statistics::max_calib, HcalRawToDigi::Statistics::max_hbhe, HcalRawToDigi::Statistics::max_hf, HcalRawToDigi::Statistics::max_ho, HcalRawToDigi::Statistics::max_tp, HcalRawToDigi::Statistics::max_tpho, eostools::move(), HcalRawToDigi::Statistics::n, dumpMFGeometry_cfg::prod, edm::ESHandle< T >::product(), HcalUnpacker::Collections::qie10, HcalUnpacker::Collections::qie10Addtl, HcalUnpacker::Collections::qie10Lasermon, HcalUnpacker::Collections::qie10ZDC, HcalUnpacker::Collections::qie11, HcalUnpacker::Collections::qie11Addtl, edmIntegrityCheck::report, HcalDataFrameContainer< Digi >::samples(), saveQIE10Info_, saveQIE11Info_, edm::second(), HcalDataFrameFilter::setConditions(), silent_, FEDRawData::size(), stats_, AlCaHLTBitMon_QueryRunRegistry::string, edm::SortedCollection< T, SORT >::swap(), GlobalPosition_Frontier_DevDB_cff::tag, tok_data_, HcalUnpacker::Collections::tpCont, HcalUnpacker::Collections::tphoCont, HcalUnpacker::Collections::ttp, HcalUnpacker::Collections::umnio, HcalUnpacker::unpack(), unpackCalib_, unpacker_, unpackTTP_, unpackUMNio_, unpackZDC_, hcalSimParameters_cfi::zdc, and HcalUnpacker::Collections::zdcCont.