CMS 3D CMS Logo

Classes | Functions
conifer Namespace Reference

Classes

class  BDT
 
class  DecisionTree
 
class  OpAdd
 

Functions

constexpr int floorlog2 (int x)
 
template<int B>
constexpr int pow (int x)
 
constexpr int pow2 (int x)
 
template<class T , class Op >
T reduce (std::vector< T > x, Op op)
 

Function Documentation

◆ floorlog2()

constexpr int conifer::floorlog2 ( int  x)

Definition at line 21 of file conifer.h.

References x.

Referenced by reduce().

21 { return (x < 2) ? 0 : 1 + floorlog2(x / 2); }
constexpr int floorlog2(int x)
Definition: conifer.h:21
float x

◆ pow()

template<int B>
constexpr int conifer::pow ( int  x)

Definition at line 24 of file conifer.h.

References B, and x.

Referenced by MinL3Algorithm::addEvent(), MinL3AlgoUniv< DetId >::addEvent(), dtbayesam::CandidateGroup::addHit(), StKinFitter::addKinFitInfo(), CSCPairResidualsConstraint::addTrack(), trklet::VarAdjustK::adjust(), SiStripHitResolFromCalibTree::algoAnalyze(), SiStripCalibLorentzAngle::algoBeginJob(), PedsFullNoiseAlgorithm::analyse(), GEMRecHitValidation::analyze(), cms::MinBias::analyze(), EgammaBasicClusters::analyze(), ZCountingElectrons::analyze(), EgammaSuperClusters::analyze(), JetCorrectorDemo::analyze(), FactorizedJetCorrectorDemo::analyze(), MuonSeedsAnalyzer::analyze(), ElectronAnalyzer::analyze(), TrackSplittingMonitor::analyze(), SiStripLAProfileBooker::analyze(), DQMHOAlCaRecoStream::analyze(), DQMHcalPhiSymAlCaReco::analyze(), ElectronCalibration::analyze(), PhotonValidatorMiniAOD::analyze(), TrackParameterAnalyzer::analyze(), SiPixelTrackResidualSource::analyze(), ContainmentCorrectionAnalyzer::analyze(), ElectronCalibrationUniv::analyze(), ResolutionAnalyzer::analyze(), PhotonValidator::analyze(), HOCalibAnalyzer::analyze(), cms::Analyzer_minbias::analyze(), EcalTPGParamBuilder::analyze(), JetAnalyzer_HeavyIons::analyze(), MuonPathAnalyticAnalyzer::analyze(), PrimaryVertexValidation::analyze(), SplitVertexResolution::analyze(), EmDQMReco::analyze(), DiMuonValidation::analyze(), SiPixelLorentzAnglePCLWorker::analyze(), TrackerDpgAnalysis::analyze(), CMTRawAnalyzer::analyze(), EgammaObjects::analyzeElectrons(), EgammaObjects::analyzePhotons(), HIPTwoBodyDecayAnalyzer::analyzeTrackCollection(), BaseProtonTransport::ApplyBeamCorrection(), trklet::TrackletCalculatorDisplaced::approxproj(), trklet::TrackletCalculatorDisplaced::approxprojdisk(), trklet::TrackletCalculatorDisplaced::approxtracklet(), egamma::conv::arbitrateConversionPartnersbyR(), ticl::assignPCAtoTracksters(), TrackstersMergeProducerV3::assignTimeToCandidates(), TrackstersMergeProducer::assignTimeToCandidates(), SegmentsTrackAssociator::associate(), BeamSpotFakeConditions::BeamSpotFakeConditions(), BeamSpotTransientTrackingRecHit::BeamSpotTransientTrackingRecHit(), reco::BeamSpot::beamWidthFromBeta(), trklet::ProducerKFout::beginRun(), DAClusterizerInZ::beta0(), DAClusterizerInZ_vect::beta0(), DAClusterizerInZT_vect::beta0(), PtHatReweightUserHook::biasSelectionBy(), RapReweightUserHook::biasSelectionBy(), PtHatRapReweightUserHook::biasSelectionBy(), TopDiLeptonDQM::bookHistograms(), StandaloneTrackMonitor::bookHistograms(), FWTracksterLayersProxyBuilder::build(), Basic2DGenericPFlowClusterizer::buildClusters(), PFlow2DClusterizerWithTime::buildClusters(), RealisticSimClusterMapper::buildClusters(), SeedingOTEDProducer::buildInitialTSOS(), ME0SegmentAlgorithm::buildSegments(), EcalMixingModuleValidation::bunchSumTest(), PhotonMVABasedHaloTagger::calAngleBetweenEEAndSubDet(), ClusterShapeAlgo::calc_AbsZernikeMoment(), EcalClusterToolsT< noZS >::calc_AbsZernikeMoment(), GlobalCoordsObtainer::calc_atan_lut(), HIPAlignmentAlgorithm::calcAPE(), HcalHF_S9S1algorithm::CalcEnergyThreshold(), LRHelpFunctions::calcPtdrLRval(), trackerTFP::FormatKF< v >::calcRange(), HcalHF_S9S1algorithm::CalcSlope(), calCSVariables(), HcalHF_PETalgorithm::CalcThreshold(), reco::helper::CastorJetIDHelper::calculate(), GsfVertexWeightCalculator::calculate(), pat::CaloIsolationEnergy::calculate(), pat::LeptonVertexSignificance::calculate(), PtAssignmentEngine2017::calculate_address(), PtAssignmentEngine2017::calculate_pt_xml(), CSCWireElectronicsSim::calculateAmpResponse(), tt::Setup::calculateConstants(), CalculateCorrection(), CSCGEMMatcher::calculateGEMCSCBending(), DeepTauId::calculateGottfriedJacksonAngleDifference(), LASAlignmentTubeAlgorithm::CalculateParameters(), LASEndcapAlgorithm::CalculateParameters(), CalculateResponse(), CSCXonStrip_MatchGatti::calculateXonStripError(), QGTagger::calcVariables(), PixelThresholdClusterizer::calibrate(), PhotonMVABasedHaloTagger::calmatchedESCoordForBothHypothesis(), PhotonMVABasedHaloTagger::calmatchedHBHECoordForBothHypothesis(), CaloRecHitResolutionProvider::CaloRecHitResolutionProvider(), CaloTowersDQMClient::CaloTowersEndjob(), Photon.Photon::calScaledIsoValueQuadr(), ThreeThresholdAlgorithm::candidateAccepted(), OMTFSorter< GoldenPatternType >::candidates(), SSDigitizerAlgorithm::cbc3PulsePolarExpansion(), tmtt::HTrphi::cell(), reco::modules::TrackerTrackHitFilter::checkHitAngle(), reco::modules::TrackerTrackHitFilter::checkPXLCorrClustCharge(), LCTQualityControl::checkValid(), G4muDarkBremsstrahlungModel::chi(), CSCChamberFitter::chi2(), SymmetryFit::chi2_element(), tmtt::L1track3D::chiPhiDigi(), tmtt::L1track3D::chiZDigi(), CutBasedElectronID::cicSelection(), mkfit::Event::clean_cms_seedtracks(), mkfit::StdSeq::clean_cms_seedtracks_iter(), GsfMultipleScatteringUpdator::compute(), NuclearInteractionSimulator::compute(), GenXSecAnalyzer::compute(), MuonPathAnalyticAnalyzer::compute_parameter(), l1tVertexFinder::VertexFinder::computeAndSetVertexParameters(), TotemT2Segmentation::computeBins(), EcalUncalibRecHitTimingCCAlgo::computeCC(), SiStripGainFromData::ComputeChargeOverPath(), ZeeCalibration::computeCoefficientDistanceAtIteration(), MtdTracksHarvester::computeEfficiency1D(), Primary4DVertexHarvester::computeEfficiency1D(), SeedingOTEDProducer::computeGlobalThetaError(), HLTRHemisphere::ComputeHemispheres(), MuonResidualsFitter::computeHistogramRangeAndBinning(), SeedingOTEDProducer::computeInverseMomentumError(), HFCherenkov::computeNPE(), HTrack::computePull(), HFCherenkov::computeQEff(), HGCalRadiationMap::computeRadius(), EcalTPGParamBuilder::computeWeights(), configureIt(), CSCGEMMotherboard::constructLCTsGEM(), trklet::KFin::consume(), Phase2TrackerDigitizerAlgorithm::convertSignalToAdc(), Cordic::Cordic(), CordicXilinx::CordicXilinx(), L1RCTParameters::correctedTPGSum(), EcalGlobalShowerContainmentCorrectionsVsEta::correction(), EcalShowerContainmentCorrections::correctionXY(), SamplingAnalysis::correctMeasurement(), MuonMETAlgo::correctMETforMuon(), CSCCondSegFit::correctTheCovX(), DynamicTruncation::correctThrByPAndEta(), MuonPathAssociator::correlateMPaths(), DTDigiToRaw::createFedBuffers(), SiPixelFEDChannelContainerFromQualityConverter::createFromSiPixelQuality(), FastSiPixelFEDChannelContainerFromQuality::createFromSiPixelQuality(), p2eg::GCTcluster_t::createL1TEGamma(), CaloDetIdAssociator::crossedElement(), crystalball(), CSCDriftSim::CSCDriftSim(), CSCGEMMatcher::CSCGEMSlopeCorrector(), VectorHitBuilderAlgorithm::curvatureANDphi(), Qjets::d_ij(), trklet::TrackletCalculatorDisplaced::DDLSeeding(), LzmaFile::DecodeBuffer(), GenericAverageDeDxEstimator::dedx(), GenericTruncatedAverageDeDxEstimator::dedx(), ASmirnovDeDxDiscriminator::dedx(), ProductDeDxDiscriminator::dedx(), SmirnovDeDxDiscriminator::dedx(), HFDarkening::degradation(), HBHEDarkening::degradationYear(), TTStubAlgorithm_official< T >::degradeBend(), AlcaBeamSpotManager::delta(), PFBenchmarkAlgo::deltaR(), MuScleFitUtils::deltaR(), GflashHadronShowerProfile::depthScale(), l1tp2::DigitizedTowerCorrelator::digitizeEt(), l1tp2::DigitizedClusterCorrelator::digitizePt(), l1tp2::DigitizedClusterGT::digitizePt(), reco::tau::PFRecoTauDiscriminationByMVAIsolationRun2::discriminate(), CandidateChargeBTagComputer::discriminator(), VertexDistanceXY::distance(), external::HEPTopTaggerV2_fixed_R::djademod(), CMSCGEN::dNdEmudEnu(), CSCSkim::doCSCSkimming(), SiPixelGainCalibrationAnalysis::doFits(), PPSAlignmentHarvester::doMatch(), CSCSkim::doMessyEventSkimming(), IsoValueMapProducer< T >::doMiniIso(), EvolutionECAL::DoseLongitudinalProfile(), JetMatchingEWKFxFx::doShowerKtVeto(), OffsetDQMPostProcessor::dqmEndJob(), DTOfflineSummaryClients::dqmEndJob(), DTChamberEfficiencyClient::dqmEndJob(), Vx3DHLTAnalyzer::dqmEndLuminosityBlock(), Phase2TrackerDigitizerAlgorithm::drift(), Phase2TrackerDigitizerAlgorithm::driftDirection(), DTConfigLUTs::DSPtoIEEE32(), DSPtoIEEE32(), EcalPulseSymmCovariancesXMLTranslator::dumpXML(), MuScleFit::duringFastLoop(), l1t::TkBsCandidate::dxyPhiPair(), l1t::TkPhiCandidate::dxyTrkPair(), EcalPulseCovariance::EcalPulseCovariance(), EcalSampleMask::EcalSampleMask(), DAClusterizerInZ::Eik(), reco::InverseCrosstalkMatrix::element(), CordicXilinx::encodeAngle(), cms::MinBias::endJob(), DTT0Calibration::endJob(), GenXSecAnalyzer::endJob(), ZeeCalibration::endOfJob(), ZeeCalibration::endOfLoop(), trigger::TriggerObject::energy(), EcalRecHit::energyError(), CSCPairResidualsConstraint::error(), MuonResidualsTwoBin::errorerror(), GammaNumericalGenerator::ersatzt(), ConversionForwardEstimator::estimate(), fw::estimate_field(), SETSeedFinder::estimateMomentum(), trigger::TriggerObject::et(), EcalDeadCellDeltaRFilter::etaToBoundary(), ESRecHitAnalyticAlgo::EvalAmplitude(), ESRecHitSimAlgo::evalAmplitude(), l1t::CorrCondition::evaluateCondition(), l1t::CorrThreeBodyCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), PFMETAlgorithmMVA::evaluateMVA(), trklet::TrackletCalculatorDisplaced::exactproj(), trklet::TrackletCalculatorBase::exactproj(), trklet::TrackletCalculatorDisplaced::exacttracklet(), ClusterShapeAlgo::f51(), EcalClusterToolsT< noZS >::f51(), ClusterShapeAlgo::f53(), EcalClusterToolsT< noZS >::f53(), ClusterShapeAlgo::f55(), EcalClusterToolsT< noZS >::f55(), factorRPFromSensorCorrections(), fcn(), lowptgsfeleid::features_V0(), lowptgsfeleid::features_V1(), trackerTFP::ZHoughTransform::fill(), DAClusterizerInZ::fill(), BPHWriteSpecificDecay::fill(), DAClusterizerInZ_vect::fill(), DAClusterizerInZT_vect::fill(), HMassVSPart::Fill(), HGVHistoProducerAlgo::fill_caloparticle_histos(), HcalTB04Analysis::fillBuffer(), CMTRawAnalyzer::fillDigiAmplitude(), CMTRawAnalyzer::fillDigiAmplitudeHF(), CMTRawAnalyzer::fillDigiAmplitudeHFQIE10(), CMTRawAnalyzer::fillDigiAmplitudeQIE11(), MaterialBudgetTrackerHistos::fillEndTrack(), MaterialBudgetHGCalHistos::fillEndTrack(), DeepTauId::fillGrids(), HGCalHistoSeedingImpl::fillHistoClusters(), tadqm::TrackAnalyzer::fillHistosForState(), TrackerValidationVariables::fillHitQuantities(), MuonShowerInformationFiller::fillHitsByStation(), ApeEstimator::fillHitVariables(), reco::tau::fillIsoMVARun2Inputs(), MuonIdProducer::fillMuonId(), PseudoBayesGrouping::FillMuonPaths(), StripCPE::fillParams(), DiLepPlotHelp::PlotsVsKinematics::fillPlots(), popcon::EcalPulseSymmCovariancesHandler::fillSimPulseSymmCovariance(), HGCalHistoSeedingImpl::fillSmoothPhiHistoClusters(), PATTauHybridProducer::fillTauFromJet(), PrimaryVertexValidation::fillTrackHistos(), ChargedHadronTrackResolutionFilter::filter(), DisappearingMuonsSkimming::filter(), ModelpMSSMFilter::filter(), CSCEfficiency::filter(), OMTFResult::finalise(), DAClusterizerInZT_vect::find_nearest(), egamma::conv::findBestConversionMatch(), SETFilter::findChi2(), TtFullLepKinSolver::FindCoeff(), SETFilter::findParabolaMinimum(), LASPeakFinder::FindPeakIn(), StraightTrackAlignment::finish(), tmtt::SimpleLR4::fit(), MuonResidualsPositionFitter::fit(), MuonResidualsAngleFitter::fit(), MuonResidualsBfieldAngleFitter::fit(), MuonResiduals1DOFFitter::fit(), BSFitter::Fit(), MuonResiduals6DOFrphiFitter::fit(), SiPixelLorentzAnglePCLHarvester::fitAndStore(), fitf(), trackerTFP::Format< v, p >::Format(), trackerTFP::FormatKF< v >::FormatKF(), FWExpressionValidator::FWExpressionValidator(), HFShower::gam(), HDShower::gam(), EMShower::gam(), GflashHadronShowerProfile::gammaProfile(), L1GTTInputProducer::generate_eta_lut(), GlobalCoordsObtainer::generate_luts(), L1GTTInputProducer::generate_pt_lut(), l1tmhtemu::generateaTanLUT(), l1tmhtemu::generatemagNormalisationLUT(), FullModelReactionDynamics::GenerateNBodyEvent(), FullModelReactionDynamics::GenerateXandPt(), DQMGenericClient::generic_eff(), VertexClassifier::genPrimaryVertices(), TrackClassifier::genPrimaryVertices(), StripCPEgeometric::geometric_position(), PtAssignmentEngineAux2017::get8bMode15(), GlobalCoordsObtainer::get_global_coordinates(), DAClusterizerInZT_vect::get_Tc(), PtAssignmentEngineAux2017::getCLCT(), EcalTPGParamBuilder::getCoeff(), egamma::conv::getConversionInfo(), pat::PATIsolatedTrackProducer::getDeDx(), DeviationsFromFileSensor2D::getDevis(), HGCalRadiationMap::getDoseValue(), PtAssignmentEngineAux2017::getdTheta(), ZdcShowerLibrary::getEnergyFromLibrary(), L1GTTInputProducer::getEtaBits(), HGCalRadiationMap::getFluenceValue(), EcalHaloAlgo::GetHaloClusterCandidateEE(), SeedMvaEstimatorPhase2::getHitL1TkVariables(), HFShowerParam::getHits(), G4ProcessHelper::GetInclusiveCrossSection(), EcalLaserDbService::getLaserCorrection(), PFMuonAlgo::getMinMaxMET2(), popcon::EcalPulseSymmCovariancesHandler::getNewObjects(), popcon::EcalADCToGeVHandler::getNewObjects(), PtAssignmentEngineAux2017::getNLBdPhiBin(), L1PrefiringWeightProducer::getPrefiringRateEcal(), L1PrefiringWeightProducer::getPrefiringRateMuon(), AngleConverter::getProcessorPhi(), AngleConverterBase::getProcessorPhi(), L1GTTInputProducer::getPtBits(), PFJetDQMPostProcessor::getRespUnc(), HLTScalersClient::getSlope_(), TimingSD::getStepInfo(), PtAssignmentEngineAux2017::getTheta(), L1TTauOffline::getTightMuons(), HcalTB02HcalNumberingScheme::getUnitID(), EcalClusterCrackCorrection::getValue(), HiEvtPlaneFlatten::getW(), JetCharge::getWeight(), CachedTrajectory::getWideTrajectory(), DTNoiseComputation::getYMaximum(), HFGflash::gfParameterization(), AlcaBeamMonitor::globalEndLuminosityBlock(), GenXSecAnalyzer::globalEndRun(), ConvBremSeedProducer::GoodCluster(), Pythia8::PowhegHooksBB4L::gSplittingScale(), dEdxHitAnalyzer::harmonic2(), PPSTools::HectorParticle2LorentzVector(), PFAlgo::hfEnergyResolution(), HGCalCellOffset::HGCalCellOffset(), HGCalHistoSeedingImpl::HGCalHistoSeedingImpl(), L1TMuonBarrelKalmanAlgo::hitPattern(), MuonChamberResidual::hitposition(), PixelTemplateSmearerBase::hitsMerge(), HLTElectronPixelMatchFilter::HLTElectronPixelMatchFilter(), HLTDeDxFilter::hltFilter(), HLTVertexFilter::hltFilter(), HLTPixelClusterShapeFilter::hltFilter(), HOCalibAnalyzer::HOCalibAnalyzer(), EGammaMvaEleEstimator::IDIsoCombinedMvaValue(), trklet::IMATH_TrackletCalculator::IMATH_TrackletCalculator(), trklet::IMATH_TrackletCalculatorDisk::IMATH_TrackletCalculatorDisk(), trklet::IMATH_TrackletCalculatorOverlap::IMATH_TrackletCalculatorOverlap(), HadronicProcessHelper::inclusiveCrossSection(), EvolutionECAL::InducedAbsorptionHadronic(), tnp::BaseTreeFiller::init(), JetMatchingEWKFxFx::initAfterBeams(), gen::JetMatchingMGFastJet::initAfterBeams(), CMSCGEN::initialize(), CSCWireElectronicsSim::initParameters(), trackerTFP::DataFormat::inRange(), RPCPacData::insertQualityRecord(), fastsim::Bremsstrahlung::interact(), fastsim::NuclearInteraction::interact(), DTROS25Unpacker::interpretRawData(), stats_t< T >::inverse(), CSCGasCollisions::ionize(), cms::MuonTCMETValueMapProducer::isGoodTrack(), TCMETAlgo::isGoodTrack(), l1t::Stage1Layer2TauAlgorithmImpPP::isoLutIndex(), l1t::Stage1Layer2TauAlgorithmImpHW::isoLutIndex(), EGammaMvaEleEstimator::isoMvaValue(), cms::MuonTCMETValueMapProducer::isValidVertex(), TCMETAlgo::isValidVertex(), HGCUncalibratedRecHit::jitterError(), EcalUncalibratedRecHit::jitterError(), trackerTFP::KalmanFilter::KalmanFilter(), trklet::KFin::KFin(), trackerTFP::LayerEncoding::LayerEncoding(), EvolutionECAL::LightCollectionEfficiency(), EvolutionECAL::LightCollectionEfficiencyWeighted(), SamplingAnalysis::limit(), trklet::TrackletCalculatorDisplaced::LLDSeeding(), trklet::TrackletCalculatorDisplaced::LLLSeeding(), tmtt::DigitalTrack::loadDigiCfg(), trklet::VarShiftround::local_calculate(), trklet::VarShift::local_calculate(), GEMStripTopology::localError(), BTLRecHitsErrorEstimatorIM::localError(), CSCRadialStripTopology::localError(), TkRadialStripTopology::localError(), Phase2StripCPEGeometric::localParameters(), GEMStripTopology::localPitch(), CSCRadialStripTopology::localPitch(), GEMStripTopology::localStripLength(), CSCRadialStripTopology::localStripLength(), TkRadialStripTopology::localStripLength(), l1t::Stage1TauIsolationLUT::lutAddress(), l1t::Stage1TauIsolationLUT::lutPayload(), HadronicProcessHelper::m_phaseSpace(), main(), LRHelpFunctions::makeAndFitPurityHists(), LRHelpFunctions::makeAndFitSoverSplusBHists(), TSToSCAssociatorByEnergyScoreImpl::makeConnections(), LCToSCAssociatorByEnergyScoreImpl::makeConnections(), LCToCPAssociatorByEnergyScoreImpl::makeConnections(), TSToSimTSAssociatorByEnergyScoreImpl::makeConnections(), SimplePointingConstraint::makeDerivative(), SmartPointingConstraint::makeDerivative(), tmtt::DigitalTrack::makeDigitalTrack(), PVValHelper::makeLogBins(), MuIsoValidation::MakeLogBinsForProfile(), HcalDbHardcode::makePedestalWidth(), BTLUncalibRecHitAlgo::makeRecHit(), tmtt::Make3Dtracks::makeUnfilteredTrks(), FFTGenericScaleCalculator::mapFFTJet(), ErrorsPropagationAnalyzer::massResolution(), MuScleFitUtils::massResolution(), CaloParticle::massSqr(), SimCluster::massSqr(), TrackingParticle::massSqr(), gen::JetMatchingMGFastJet::match(), MuonIdTruthInfo::matchChi2(), CSCGEMMatcher::matchedClusterDistES(), Primary4DVertexValidation::matchReco2Sim(), GEMStripTopology::measurementError(), CSCRadialStripTopology::measurementError(), TkRadialStripTopology::measurementError(), GflashHadronShowerProfile::medianLateralArm(), trackerTFP::ZHoughTransform::merge(), DAClusterizerInZ::merge(), DAClusterizerInZT_vect::merge(), edm::RandomtXiGunProducer::Minimum_t(), TFParams::mixShape(), muonisolation::CaloExtractor::MuonAtCaloPosition(), MuonResidualsFitter_compute_log_convolution(), MuonResidualsFitter_logGaussPowerTails(), MuonResidualsFitter_logPureGaussian(), MuonResidualsFitter_logPureGaussian2D(), HDetIdAssociator::nearElement(), WeightedMeanFitter::nearestPoint(), TCMETAlgo::nearGoodShowerTrack(), TracksClusteringFromDisplacedSeed::nearTracks(), L1CaloEcalScaleConfigOnlineProd::newObject(), L1CaloHcalScaleConfigOnlineProd::newObject(), CosmicMuonGenerator::nextMultiEvent(), GoldenPattern::normalise(), EMECALShowerParametrization::nSpotsHom(), EMECALShowerParametrization::nSpotsSam(), gen::HydjetHadronizer::nuclear_radius(), gen::Hydjet2Hadronizer::nuclear_radius(), DataROOTDumper2::observeEventEnd(), StripCPEgeometric::offset_from_firstStrip(), ESRecHitSimAlgo::oldEvalAmplitude(), SmsModeFinder3d::operator()(), RK4PreciseStep::operator()(), CordicXilinx::operator()(), SortMuonSegmentMatches::operator()(), reco::parser::power_of< T >::operator()(), ESShape::operator()(), FsmwModeFinder3d::operator()(), TtHadLRSignalSelObservables::operator()(), TtSemiLRSignalSelObservables::operator()(), reco::parser::pow_f::operator()(), PeakFinderTest::operator()(), Calculate_miniAOD::operator()(), Calculate::operator()(), PFMuonAlgo::TrackMETComparator::operator()(), HGCRecHit::outOfTimeEnergy(), GflashEMShowerProfile::parameterization(), MultiTrackVertexLinkKinematicConstraint::parametersDerivative(), MultiTrackPointingKinematicConstraint::parametersDerivative(), l1t::TriggerMenuParser::parseCorrelation(), l1t::TriggerMenuParser::parseCorrelationThreeBody(), l1t::TriggerMenuParser::parseCorrelationWithOverlapRemoval(), MuonAlignmentInputXML::parseDouble(), l1t::TriggerMenuParser::parsePhi_Trig_LUTS(), l1t::TriggerMenuParser::parseScales(), Page1Parser.Page1Parser::ParseTrigModePage(), EcalUncalibRecHitFixedAlphaBetaAlgo< EBDataFrame >::PerformAnalyticFit(), PetrukhinFunc(), fastsim::MuonBremsstrahlung::PetrukhinFunc(), L1GctJetFinderParams::pfCorrect(), PFMultiDepthClusterizer::PFMultiDepthClusterizer(), PFRecHitCaloNavigatorWithTime< EEDetId, EcalEndcapTopology >::PFRecHitCaloNavigatorWithTime(), VectorHit::phase2clusterGlobalPosErr(), G4ProcessHelper::PhaseSpace(), l1t::SAMuon::phCharge(), l1t::TrackerMuon::phCharge(), MuonResiduals1DOFFitter::plot(), MuonResiduals6DOFrphiFitter::plot(), MuonResiduals5DOFFitter::plot(), MuonResiduals6DOFFitter::plot(), SymmetryFit::pol2_from_pol3(), G4ProcessHelper::Pom(), MultiTrackVertexLinkKinematicConstraint::positionDerivative(), MultiTrackPointingKinematicConstraint::positionDerivative(), L1GctJetFinderParams::powerSeriesCorrect(), TTBV::powersOfTwo(), commonAnTS::prettyPrintUnits(), TrackerMap::printall(), SiPixelRecHitQuality::Packing::probabilityQ(), SiPixelRecHitQuality::Packing::probabilityXY(), l1t::Stage2TowerDecompressAlgorithmFirmwareImp1::processEvent(), AlignmentMonitorMuonSystemMap1D::processMuonResidualsFromTrack(), edm::RandomtXiGunProducer::produce(), HIBestVertexProducer::produce(), ParticleLevelProducer::produce(), CastorFastTowerProducer::produce(), CastorFastClusterProducer::produce(), edm::CloseByParticleGunProducer::produce(), ShallowClustersProducer::produce(), PFTICLProducer::produce(), SiStripRegFEDSelector::produce(), trklet::KFin::produce(), trklet::ProducerKFout::produce(), HLTScoutingTrackProducer::produce(), DBremWatcher::produce(), HLTScoutingPFProducer::produce(), CastorClusterProducer::produce(), EcalIsolatedParticleCandidateProducer::produce(), FFTJetEFlowSmoother::produce(), GoodSeedProducer::produce(), SelectedElectronFEDListProducer< TEle, TCand >::produce(), TemplatedInclusiveVertexFinder< InputContainer, VTX >::produce(), L1EGCrystalClusterEmulatorProducer::produce(), ecaldqm::LedClient::producePlots(), ecaldqm::MLClient::producePlots(), CachedTrajectory::propagateForward(), LowPtGsfElectronSeedProducer::propagateTrackToCalo(), EMECALShowerParametrization::pSam(), CSCTFPtMethods::Pt3StnChiSq(), PtHatEmpReweightUserHook::PtHatEmpReweightUserHook(), LA_Filler_Fitter::pull(), pulse_raw(), EcalUncalibRecHitRecAnalFitAlgo< EBDataFrame >::pulseShapeFunction(), EcalUncalibRecHitFixedAlphaBetaAlgo< EBDataFrame >::pulseShapeFunction(), TFParams::pulseShapepj(), TFParams::pulseShapepj2(), reco::EvtPlane::q(), ApeEstimator::radialPositionAndError2(), RPCpg::rate(), cscdqm::Summary::ReadReportingChambersRef(), gen::PyquenHadronizer::readSettings(), FedRawDataInputSource::readSupervisor(), DAQSource::readSupervisor(), EcalTPGParamBuilder::realignBaseline(), SiStripMonitorTrack::RecHitInfo(), CSCEfficiency::recHitSegment_Efficiencies(), Conv4HitsReco2::Reconstruct(), ProtonReconstructionAlgorithm::reconstructFromSingleRP(), trklet::KFin::redigi(), dtbayesam::CandidateGroup::removeHit(), tmtt::KFbase::residual(), ResolutionsCalculator(), ParabolaFit::result(), reco::BeamSpot::rotatedCovariance3D(), templateHelper::SiPixelHeaderTable< PayloadType, StoreType, TransientType >::roundoff(), EcalUncalibRecHitWorkerRatio::run(), EcalUncalibRecHitWorkerGlobal::run(), EcalUncalibRecHitWorkerMultiFit::run(), HIPAlignmentAlgorithm::run(), cms::CSJetProducer::runAlgorithm(), PVFitter::runBXFitter(), PVFitter::runFitter(), BeamFitter::runPVandTrkFitter(), HGCHEbackDigitizer::runRealisticDigitizer(), HGCalSciNoiseMap::scaleByDose(), Pythia8::PowhegHooksBB4L::scaleResonance(), tmtt::KFParamsComb::seedC(), MuonHitsChamberResidual::segment_fit(), MuonPathAnalyticAnalyzer::segment_fitter(), muon::segmentCompatibility(), HGCalConcentratorAutoEncoderImpl::select(), MultiTrackSelector::select(), HIMultiTrackSelector::select(), TriggerObjectTableProducer::SelectedObject::SelectedObject(), mkfit::MkFinder::selectHitIndices(), MuonResidualsFitter::selectPeakResiduals(), tmtt::DigitalStub::setCfgParams(), PlotAlignmentValidation::setDMRHistStyleAndLegend(), HDRShower::setFuncParam(), HGCUncalibratedRecHit::setJitterError(), EcalUncalibratedRecHit::setJitterError(), l1t::PhysicsToBitConverter::SetObject(), HGCRecHit::setOutOfTimeEnergy(), TrackerMap::setRange(), MuonTrackDT13ChamberResidual::setSegmentResidual(), MuonTrackCSCChamberResidual::setSegmentResidual(), MuonTrackDT2ChamberResidual::setSegmentResidual(), HGCFEElectronics< DFr >::setTDCfsc(), L1Analysis::L1AnalysisL1UpgradeTfMuon::SetTfMuon(), l1t::CaloParamsHelperO2O::setTowerNBitsE(), l1t::CaloParamsHelper::setTowerNBitsE(), l1t::CaloParamsHelperO2O::setTowerNBitsH(), l1t::CaloParamsHelper::setTowerNBitsH(), l1t::CaloParamsHelperO2O::setTowerNBitsRatio(), l1t::CaloParamsHelper::setTowerNBitsRatio(), l1t::CaloParamsHelperO2O::setTowerNBitsSum(), l1t::CaloParamsHelper::setTowerNBitsSum(), CovarianceMatrix::setupMatrix(), RPixChargeShare::Share(), HGCalImagingAlgo::shareEnergy(), OMTFinput::shiftMyPhi(), SigmaPt::sigma(), heppy::resolutionFunction46< T >::sigmaPt(), heppy::resolutionFunction57< T >::sigmaPt(), resolutionFunctionType46< T >::sigmaPt(), resolutionFunctionType47< T >::sigmaPt(), resolutionFunctionType45< T >::sigmaPtError(), resolutionFunctionType46< T >::sigmaPtError(), resolutionFunctionType47< T >::sigmaPtError(), HGCalShowerShape::sigmaRRMax(), HGCalShowerShape::sigmaRRTot(), HGCalShowerShape::sigmaXX(), SSDigitizerAlgorithm::signalShape(), L1GctJetFinderParams::simpleCorrect(), tmtt::SimpleLR4::SimpleLR4(), TotemTimingRecHitProducerAlgorithm::simplifiedLinearRegression(), smearFunctionType4::smear(), smearFunctionType5::smear(), smearFunctionType6::smear(), HelixExtrapolatorToLine2Order::solve3rdOrder(), DAClusterizerInZT_vect::split(), l1t::Stage1Layer2EtSumAlgorithmImpHI::Stage1Layer2EtSumAlgorithmImpHI(), l1t::Stage1Layer2EtSumAlgorithmImpHW::Stage1Layer2EtSumAlgorithmImpHW(), trackerTFP::State::State(), lhef::LHERunInfo::statistics(), MuonResidualsTwoBin::stdev(), trackerDTC::Stub::Stub(), tmtt::Sector::subEtaFwCalc(), sistrip::MeasureLA::summarize_module_muH_byLayer(), TrackEfficiencyMonitor::testSTATracks(), TrackEfficiencyMonitor::testTrackerTracks(), EcalRecHit::timeError(), CTPPSTimingTrackRecognition< CTPPSDiamondLocalTrack, CTPPSDiamondRecHit >::timeEval(), hgcalsimclustertime::ComputeClusterTime::timeResolution(), l1t::L1GTScales::to_hw_isolation(), GlobalCoordsObtainer::to_two_comp(), TtFullLepKinSolver::TopRec(), trackerTFP::DataFormat::toSigned(), trackerTFP::DataFormat::toUnsigned(), PFMuonAlgo::tracksPointingAtMET(), HGVHistoProducerAlgo::tracksters_to_SimTracksters(), PFMuonAlgo::tracksWithBetterMET(), TrackVertexArbitration< VTX >::trackVertexArbitrator(), MuCSCTnPFlatTableProducer::TrajectoryDistToSeg(), HectorTransport::transportProton(), tmtt::TrkRZfilter::TrkRZfilter(), TtFullHadSignalSel::TtFullHadSignalSel(), trackerTFP::TrackKF::ttTrack(), CalibrationScanAlgorithm::tuneSimultaneously(), FullModelReactionDynamics::TwoCluster(), EcalTPGParamBuilder::uncodeWeight(), PtAssignmentEngineAux2017::unpack8bMode15(), PtAssignmentEngineAux2017::unpackCLCT(), PtAssignmentEngineAux2017::unpackSt1Ring2(), PtAssignmentEngineAux2017::unpackTheta(), trackerTFP::KalmanFilter::update(), DAClusterizerInZ::update(), HcalTB02Analysis::update(), ZdcTestAnalysis::update(), CastorTestAnalysis::update(), trackerTFP::State::v0(), tt::Setup::v0(), trackerTFP::State::v1(), tt::Setup::v1(), L1MuonPixelTrackFitter::valInversePt(), MultiTrackVertexLinkKinematicConstraint::value(), MultiTrackPointingKinematicConstraint::value(), trklet::VarAdd::VarAdd(), trklet::VarAdjustK::VarAdjustK(), trklet::VarAdjustKR::VarAdjustKR(), trklet::VarDef::VarDef(), trklet::VarDSPPostadd::VarDSPPostadd(), trklet::VarInv::VarInv(), trklet::VarMult::VarMult(), trklet::VarNounits::VarNounits(), trklet::VarParam::VarParam(), trklet::VarSubtract::VarSubtract(), trklet::VarTimesC::VarTimesC(), VertexClassifier::vertexInformation(), TrackClassifier::vertexInformation(), heppy::FSRWeightAlgo::weight(), VertexWeighter::weight(), WeightedMeanFitter::weightedMeanOutlierRejection(), WeightedMeanFitter::weightedMeanOutlierRejectionBeamSpot(), WeightedMeanFitter::weightedMeanOutlierRejectionVarianceAsError(), XMLConfigWriter::writeConnectionsData(), l1t::L1TCaloStage1LutWriter::writeIsoTauLut(), CSCXonStrip_MatchGatti::xfError_Noise(), CSCXonStrip_MatchGatti::xfError_XTasym(), lhef::LHERunInfo::xsec(), RealisticHitToClusterAssociator::XYdistanceFromMaxHit(), RealisticHitToClusterAssociator::XYdistanceFromPointOnSameLayer(), and MuCSCTnPFlatTableProducer::zMass().

