CMS 3D CMS Logo

CaloIsolationEnergy.h
Go to the documentation of this file.
1 //
2 //
3 
4 #ifndef PhysicsTools_PatUtils_CaloIsolationEnergy_h
5 #define PhysicsTools_PatUtils_CaloIsolationEnergy_h
6 
18 #include <vector>
19 
20 class MagneticField;
21 class TrackToEcalPropagator;
22 class CaloTower;
23 
24 namespace reco {
25  class Track;
26 }
27 
28 namespace pat {
29  class Muon;
30  class Electron;
31 
33  public:
35  virtual ~CaloIsolationEnergy();
36 
37  float calculate(const Electron& anElectron,
38  const std::vector<CaloTower>& theTowers,
39  float isoConeElectron = 0.3) const;
40  float calculate(const Muon& aMuon, const std::vector<CaloTower>& theTowers, float isoConeMuon = 0.3) const;
41 
42  private:
43  float calculate(const reco::Track& track,
44  const float leptonEnergy,
45  const std::vector<CaloTower>& theTowers,
46  float isoCone) const;
47  };
48 
49 } // namespace pat
50 
51 #endif
HLT_FULL_cff.track
track
Definition: HLT_FULL_cff.py:11724
pat::CaloIsolationEnergy
Calculates a lepton's calorimetric isolation energy.
Definition: CaloIsolationEnergy.h:32
Electron
Definition: Electron.py:1
pat::CaloIsolationEnergy::~CaloIsolationEnergy
virtual ~CaloIsolationEnergy()
destructor
Definition: CaloIsolationEnergy.cc:20
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
Muon
Definition: Muon.py:1
reco::Track
Definition: Track.h:27
CaloTower
Definition: CaloTower.h:26
pat
Definition: HeavyIon.h:7
pat::CaloIsolationEnergy::calculate
float calculate(const Electron &anElectron, const std::vector< CaloTower > &theTowers, float isoConeElectron=0.3) const
calculate the CalIsoE from the lepton object
Definition: CaloIsolationEnergy.cc:23
pat::CaloIsolationEnergy::CaloIsolationEnergy
CaloIsolationEnergy()
constructor
Definition: CaloIsolationEnergy.cc:17
MagneticField
Definition: MagneticField.h:19