calib
zdc
umnio
Definition at line 174 of file HcalRawToDigi.cc.
185 std::vector<HBHEDataFrame>
hbhe;
186 std::vector<HODataFrame>
ho;
187 std::vector<HFDataFrame>
hf;
188 std::vector<HcalTriggerPrimitiveDigi> htp;
189 std::vector<HcalCalibDataFrame> hc;
190 std::vector<ZDCDataFrame>
zdc;
191 std::vector<HcalTTPDigi> ttp;
192 std::vector<HOTriggerPrimitiveDigi> hotp;
194 auto report = std::make_unique<HcalUnpackerReport>();
221 colls.
umnio = &umnio;
238 if (fed.
size() == 0) {
244 }
else if (fed.
size() < 8 * 3) {
281 std::unordered_set<uint32_t> cacheForHFdup;
282 unsigned int cntHFdup = 0;
283 for (
auto& hf_digi :
hf) {
284 if (!cacheForHFdup.insert(hf_digi.id().rawId()).
second)
288 edm::LogError(
"HcalRawToDigi") <<
"Duplicated HF digis found for " << cntHFdup <<
" times" << std::endl;
293 if (addtl.second->samples() == colls.
qie10->
samples()) {
295 edm::LogWarning(
"HcalRawToDigi") <<
"QIE10 data requested to be stored in tag " <<
tag
296 <<
" is already stored in the default QIE10 collection. "
297 <<
"To avoid duplicating, remove the tag " <<
tag
298 <<
" from the saveQIE10DataTags and the value of " << addtl.second->samples()
299 <<
" from the saveQIE10DataNSamples "
300 <<
"configurables to HcalRawToDigi" << std::endl;
304 if (addtl.second->samples() == colls.
qie11->
samples()) {
306 edm::LogWarning(
"HcalRawToDigi") <<
"QIE11 data requested to be stored in tag " <<
tag
307 <<
" is already stored in the default QIE11 collection. "
308 <<
"To avoid duplicating, remove the tag " <<
tag
309 <<
" from the saveQIE11DataTags and the value of " << addtl.second->samples()
310 <<
" from the saveQIE11DataNSamples "
311 <<
"configurables to HcalRawToDigi" << std::endl;
316 auto hbhe_prod = std::make_unique<HBHEDigiCollection>();
317 auto hf_prod = std::make_unique<HFDigiCollection>();
318 auto ho_prod = std::make_unique<HODigiCollection>();
319 auto htp_prod = std::make_unique<HcalTrigPrimDigiCollection>();
320 auto hotp_prod = std::make_unique<HOTrigPrimDigiCollection>();
322 if (colls.
qie10 ==
nullptr) {
325 std::unique_ptr<QIE10DigiCollection> qie10_prod(colls.
qie10);
331 std::unique_ptr<QIE10DigiCollection> qie10ZDC_prod(colls.
qie10ZDC);
337 std::unique_ptr<QIE10DigiCollection> qie10Lasermon_prod(colls.
qie10Lasermon);
339 if (colls.
qie11 ==
nullptr) {
342 std::unique_ptr<QIE11DigiCollection> qie11_prod(colls.
qie11);
346 std::unordered_map<int, std::unique_ptr<QIE10DigiCollection>> qie10_prodAddtl;
347 std::unordered_map<int, std::unique_ptr<QIE11DigiCollection>> qie11_prodAddtl;
349 qie10_prodAddtl[orig.first] = std::unique_ptr<QIE10DigiCollection>(orig.second);
352 qie11_prodAddtl[orig.first] = std::unique_ptr<QIE11DigiCollection>(orig.second);
355 hbhe_prod->swap_contents(
hbhe);
357 hf_prod->swap_contents(
hf);
358 ho_prod->swap_contents(
ho);
359 htp_prod->swap_contents(htp);
360 hotp_prod->swap_contents(hotp);
370 hbhe_prod->
swap(filtered_hbhe);
371 ho_prod->swap(filtered_ho);
372 hf_prod->swap(filtered_hf);
373 qie10_prod->swap(filtered_qie10);
374 qie11_prod->swap(filtered_qie11);
377 for (
auto&
prod : qie10_prodAddtl) {
379 prod.second->swap(filtered_qie10);
382 for (
auto&
prod : qie11_prodAddtl) {
384 prod.second->swap(filtered_qie11);
396 qie10ZDC_prod->sort();
397 qie10Lasermon_prod->sort();
401 for (
auto&
prod : qie10_prodAddtl) {
404 for (
auto&
prod : qie11_prodAddtl) {
415 e.put(
std::move(qie10Lasermon_prod),
"LASERMON");
419 for (
auto&
prod : qie10_prodAddtl) {
424 for (
auto&
prod : qie11_prodAddtl) {
431 auto hc_prod = std::make_unique<HcalCalibDigiCollection>();
432 hc_prod->swap_contents(hc);
436 hc_prod->
swap(filtered_calib);
445 auto prod = std::make_unique<ZDCDigiCollection>();
450 prod->swap(filtered_zdc);
458 auto prod = std::make_unique<HcalTTPDigiCollection>();
459 prod->swap_contents(ttp);
467 if (colls.
umnio !=
nullptr) {
468 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, FEDRawDataCollection::FEDData(), fedUnpackList_, HcalDataFrameFilter::filter(), filter_, edm::EventSetup::getHandle(), photonIsolationHIProducer_cfi::hbhe, HcalUnpacker::Collections::hbheCont, photonIsolationHIProducer_cfi::hf, HcalUnpacker::Collections::hfCont, photonIsolationHIProducer_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_, tok_dbService_, tok_electronicsMap_, 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.