CMS 3D CMS Logo

Classes | Functions
cuda_std Namespace Reference

Classes

struct  less
 
struct  less< void >
 

Functions

template<typename RandomIt , typename T , typename Compare = cuda_std::less<T>>
__host__ constexpr __device__ RandomIt binary_find (RandomIt first, RandomIt last, const T &value, Compare comp={})
 
template<typename RandomIt , typename T , typename Compare = less<T>>
__host__ constexpr __device__ RandomIt lower_bound (RandomIt first, RandomIt last, const T &value, Compare comp={})
 
template<typename RandomIt , typename T , typename Compare = less<T>>
__host__ constexpr __device__ RandomIt upper_bound (RandomIt first, RandomIt last, const T &value, Compare comp={})
 

Function Documentation

◆ binary_find()

template<typename RandomIt , typename T , typename Compare = cuda_std::less<T>>
__host__ constexpr __device__ RandomIt cuda_std::binary_find ( RandomIt  first,
RandomIt  last,
const T value,
Compare  comp = {} 
)
constexpr

Definition at line 63 of file cudastdAlgorithm.h.

63  {}) {
65  return first != last && !comp(value, *first) ? first : last;
66  }

◆ lower_bound()

template<typename RandomIt , typename T , typename Compare = less<T>>
__host__ constexpr __device__ RandomIt cuda_std::lower_bound ( RandomIt  first,
RandomIt  last,
const T value,
Compare  comp = {} 
)
constexpr

Definition at line 27 of file cudastdAlgorithm.h.

27  {}) {
28  auto count = last - first;
29 
30  while (count > 0) {
31  auto it = first;
32  auto step = count / 2;
33  it += step;
34  if (comp(*it, value)) {
35  first = ++it;
36  count -= step + 1;
37  } else {
38  count = step;
39  }
40  }
41  return first;
42  }

