269 std::cout <<
"L1TCompare: analyze...." << std::endl;
293 edm::LogInfo(
"DataNotFound") <<
"can't find L1CaloEmCollection with label "
303 <<
"L1CaloRegionCollection with label "
314 std::cerr <<
"L1TGCT: could not find one of the classes?" << std::endl;
317 if (!gctIsoEmCands.
isValid()) {
318 std::cerr <<
"L1TGCT: could not find one of the classes?" << std::endl;
321 if (!gctNonIsoEmCands.
isValid()) {
322 std::cerr <<
"L1TGCT: could not find one of the classes?" << std::endl;
329 for ( L1GctEmCandCollection::const_iterator iem = gctIsoEmCands->begin();
330 iem != gctIsoEmCands->end(); ++iem) {
334 << iem->etaIndex() <<
"("
349 for (L1CaloEmCollection::const_iterator iem = em->begin();
350 iem != em->end(); ++iem) {
357 RctObject
h(
id.rctEta(),
id.rctPhi(), iem->rank());
358 if ( !iem->isolated() )
359 rcj_non_iso.push_back(
h);
361 rcj_iso.push_back(
h);
365 std::sort(rcj.begin(), rcj.end(), RctObjectComp());
366 std::sort(rcj_non_iso.begin(), rcj_non_iso.end(), RctObjectComp());
367 std::sort(rcj_iso.begin(), rcj_iso.end(), RctObjectComp());
369 for (RctObjectCollection::reverse_iterator ij = rcj_iso.rbegin();
370 ij != rcj_iso.rend() && ij != rcj_iso.rbegin()+8; ++ij) {
372 << ij->rank_ <<
", " << ij->eta_ <<
", " << ij->phi_
376 L1GctEmCandCollection::const_iterator lead_em = gctIsoEmCands->begin();
377 if ( !lead_em->empty() ) {
385 for ( L1GctEmCandCollection::const_iterator iem
386 = gctNonIsoEmCands->begin(); iem != gctNonIsoEmCands->end();
388 if ( ! iem->empty() )
389 std::cout <<
"GCT EM non: " << iem->rank()
400 for (RctObjectCollection::reverse_iterator ij = rcj_non_iso.rbegin();
401 ij != rcj_non_iso.rend() && ij != rcj_non_iso.rbegin()+8; ++ij) {
403 << ij->rank_ <<
", " << ij->eta_ <<
", " << ij->phi_
407 lead_em = gctNonIsoEmCands->begin();
408 if ( !lead_em->empty() ) {
410 rcj_non_iso.rbegin()->eta_);
412 rcj_non_iso.rbegin()->phi_);
414 rcj_non_iso.rbegin()->rank_);
423 <<
"can't find EcalTrigPrimCollection with label "
429 ieTP != eTP->end(); ieTP++) {
430 ecalobs.push_back(RctObject(ieTP->id().ieta(),
432 ieTP->compressedEt()));
434 std::sort(ecalobs.begin(), ecalobs.end(), RctObjectComp());
436 for (RctObjectCollection::reverse_iterator ij = ecalobs.rbegin();
437 ij != ecalobs.rend() && ij != ecalobs.rbegin()+8; ++ij) {
439 << ij->rank_ <<
", " << ij->eta_ <<
", " << ij->phi_
444 if ( rcj.rbegin()->rank_ > 4 ) {
446 ecalobs.rbegin()->eta_);
447 int e2 = (rcj.rbegin()->eta_&0x7UL)* ((rcj.rbegin()->eta_&0x8UL)?1:-1);
451 ecalobs.rbegin()->rank_);
454 int seta = rcj.rbegin()->eta_;
455 seta = (seta&0x7UL)*(seta&0x8?-1:1);
457 << rcj.rbegin()->eta_ <<
" "
458 << rcj.rbegin()->phi_ <<
" "
459 << rcj.rbegin()->rank_ <<
" "
460 << (++rcj.rbegin())->rank_<<
" "
461 << ecalobs.rbegin()->eta_ <<
" "
462 << ecalobs.rbegin()->phi_ <<
" "
463 << ecalobs.rbegin()->rank_ <<
" "
464 << (++ecalobs.rbegin())->rank_<<
" "
MonitorElement * rctGctLeadingIsoEmRank_
MonitorElement * rctGctLeadingIsoEmEta_
MonitorElement * ecalTpgRctLeadingEmEta2_
std::vector< T >::const_iterator const_iterator
MonitorElement * ecalTpgRctLeadingEmRank_
MonitorElement * rctGctLeadingNonIsoEmEta_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
MonitorElement * rctGctLeadingIsoEmPhi_
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
std::vector< L1TCompare::RctObject > RctObjectCollection
MonitorElement * ecalTpgRctLeadingEmEta_
edm::InputTag ecalTpgSource_
MonitorElement * rctGctLeadingNonIsoEmPhi_
MonitorElement * rctGctLeadingNonIsoEmRank_
MonitorElement * ecalTpgRctLeadingEmPhi_