CMS 3D CMS Logo

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

◆ zip()

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 38 of file L1TStage2CaloLayer1.h.

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

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(), L1TStage2CaloLayer1::analyze(), python.rootplot.root2matplotlib.HistStack::barstack(), PixelTrackBuilder::build(), cmsHarvester::build_dataset_use_list(), ValidationMatrix_v2.ReleaseComparison::compare(), Page1Parser.Page1Parser::ComputeTotalPrescales(), 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(), ntuplePlotting::draw(), trackingPlots.TrackingSeedingLayerTable::draw(), geometryXMLparser::dtorder(), conddb_migrate::fetch_gts(), FileBlob::FileBlob(), models::generate(), ValidationMatrix::get_filenames_from_pool(), TrackFitter::getCotThetaAndUpdateZip(), ValidationMatrix::guess_params(), dataformats::indent(), PrescaleChecker::isMonotonic(), makeLayoutFileForGui::layDefaults(), MergePCLFedErr::main(), MergeOccDeadROC::main(), MergePCLDeadROC::main(), PCLOthers::main(), MultipleCompare::main(), DeltaR::matchObjectCollection(), deltar::matchObjectCollection(), DeltaR::matchObjectCollection2(), deltar::matchObjectCollection2(), DeltaR::matchObjectCollection3(), deltar::matchObjectCollection3(), geometryDiff::matrixmult(), 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(), PixelFitterByConformalMappingAndLine::run(), PixelFitterByHelixProjections::run(), TrackFitter::run(), L1MuonPixelTrackFitter::run(), uploadConditions::runWizard(), RecoTauValidation_cfi::SetYmodulesToLog(), ValidationUtils::SpawnPSet(), html.Table::tableAsRowColumn(), PrescaleChecker::TrendingWithLumi(), python.rootplot.utilities::wilson_interval(), Formatter.SimpleHTMLFormatter::writeStyledRow(), and geometryXMLparser.MuonGeometry::xml().

AlCaHLTBitMon_QueryRunRegistry.comp
comp
Definition: AlCaHLTBitMon_QueryRunRegistry.py:249
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition: JetExtendedAssociation.h:30
mps_fire.result
result
Definition: mps_fire.py:303