CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
ComparisonHelper Namespace Reference

Functions

template<class InputIterator1 , class InputIterator2 , class OutputIterator , class Compare >
OutputIterator zip (InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, Compare comp)
 

Function Documentation

template<class InputIterator1 , class InputIterator2 , class OutputIterator , class Compare >
OutputIterator ComparisonHelper::zip ( InputIterator1  first1,
InputIterator1  last1,
InputIterator2  first2,
InputIterator2  last2,
OutputIterator  result,
Compare  comp 
)

Definition at line 41 of file L1TStage2CaloLayer1.h.

References AlCaHLTBitMon_QueryRunRegistry::comp, and mps_fire::result.

Referenced by dirstructure.Directory::__create_pie_image(), querying::_get_netrc_data(), ntupleDataFormat._RecoHitAdaptor::_hits(), TPTask::_process(), data_formats::_to_array_of_dicts(), ConfigBuilder.ConfigBuilder::addOutput(), plotting.Plot::addToLegend(), SiPixelPhase1MonitorTrackSoA::analyze(), hgcalPlots::append_hgcalDigisPlots(), hgcalPlots::append_hgcalHitsPlots(), hgcalPlots::append_hgcalLayerClustersPlots(), python.rootplot.root2matplotlib.HistStack::barstack(), ValidationMatrix_v2.ReleaseComparison::compare(), plotscripts::corrections2D(), plotting.AggregateBins::create(), plotting.PlotterTableItem::create(), geometry.Alignables::create_children_list(), edmStreamStallGrapher::createPDFImage(), geometryXMLparser::cscorder(), customIdentification::custom_identification_drnn_cone(), customIdentification::custom_identification_drnn_dbscan(), customIdentification::custom_identification_histomax(), ValidationMatrix::do_comparisons_threaded(), L1TStage2CaloLayer1::dqmAnalyze(), ntuplePlotting::draw(), trackingPlots.TrackingSeedingLayerTable::draw(), geometryXMLparser::dtorder(), conddb_migrate::fetch_gts(), FileBlob::FileBlob(), models::generate(), ValidationMatrix::get_filenames_from_pool(), ValidationMatrix::guess_params(), dataformats::indent(), PrescaleChecker::isMonotonic(), makeLayoutFileForGui::layDefaults(), MergeOccDeadROC::main(), MergePCLDeadROC::main(), MergePCLFedErr::main(), PCLOthers::main(), MultipleCompare::main(), DeltaR::matchObjectCollection(), deltar::matchObjectCollection(), DeltaR::matchObjectCollection2(), deltar::matchObjectCollection2(), DeltaR::matchObjectCollection3(), deltar::matchObjectCollection3(), geometryDiff::matrixmult(), mergeLHE.DefaultLHEMerger::merge_headers(), python.rootplot.utilities.Hist::min(), makeMuonMisalignmentScenario::mmult(), iniparser.ConfigData::parseConfig(), plotscripts::philines(), SteerMultipleCompare::plotOneByOne(), edmStreamStallGrapher::plotPerStreamAboveFirstAndPrepareStack(), TablePrint::PrettyPrintTable(), TablePrint::PrintLine(), core.PileUpAnalyzer.PileUpAnalyzer::process(), MatrixReader.MatrixReader::readMatrix(), python.rootplot.rootinfo::recurse_thru_file(), PixelNtupletsFitter::run(), PixelFitterByConformalMappingAndLine::run(), PixelFitterByHelixProjections::run(), TrackFitter::run(), L1MuonPixelTrackFitter::run(), uploadConditions::runWizard(), uploadConditions_v2::runWizard(), RecoTauValidation_cfi::SetYmodulesToLog(), ValidationUtils::SpawnPSet(), html.Table::tableAsRowColumn(), PrescaleChecker::TrendingWithLumi(), python.rootplot.utilities::wilson_interval(), Formatter.SimpleHTMLFormatter::writeStyledRow(), and geometryXMLparser.MuonGeometry::xml().

46  {
47  typedef typename InputIterator1::value_type dummy1;
48  typedef typename InputIterator2::value_type dummy2;
49  while (first1 != last1 || first2 != last2) {
50  if (first1 == last1) {
51  while (first2 != last2) {
52  *result = std::make_pair(dummy1{first2->id()}, *first2);
53  ++first2;
54  ++result;
55  }
56  return result;
57  }
58  if (first2 == last2) {
59  while (first1 != last1) {
60  *result = std::make_pair(*first1, dummy2{first1->id()});
61  ++first1;
62  ++result;
63  }
64  return result;
65  }
66  if (comp(*first1, *first2)) {
67  *result = std::make_pair(*first1, dummy2{first1->id()});
68  ++first1;
69  } else if (comp(*first2, *first1)) {
70  *result = std::make_pair(dummy1{first2->id()}, *first2);
71  ++first2;
72  } else {
73  *result = std::make_pair(*first1, *first2);
74  ++first1;
75  ++first2;
76  }
77  ++result;
78  }
79  return result;
80  }
tuple result
Definition: mps_fire.py:311