CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/RecoParticleFlow/PFClusterTools/src/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(), ElectronMcFakeValidator::analyze(), ElectronAnalyzer::analyze(), GsfElectronDataAnalyzer::analyze(), HLTMuonMatchAndPlot::analyze(), IsoTrig::analyze(), Rivet::CMS_EWK_10_012::analyze(), JetValidation::analyze(), TauTagValidation::analyze(), SusyDQM< Mu, Ele, Jet, Met >::analyze(), Rivet::CMS_EWK_11_021::analyze(), MCEfficiencyAnalyzer::analyze(), HLTInclusiveVBFSource::analyze(), ErsatzMEt::analyze(), JPTJetTester::analyze(), TkAlCaRecoMonitor::analyze(), HcalCorrPFCalculation::analyze(), PhotonAnalyzer::analyze(), Rivet::MC_LES_HOUCHES_SYSTEMATICS_CMS::analyze(), ElectronMcSignalValidator::analyze(), RPCPhiEff::analyze(), WenuPlots::analyze(), DQMHcalIsoTrackAlCaReco::analyze(), PatBJetVertexAnalyzer::analyze(), PatElectronAnalyzer::analyze(), GsfElectronMCFakeAnalyzer::analyze(), ZMuMuPerformances::analyze(), ContainmentCorrectionAnalyzer::analyze(), ElectronSeedAnalyzer::analyze(), ZToMuMuGammaAnalyzer::analyze(), ZeePlots::analyze(), HLTMonHcalIsoTrack::analyze(), myFastSimVal::analyze(), QcdPhotonsDQM::analyze(), PatBJetTrackAnalyzer::analyze(), PFJetTester::analyze(), CaloJetTester::analyze(), DQMAnalyzer::analyze(), TopHLTDiMuonDQM::analyze(), MuonAlignmentAnalyzer::analyze(), GsfElectronFakeAnalyzer::analyze(), HLTTrack::analyze(), EgammaObjects::analyzeElectrons(), ExoticaDQM::analyzeMultiJets(), EgammaObjects::analyzePhotons(), L2MuonSeedGenerator::associateOfflineSeedToL1(), PFRecoTauAlgorithm::buildPFTau(), L1TauAnalyzer::calcL1MCPFTauMatching(), L1TauAnalyzer::calcL1MCTauMatching(), SurveyResidual::calculate(), reco::helper::JetMuonHitsIDHelper::calculate(), ResolutionAnalyzer::checkDeltaR(), MuScleFit::checkDeltaR(), AlignmentGlobalTrackSelector::checkIsolation(), RPCSeedPattern::checkSegmentAlgorithmSpecial(), RPCSeedPattern::checkSimplePattern(), GlobalTrajectoryBuilderBase::chooseRegionalTrackerTracks(), EgammaSuperClusters::closestMCParticle(), TCMETAlgo::closeToElectron(), MuRingForwardDoubleLayer::compatible(), ForwardDetLayer::compatible(), compEcalEnergySum(), compHcalEnergySum(), PileupJetIdAlgo::computeIdVariables(), PFRecoTauDiscriminationByMVAIsolation::computeIsoRings(), CATopJetAlgorithm::decomposeJet(), muonisolation::PixelTrackExtractor::deposit(), muonisolation::JetExtractor::deposit(), muonisolation::CaloExtractor::deposit(), PFCandWithSuperClusterExtractor::depositFromObject(), PFTauExtractor::depositFromObject(), muonisolation::CaloExtractorByAssociator::deposits(), SelectReplacementCandidates::determineMuonsToUse(), PFRecoTauDiscriminationByHPSSelection::discriminate(), HiggsDQM::Distance(), PF_PU_AssoMapAlgos::dR(), GenericBenchmark::fill(), TopElectronHLTOfflineSource::fill(), EmDQMReco::fillHistos(), EmDQM::fillHistos(), GenericBenchmark::fillHistos(), JetMETHLTOfflineSource::fillMEforEffAllTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMBTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMuTrigger(), JetMETHLTOfflineSource::fillMEforMonAllTrigger(), JetMETHLTOfflineSource::fillMEforMonAllTriggerwrtMuonTrigger(), pat::helper::BasicOverlapTest::fillOverlapsForItem(), JPTJetAnalyzer::fillTrackHistograms(), muonisolation::CaloExtractor::fillVetos(), pat::CaloJetSelector::filter(), ZeeCandidateFilter::filter(), CSCEfficiency::filter(), MCParticlePairFilter::filter(), HSCParticleProducer::filter(), HeavyChHiggsToTauNuSkim::filter(), RecoTauDifferenceAnalyzer::filter(), HighETPhotonsFilterAlgo::filter(), doubleEMEnrichingFilterAlgo::filterIsoGenPar(), EMEnrichingFilterAlgo::filterIsoGenPar(), EMEnrichingFilterAlgo::filterPhotonElectronSeed(), doubleEMEnrichingFilterAlgo::filterPhotonElectronSeed(), HepMCValidationHelper::findFSRPhotons(), HLTMuonValidator::findMatches(), TtSemiLepHypGenMatch::findMatchingLepton(), TtFullLepHypGenMatch::findMatchingLepton(), UpdatedMuonInnerTrackRef::findNewRef(), FlavorHistoryProducer::getClosestJet(), PileUpSubtractor::getCone(), ConversionFinder::getConversionInfo(), ConversionFinder::getConversionInfos(), HSCParticleProducer::getHSCPSeedCollection(), TtDilepEvtSolution::getJetResidual(), TtDilepEvtSolution::getLeptonResidual(), EcalElectronicsMapping::GetListofFEDs(), ParticleTowerProducer::getNearestTower(), HLTHcalNoiseFilter::hltFilter(), HLTDiMuonGlbTrkFilter::hltFilter(), CurrentAlignmentKFUpdator::includeCurrentAlignmentEstimate(), pftools::CaloWindow::init(), SoftElectronCandProducer::isClean(), SoftPFElectronProducer::isClean(), EcalDeadCellDeltaRFilter::isCloseToBadEcalChannel(), ConversionSeedFilter::isCompatible(), cms::MuonTCMETValueMapProducer::isGoodCaloMuon(), GoodSeedProducer::IsIsolated(), MuTriggerAnalyzer::IsMuMatchedToHLTMu(), IsMuMatchedToHLTMu(), IsMuMatchedToHLTSingleMu(), BTagHLTOfflineSource::isMuonJet(), EcalClusterLocal::localCoordsEB(), EcalClusterLocal::localCoordsEE(), main(), HLTMuonMatchAndPlot::matchByDeltaR(), MatcherUsingTracksAlgorithm::matchByDirectComparison(), JetPlusTrackCorrector::matchElectrons(), ConversionTools::matchesConversion(), AlignmentGlobalTrackSelector::matchTracks(), MatcherUsingTracksAlgorithm::matchWithPropagation(), PFCandidateMixer::mix(), AntiElectronIDMVA3::MVAValue(), AntiElectronIDMVA2::MVAValue(), SmearedJetProducer_namespace::GenJetMatcherT< pat::Jet >::operator()(), DeltaR< math::XYZVector, math::XYZPoint >::operator()(), Match::operator()(), PtIsolationAlgo< T, C >::operator()(), CalIsolationAlgo< T1, C2 >::operator()(), SmearedJetProducer_namespace::GenJetMatcherT< T >::operator()(), CalIsolationAlgoNoExp< T1, C2 >::operator()(), TrkCalIsolationAlgo< T1, C2 >::operator()(), deltaRSorter< T, U >::operator()(), L25TauAnalyzer::printInfo(), PFRootEventManager::printMCCalib(), PFJetBenchmark::process(), HLTJetCollectionsForLeptonPlusJets< jetType >::produce(), MuonWithPFIsoProducer::produce(), AlCaHcalNoiseProducer::produce(), L3MuonCandidateProducer::produce(), ShiftedPFCandidateProducerForNoPileUpPFMEt::produce(), JetPlusTrackProducerAA::produce(), ObjectViewCleaner< T >::produce(), JetPlusTrackProducer::produce(), AlCaIsoTracksProducer::produce(), ShiftedPFCandidateProducerForPFMEtMVA::produce(), TriggerMatcherToHLTDebug::produce(), IsoTracks::produce(), ProduceIsolationMap::produce(), ObjectViewMatcher< T1, T2 >::produce(), IPTCorrector::produce(), IsolatedPixelTrackCandidateProducer::produce(), ElectronMatchedCandidateProducer::produce(), ConversionSeedFilterCharge::produce(), ZmumuPFEmbedder::producePFCandColl(), ZmumuPFEmbedder::produceTrackColl(), HemisphereAlgo::reconstruct(), MuonTrackingRegionBuilder::region(), pftools::CaloWindow::relativePosition(), HepMCValidationHelper::removeIsolatedLeptons(), TauMETAlgo::run(), RPCSeedPattern::SegmentAlgorithmSpecial(), SurveyResidual::sensorResidual(), edm::service::SimpleMemoryCheck::SignificantEvent::set(), EwkMuLumiMonitorDQM::tkIso(), reco::IsolatedTauTagInfo::tracksInCone(), TrackVertexArbitration::trackVertexArbitrator(), TtFullHadSignalSel::TtFullHadSignalSel(), SimpleNavigableLayer::wellInside(), and VirtualJetProducer::writeJets().

                                                                  {
        return sqrt(pow(eta1 - eta2, 2) + pow(phi1 - phi2, 2));
}