CMS 3D CMS Logo

ElectronTkIsolation.h
Go to the documentation of this file.
1 #ifndef EgammaIsolationAlgos_ElectronTkIsolation_h
2 #define EgammaIsolationAlgos_ElectronTkIsolation_h
3 //*****************************************************************************
4 // File: ElectronTkIsolation.h
5 // ----------------------------------------------------------------------------
6 // OrigAuth: Matthias Mozer
7 // Institute: IIHE-VUB
8 //=============================================================================
9 //*****************************************************************************
10 
11 //C++ includes
12 #include <vector>
13 #include <functional>
14 
15 //Root includes
16 #include "TObjArray.h"
17 
18 //CMSSW includes
23 
24 #include <string>
25 
27 public:
28  //constructors
30  double intRadius,
31  double ptLow,
32  double lip,
33  double drb,
35  reco::TrackBase::Point beamPoint)
39  stripBarrel_(0.0),
40  stripEndcap_(0.0),
41  ptLow_(ptLow),
42  lip_(lip),
43  drb_(drb),
45  beamPoint_(beamPoint) {
47  setDzOption("vz");
48  }
49 
51  double intRadiusBarrel,
52  double intRadiusEndcap,
53  double stripBarrel,
54  double stripEndcap,
55  double ptLow,
56  double lip,
57  double drb,
59  reco::TrackBase::Point beamPoint)
65  ptLow_(ptLow),
66  lip_(lip),
67  drb_(drb),
69  beamPoint_(beamPoint) {
71  setDzOption("vz");
72  }
73 
75  double intRadiusBarrel,
76  double intRadiusEndcap,
77  double stripBarrel,
78  double stripEndcap,
79  double ptLow,
80  double lip,
81  double drb,
82  const reco::TrackCollection*,
83  reco::TrackBase::Point beamPoint,
84  const std::string&);
85 
86  //destructor
88 
89  //methods
90 
91  void setDzOption(const std::string& s) {
92  if (!s.compare("dz"))
94  else if (!s.compare("vz"))
96  else if (!s.compare("bs"))
98  else if (!s.compare("vtx"))
100  else
102  }
103 
104  int getNumberTracks(const reco::GsfElectron*) const;
105  double getPtTracks(const reco::GsfElectron*) const;
106  std::pair<int, double> getIso(const reco::GsfElectron*) const;
107  std::pair<int, double> getIso(const reco::Track*) const;
108 
109 private:
110  bool passAlgo(const reco::TrackBase& trk) const;
111  void setAlgosToReject();
112  double extRadius_;
115  double stripBarrel_;
116  double stripEndcap_;
117  double ptLow_;
118  double lip_;
119  double drb_;
120  std::vector<int> algosToReject_; //vector is sorted
123 
125 };
126 
127 #endif
ElectronTkIsolation::intRadiusBarrel_
double intRadiusBarrel_
Definition: ElectronTkIsolation.h:113
ElectronTkIsolation::extRadius_
double extRadius_
Definition: ElectronTkIsolation.h:112
electronTrackIsolationLcone_cfi.stripEndcap
stripEndcap
Definition: electronTrackIsolationLcone_cfi.py:9
ESHandle.h
ElectronTkIsolation::~ElectronTkIsolation
~ElectronTkIsolation()
Definition: ElectronTkIsolation.cc:50
electronEcalRecHitIsolationLcone_cfi.extRadius
extRadius
Definition: electronEcalRecHitIsolationLcone_cfi.py:18
electronEcalRecHitIsolationLcone_cfi.intRadiusBarrel
intRadiusBarrel
Definition: electronEcalRecHitIsolationLcone_cfi.py:15
egammaisolation::EgammaTrackSelector::vz
Definition: EgammaTrackSelector.h:20
egammaisolation::EgammaTrackSelector::vtx
Definition: EgammaTrackSelector.h:20
egammaisolation::EgammaTrackSelector::bs
Definition: EgammaTrackSelector.h:20
qcdUeDQM_cfi.lip
lip
Definition: qcdUeDQM_cfi.py:25
alignCSCRings.s
s
Definition: alignCSCRings.py:92
Track.h
ElectronTkIsolation::lip_
double lip_
Definition: ElectronTkIsolation.h:118
ElectronTkIsolation::algosToReject_
std::vector< int > algosToReject_
Definition: ElectronTkIsolation.h:120
reco::Track
Definition: Track.h:27
ElectronTkIsolation::stripEndcap_
double stripEndcap_
Definition: ElectronTkIsolation.h:116
reco::GsfElectron
Definition: GsfElectron.h:35
GsfElectron.h
ElectronTkIsolation::ElectronTkIsolation
ElectronTkIsolation(double extRadius, double intRadius, double ptLow, double lip, double drb, const reco::TrackCollection *trackCollection, reco::TrackBase::Point beamPoint)
Definition: ElectronTkIsolation.h:29
egammaisolation::EgammaTrackSelector::dz
Definition: EgammaTrackSelector.h:20
ElectronTkIsolation
Definition: ElectronTkIsolation.h:26
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ElectronTkIsolation::stripBarrel_
double stripBarrel_
Definition: ElectronTkIsolation.h:115
electronTrackIsolationLcone_cfi.stripBarrel
stripBarrel
Definition: electronTrackIsolationLcone_cfi.py:8
ElectronTkIsolation::setAlgosToReject
void setAlgosToReject()
Definition: ElectronTkIsolation.cc:125
duplicaterechits_cfi.trackCollection
trackCollection
Definition: duplicaterechits_cfi.py:4
ElectronTkIsolation::intRadiusEndcap_
double intRadiusEndcap_
Definition: ElectronTkIsolation.h:114
reco::TrackBase
Definition: TrackBase.h:62
ElectronTkIsolation::dzOption_
int dzOption_
Definition: ElectronTkIsolation.h:124
ElectronTkIsolation::getIso
std::pair< int, double > getIso(const reco::GsfElectron *) const
Definition: ElectronTkIsolation.cc:52
EgammaTrackSelector.h
electronEcalRecHitIsolationLcone_cfi.intRadiusEndcap
intRadiusEndcap
Definition: electronEcalRecHitIsolationLcone_cfi.py:16
ElectronTkIsolation::trackCollection_
const reco::TrackCollection * trackCollection_
Definition: ElectronTkIsolation.h:121
reco::TrackBase::Point
math::XYZPoint Point
point in the space
Definition: TrackBase.h:80
ElectronTkIsolation::ptLow_
double ptLow_
Definition: ElectronTkIsolation.h:117
ElectronTkIsolation::setDzOption
void setDzOption(const std::string &s)
Definition: ElectronTkIsolation.h:91
ElectronTkIsolation::drb_
double drb_
Definition: ElectronTkIsolation.h:119
electronHcalTowerIsolationLcone_cfi.intRadius
intRadius
Definition: electronHcalTowerIsolationLcone_cfi.py:5
ElectronTkIsolation::ElectronTkIsolation
ElectronTkIsolation(double extRadius, double intRadiusBarrel, double intRadiusEndcap, double stripBarrel, double stripEndcap, double ptLow, double lip, double drb, const reco::TrackCollection *trackCollection, reco::TrackBase::Point beamPoint)
Definition: ElectronTkIsolation.h:50
ElectronTkIsolation::passAlgo
bool passAlgo(const reco::TrackBase &trk) const
Definition: ElectronTkIsolation.cc:119
ElectronTkIsolation::getNumberTracks
int getNumberTracks(const reco::GsfElectron *) const
Definition: ElectronTkIsolation.cc:112
ElectronTkIsolation::beamPoint_
reco::TrackBase::Point beamPoint_
Definition: ElectronTkIsolation.h:122
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
ElectronTkIsolation::getPtTracks
double getPtTracks(const reco::GsfElectron *) const
Definition: ElectronTkIsolation.cc:117