Referenced by RPCLinkSynchroStat::add(), edm::eventsetup::EventSetupRecordImpl::add(), HcalSiPM::addCrossTalkCells(), pat::GenPlusSimParticleProducer::addGenParticle(), edmNew::DetSetVector< T >::addItem(), PixelUnpackingRegions::addRegionLocal(), pat::PATObject< reco::Muon >::addUserCand(), pat::PATObject< reco::Muon >::addUserDataObject_(), pat::PATObject< reco::Muon >::addUserFloat(), pat::PATObject< reco::Muon >::addUserInt(), CaloSubdetectorGeometry::addValidID(), L1GlobalTriggerObjectMaps::algorithmExists(), L1GlobalTriggerObjectMaps::algorithmResult(), HGCalDDDConstants::assignCellTrap(), PFRecHitNavigatorBase::associateNeighbour(), PFRecHitCaloNavigatorWithTime< EEDetId, EcalEndcapTopology >::associateNeighbour(), CSCDriftSim::avalancheCharge(), JetCorrectorParametersHelper::binIndexN(), edm::ProductProvenanceRetriever::branchIDToProvenance(), edm::ProductProvenanceRetriever::branchIDToProvenanceForProducedOnly(), codeFromType(), edm::eventsetup::ESRecordsToProxyIndices::component(), EgammaTowerIsolationNew< NC >::compute(), MuonGEMBaseHarvestor::computeEfficiency(), PileupJetIdAlgo::computeIdVariables(), MVAJetPuId::computeIdVariables(), edm::helper::IndexRangeAssociation::contains(), lhef::LHERunInfo::count(), edm::eventsetup::DataProxyProvider::DataProxyContainer::createKeyedProxies(), RPCStripsRing::createOtherConnections(), HGCalDDDConstants::distFromEdgeTrap(), edm::PathsAndConsumesOfModules::doModuleDescription(), pat::PATObject< reco::Muon >::efficiency(), CastorTopology::exclude(), ZdcTopology::exclude(), HcalTopology::exclude(), edm::helper::IndexRangeAssociation::FastFiller::FastFiller(), BJetEnergyRegressionMVA::fillAdditionalVariables(), SiStripNoisesDQM::fillMEsForLayer(), NPUTablesProducer::fillNPUObjectTable(), FWExpressionValidator::fillOptions(), HcalLaserEventFilter2012::filter(), find(), StringMap::find(), HcalIndexLookup::find(), edm::EventSetupImpl::find(), StMeasurementConditionSet::find(), cond::SmallWORMDict::find(), HBHELinearMap::find(), cond::persistency::RunInfoProxy::find(), edm::SortedCollection< EcalRecHit >::find(), edm::eventsetup::EventSetupRecordImpl::find(), edm::DataFrameContainer::find(), FWGeometry::find(), PxMeasurementConditionSet::find(), Phase2OTMeasurementConditionSet::find(), l1tpf_calo::Phase1GridBase::find_cell(), PixelDigitizerAlgorithm::TimewalkModel::find_closest_index(), PFBlockAlgo::findBlocks(), CastorElectronicsMap::findById(), HcalObjectAddons::findByT(), CastorElectronicsMap::findByTrigId(), Phase2TrackerCabling::findDetid(), StripClusterizerAlgorithm::findDetId(), Phase2TrackerCabling::findFedCh(), Phase2TrackerCabling::findGbtid(), pat::PATGenCandsFromSimTracksProducer::findGeantMother(), edm::EventSetupImpl::findImpl(), edm::IndexIntoFile::findPosition(), edm::eventsetup::EventSetupProvider::finishConfiguration(), HcalDcsValues::foundDcsId(), pat::PATGenCandsFromSimTracksProducer::generatorRef_(), edm::helper::IndexRangeAssociation::get(), SiStripQuality::getBadApvs(), SiStripQuality::getBadFibers(), SiPixelQuality::getBadRocs(), CastorCalibrationsSet::getCalibrations(), CastorCalibrationWidthsSet::getCalibrationWidths(), vid::CutFlowResult::getCutFlowResultMasking(), vid::CutFlowResult::getCutResultByName(), edm::service::RandomNumberGeneratorService::getEngine(), edm::ValueMap< math::XYZTLorentzVector >::getIdOffset(), npstat::GridAxis::getInterval(), pat::PATObject< reco::Muon >::getKinResolution(), HcalDbHardcode::getLayersInDepth(), StripCompactDigiSimLinks::getLinks(), SiPixelGainCalibrationOffline::getNCols(), SiPixelGainCalibration::getNCols(), SiPixelGainCalibrationForHLT::getNCols(), edm::RandomEngineStates::getRandomEngineStates(), mySiStripNoises::getRange(), SiStripNoises::getRange(), SiStripPedestals::getRange(), SiPixelGainCalibrationOffline::getRange(), SiPixelGainCalibration::getRange(), SiPixelGainCalibrationForHLT::getRange(), SiStripBadStrip::getRange(), SiStripApvGain::getRange(), HDQMSummary::getRange(), SiStripSummary::getRange(), SiStripThreshold::getRange(), SiPixelGainCalibrationOffline::getRangeAndNCols(), SiPixelGainCalibration::getRangeAndNCols(), SiPixelGainCalibrationForHLT::getRangeAndNCols(), L1GlobalTriggerObjectMaps::getStartEndIndex(), HGCalTriggerTowerGeometryHelper::getTriggerTowerFromTriggerCell(), vid::CutFlowResult::getValueCutUpon(), CastorRawGains::getValues(), HcalRawGains::getValues(), HcalDcsValues::getValues(), PhysicsTools::MVAComputer::getVariableId(), HBHEDarkening::getYearForLumi(), pat::PATObject< reco::Muon >::hasKinResolution(), pat::PATObject< reco::Muon >::hasOverlaps(), edm::ThinnedAssociation::hasParentIndex(), pat::PATObject< reco::Muon >::hasUserCand(), pat::PATObject< reco::Muon >::hasUserFloat(), pat::PATObject< reco::Muon >::hasUserInt(), fwlite::Event::history(), HLTEgammaGenericQuadraticFilter::hltFilter(), HLTEgammaGenericQuadraticEtaFilter::hltFilter(), HLTGenericFilter< T1 >::hltFilter(), PFHFRecHitCreator::importRecHits(), edm::eventsetup::ESRecordsToProxyIndices::indexInRecord(), RPCLinkSynchroStat::init(), edm::ThinnedAssociationsHelper::initAssociationsFromSecondary(), edm::eventsetup::EventSetupProvider::insert(), edm::DetSetVector< TotemRPLocalTrack::FittedRecHit >::insert(), edm::ProductProvenanceRetriever::insertIntoSet(), edm::EventSetupImpl::insertRecordImpl(), npstat::LinInterpolatedTableND< Numeric, Axis >::invert1DResponse(), SiStripQuality::IsApvBad(), vid::CutFlowResult::isCutMasked(), ZdcTopology::isExcluded(), CastorTopology::isExcluded(), HcalTopology::isExcluded(), InputGenJetsParticleSelector::isExcludedFromResonance(), SiStripQuality::IsFiberBad(), InputGenJetsParticleSelector::isIgnored(), SiPixelQuality::IsModuleBad(), SiStripQuality::IsModuleBad(), SiStripDetVOff::IsModuleHVOff(), SiStripDetVOff::IsModuleLVOff(), SiStripQuality::IsModuleUsable(), SiPixelQuality::IsModuleUsable(), SiStripDetVOff::IsModuleVOff(), heppy::IsolationComputer::isoSumNeutralsWeighted(), heppy::IsolationComputer::isoSumRaw(), SiPixelQuality::IsRocBad(), edm::eventsetup::DataProxyProvider::DataProxyContainer::isUsingRecord(), edm::eventsetup::DataProxyProvider::DataProxyContainer::keyedProxies(), npstat::Private::lind_invert1DSlice(), npstat::GridAxis::linearInterval(), HGCalGeomParameters::loadCellTrapezoid(), RectangularPixelTopology::localY(), RectangularMTDTopology::localY(), SiStripApvShotCleaner::loop(), edm::lower_bound_all(), merge(), edm::PathsAndConsumesOfModules::moduleIndex(), edm::eventsetup::NumberOfConcurrentIOVs::numberOfConcurrentIOVs(), PixelDigitizerAlgorithm::TimewalkCurve::operator()(), StringMap::operator[](), pat::PATObject< reco::Muon >::overlaps(), pat::TriggerObjectStandAlone::packFilterLabels(), edm::ThinnedAssociationsHelper::parentBegin(), SimpleSAXParser::parse(), partIdx(), fireworks::pixelLocalY(), SiStripLatency::position(), edm::service::RandomNumberGeneratorService::postModuleStreamCheck(), edm::service::RandomNumberGeneratorService::preModuleStreamCheck(), EnergyRingsTableProducer::produce(), RunInfoTestESProducer::produce(), pat::GenPlusSimParticleProducer::produce(), RecoTauPiZeroProducer::produce(), PFRecoTauChargedHadronProducer::produce(), SelectedElectronFEDListProducer< TEle, TCand >::produce(), hitfit::Fit_Result_Vec::push(), mySiStripNoises::put(), SiStripDetVOff::put(), SiStripNoises::put(), SiStripPedestals::put(), SiPixelGainCalibrationOffline::put(), SiPixelGainCalibration::put(), SiPixelGainCalibrationForHLT::put(), SiStripBadStrip::put(), SiStripApvGain::put(), HDQMSummary::put(), SiStripLatency::put(), SiStripSummary::put(), SiStripThreshold::put(), SiStripQuality::put_replace(), SiPixelGenError::qbin(), SiPixelTemplate::qbin(), GenericTripletGenerator::qualityFilter(), HGCalGeomTools::radius(), edm::service::RandomNumberGeneratorService::readEngineState(), edm::eventsetup::ESRecordsToProxyIndices::recordIndexFor(), edm::EventSetupImpl::recordIsProvidedByAModule(), edm::eventsetup::EventSetupProvider::recordProvider(), SimTrackManager::saveTrackAndItsBranch(), HcalTopology::segmentBoundaries(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), SiStripBaseCondObjDQM::selectModules(), SiPixelPerformanceSummary::setDet(), pat::PATObject< reco::Muon >::setEfficiency(), pat::PATObject< reco::Muon >::setKinResolution(), HDQMSummary::setObj(), SiStripSummary::setObj(), pat::PATObject< reco::Muon >::setOverlaps(), edm::ThinnedAssociationsHelper::shouldKeepAssociation(), HGCalGeomTools::slope(), SiStripRawProcessingAlgorithms::suppressHybridData(), edm::eventsetup::EventSetupProvider::tryToGetRecordProvider(), RecHitsSortedInPhi::unsafeRange(), edm::ThinnedAssociationsHelper::updateFromSecondaryInput(), pat::PATObject< reco::Muon >::userCand(), pat::PATObject< reco::Muon >::userDataObject_(), pat::PATObject< reco::Muon >::userFloat(), pat::PATObject< reco::Muon >::userInt(), and edm::EventSetupImpl::validRecord().

