— done getting collections. —
194 <<
" | run:" <<
runNum_ <<
"\n" << std::flush;
201 for(
int j=0;
j<2;
j++)
326 if(dtp_ph_data_.
isValid()) dtp_ph_data = dtp_ph_data_->getContainer();
327 if(dtp_ph_emul_.
isValid()) dtp_ph_emul = dtp_ph_emul_->getContainer();
328 if(dtp_th_data_.
isValid()) dtp_th_data = dtp_th_data_->getContainer();
329 if(dtp_th_emul_.
isValid()) dtp_th_emul = dtp_th_emul_->getContainer();
341 typedef std::vector<L1MuDTTrackCand> L1MuDTTrackCandCollection;
343 dtf_trk_data_v.clear(); dtf_trk_emul_v.clear();
345 L1MuDTTrackCandCollection
const *dttc = dtf_trk_data_->getContainer();
346 for(L1MuDTTrackCandCollection::const_iterator it=dttc->begin();
347 it!=dttc->end(); it++)
351 L1MuDTTrackCandCollection
const *dttc = dtf_trk_emul_->getContainer();
352 for(L1MuDTTrackCandCollection::const_iterator it=dttc->begin();
353 it!=dttc->end(); it++)
356 dtf_trk_data =&dtf_trk_data_v;
357 dtf_trk_emul =&dtf_trk_emul_v;
398 gmt_can_data_vec.clear(); gmt_can_emul_vec.clear();
399 gmt_rdt_data_vec.clear(); gmt_rdt_emul_vec.clear();
401 typedef std::vector<L1MuGMTReadoutRecord>::const_iterator GmtRrIt;
403 std::vector<L1MuGMTReadoutRecord> gmt_rdt_data_bx = gmt_rdt_data_->getRecords();
404 for(GmtRrIt igmtrr=gmt_rdt_data_bx.begin(); igmtrr!=gmt_rdt_data_bx.end(); igmtrr++) {
406 typedef std::vector<L1MuGMTExtendedCand>::const_iterator GmtECIt;
407 std::vector<L1MuGMTExtendedCand> gmc;
408 gmc = igmtrr->getGMTCands();
409 for(GmtECIt iter1=gmc.begin(); iter1!=gmc.end(); iter1++) {
410 L1MuGMTCand cand(iter1->getDataWord(),iter1->bx());
412 cand.setEtaValue(iter1->etaValue());
413 cand.setPtValue (iter1->ptValue ());
414 gmt_can_data_vec.push_back(cand);
417 typedef L1MuRegionalCandCollection::const_iterator GmtRCIt;
420 rmc = igmtrr->getDTBXCands();
421 gmt_rdt_data_vec.insert(gmt_rdt_data_vec.end(),rmc.begin(),rmc.end());
423 rmc = igmtrr->getCSCCands();
424 gmt_rdt_data_vec.insert(gmt_rdt_data_vec.end(),rmc.begin(),rmc.end());
426 rmc = igmtrr->getBrlRPCCands();
427 gmt_rdt_data_vec.insert(gmt_rdt_data_vec.end(),rmc.begin(),rmc.end());
429 rmc = igmtrr->getFwdRPCCands();
430 gmt_rdt_data_vec.insert(gmt_rdt_data_vec.end(),rmc.begin(),rmc.end());
433 std::vector<L1MuGMTReadoutRecord> gmt_rdt_emul_bx = gmt_rdt_emul_->getRecords();
434 for(GmtRrIt igmtrr=gmt_rdt_emul_bx.begin(); igmtrr!=gmt_rdt_emul_bx.end(); igmtrr++) {
436 typedef std::vector<L1MuGMTExtendedCand>::const_iterator GmtECIt;
437 std::vector<L1MuGMTExtendedCand> gmc;
438 gmc = igmtrr->getGMTCands();
439 for(GmtECIt iter1=gmc.begin(); iter1!=gmc.end(); iter1++) {
440 gmt_can_emul_vec.push_back(
L1MuGMTCand(iter1->getDataWord(),iter1->bx()));
443 typedef L1MuRegionalCandCollection::const_iterator GmtRCIt;
446 rmc = igmtrr->getDTBXCands();
447 gmt_rdt_emul_vec.insert(gmt_rdt_emul_vec.end(),rmc.begin(),rmc.end());
449 rmc = igmtrr->getCSCCands();
450 gmt_rdt_emul_vec.insert(gmt_rdt_emul_vec.end(),rmc.begin(),rmc.end());
452 rmc = igmtrr->getBrlRPCCands();
453 gmt_rdt_emul_vec.insert(gmt_rdt_emul_vec.end(),rmc.begin(),rmc.end());
455 rmc = igmtrr->getFwdRPCCands();
456 gmt_rdt_emul_vec.insert(gmt_rdt_emul_vec.end(),rmc.begin(),rmc.end());
459 gmt_rdt_data = &gmt_rdt_data_vec;
460 gmt_rdt_emul = &gmt_rdt_emul_vec;
461 gmt_can_data = &gmt_can_data_vec;
462 gmt_can_emul = &gmt_can_emul_vec;
467 bool isValidDE[
DEnsys][2];
468 for(
int i=0;
i<
DEnsys;
i++)
for(
int j=0;
j<2;
j++) isValidDE[
i][
j]=
false;
474 isValidDE[
GCT][0] = gct_isolaem_data .
isValid(); isValidDE[
GCT][1] = gct_isolaem_emul .
isValid();
475 isValidDE[
GCT][0]&= gct_noisoem_data .
isValid(); isValidDE[
GCT][1]&= gct_noisoem_emul .
isValid();
476 isValidDE[
GCT][0]&= gct_cenjets_data .
isValid(); isValidDE[
GCT][1]&= gct_cenjets_emul .
isValid();
477 isValidDE[
GCT][0]&= gct_forjets_data .
isValid(); isValidDE[
GCT][1]&= gct_forjets_emul .
isValid();
478 isValidDE[
GCT][0]&= gct_taujets_data .
isValid(); isValidDE[
GCT][1]&= gct_taujets_emul .
isValid();
487 isValidDE[
GCT][0] = gct_isolaem_data .
isValid();
488 isValidDE[
GCT][1] = gct_isolaem_emul .
isValid();
489 isValidDE[
GCT][0]&= gct_noisoem_data .
isValid();
490 isValidDE[
GCT][1]&= gct_noisoem_emul .
isValid();
491 isValidDE[
GCT][0]&= gct_cenjets_data .
isValid();
492 isValidDE[
GCT][1]&= gct_cenjets_emul .
isValid();
493 isValidDE[
GCT][0]&= gct_forjets_data .
isValid();
494 isValidDE[
GCT][1]&= gct_forjets_emul .
isValid();
495 isValidDE[
GCT][0]&= gct_taujets_data .
isValid();
496 isValidDE[
GCT][1]&= gct_taujets_emul .
isValid();
497 isValidDE[
GCT][0]&= gct_isotaujets_data .
isValid();
498 isValidDE[
GCT][1]&= gct_isotaujets_emul .
isValid();
499 isValidDE[
GCT][0]&= gct_etmiss_data .
isValid();
500 isValidDE[
GCT][1]&= gct_etmiss_emul .
isValid();
501 isValidDE[
GCT][0]&= gct_ettota_data .
isValid();
502 isValidDE[
GCT][1]&= gct_ettota_emul .
isValid();
503 isValidDE[
GCT][0]&= gct_htmiss_data .
isValid();
504 isValidDE[
GCT][1]&= gct_htmiss_emul .
isValid();
505 isValidDE[
GCT][0]&= gct_hfring_data .
isValid();
506 isValidDE[
GCT][1]&= gct_hfring_emul .
isValid();
507 isValidDE[
GCT][0]&= gct_hfbcnt_data .
isValid();
508 isValidDE[
GCT][1]&= gct_hfbcnt_emul .
isValid();
526 for(
int j=0;
j<2;
j++) {
527 isValid[
i] &= isValidDE[
i][
j];
549 std::cout <<
"L1Comparator start processing the collections.\n" << std::flush;
552 if(
m_doSys[RCT]&&isValid[RCT]) process<L1CaloEmCollection> ( rct_em_data, rct_em_emul,
RCT,
RCTem);
553 if(
m_doSys[RCT]&&isValid[RCT]) process<L1CaloRegionCollection> ( rct_rgn_data, rct_rgn_emul,
RCT,
RCTrgn);
556 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEmCandCollection> (gct_isolaem_data, gct_isolaem_emul,
GCT,
GCTisolaem);
557 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEmCandCollection> (gct_noisoem_data, gct_noisoem_emul,
GCT,
GCTnoisoem);
558 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctJetCandCollection> (gct_cenjets_data, gct_cenjets_emul,
GCT,
GCTcenjets);
559 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctJetCandCollection> (gct_forjets_data, gct_forjets_emul,
GCT,
GCTforjets);
560 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctJetCandCollection> (gct_taujets_data, gct_taujets_emul,
GCT,
GCTtaujets);
561 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEtHadCollection> (gct_ht_data, gct_ht_emul,
GCT,
GCTethad);
562 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEtMissCollection> (gct_etmiss_data, gct_etmiss_emul,
GCT,
GCTetmiss);
563 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEtTotalCollection> (gct_ettota_data , gct_ettota_emul,
GCT,
GCTettot);
564 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctHtMissCollection> (gct_htmiss_data, gct_htmiss_emul,
GCT,
GCThtmiss);
565 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctHFRingEtSumsCollection> (gct_hfring_data, gct_hfring_emul,
GCT,
GCThfring);
566 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctHFBitCountsCollection> (gct_hfbcnt_data, gct_hfbcnt_emul,
GCT,
GCThfbit);
570 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEmCandCollection> (gct_isolaem_data, gct_isolaem_emul,
GCT,
GCTisolaem);
571 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEmCandCollection> (gct_noisoem_data, gct_noisoem_emul,
GCT,
GCTnoisoem);
572 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctJetCandCollection> (gct_cenjets_data, gct_cenjets_emul,
GCT,
GCTcenjets);
573 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctJetCandCollection> (gct_forjets_data, gct_forjets_emul,
GCT,
GCTforjets);
574 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctJetCandCollection> (gct_taujets_data, gct_taujets_emul,
GCT,
GCTtaujets);
575 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctJetCandCollection> (gct_isotaujets_data,gct_isotaujets_emul,
GCT,
GCTisotaujets);
576 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEtHadCollection> (gct_ht_data, gct_ht_emul,
GCT,
GCTethad);
577 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEtMissCollection> (gct_etmiss_data, gct_etmiss_emul,
GCT,
GCTetmiss);
578 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEtTotalCollection> (gct_ettota_data , gct_ettota_emul,
GCT,
GCTettot);
579 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctHtMissCollection> (gct_htmiss_data, gct_htmiss_emul,
GCT,
GCThtmiss);
580 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctHFRingEtSumsCollection> (gct_hfring_data, gct_hfring_emul,
GCT,
GCThfring);
581 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctHFBitCountsCollection> (gct_hfbcnt_data, gct_hfbcnt_emul,
GCT,
GCThfbit);
584 if(
m_doSys[DTP]&&isValid[DTP]) process<L1MuDTChambPhDigiCollection> ( dtp_ph_data, dtp_ph_emul,
DTP,
DTtpPh);
585 if(
m_doSys[DTP]&&isValid[DTP]) process<L1MuDTChambThDigiCollection> ( dtp_th_data, dtp_th_emul,
DTP,
DTtpTh);
587 if(
m_doSys[DTF]&&isValid[DTF]) process<L1MuRegionalCandCollection> ( dtf_trk_data, dtf_trk_emul,
DTF,
DTtftrk);
589 if(
m_doSys[RPC]&&isValid[RPC]) process<L1MuRegionalCandCollection> ( rpc_cen_data, rpc_cen_emul,
RPC,
RPCcen);
590 if(
m_doSys[RPC]&&isValid[RPC]) process<L1MuRegionalCandCollection> ( rpc_for_data, rpc_for_emul,
RPC,
RPCfor);
592 if(
m_doSys[GMT]&&isValid[GMT]) process<L1MuGMTCandCollection> ( gmt_data, gmt_emul,
GMT,
GMTmain);
593 if(
m_doSys[GMT]&&isValid[GMT]) process<L1MuRegionalCandCollection> ( gmt_rdt_data, gmt_rdt_emul,
GMT,
GMTrdt);
594 if(
m_doSys[GMT]&&isValid[GMT]) process<L1MuGMTCandCollection> ( gmt_can_data, gmt_can_emul,
GMT,
GMTcnd);
601 std::cout <<
"L1Comparator done processing all collections.\n" << std::flush;
604 std::cout <<
"[L1Comparator] sys match? << evt." << nevt_ <<
": ";
613 bool evt_match =
true;
633 std::cout <<
"\n [L1Comparator] adding empty collection to DErecord\n";
638 std::auto_ptr<L1DataEmulRecord>
record
641 std::cout <<
"\n [L1Comparator] printing DErecord"
645 <<
"):\n" << std::flush;
647 <<
"\n" << std::flush;
653 std::cout <<
"L1comparator::analize() end. " << nevt_ << std::endl;
EventNumber_t event() const
int DEncand[dedefs::DEnsys][2]
edm::InputTag m_DEsource[dedefs::DEnsys][4]
void setPhiValue(float phiVal)
Setters for physical values.
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::vector< L1MuDTChambThDigi > L1MuDTChambThDigiCollection
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::vector< L1MuRegionalCand > L1MuRegionalCandCollection
std::vector< L1MuDTChambPhDigi > L1MuDTChambPhDigiCollection
bool DEmatchEvt[dedefs::DEnsys]
L1DEDigiCollection m_dedigis
std::vector< L1MuGMTCand > L1MuGMTCandCollection
bool m_doSys[dedefs::DEnsys]