CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CaloIsolationEnergy.h
Go to the documentation of this file.
1 //
2 // $Id: CaloIsolationEnergy.h,v 1.3 2008/03/05 14:51:02 fronga Exp $
3 //
4 
5 #ifndef PhysicsTools_PatUtils_CaloIsolationEnergy_h
6 #define PhysicsTools_PatUtils_CaloIsolationEnergy_h
7 
19 #include <vector>
20 
21 class MagneticField;
22 class TrackToEcalPropagator;
23 class CaloTower;
24 
25 namespace reco {
26  class Track;
27 }
28 
29 namespace pat {
30  class Muon;
31  class Electron;
32 
34  public:
36  virtual ~CaloIsolationEnergy();
37 
38  float calculate(const Electron & anElectron, const std::vector<CaloTower> & theTowers, float isoConeElectron = 0.3) const;
39  float calculate(const Muon & aMuon, const std::vector<CaloTower> & theTowers, float isoConeMuon = 0.3) const;
40 
41  private:
42  float calculate(const reco::Track & track, const float leptonEnergy, const std::vector<CaloTower> & theTowers, float isoCone) const;
43  };
44 
45 }
46 
47 #endif
48 
Analysis-level electron class.
Definition: Electron.h:52
Calculates a lepton&#39;s calorimetric isolation energy.
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.
Definition: Muon.h:51
virtual ~CaloIsolationEnergy()
destructor