— done getting collections. —
266 <<
" | run:" <<
runNum_ <<
"\n" << std::flush;
273 for(
int j=0;
j<2;
j++)
411 typedef std::vector<L1MuDTTrackCand> L1MuDTTrackCandCollection;
413 dtf_trk_data_v.clear(); dtf_trk_emul_v.clear();
415 L1MuDTTrackCandCollection
const *dttc = dtf_trk_data_->
getContainer();
416 for(L1MuDTTrackCandCollection::const_iterator it=dttc->begin();
417 it!=dttc->end(); it++)
421 L1MuDTTrackCandCollection
const *dttc = dtf_trk_emul_->
getContainer();
422 for(L1MuDTTrackCandCollection::const_iterator it=dttc->begin();
423 it!=dttc->end(); it++)
426 dtf_trk_data =&dtf_trk_data_v;
427 dtf_trk_emul =&dtf_trk_emul_v;
468 gmt_can_data_vec.clear(); gmt_can_emul_vec.clear();
469 gmt_rdt_data_vec.clear(); gmt_rdt_emul_vec.clear();
471 typedef std::vector<L1MuGMTReadoutRecord>::const_iterator GmtRrIt;
473 std::vector<L1MuGMTReadoutRecord> gmt_rdt_data_bx = gmt_rdt_data_->
getRecords();
474 for(GmtRrIt igmtrr=gmt_rdt_data_bx.begin(); igmtrr!=gmt_rdt_data_bx.end(); igmtrr++) {
476 typedef std::vector<L1MuGMTExtendedCand>::const_iterator GmtECIt;
477 std::vector<L1MuGMTExtendedCand> gmc;
478 gmc = igmtrr->getGMTCands();
479 for(GmtECIt iter1=gmc.begin(); iter1!=gmc.end(); iter1++) {
481 cand.setPhiValue(iter1->phiValue());
482 cand.setEtaValue(iter1->etaValue());
483 cand.setPtValue (iter1->ptValue ());
484 gmt_can_data_vec.push_back(
cand);
487 typedef L1MuRegionalCandCollection::const_iterator GmtRCIt;
490 rmc = igmtrr->getDTBXCands();
491 gmt_rdt_data_vec.insert(gmt_rdt_data_vec.end(),rmc.begin(),rmc.end());
493 rmc = igmtrr->getCSCCands();
494 gmt_rdt_data_vec.insert(gmt_rdt_data_vec.end(),rmc.begin(),rmc.end());
496 rmc = igmtrr->getBrlRPCCands();
497 gmt_rdt_data_vec.insert(gmt_rdt_data_vec.end(),rmc.begin(),rmc.end());
499 rmc = igmtrr->getFwdRPCCands();
500 gmt_rdt_data_vec.insert(gmt_rdt_data_vec.end(),rmc.begin(),rmc.end());
503 std::vector<L1MuGMTReadoutRecord> gmt_rdt_emul_bx = gmt_rdt_emul_->
getRecords();
504 for(GmtRrIt igmtrr=gmt_rdt_emul_bx.begin(); igmtrr!=gmt_rdt_emul_bx.end(); igmtrr++) {
506 typedef std::vector<L1MuGMTExtendedCand>::const_iterator GmtECIt;
507 std::vector<L1MuGMTExtendedCand> gmc;
508 gmc = igmtrr->getGMTCands();
509 for(GmtECIt iter1=gmc.begin(); iter1!=gmc.end(); iter1++) {
510 gmt_can_emul_vec.push_back(
L1MuGMTCand(iter1->getDataWord(),iter1->bx()));
513 typedef L1MuRegionalCandCollection::const_iterator GmtRCIt;
516 rmc = igmtrr->getDTBXCands();
517 gmt_rdt_emul_vec.insert(gmt_rdt_emul_vec.end(),rmc.begin(),rmc.end());
519 rmc = igmtrr->getCSCCands();
520 gmt_rdt_emul_vec.insert(gmt_rdt_emul_vec.end(),rmc.begin(),rmc.end());
522 rmc = igmtrr->getBrlRPCCands();
523 gmt_rdt_emul_vec.insert(gmt_rdt_emul_vec.end(),rmc.begin(),rmc.end());
525 rmc = igmtrr->getFwdRPCCands();
526 gmt_rdt_emul_vec.insert(gmt_rdt_emul_vec.end(),rmc.begin(),rmc.end());
529 gmt_rdt_data = &gmt_rdt_data_vec;
530 gmt_rdt_emul = &gmt_rdt_emul_vec;
531 gmt_can_data = &gmt_can_data_vec;
532 gmt_can_emul = &gmt_can_emul_vec;
537 bool isValidDE[
DEnsys][2];
538 for(
int i=0;
i<
DEnsys;
i++)
for(
int j=0;
j<2;
j++) isValidDE[
i][
j]=
false;
544 isValidDE[
GCT][0] = gct_isolaem_data .
isValid(); isValidDE[
GCT][1] =gct_isolaem_emul .
isValid();
545 isValidDE[
GCT][0]&= gct_noisoem_data .
isValid(); isValidDE[
GCT][1]&=gct_noisoem_emul .
isValid();
546 isValidDE[
GCT][0]&= gct_cenjets_data .
isValid(); isValidDE[
GCT][1]&=gct_cenjets_emul .
isValid();
547 isValidDE[
GCT][0]&= gct_forjets_data .
isValid(); isValidDE[
GCT][1]&=gct_forjets_emul .
isValid();
548 isValidDE[
GCT][0]&= gct_taujets_data .
isValid(); isValidDE[
GCT][1]&=gct_taujets_emul .
isValid();
557 isValidDE[
GCT][0] = gct_isolaem_data .
isValid();
558 isValidDE[
GCT][1] = gct_isolaem_emul .
isValid();
559 isValidDE[
GCT][0]&= gct_noisoem_data .
isValid();
560 isValidDE[
GCT][1]&= gct_noisoem_emul .
isValid();
561 isValidDE[
GCT][0]&= gct_cenjets_data .
isValid();
562 isValidDE[
GCT][1]&= gct_cenjets_emul .
isValid();
563 isValidDE[
GCT][0]&= gct_forjets_data .
isValid();
564 isValidDE[
GCT][1]&= gct_forjets_emul .
isValid();
565 isValidDE[
GCT][0]&= gct_taujets_data .
isValid();
566 isValidDE[
GCT][1]&= gct_taujets_emul .
isValid();
567 isValidDE[
GCT][0]&= gct_isotaujets_data .
isValid();
568 isValidDE[
GCT][1]&= gct_isotaujets_emul .
isValid();
569 isValidDE[
GCT][0]&= gct_etmiss_data .
isValid();
570 isValidDE[
GCT][1]&= gct_etmiss_emul .
isValid();
571 isValidDE[
GCT][0]&= gct_ettota_data .
isValid();
572 isValidDE[
GCT][1]&= gct_ettota_emul .
isValid();
573 isValidDE[
GCT][0]&= gct_htmiss_data .
isValid();
574 isValidDE[
GCT][1]&= gct_htmiss_emul .
isValid();
575 isValidDE[
GCT][0]&= gct_hfring_data .
isValid();
576 isValidDE[
GCT][1]&= gct_hfring_emul .
isValid();
577 isValidDE[
GCT][0]&= gct_hfbcnt_data .
isValid();
578 isValidDE[
GCT][1]&= gct_hfbcnt_emul .
isValid();
597 for(
int j=0;
j<2;
j++) {
598 isValid[
i] &= isValidDE[
i][
j];
620 std::cout <<
"L1Comparator start processing the collections.\n" << std::flush;
623 if(
m_doSys[RCT]&&isValid[RCT]) process<L1CaloEmCollection> ( rct_em_data, rct_em_emul,
RCT,
RCTem);
624 if(
m_doSys[RCT]&&isValid[RCT]) process<L1CaloRegionCollection> ( rct_rgn_data, rct_rgn_emul,
RCT,
RCTrgn);
627 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEmCandCollection> (gct_isolaem_data, gct_isolaem_emul,
GCT,
GCTisolaem);
628 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEmCandCollection> (gct_noisoem_data, gct_noisoem_emul,
GCT,
GCTnoisoem);
629 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctJetCandCollection> (gct_cenjets_data, gct_cenjets_emul,
GCT,
GCTcenjets);
630 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctJetCandCollection> (gct_forjets_data, gct_forjets_emul,
GCT,
GCTforjets);
631 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctJetCandCollection> (gct_taujets_data, gct_taujets_emul,
GCT,
GCTtaujets);
632 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEtHadCollection> ( gct_ht_data, gct_ht_emul,
GCT,
GCTethad);
633 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEtMissCollection> ( gct_etmiss_data, gct_etmiss_emul,
GCT,
GCTetmiss);
634 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEtTotalCollection> ( gct_ettota_data , gct_ettota_emul,
GCT,
GCTettot);
635 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctHtMissCollection> ( gct_htmiss_data, gct_htmiss_emul,
GCT,
GCThtmiss);
636 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctHFRingEtSumsCollection> ( gct_hfring_data, gct_hfring_emul,
GCT,
GCThfring);
637 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctHFBitCountsCollection> ( gct_hfbcnt_data, gct_hfbcnt_emul,
GCT,
GCThfbit);
641 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEmCandCollection> (gct_isolaem_data, gct_isolaem_emul,
GCT,
GCTisolaem);
642 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEmCandCollection> (gct_noisoem_data, gct_noisoem_emul,
GCT,
GCTnoisoem);
643 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctJetCandCollection> (gct_cenjets_data, gct_cenjets_emul,
GCT,
GCTcenjets);
644 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctJetCandCollection> (gct_forjets_data, gct_forjets_emul,
GCT,
GCTforjets);
645 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctJetCandCollection> (gct_taujets_data, gct_taujets_emul,
GCT,
GCTtaujets);
646 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctJetCandCollection> (gct_isotaujets_data,gct_isotaujets_emul,
GCT,
GCTisotaujets);
647 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEtHadCollection> ( gct_ht_data, gct_ht_emul,
GCT,
GCTethad);
648 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEtMissCollection> ( gct_etmiss_data, gct_etmiss_emul,
GCT,
GCTetmiss);
649 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEtTotalCollection> ( gct_ettota_data , gct_ettota_emul,
GCT,
GCTettot);
650 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctHtMissCollection> ( gct_htmiss_data, gct_htmiss_emul,
GCT,
GCThtmiss);
651 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctHFRingEtSumsCollection> ( gct_hfring_data, gct_hfring_emul,
GCT,
GCThfring);
652 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctHFBitCountsCollection> ( gct_hfbcnt_data, gct_hfbcnt_emul,
GCT,
GCThfbit);
656 if(
m_doSys[DTP]&&isValid[DTP]) process<L1MuDTChambPhDigiCollection> ( dtp_ph_data, dtp_ph_emul,
DTP,
DTtpPh);
657 if(
m_doSys[DTP]&&isValid[DTP]) process<L1MuDTChambThDigiCollection> ( dtp_th_data, dtp_th_emul,
DTP,
DTtpTh);
659 if(
m_doSys[DTF]&&isValid[DTF]) process<L1MuRegionalCandCollection> ( dtf_trk_data, dtf_trk_emul,
DTF,
DTtftrk);
661 if(
m_doSys[RPC]&&isValid[RPC]) process<L1MuRegionalCandCollection> ( rpc_cen_data, rpc_cen_emul,
RPC,
RPCcen);
662 if(
m_doSys[RPC]&&isValid[RPC]) process<L1MuRegionalCandCollection> ( rpc_for_data, rpc_for_emul,
RPC,
RPCfor);
664 if(
m_doSys[GMT]&&isValid[GMT]) process<L1MuGMTCandCollection> ( gmt_data, gmt_emul,
GMT,
GMTmain);
665 if(
m_doSys[GMT]&&isValid[GMT]) process<L1MuRegionalCandCollection> ( gmt_rdt_data, gmt_rdt_emul,
GMT,
GMTrdt);
666 if(
m_doSys[GMT]&&isValid[GMT]) process<L1MuGMTCandCollection> ( gmt_can_data, gmt_can_emul,
GMT,
GMTcnd);
673 std::cout <<
"L1Comparator done processing all collections.\n" << std::flush;
676 std::cout <<
"[L1Comparator] sys match? << evt." << nevt_ <<
": ";
685 bool evt_match =
true;
705 std::cout <<
"\n [L1Comparator] adding empty collection to DErecord\n";
710 std::unique_ptr<L1DataEmulRecord>
record 713 std::cout <<
"\n [L1Comparator] printing DErecord" 717 <<
"):\n" << std::flush;
719 <<
"\n" << std::flush;
725 std::cout <<
"L1comparator::analize() end. " << nevt_ << std::endl;
EventNumber_t event() const
The_Container const * getContainer() const
edm::EDGetTokenT< L1GctEmCandCollection > tokenGctEmCand_nonIsoEm_[2]
edm::EDGetTokenT< LTCDigiCollection > tokenLTCDigi_[2]
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< L1GctEtHadCollection > tokenGctEtHad_[2]
edm::EDGetTokenT< L1MuRegionalCandCollection > tokenMuRegionalCandRPCb_[2]
int DEncand[dedefs::DEnsys][2]
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< L1GctJetCountsCollection > tokenGctJetCounts_[2]
edm::EDGetTokenT< L1GctEtMissCollection > tokenGctEtMiss_[2]
edm::EDGetTokenT< L1GctHFBitCountsCollection > tokenGctHFBitCounts_[2]
edm::EDGetTokenT< L1MuDTChambThContainer > tokenMuDTChambTh_[2]
edm::EDGetTokenT< L1GctJetCandCollection > tokenGctJetCand_tauJets_[2]
edm::EDGetTokenT< L1MuGMTReadoutCollection > tokenMuReadoutCand_[2]
edm::EDGetTokenT< L1GctJetCandCollection > tokenGctJetCand_isoTauJets_[2]
edm::EDGetTokenT< L1MuRegionalCandCollection > tokenMuRegionalCandRPCf_[2]
edm::EDGetTokenT< L1GctEtTotalCollection > tokenGctEtTotal_[2]
edm::EDGetTokenT< L1CaloEmCollection > tokenCaloEm_[2]
std::vector< L1MuDTChambThDigi > L1MuDTChambThDigiCollection
std::vector< L1MuRegionalCand > L1MuRegionalCandCollection
edm::EDGetTokenT< L1MuDTChambPhContainer > tokenMuDTChambPh_[2]
edm::EDGetTokenT< L1GctJetCandCollection > tokenGctJetCand_cenJets_[2]
std::vector< L1MuDTChambPhDigi > L1MuDTChambPhDigiCollection
edm::EDGetTokenT< L1GctHFRingEtSumsCollection > tokenGctHFRingEtSums_[2]
Phi_Container const * getContainer() const
edm::EDGetTokenT< L1GctJetCandCollection > tokenGctJetCand_forJets_[2]
edm::EDGetTokenT< L1GctHtMissCollection > tokenGctHtMiss_[2]
edm::EDGetTokenT< L1CaloRegionCollection > tokenCaloRegion_[2]
bool DEmatchEvt[dedefs::DEnsys]
L1DEDigiCollection m_dedigis
std::vector< L1MuGMTReadoutRecord > const & getRecords() const
edm::EDGetTokenT< L1MuDTTrackContainer > tokenMuDTTrack_[2]
edm::EDGetTokenT< L1GctEmCandCollection > tokenGctEmCand_isoEm_[2]
TrackContainer const * getContainer() const
std::vector< L1MuGMTCand > L1MuGMTCandCollection
edm::EDGetTokenT< L1MuGMTCandCollection > tokenMuGMTCand_[2]
bool m_doSys[dedefs::DEnsys]