ATLAS Offline Software
Loading...
Searching...
No Matches
ForwardElectronToolsTestAlg.cxx File Reference
#include "ElectronPhotonSelectorTools/ForwardElectronToolsTestAlg.h"
#include "AsgDataHandles/ReadHandle.h"
#include "xAODTruth/TruthParticleContainer.h"
#include "xAODCaloEvent/CaloCluster.h"
#include "CaloGeoHelpers/CaloSampling.h"
#include <cmath>
Include dependency graph for ForwardElectronToolsTestAlg.cxx:

Go to the source code of this file.

Functions

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

Function Documentation

◆ deltaR()

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

Definition at line 30 of file ForwardElectronToolsTestAlg.cxx.

30 {
31 double deta = eta1 - eta2;
32 double dphi = phi1 - phi2;
33 while (dphi > M_PI) dphi -= 2*M_PI;
34 while (dphi < -M_PI) dphi += 2*M_PI;
35 return std::sqrt(deta*deta + dphi*dphi);
36}
#define M_PI
setEt setPhi setE277 setWeta2 eta1