— done getting collections. —
201 <<
" | run:" <<
runNum_ <<
"\n" << std::flush;
208 for(
int j=0;
j<2;
j++)
300 if(dtp_ph_data_.
isValid()) dtp_ph_data = dtp_ph_data_->getContainer();
301 if(dtp_ph_emul_.
isValid()) dtp_ph_emul = dtp_ph_emul_->getContainer();
302 if(dtp_th_data_.
isValid()) dtp_th_data = dtp_th_data_->getContainer();
303 if(dtp_th_emul_.
isValid()) dtp_th_emul = dtp_th_emul_->getContainer();
315 typedef std::vector<L1MuDTTrackCand> L1MuDTTrackCandCollection;
317 dtf_trk_data_v.clear(); dtf_trk_emul_v.clear();
319 L1MuDTTrackCandCollection
const *dttc = dtf_trk_data_->getContainer();
320 for(L1MuDTTrackCandCollection::const_iterator it=dttc->begin();
321 it!=dttc->end(); it++)
325 L1MuDTTrackCandCollection
const *dttc = dtf_trk_emul_->getContainer();
326 for(L1MuDTTrackCandCollection::const_iterator it=dttc->begin();
327 it!=dttc->end(); it++)
330 dtf_trk_data =&dtf_trk_data_v;
331 dtf_trk_emul =&dtf_trk_emul_v;
372 gmt_can_data_vec.clear(); gmt_can_emul_vec.clear();
373 gmt_rdt_data_vec.clear(); gmt_rdt_emul_vec.clear();
375 typedef std::vector<L1MuGMTReadoutRecord>::const_iterator GmtRrIt;
377 std::vector<L1MuGMTReadoutRecord> gmt_rdt_data_bx = gmt_rdt_data_->getRecords();
378 for(GmtRrIt igmtrr=gmt_rdt_data_bx.begin(); igmtrr!=gmt_rdt_data_bx.end(); igmtrr++) {
380 typedef std::vector<L1MuGMTExtendedCand>::const_iterator GmtECIt;
381 std::vector<L1MuGMTExtendedCand> gmc;
382 gmc = igmtrr->getGMTCands();
383 for(GmtECIt iter1=gmc.begin(); iter1!=gmc.end(); iter1++) {
384 L1MuGMTCand cand(iter1->getDataWord(),iter1->bx());
386 cand.setEtaValue(iter1->etaValue());
387 cand.setPtValue (iter1->ptValue ());
388 gmt_can_data_vec.push_back(cand);
391 typedef L1MuRegionalCandCollection::const_iterator GmtRCIt;
394 rmc = igmtrr->getDTBXCands();
395 gmt_rdt_data_vec.insert(gmt_rdt_data_vec.end(),rmc.begin(),rmc.end());
397 rmc = igmtrr->getCSCCands();
398 gmt_rdt_data_vec.insert(gmt_rdt_data_vec.end(),rmc.begin(),rmc.end());
400 rmc = igmtrr->getBrlRPCCands();
401 gmt_rdt_data_vec.insert(gmt_rdt_data_vec.end(),rmc.begin(),rmc.end());
403 rmc = igmtrr->getFwdRPCCands();
404 gmt_rdt_data_vec.insert(gmt_rdt_data_vec.end(),rmc.begin(),rmc.end());
407 std::vector<L1MuGMTReadoutRecord> gmt_rdt_emul_bx = gmt_rdt_emul_->getRecords();
408 for(GmtRrIt igmtrr=gmt_rdt_emul_bx.begin(); igmtrr!=gmt_rdt_emul_bx.end(); igmtrr++) {
410 typedef std::vector<L1MuGMTExtendedCand>::const_iterator GmtECIt;
411 std::vector<L1MuGMTExtendedCand> gmc;
412 gmc = igmtrr->getGMTCands();
413 for(GmtECIt iter1=gmc.begin(); iter1!=gmc.end(); iter1++) {
414 gmt_can_emul_vec.push_back(
L1MuGMTCand(iter1->getDataWord(),iter1->bx()));
417 typedef L1MuRegionalCandCollection::const_iterator GmtRCIt;
420 rmc = igmtrr->getDTBXCands();
421 gmt_rdt_emul_vec.insert(gmt_rdt_emul_vec.end(),rmc.begin(),rmc.end());
423 rmc = igmtrr->getCSCCands();
424 gmt_rdt_emul_vec.insert(gmt_rdt_emul_vec.end(),rmc.begin(),rmc.end());
426 rmc = igmtrr->getBrlRPCCands();
427 gmt_rdt_emul_vec.insert(gmt_rdt_emul_vec.end(),rmc.begin(),rmc.end());
429 rmc = igmtrr->getFwdRPCCands();
430 gmt_rdt_emul_vec.insert(gmt_rdt_emul_vec.end(),rmc.begin(),rmc.end());
433 gmt_rdt_data = &gmt_rdt_data_vec;
434 gmt_rdt_emul = &gmt_rdt_emul_vec;
435 gmt_can_data = &gmt_can_data_vec;
436 gmt_can_emul = &gmt_can_emul_vec;
441 bool isValidDE[
DEnsys][2];
442 for(
int i=0;
i<
DEnsys;
i++)
for(
int j=0;
j<2;
j++) isValidDE[
i][
j]=
false;
447 isValidDE[
GCT][0] = gct_isolaem_data .
isValid(); isValidDE[
GCT][1] =gct_isolaem_emul .
isValid();
448 isValidDE[
GCT][0]&= gct_noisoem_data .
isValid(); isValidDE[
GCT][1]&=gct_noisoem_emul .
isValid();
449 isValidDE[
GCT][0]&= gct_cenjets_data .
isValid(); isValidDE[
GCT][1]&=gct_cenjets_emul .
isValid();
450 isValidDE[
GCT][0]&= gct_forjets_data .
isValid(); isValidDE[
GCT][1]&=gct_forjets_emul .
isValid();
451 isValidDE[
GCT][0]&= gct_taujets_data .
isValid(); isValidDE[
GCT][1]&=gct_taujets_emul .
isValid();
476 for(
int j=0;
j<2;
j++) {
477 isValid[
i] &= isValidDE[
i][
j];
499 std::cout <<
"L1Comparator start processing the collections.\n" << std::flush;
502 if(
m_doSys[RCT]&&isValid[RCT]) process<L1CaloEmCollection> ( rct_em_data, rct_em_emul,
RCT,
RCTem);
503 if(
m_doSys[RCT]&&isValid[RCT]) process<L1CaloRegionCollection> ( rct_rgn_data, rct_rgn_emul,
RCT,
RCTrgn);
505 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEmCandCollection> (gct_isolaem_data, gct_isolaem_emul,
GCT,
GCTisolaem);
506 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEmCandCollection> (gct_noisoem_data, gct_noisoem_emul,
GCT,
GCTnoisoem);
507 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctJetCandCollection> (gct_cenjets_data, gct_cenjets_emul,
GCT,
GCTcenjets);
508 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctJetCandCollection> (gct_forjets_data, gct_forjets_emul,
GCT,
GCTforjets);
509 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctJetCandCollection> (gct_taujets_data, gct_taujets_emul,
GCT,
GCTtaujets);
510 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEtHadCollection> ( gct_ht_data, gct_ht_emul,
GCT,
GCTethad);
511 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEtMissCollection> ( gct_etmiss_data, gct_etmiss_emul,
GCT,
GCTetmiss);
512 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctEtTotalCollection> ( gct_ettota_data , gct_ettota_emul,
GCT,
GCTettot);
513 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctHtMissCollection> ( gct_htmiss_data, gct_htmiss_emul,
GCT,
GCThtmiss);
514 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctHFRingEtSumsCollection> ( gct_hfring_data, gct_hfring_emul,
GCT,
GCThfring);
515 if(
m_doSys[GCT]&&isValid[GCT]) process<L1GctHFBitCountsCollection> ( gct_hfbcnt_data, gct_hfbcnt_emul,
GCT,
GCThfbit);
518 if(
m_doSys[DTP]&&isValid[DTP]) process<L1MuDTChambPhDigiCollection> ( dtp_ph_data, dtp_ph_emul,
DTP,
DTtpPh);
519 if(
m_doSys[DTP]&&isValid[DTP]) process<L1MuDTChambThDigiCollection> ( dtp_th_data, dtp_th_emul,
DTP,
DTtpTh);
521 if(
m_doSys[DTF]&&isValid[DTF]) process<L1MuRegionalCandCollection> ( dtf_trk_data, dtf_trk_emul,
DTF,
DTtftrk);
523 if(
m_doSys[RPC]&&isValid[RPC]) process<L1MuRegionalCandCollection> ( rpc_cen_data, rpc_cen_emul,
RPC,
RPCcen);
524 if(
m_doSys[RPC]&&isValid[RPC]) process<L1MuRegionalCandCollection> ( rpc_for_data, rpc_for_emul,
RPC,
RPCfor);
526 if(
m_doSys[GMT]&&isValid[GMT]) process<L1MuGMTCandCollection> ( gmt_data, gmt_emul,
GMT,
GMTmain);
527 if(
m_doSys[GMT]&&isValid[GMT]) process<L1MuRegionalCandCollection> ( gmt_rdt_data, gmt_rdt_emul,
GMT,
GMTrdt);
528 if(
m_doSys[GMT]&&isValid[GMT]) process<L1MuGMTCandCollection> ( gmt_can_data, gmt_can_emul,
GMT,
GMTcnd);
535 std::cout <<
"L1Comparator done processing all collections.\n" << std::flush;
538 std::cout <<
"[L1Comparator] sys match? << evt." << nevt_ <<
": ";
547 bool evt_match =
true;
567 std::cout <<
"\n [L1Comparator] adding empty collection to DErecord\n";
572 std::auto_ptr<L1DataEmulRecord>
record
575 std::cout <<
"\n [L1Comparator] printing DErecord"
579 <<
"):\n" << std::flush;
581 <<
"\n" << std::flush;
587 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]