24  {
25  return x == 0 ? 1 : B * pow<B>(x - 1);
26  }
Definition: APVGainStruct.h:7
float x

◆ pow2()

constexpr int conifer::pow2 ( int  x)

◆ reduce()

template<class T , class Op >
T conifer::reduce ( std::vector< T x,
Op  op 
)

Definition at line 31 of file conifer.h.

References floorlog2(), N, findAndChange::op, pow2(), and x.

Referenced by mps_alisetup.SetupAlignment::_create_weight_configs(), GenObject.GenObject::checksum(), tools::compute_product_string(), tmtt::Utility::countLayers(), web.app_utils::get_release_summary_stats(), cmsHarvester.CMSHarvester::ident_string(), dataformats::indent(), tmtt::Utility::numLayerCut(), cmsDriverOptions::OptionsFromCommandLine(), edm::ProcessHistoryRegistry::ProcessHistoryRegistry(), and dataformats::wrap_onspace().

31  {
32  int N = x.size();
33  int leftN = pow2(floorlog2(N - 1)) > 0 ? pow2(floorlog2(N - 1)) : 0;
34  //static constexpr int rightN = N - leftN > 0 ? N - leftN : 0;
35  if (N == 1) {
36  return x.at(0);
37  } else if (N == 2) {
38  return op(x.at(0), x.at(1));
39  } else {
40  std::vector<T> left(x.begin(), x.begin() + leftN);
41  std::vector<T> right(x.begin() + leftN, x.end());
42  return op(reduce<T, Op>(left, op), reduce<T, Op>(right, op));
43  }
44  }
constexpr int floorlog2(int x)
Definition: conifer.h:21
#define N
Definition: blowfish.cc:9
constexpr int pow2(int x)
Definition: conifer.h:28
float x