40 float closestDR = 10000;
41 for (std::vector<CaloTower>::const_iterator itTower = theTowers.begin(); itTower != theTowers.end(); itTower++) {
43 float dPhi = theTrack.
phi() - itTower->phi();
50 isoELepton += itTower->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 ...
virtual double energy() const
energy
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) ...