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 Muon.Muon::absIsoWithFSR(), Electron.Electron::absIsoWithFSR(), LayerCollector::allLayers(), myFastSimVal::analyze(), JetValidation::analyze(), PatElectronAnalyzer::analyze(), TrackTypeMonitor::analyze(), TkAlCaRecoMonitor::analyze(), PatBJetTrackAnalyzer::analyze(), ElectronSeedAnalyzer::analyze(), QcdPhotonsDQM::analyze(), ElectronMcFakeValidator::analyze(), PatBJetVertexAnalyzer::analyze(), HLTTrack::analyze(), ElectronAnalyzer::analyze(), GsfElectronDataAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), HcalCorrPFCalculation::analyze(), ZMuMuPerformances::analyze(), DQMAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), MCEfficiencyAnalyzer::analyze(), JetTester::analyze(), MuonAlignmentAnalyzer::analyze(), DQMHcalIsoTrackAlCaReco::analyze(), ContainmentCorrectionAnalyzer::analyze(), DQMExample_Step1::analyze(), SusyDQM< Mu, Ele, Jet, Met >::analyze(), HLTMuonMatchAndPlot::analyze(), PhotonValidator::analyze(), JetTester_HeavyIons::analyze(), TauTagValidation::analyze(), JetAnalyzer::analyze(), ZToMuMuGammaAnalyzer::analyze(), PhotonAnalyzer::analyze(), MCEmbeddingValidationAnalyzer::analyze(), ExoticaDQM::analyzeDiElectrons(), ExoticaDQM::analyzeDiJets(), ExoticaDQM::analyzeDiMuons(), ExoticaDQM::analyzeDiPhotons(), EgammaObjects::analyzeElectrons(), EgammaObjects::analyzePhotons(), L2MuonSeedGenerator::associateOfflineSeedToL1(), L2MuonSeedGeneratorFromL1T::associateOfflineSeedToL1(), PFRecoTauAlgorithm::buildPFTau(), FWInvMassDialog::Calculate(), PFBlockBasedIsolation::calculate(), SurveyResidual::calculate(), PrimaryVertexAssignment::chargedHadronVertex(), ResolutionAnalyzer::checkDeltaR(), MuScleFit::checkDeltaR(), AlignmentGlobalTrackSelector::checkIsolation(), objects.PhotonAnalyzer.PhotonAnalyzer::checkMatch(), RPCSeedPattern::checkSegmentAlgorithmSpecial(), RPCSeedPattern::checkSimplePattern(), IsoTrig::chgIsolation(), GlobalTrajectoryBuilderBase::chooseRegionalTrackerTracks(), EgammaSuperClusters::closestMCParticle(), TCMETAlgo::closeToElectron(), ForwardDetLayer::compatible(), MuRingForwardDoubleLayer::compatible(), MuonRadiationFilter::compCaloEnECAL(), MuonRadiationFilter::compPFIso_raw(), objects.PhotonAnalyzer.PhotonAnalyzer::computeRandomCone(), CATopJetAlgorithm::decomposeJet(), pat::DiObjectProxy::deltaR(), muonisolation::PixelTrackExtractor::deposit(), PFTauExtractor::depositFromObject(), PFCandWithSuperClusterExtractor::depositFromObject(), SelectReplacementCandidates::determineMuonsToUse(), PFRecoTauDiscriminationByHPSSelection::discriminate(), HiggsDQM::Distance(), DQMExample_Step1::Distance(), PF_PU_AssoMapAlgos::dR(), HLTObjectMonitor::dxyFinder(), GenericBenchmark::fill(), HLTOfflineDQMTopSingleLepton::MonitorSingleLepton::fill(), HLTOfflineDQMTopDiLepton::MonitorDiLepton::fill(), CombinedSVComputer::fillCommonVariables(), 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::fillMEforMonAllTrigger(), RecoTauDifferenceAnalyzer::filter(), HighETPhotonsFilterAlgo::filter(), pat::CaloJetSelector::filter(), GenMuonRadiationFilter::filter(), MuonRadiationFilter::filter(), HeavyChHiggsToTauNuSkim::filter(), MCParticlePairFilter::filter(), HSCParticleProducer::filter(), CSCEfficiency::filter(), EMEnrichingFilterAlgo::filterIsoGenPar(), doubleEMEnrichingFilterAlgo::filterIsoGenPar(), EMEnrichingFilterAlgo::filterPhotonElectronSeed(), doubleEMEnrichingFilterAlgo::filterPhotonElectronSeed(), HepMCValidationHelper::findFSRPhotons(), GenHFHadronMatcher::findHadronJets(), HLTMuonPlotter::findMatches(), TtSemiLepHypGenMatch::findMatchingLepton(), TtFullLepHypGenMatch::findMatchingLepton(), UpdatedMuonInnerTrackRef::findNewRef(), FlavorHistoryProducer::getClosestJet(), ConversionFinder::getConversionInfo(), ConversionFinder::getConversionInfos(), HSCParticleProducer::getHSCPSeedCollection(), EcalElectronicsMapping::GetListofFEDs(), ParticleTowerProducer::getNearestTower(), HcalPFClusterIsolation< T1 >::getSum(), HLTDiMuonGlbTrkFilter::hltFilter(), HLTMuonTrkFilter::hltFilter(), HLTMuonTrkL1TFilter::hltFilter(), HLTHcalNoiseFilter::hltFilter(), pftools::CaloWindow::init(), SimpleDiskBounds::inside(), DiskSectorBounds::inside(), PFPhotonIsolationCalculator::isChargedParticleVetoed(), PFIsolationEstimator::isChargedParticleVetoed(), ConversionSeedFilter::isCompatible(), cms::MuonTCMETValueMapProducer::isGoodCaloMuon(), IsMuMatchedToHLTMu(), EwkMuLumiMonitorDQM::IsMuMatchedToHLTMu(), MuTriggerAnalyzer::IsMuMatchedToHLTMu(), IsMuMatchedToHLTSingleMu(), PFPhotonIsolationCalculator::isNeutralParticleVetoed(), PFIsolationEstimator::isNeutralParticleVetoed(), PFPhotonIsolationCalculator::isPhotonParticleVetoed(), PFIsolationEstimator::isPhotonParticleVetoed(), main(), gen.GenHeavyFlavourAnalyzer.GenHeavyFlavourAnalyzer::makeBPartons(), objects.IsoTrackAnalyzer.IsoTrackAnalyzer::makeIsoTrack(), objects.IsoTrackAnalyzer::makeNearestLeptons(), objects.TauAnalyzer.TauAnalyzer::makeTaus(), pat::GenJetMatcher::match(), GlobalMuonTrackMatcher::match(), L1Muon2RecoTreeProducer::match_trigger(), L1MuonRecoTreeProducer::match_trigger(), HLTMuonMatchAndPlot::matchByDeltaR(), MatcherUsingTracksAlgorithm::matchByDirectComparison(), JetPlusTrackCorrector::matchElectrons(), objects.LeptonAnalyzer.LeptonAnalyzer::matchLeptons(), PuppiPhoton::matchPFCandidate(), PFPhotonIsolationCalculator::matchPFObject(), PFIsolationEstimator::matchPFObject(), objects.PhotonAnalyzer.PhotonAnalyzer::matchPhotons(), AlignmentGlobalTrackSelector::matchTracks(), MatcherUsingTracksAlgorithm::matchWithPropagation(), AntiElectronIDMVA5::MVAValue(), AntiElectronIDMVA6::MVAValue(), TrkCalIsolationAlgo< T1, C2 >::operator()(), CalIsolationAlgoNoExp< T1, C2 >::operator()(), PtIsolationAlgo< T, C >::operator()(), GhostTrackComputer::operator()(), CalIsolationAlgo< T1, C2 >::operator()(), reco::VertexFilter::operator()(), HLTmumutktkVtxProducer::overlap(), HLTmumutkVtxProducer::overlap(), ListGroups::overlayEtaReferences(), PFJetBenchmark::process(), MuonWithPFIsoProducerCopy::produce(), MuonWithPFIsoProducer::produce(), IPTCorrector::produce(), L1THLTTauMatching::produce(), L1HLTTauMatching::produce(), IsoTracks::produce(), JetCoreClusterSplitter::produce(), HLTMuonL2SelectorForL3IO::produce(), EgammaHLTPFChargedIsolationProducer::produce(), EgammaHLTPFPhotonIsolationProducer::produce(), EgammaHLTPFNeutralIsolationProducer::produce(), TSGForOI::produce(), L3MuonCandidateProducer::produce(), ConversionSeedFilterCharge::produce(), JetPlusTrackProducer::produce(), HLTJetCollectionsForBoostedLeptonPlusJets< jetType >::produce(), HLTJetCollectionsForLeptonPlusJets< jetType >::produce(), ParticleReplacerZtautau::produce(), HiGenCleaner< T2 >::produce(), AlCaHcalNoiseProducer::produce(), ShiftedPFCandidateProducerForNoPileUpPFMEt::produce(), ElectronSeedTrackRefUpdater::produce(), ElectronSeedTrackRefUpdaterAndMerger::produce(), ObjectViewMatcher< T1, T2 >::produce(), PFRecoTauChargedHadronProducer::produce(), JetPlusTrackProducerAA::produce(), ObjectViewCleaner< T >::produce(), ProduceIsolationMap::produce(), TriggerMatcherToHLTDebug::produce(), HemisphereAlgo::reconstruct(), heppy::Hemisphere::Reconstruct(), RecoTauJetRegionProducer::RecoTauJetRegionProducer(), MuonPFAnalyzer::recoToGenMatch(), MuonTrackingRegionBuilder::region(), pftools::CaloWindow::relativePosition(), HepMCValidationHelper::removeIsolatedLeptons(), BtoCharmDecayVertexMergerT< VTX >::resolveBtoDchain(), DynamicRfilt::result(), RPCSeedPattern::SegmentAlgorithmSpecial(), SurveyResidual::sensorResidual(), edm::service::SimpleMemoryCheck::SignificantEvent::set(), IsoTrig::studyIsolation(), IsoTrig::studyTiming(), IsoTrig::studyTrigger(), SoftLepton::tag(), reco::TemplatedSecondaryVertexTagInfo< IPTI, VTX >::taggingVariables(), DiLeptonAnalyzer.DiLeptonAnalyzer::testDeltaR(), EwkMuLumiMonitorDQM::tkIso(), reco::IsolatedTauTagInfo::tracksInCone(), TrackVertexArbitration< VTX >::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:18
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40