CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
TreeUtility.cc File Reference
#include "RecoParticleFlow/PFClusterTools/interface/TreeUtility.h"
#include "TBranch.h"
#include "TTree.h"
#include "DataFormats/ParticleFlowReco/interface/Calibratable.h"
#include <cmath>
#include <fstream>
#include <iostream>
#include <TF1.h>

Go to the source code of this file.

Functions

double deltaR (double eta1, double eta2, double phi1, double phi2)
 

Function Documentation

double deltaR ( double  eta1,
double  eta2,
double  phi1,
double  phi2 
)

Definition at line 17 of file TreeUtility.cc.

References funct::pow(), and mathSSE::sqrt().

Referenced by LayerCollector::allLayers(), myFastSimVal::analyze(), JetValidation::analyze(), PatElectronAnalyzer::analyze(), ElectronMcSignalValidator::analyze(), ElectronAnalyzer::analyze(), IsoTrig::analyze(), PatBJetTrackAnalyzer::analyze(), ZMuMuPerformances::analyze(), ElectronMcFakeValidator::analyze(), TkAlCaRecoMonitor::analyze(), ElectronSeedAnalyzer::analyze(), PatBJetVertexAnalyzer::analyze(), HLTTrack::analyze(), QcdPhotonsDQM::analyze(), HcalCorrPFCalculation::analyze(), GsfElectronDataAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), DQMAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), JetTester::analyze(), MCEfficiencyAnalyzer::analyze(), MuonAlignmentAnalyzer::analyze(), ContainmentCorrectionAnalyzer::analyze(), DQMExample_Step1::analyze(), TopHLTDiMuonDQM::analyze(), Rivet::CMS_EWK_11_021::analyze(), PhotonValidator::analyze(), SusyDQM< Mu, Ele, Jet, Met >::analyze(), HLTMuonMatchAndPlot::analyze(), DQMHcalIsoTrackAlCaReco::analyze(), TauTagValidation::analyze(), PhotonAnalyzer::analyze(), ZToMuMuGammaAnalyzer::analyze(), Rivet::MC_LES_HOUCHES_SYSTEMATICS_CMS::analyze(), Rivet::CMS_EWK_10_012::analyze(), MCEmbeddingValidationAnalyzer::analyze(), EgammaObjects::analyzeElectrons(), ExoticaDQM::analyzeMultiJets(), EgammaObjects::analyzePhotons(), L2MuonSeedGenerator::associateOfflineSeedToL1(), PFRecoTauAlgorithm::buildPFTau(), L1TauAnalyzer::calcL1MCPFTauMatching(), L1TauAnalyzer::calcL1MCTauMatching(), FWInvMassDialog::Calculate(), PfBlockBasedIsolation::calculate(), SurveyResidual::calculate(), ResolutionAnalyzer::checkDeltaR(), MuScleFit::checkDeltaR(), AlignmentGlobalTrackSelector::checkIsolation(), RPCSeedPattern::checkSegmentAlgorithmSpecial(), RPCSeedPattern::checkSimplePattern(), GlobalTrajectoryBuilderBase::chooseRegionalTrackerTracks(), EgammaSuperClusters::closestMCParticle(), TCMETAlgo::closeToElectron(), ForwardDetLayer::compatible(), MuRingForwardDoubleLayer::compatible(), MuonRadiationFilter::compCaloEnECAL(), compEcalEnergySum(), compHcalEnergySum(), MuonRadiationFilter::compPFIso_raw(), CATopJetAlgorithm::decomposeJet(), pat::DiObjectProxy::deltaR(), muonisolation::PixelTrackExtractor::deposit(), PFTauExtractor::depositFromObject(), PFCandWithSuperClusterExtractor::depositFromObject(), SelectReplacementCandidates::determineMuonsToUse(), PFRecoTauDiscriminationByHPSSelection::discriminate(), PFRecoTauDiscriminationAgainstMuon2::discriminate(), HiggsDQM::Distance(), DQMExample_Step1::Distance(), PFHcalSuperClusterAlgo::doClusteringWorker(), PF_PU_AssoMapAlgos::dR(), GenericBenchmark::fill(), TopElectronHLTOfflineSource::fill(), SoftPFElectronTagInfoProducer::fillElecProperties(), PFMuonCaloCleaner::fillEnergyDepositMap(), MCEmbeddingValidationAnalyzer::leptonDistributionT< T >::fillHistograms(), MCEmbeddingValidationAnalyzer::electronDistributionExtra::fillHistograms(), MCEmbeddingValidationAnalyzer::tauDistributionExtra::fillHistograms(), MCEmbeddingValidationAnalyzer::leptonEfficiencyT< T >::fillHistograms(), MCEmbeddingValidationAnalyzer::leptonL1TriggerEfficiencyT1T2< T1, T2 >::fillHistograms(), HistoFillerReco< T >::fillHistos(), HistoFiller< T >::fillHistos(), GenericBenchmark::fillHistos(), JetMETHLTOfflineSource::fillMEforEffAllTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMBTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMuTrigger(), JetMETHLTOfflineSource::fillMEforMonAllTrigger(), JetMETHLTOfflineSource::fillMEforMonAllTriggerwrtMuonTrigger(), SoftPFMuonTagInfoProducer::fillMuonProperties(), JPTJetAnalyzer::fillTrackHistograms(), RecoTauDifferenceAnalyzer::filter(), pat::CaloJetSelector::filter(), HighETPhotonsFilterAlgo::filter(), GenMuonRadiationFilter::filter(), MuonRadiationFilter::filter(), HeavyChHiggsToTauNuSkim::filter(), MCParticlePairFilter::filter(), HSCParticleProducer::filter(), CSCEfficiency::filter(), EMEnrichingFilterAlgo::filterIsoGenPar(), doubleEMEnrichingFilterAlgo::filterIsoGenPar(), EMEnrichingFilterAlgo::filterPhotonElectronSeed(), doubleEMEnrichingFilterAlgo::filterPhotonElectronSeed(), HepMCValidationHelper::findFSRPhotons(), HLTMuonPlotter::findMatches(), TtSemiLepHypGenMatch::findMatchingLepton(), TtFullLepHypGenMatch::findMatchingLepton(), UpdatedMuonInnerTrackRef::findNewRef(), FlavorHistoryProducer::getClosestJet(), ConversionFinder::getConversionInfo(), ConversionFinder::getConversionInfos(), HSCParticleProducer::getHSCPSeedCollection(), EcalElectronicsMapping::GetListofFEDs(), ParticleTowerProducer::getNearestTower(), HLTDiMuonGlbTrkFilter::hltFilter(), HLTHcalNoiseFilter::hltFilter(), CurrentAlignmentKFUpdator::includeCurrentAlignmentEstimate(), pftools::CaloWindow::init(), PFPhotonIsolationCalculator::isChargedParticleVetoed(), PFIsolationEstimator::isChargedParticleVetoed(), ConversionSeedFilter::isCompatible(), cms::MuonTCMETValueMapProducer::isGoodCaloMuon(), GoodSeedProducer::IsIsolated(), IsMuMatchedToHLTMu(), EwkMuLumiMonitorDQM::IsMuMatchedToHLTMu(), MuTriggerAnalyzer::IsMuMatchedToHLTMu(), IsMuMatchedToHLTSingleMu(), BTagHLTOfflineSource::isMuonJet(), PFPhotonIsolationCalculator::isNeutralParticleVetoed(), PFIsolationEstimator::isNeutralParticleVetoed(), PFPhotonIsolationCalculator::isPhotonParticleVetoed(), PFIsolationEstimator::isPhotonParticleVetoed(), main(), GlobalMuonTrackMatcher::match(), HLTMuonMatchAndPlot::matchByDeltaR(), MatcherUsingTracksAlgorithm::matchByDirectComparison(), JetPlusTrackCorrector::matchElectrons(), PFPhotonIsolationCalculator::matchPFObject(), PFIsolationEstimator::matchPFObject(), AlignmentGlobalTrackSelector::matchTracks(), MatcherUsingTracksAlgorithm::matchWithPropagation(), AntiElectronIDMVA5GBR::MVAValue(), TrkCalIsolationAlgo< T1, C2 >::operator()(), CalIsolationAlgoNoExp< T1, C2 >::operator()(), PtIsolationAlgo< T, C >::operator()(), CalIsolationAlgo< T1, C2 >::operator()(), SmearedJetProducer_namespace::GenJetMatcherT< pat::Jet >::operator()(), SmearedJetProducer_namespace::GenJetMatcherT< T >::operator()(), L25TauAnalyzer::printInfo(), PFRootEventManager::printMCCalib(), PFJetBenchmark::process(), MuonWithPFIsoProducerCopy::produce(), MuonWithPFIsoProducer::produce(), EgammaHLTPFChargedIsolationProducer::produce(), EgammaHLTPFNeutralIsolationProducer::produce(), IsoTracks::produce(), EgammaHLTPFPhotonIsolationProducer::produce(), IPTCorrector::produce(), IsolatedPixelTrackCandidateProducer::produce(), L3MuonCandidateProducer::produce(), JetPlusTrackProducer::produce(), ShiftedPFCandidateProducerForPFMEtMVA::produce(), ConversionSeedFilterCharge::produce(), ParticleReplacerZtautau::produce(), HLTJetCollectionsForLeptonPlusJets< jetType >::produce(), AlCaHcalNoiseProducer::produce(), ShiftedPFCandidateProducerForNoPileUpPFMEt::produce(), ElectronSeedTrackRefUpdaterAndMerger::produce(), ElectronSeedTrackRefUpdater::produce(), JetPlusTrackProducerAA::produce(), AlCaIsoTracksProducer::produce(), ObjectViewMatcher< T1, T2 >::produce(), PFRecoTauChargedHadronProducer::produce(), ObjectViewCleaner< T >::produce(), ProduceIsolationMap::produce(), TriggerMatcherToHLTDebug::produce(), HemisphereAlgo::reconstruct(), RecoTauJetRegionProducer::RecoTauJetRegionProducer(), MuonPFAnalyzer::recoToGenMatch(), MuonTrackingRegionBuilder::region(), pftools::CaloWindow::relativePosition(), HepMCValidationHelper::removeIsolatedLeptons(), RPCSeedPattern::SegmentAlgorithmSpecial(), SurveyResidual::sensorResidual(), edm::service::SimpleMemoryCheck::SignificantEvent::set(), EwkMuLumiMonitorDQM::tkIso(), reco::IsolatedTauTagInfo::tracksInCone(), TtFullHadSignalSel::TtFullHadSignalSel(), and SimpleNavigableLayer::wellInside().

17  {
18  return sqrt(pow(eta1 - eta2, 2) + pow(phi1 - phi2, 2));
19 }
T sqrt(T t)
Definition: SSEVec.h:48
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40