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(), ElectronMcFakeValidator::analyze(), TkAlCaRecoMonitor::analyze(), ElectronSeedAnalyzer::analyze(), PatBJetVertexAnalyzer::analyze(), HLTTrack::analyze(), QcdPhotonsDQM::analyze(), HcalCorrPFCalculation::analyze(), ZMuMuPerformances::analyze(), GsfElectronDataAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), DQMAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), JetTester::analyze(), MCEfficiencyAnalyzer::analyze(), MuonAlignmentAnalyzer::analyze(), ContainmentCorrectionAnalyzer::analyze(), DQMExample_Step1::analyze(), Rivet::CMS_EWK_11_021::analyze(), SusyDQM< Mu, Ele, Jet, Met >::analyze(), PhotonValidator::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(), PF_PU_AssoMapAlgos::dR(), GenericBenchmark::fill(), HLTOfflineDQMTopSingleLepton::MonitorSingleLepton::fill(), HLTOfflineDQMTopDiLepton::MonitorDiLepton::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(), 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(), DiskSectorBounds::inside(), SimpleDiskBounds::inside(), PFPhotonIsolationCalculator::isChargedParticleVetoed(), PFIsolationEstimator::isChargedParticleVetoed(), ConversionSeedFilter::isCompatible(), cms::MuonTCMETValueMapProducer::isGoodCaloMuon(), 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()(), reco::VertexFilter::operator()(), PtIsolationAlgo< T, C >::operator()(), CombinedSVComputer::operator()(), GhostTrackComputer::operator()(), CombinedSVComputerV2::operator()(), CombinedSVSoftLeptonComputer::operator()(), CalIsolationAlgo< T1, C2 >::operator()(), SmearedJetProducer_namespace::GenJetMatcherT< pat::Jet >::operator()(), SmearedJetProducer_namespace::GenJetMatcherT< T >::operator()(), HLTmumutkVtxProducer::overlap(), L25TauAnalyzer::printInfo(), PFJetBenchmark::process(), MuonWithPFIsoProducerCopy::produce(), MuonWithPFIsoProducer::produce(), IsoTracks::produce(), EgammaHLTEcalPFClusterIsolationProducer::produce(), IPTCorrector::produce(), EgammaHLTHcalPFClusterIsolationProducer::produce(), EgammaHLTPFChargedIsolationProducer::produce(), EgammaHLTPFNeutralIsolationProducer::produce(), EgammaHLTPFPhotonIsolationProducer::produce(), IsolatedPixelTrackCandidateProducer::produce(), L3MuonCandidateProducer::produce(), ShiftedPFCandidateProducerForPFMEtMVA::produce(), ConversionSeedFilterCharge::produce(), JetPlusTrackProducer::produce(), HLTJetCollectionsForLeptonPlusJets< jetType >::produce(), HLTJetCollectionsForBoostedLeptonPlusJets< jetType >::produce(), ParticleReplacerZtautau::produce(), AlCaHcalNoiseProducer::produce(), ShiftedPFCandidateProducerForNoPileUpPFMEt::produce(), ElectronSeedTrackRefUpdater::produce(), ElectronSeedTrackRefUpdaterAndMerger::produce(), HiGenCleaner< T2 >::produce(), AlCaIsoTracksProducer::produce(), ObjectViewMatcher< T1, T2 >::produce(), PFRecoTauChargedHadronProducer::produce(), JetPlusTrackProducerAA::produce(), ObjectViewCleaner< T >::produce(), SecondaryVertexProducer::produce(), ProduceIsolationMap::produce(), TriggerMatcherToHLTDebug::produce(), HemisphereAlgo::reconstruct(), RecoTauJetRegionProducer::RecoTauJetRegionProducer(), MuonPFAnalyzer::recoToGenMatch(), MuonTrackingRegionBuilder::region(), pftools::CaloWindow::relativePosition(), HepMCValidationHelper::removeIsolatedLeptons(), BtoCharmDecayVertexMerger::resolveBtoDchain(), RPCSeedPattern::SegmentAlgorithmSpecial(), SurveyResidual::sensorResidual(), edm::service::SimpleMemoryCheck::SignificantEvent::set(), PFElToElAssMaker::SetVars(), reco::SecondaryVertexTagInfo::taggingVariables(), EwkMuLumiMonitorDQM::tkIso(), reco::IsolatedTauTagInfo::tracksInCone(), TrackVertexArbitration::trackVertexArbitrator(), 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