◆ upper_bound()

template<typename RandomIt , typename T , typename Compare = less<T>>
__host__ constexpr __device__ RandomIt cuda_std::upper_bound ( RandomIt  first,
RandomIt  last,
const T value,
Compare  comp = {} 
)
constexpr

Definition at line 45 of file cudastdAlgorithm.h.

45  {}) {
46  auto count = last - first;
47 
48  while (count > 0) {
49  auto it = first;
50  auto step = count / 2;
51  it += step;
52  if (!comp(value, *it)) {
53  first = ++it;
54  count -= step + 1;
55  } else {
56  count = step;
57  }
58  }
59  return first;
60  }

Referenced by HGCDigitizer::accumulate(), PixelUnpackingRegions::addRegionLocal(), ecaldqm::TimingTask::beginEvent(), ecaldqm::TrigPrimTask::beginEvent(), npstat::NUHistoAxis::binNumber(), RBXAndHPDCleaner::clean(), npstat::NUHistoAxis::closestValidBin(), EgammaTowerIsolationNew< NC >::compute(), MuonGEMBaseHarvestor::computeEfficiency(), CSCIndexerStartup::detIdFromGasGainIndex(), CSCIndexerPostls1::detIdFromGasGainIndex(), RPCLinkSynchroHistoMaker::fill(), edm::IndexIntoFile::findPosition(), FFTJetPFPileupCleaner::findSomeVertexWFakes(), npstat::NUHistoAxis::fltBinNumber(), cms::cuda::for(), SiStripThreshold::getData(), HcalDbHardcode::getLayersInDepth(), HcalDcsValues::getValues(), heppy::IsolationComputer::isoSumNeutralsWeighted(), heppy::IsolationComputer::isoSumRaw(), heppy::mt2w_bisect::mt2w::mt2w(), heppy::mt2w_bisect::mt2w::mt2w_bisect(), HcalCubicInterpolator::operator()(), HcalPiecewiseLinearFunctor::operator()(), edm::ThinnedAssociationsHelper::parentEnd(), pat::L1MuonMatcher::produce(), L2MuonSeedGeneratorFromL1T::produce(), SelectedElectronFEDListProducer< TEle, TCand >::produce(), GenericTripletGenerator::qualityFilter(), cond::persistency::search(), LHCInfoImpl::search(), HcalTopology::segmentBoundaries(), EEDetId::unhashIndex(), RecHitsSortedInPhi::unsafeRange(), and CSCGangedWireGrouping::wireGroup().

step
step
Definition: StallMonitor.cc:94
dqmdumpme.first
first
Definition: dqmdumpme.py:55
AlCaHLTBitMon_QueryRunRegistry.comp
comp
Definition: AlCaHLTBitMon_QueryRunRegistry.py:249
dqmdumpme.last
last
Definition: dqmdumpme.py:56
cuda_std::lower_bound
__host__ constexpr __device__ RandomIt lower_bound(RandomIt first, RandomIt last, const T &value, Compare comp={})
Definition: cudastdAlgorithm.h:27
KineDebug3::count
void count()
Definition: KinematicConstrainedVertexUpdatorT.h:21
value
Definition: value.py:1