39 float closestDR = 10000;
40 for (std::vector<CaloTower>::const_iterator itTower = theTowers.begin(); itTower != theTowers.end(); itTower++) {
42 float dPhi = theTrack.
phi() - itTower->phi();
49 isoELepton += itTower->energy();
virtual double energy() const GCC11_FINAL
energy
double phi() const
azimuthal angle of momentum vector
reco::GsfTrackRef gsfTrack() const
override the reco::GsfElectron::gsfTrack method, to access the internal storage of the supercluster ...
double eta() const
pseudorapidity of momentum vector
double dPhi(double phi1, double phi2)
Analysis-level electron class.
CaloIsolationEnergy()
constructor
float calculate(const Electron &anElectron, const std::vector< CaloTower > &theTowers, float isoConeElectron=0.3) const
calculate the CalIsoE from the lepton object
Analysis-level muon class.
Power< A, B >::type pow(const A &a, const B &b)
virtual ~CaloIsolationEnergy()
destructor
reco::TrackRef track() const
reference to Track reconstructed in the tracker only (reimplemented from reco::Muon) ...