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();
double phi() const
azimuthal angle of momentum vector
reco::TrackRef track() const override
reference to Track reconstructed in the tracker only (reimplemented from reco::Muon) ...
double eta() const
pseudorapidity of momentum vector
double energy() const final
energy
CaloIsolationEnergy()
constructor
float calculate(const Electron &anElectron, const std::vector< CaloTower > &theTowers, float isoConeElectron=0.3) const
calculate the CalIsoE from the lepton object
reco::GsfTrackRef gsfTrack() const override
override the reco::GsfElectron::gsfTrack method, to access the internal storage of the supercluster ...
Power< A, B >::type pow(const A &a, const B &b)
virtual ~CaloIsolationEnergy()
destructor