24 const std::vector<CaloTower>& theTowers,
25 float isoConeElectron)
const {
30 const std::vector<CaloTower>& theTowers,
31 float isoConeMuon)
const {
37 const float leptonEnergy,
38 const std::vector<CaloTower>& theTowers,
39 float isoCone)
const {
43 float closestDR = 10000;
44 for (std::vector<CaloTower>::const_iterator itTower = theTowers.begin(); itTower != theTowers.end(); itTower++) {
46 float dPhi = theTrack.
phi() - itTower->phi();
55 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