CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
EgammaHLTTrackIsolation Class Reference

#include <RecoEgamma/EgammaHLTAlgos/interface/EgammaHLTTrackIsolation.h>

Public Member Functions

 EgammaHLTTrackIsolation (double egTrkIso_PtMin, double egTrkIso_ConeSize, double egTrkIso_ZSpan, double egTrkIso_RSpan, double egTrkIso_VetoConeSize, double egTrkIso_stripBarrel=0, double egTrkIso_stripEndcap=0)
 
std::pair< int, float > electronIsolation (const reco::Track *const tr, const reco::TrackCollection *isoTracks)
 Get number of tracks and Pt sum of tracks inside an isolation cone for electrons. More...
 
std::pair< int, float > electronIsolation (const reco::Track *const tr, const reco::ElectronCollection *allEle, const reco::TrackCollection *isoTracks)
 
std::pair< int, float > electronIsolation (const reco::Track *const tr, const reco::TrackCollection *isoTracks, GlobalPoint vertex)
 
float electronPtSum (const reco::Track *const tr, const reco::TrackCollection *isoTracks)
 Get Pt sum of tracks inside an isolation cone for electrons. More...
 
float electronPtSum (const reco::Track *const tr, const reco::TrackCollection *isoTracks, GlobalPoint vertex)
 
float electronPtSum (const reco::Track *const tr, const reco::ElectronCollection *allEle, const reco::TrackCollection *isoTracks)
 
int electronTrackCount (const reco::Track *const tr, const reco::TrackCollection *isoTracks)
 Get number of tracks inside an isolation cone for electrons. More...
 
int electronTrackCount (const reco::Track *const tr, const reco::TrackCollection *isoTracks, GlobalPoint vertex)
 
double getConeSize ()
 Get isolation cone size. More...
 
double getPtMin ()
 Get pt cut for itracks. More...
 
double getRspan ()
 Get maximum transverse distance of ivertex from beam line. More...
 
double getvetoConesize ()
 Get veto cone size. More...
 
double getZspan ()
 Get maximum ivertex z-coordinate spread. More...
 
std::pair< int, float > photonIsolation (const reco::RecoCandidate *const recocand, const reco::TrackCollection *isoTracks, bool useVertex)
 
std::pair< int, float > photonIsolation (const reco::RecoCandidate *const recocand, const reco::TrackCollection *isoTracks, GlobalPoint vertex)
 
std::pair< int, float > photonIsolation (const reco::RecoCandidate *const recocand, const reco::ElectronCollection *allEle, const reco::TrackCollection *isoTracks)
 
float photonPtSum (const reco::RecoCandidate *const recocand, const reco::TrackCollection *isoTracks, bool useVertex)
 
float photonPtSum (const reco::RecoCandidate *const recocand, const reco::TrackCollection *isoTracks, GlobalPoint vertex)
 
float photonPtSum (const reco::RecoCandidate *const recocand, const reco::ElectronCollection *allEle, const reco::TrackCollection *isoTracks)
 
int photonTrackCount (const reco::RecoCandidate *const recocand, const reco::TrackCollection *isoTracks, bool useVertex)
 
int photonTrackCount (const reco::RecoCandidate *const recocand, const reco::TrackCollection *isoTracks, GlobalPoint vertex)
 
int photonTrackCount (const reco::RecoCandidate *const recocand, const reco::ElectronCollection *allEle, const reco::TrackCollection *isoTracks)
 

Private Member Functions

std::pair< int, float > findIsoTracks (GlobalVector mom, GlobalPoint vtx, const reco::TrackCollection *isoTracks, bool isElectron, bool useVertex=true)
 
std::pair< int, float > findIsoTracksWithoutEle (GlobalVector mom, GlobalPoint vtx, const reco::ElectronCollection *allEle, const reco::TrackCollection *isoTracks)
 

Private Attributes

double conesize
 
double ptMin
 
double rspan
 
double stripBarrel
 
double stripEndcap
 
double vetoConesize
 
double zspan
 

Detailed Description

Description: Number of tracks inside an isolation cone, with con geometry defined by ptMin, conesize, rspan and zspan. Usage: <usage>

Definition at line 48 of file EgammaHLTTrackIsolation.h.

Constructor & Destructor Documentation

EgammaHLTTrackIsolation::EgammaHLTTrackIsolation ( double  egTrkIso_PtMin,
double  egTrkIso_ConeSize,
double  egTrkIso_ZSpan,
double  egTrkIso_RSpan,
double  egTrkIso_VetoConeSize,
double  egTrkIso_stripBarrel = 0,
double  egTrkIso_stripEndcap = 0 
)
inline

Definition at line 54 of file EgammaHLTTrackIsolation.h.

60  :
61  ptMin(egTrkIso_PtMin),
62  conesize(egTrkIso_ConeSize),
63  zspan(egTrkIso_ZSpan),
64  rspan(egTrkIso_RSpan),
65  vetoConesize(egTrkIso_VetoConeSize),
66  stripBarrel(egTrkIso_stripBarrel),
67  stripEndcap(egTrkIso_stripEndcap)
68  {
69 
70  /*
71  std::cout << "EgammaHLTTrackIsolation instance:"
72  << " ptMin=" << ptMin << " "
73  << " conesize="<< conesize << " "
74  << " zspan=" << zspan << " "
75  << " rspan=" << rspan << " "
76  << " vetoConesize="<< vetoConesize
77  << std::endl;
78  */
79  }

Member Function Documentation

std::pair< int, float > EgammaHLTTrackIsolation::electronIsolation ( const reco::Track *const  tr,
const reco::TrackCollection isoTracks 
)

Get number of tracks and Pt sum of tracks inside an isolation cone for electrons.

Definition at line 20 of file EgammaHLTTrackIsolation.cc.

References findIsoTracks(), reco::TrackBase::momentum(), AlCaHLTBitMon_ParallelJobs::p, and reco::TrackBase::vertex().

Referenced by electronPtSum(), and electronTrackCount().

21 {
22  GlobalPoint vtx(0,0,tr->vertex().z());
24  GlobalVector mom( p.x(), p.y(), p.z() );
25  return findIsoTracks(mom,vtx,isoTracks,true);
26 }
const Vector & momentum() const
track momentum vector
Definition: TrackBase.h:150
const Point & vertex() const
reference point on the track. This method is DEPRECATED, please use referencePoint() instead ...
Definition: TrackBase.h:156
std::pair< int, float > findIsoTracks(GlobalVector mom, GlobalPoint vtx, const reco::TrackCollection *isoTracks, bool isElectron, bool useVertex=true)
math::XYZVector Vector
spatial vector
Definition: TrackBase.h:74
std::pair< int, float > EgammaHLTTrackIsolation::electronIsolation ( const reco::Track *const  tr,
const reco::ElectronCollection allEle,
const reco::TrackCollection isoTracks 
)

Definition at line 38 of file EgammaHLTTrackIsolation.cc.

References findIsoTracksWithoutEle(), reco::TrackBase::momentum(), AlCaHLTBitMon_ParallelJobs::p, and reco::TrackBase::vertex().

39 {
40  GlobalPoint vtx(0,0,tr->vertex().z());
42  GlobalVector mom( p.x(), p.y(), p.z() );
43  return findIsoTracksWithoutEle(mom,vtx,allEle,isoTracks);
44 }
const Vector & momentum() const
track momentum vector
Definition: TrackBase.h:150
const Point & vertex() const
reference point on the track. This method is DEPRECATED, please use referencePoint() instead ...
Definition: TrackBase.h:156
std::pair< int, float > findIsoTracksWithoutEle(GlobalVector mom, GlobalPoint vtx, const reco::ElectronCollection *allEle, const reco::TrackCollection *isoTracks)
math::XYZVector Vector
spatial vector
Definition: TrackBase.h:74
std::pair< int, float > EgammaHLTTrackIsolation::electronIsolation ( const reco::Track *const  tr,
const reco::TrackCollection isoTracks,
GlobalPoint  vertex 
)

Definition at line 29 of file EgammaHLTTrackIsolation.cc.

References findIsoTracks(), reco::TrackBase::momentum(), AlCaHLTBitMon_ParallelJobs::p, and PV3DBase< T, PVType, FrameType >::z().

30 {
31  // Just to insure consistency with no-vertex-code
32  GlobalPoint vtx(0,0,zvtx.z());
34  GlobalVector mom( p.x(), p.y(), p.z() );
35  return findIsoTracks(mom,vtx,isoTracks,true);
36 }
const Vector & momentum() const
track momentum vector
Definition: TrackBase.h:150
std::pair< int, float > findIsoTracks(GlobalVector mom, GlobalPoint vtx, const reco::TrackCollection *isoTracks, bool isElectron, bool useVertex=true)
math::XYZVector Vector
spatial vector
Definition: TrackBase.h:74
float EgammaHLTTrackIsolation::electronPtSum ( const reco::Track *const  tr,
const reco::TrackCollection isoTracks 
)
inline

Get Pt sum of tracks inside an isolation cone for electrons.

Definition at line 111 of file EgammaHLTTrackIsolation.h.

References electronIsolation().

Referenced by egHLT::OffHelper::fillIsolData().

112  {return electronIsolation(tr,isoTracks).second;}
std::pair< int, float > electronIsolation(const reco::Track *const tr, const reco::TrackCollection *isoTracks)
Get number of tracks and Pt sum of tracks inside an isolation cone for electrons. ...
float EgammaHLTTrackIsolation::electronPtSum ( const reco::Track *const  tr,
const reco::TrackCollection isoTracks,
GlobalPoint  vertex 
)
inline

Definition at line 113 of file EgammaHLTTrackIsolation.h.

References electronIsolation().

114  {return electronIsolation(tr,isoTracks,vertex).second;}
std::pair< int, float > electronIsolation(const reco::Track *const tr, const reco::TrackCollection *isoTracks)
Get number of tracks and Pt sum of tracks inside an isolation cone for electrons. ...
float EgammaHLTTrackIsolation::electronPtSum ( const reco::Track *const  tr,
const reco::ElectronCollection allEle,
const reco::TrackCollection isoTracks 
)
inline

Definition at line 115 of file EgammaHLTTrackIsolation.h.

References electronIsolation().

116  {return electronIsolation(tr,allEle,isoTracks).second;}
std::pair< int, float > electronIsolation(const reco::Track *const tr, const reco::TrackCollection *isoTracks)
Get number of tracks and Pt sum of tracks inside an isolation cone for electrons. ...
int EgammaHLTTrackIsolation::electronTrackCount ( const reco::Track *const  tr,
const reco::TrackCollection isoTracks 
)
inline

Get number of tracks inside an isolation cone for electrons.

Definition at line 95 of file EgammaHLTTrackIsolation.h.

References electronIsolation().

96  {return electronIsolation(tr,isoTracks).first;}
std::pair< int, float > electronIsolation(const reco::Track *const tr, const reco::TrackCollection *isoTracks)
Get number of tracks and Pt sum of tracks inside an isolation cone for electrons. ...
int EgammaHLTTrackIsolation::electronTrackCount ( const reco::Track *const  tr,
const reco::TrackCollection isoTracks,
GlobalPoint  vertex 
)
inline

Definition at line 97 of file EgammaHLTTrackIsolation.h.

References electronIsolation().

98  {return electronIsolation(tr,isoTracks,vertex).first;}
std::pair< int, float > electronIsolation(const reco::Track *const tr, const reco::TrackCollection *isoTracks)
Get number of tracks and Pt sum of tracks inside an isolation cone for electrons. ...
std::pair< int, float > EgammaHLTTrackIsolation::findIsoTracks ( GlobalVector  mom,
GlobalPoint  vtx,
const reco::TrackCollection isoTracks,
bool  isElectron,
bool  useVertex = true 
)
private

Definition at line 83 of file EgammaHLTTrackIsolation.cc.

References PV3DBase< T, PVType, FrameType >::eta(), M_PI, ntrack, PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), ptMin, dttmaxenums::R, rspan, mathSSE::sqrt(), stripBarrel, stripEndcap, vetoConesize, PV3DBase< T, PVType, FrameType >::z(), and zspan.

Referenced by electronIsolation(), and photonIsolation().

84 {
85 
86  // Check that reconstructed tracks fit within cone boundaries,
87  // (Note: tracks will not always stay within boundaries)
88  int ntrack = 0;
89  float ptSum = 0.;
90 
91  for(reco::TrackCollection::const_iterator trItr = isoTracks->begin(); trItr != isoTracks->end(); ++trItr){
92 
93  GlobalPoint ivtx(trItr->vertex().x(),trItr->vertex().y(),trItr->vertex().z());
94  reco::Track::Vector ip = trItr->momentum();
95  GlobalVector imom ( ip.x(), ip.y(), ip.z());
96 
97  float pt = imom.perp();
98  float dperp = 0.;
99  float dz = 0.;
100  float deta = 0.;
101  float dphi = 0.;
102  if (useVertex) {
103  dperp = ivtx.perp()-vtx.perp();
104  dz = ivtx.z()-vtx.z();
105  deta = imom.eta()-mom.eta();
106  dphi = imom.phi()-mom.phi();
107  } else {
108  //in case of unkown photon vertex, modify direction of photon to point from
109  //current track vertex to sc instead of from (0.,0.,0.) to sc. In this
110  //way, all tracks are considered based on direction alone.
111  GlobalVector mom_temp = mom - GlobalVector(ivtx.x(),ivtx.y(),ivtx.z());
112  deta = imom.eta()-mom_temp.eta();
113  dphi = imom.phi()-mom_temp.phi();
114  }
115  // Correct dmom_phi's from [-2pi,2pi] to [-pi,pi]
116  if (dphi>M_PI) dphi = dphi - 2*M_PI;
117  else if (dphi<-M_PI) dphi = dphi + 2*M_PI;
118 
119  float R = sqrt( dphi*dphi + deta*deta );
120 
121  // Apply boundary cut
122  // bool selected=false;
123 
124  // if (pt > ptMin && R < conesize &&
125  // fabs(dperp) < rspan && fabs(dz) < zspan) selected=true;
126 
127  // if (selected) {
128  // ntrack++;
129  // if (!isElectron || R > vetoConesize) ptSum+=pt; //to exclude electron track
130  // }
131  // float theVetoVar = R;
132  // if (isElectron) theVetoVar = R;
133 
134  //hmm how do I figure out if this is barrel or endcap?
135  //abs(mom.eta())<1.5 is the obvious choice but that will be electron not detector eta for electrons
136  //well lets leave it as that for now, its what reco does (well with eta=1.479)
137  double innerStrip = fabs(mom.eta())<1.479 ? stripBarrel : stripEndcap;
138 
139  if (pt > ptMin && R < conesize && R > vetoConesize &&
140  fabs(dperp) < rspan && fabs(dz) < zspan &&
141  fabs(deta) >=innerStrip) {
142  ntrack++;
143  ptSum+=pt;
144  }
145  }
146 
147  // if (isElectron) ntrack-=1; //to exclude electron track
148 
149  return (std::pair<int,float>(ntrack,ptSum));
150 
151 }
T perp() const
Definition: PV3DBase.h:71
Geom::Phi< T > phi() const
Definition: PV3DBase.h:68
T sqrt(T t)
Definition: SSEVec.h:46
T z() const
Definition: PV3DBase.h:63
#define M_PI
Definition: BFit3D.cc:3
T eta() const
Definition: PV3DBase.h:75
#define ntrack
math::XYZVector Vector
spatial vector
Definition: TrackBase.h:74
Global3DVector GlobalVector
Definition: GlobalVector.h:10
std::pair< int, float > EgammaHLTTrackIsolation::findIsoTracksWithoutEle ( GlobalVector  mom,
GlobalPoint  vtx,
const reco::ElectronCollection allEle,
const reco::TrackCollection isoTracks 
)
private

Definition at line 153 of file EgammaHLTTrackIsolation.cc.

References conesize, PV3DBase< T, PVType, FrameType >::eta(), M_PI, ntrack, PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), ptMin, dttmaxenums::R, rspan, mathSSE::sqrt(), stripBarrel, stripEndcap, vetoConesize, PV3DBase< T, PVType, FrameType >::z(), and zspan.

Referenced by electronIsolation(), and photonIsolation().

154 {
155 
156  // Check that reconstructed tracks fit within cone boundaries,
157  // (Note: tracks will not always stay within boundaries)
158  int iele = 0;
159  int ntrack = 0;
160  float ptSum = 0.;
161  std::vector<float> etaele;
162  std::vector<float> phiele;
163 
164  // std::cout << "allEle.size() = " << allEle->size() << std::endl;
165 
166  // Store ALL electrons eta and phi
167  for (reco::ElectronCollection::const_iterator iElectron = allEle->begin(); iElectron != allEle->end(); iElectron++){
168  iele++;
169  reco::TrackRef anothereletrackref = iElectron->track();
170  etaele.push_back(anothereletrackref->momentum().eta());
171  phiele.push_back(anothereletrackref->momentum().phi());
172  // std::cout << "Electron " << iele << ": phi = " << anothereletrackref->momentum().phi() << ", eta = " << anothereletrackref->momentum().eta() << std::endl;
173  }
174 
175  for(reco::TrackCollection::const_iterator trItr = isoTracks->begin(); trItr != isoTracks->end(); ++trItr){
176 
177  GlobalPoint ivtx(trItr->vertex().x(),trItr->vertex().y(),trItr->vertex().z());
178  reco::Track::Vector ip = trItr->momentum();
179  GlobalVector imom ( ip.x(), ip.y(), ip.z());
180 
181  float pt = imom.perp();
182  float dperp = ivtx.perp()-vtx.perp();
183  float dz = ivtx.z()-vtx.z();
184  float deta = imom.eta()-mom.eta();
185  float dphi = imom.phi()-mom.phi();
186 
187  // Correct dmom_phi's from [-2pi,2pi] to [-pi,pi]
188  if (dphi>M_PI) dphi = dphi - 2*M_PI;
189  else if (dphi<-M_PI) dphi = dphi + 2*M_PI;
190 
191  float R = sqrt( dphi*dphi + deta*deta );
192 
193  // Apply boundary cut
194  bool selected=false;
195  bool passedconeveto=true;
196 
197  //hmm how do I figure out if this is barrel or endcap?
198  //abs(mom.eta())<1.5 is the obvious choice but that will be electron not detector eta for electrons
199  //well lets leave it as that for now, its what reco does (well with eta=1.479)
200  double innerStrip = fabs(mom.eta())<1.479 ? stripBarrel : stripEndcap;
201 
202  if (pt > ptMin && R < conesize &&
203  fabs(dperp) < rspan && fabs(dz) < zspan &&
204  fabs(deta) >=innerStrip) selected=true;
205 
206  // Check that NO electron is counted in the isolation
207  for(unsigned int eleItr = 0; eleItr < etaele.size(); ++eleItr){
208 
209  deta = etaele[eleItr] - imom.eta();
210  dphi = phiele[eleItr] - imom.phi();
211 
212  // Correct dmom_phi's from [-2pi,2pi] to [-pi,pi]
213  if (dphi>M_PI) dphi = dphi - 2*M_PI;
214  else if (dphi<-M_PI) dphi = dphi + 2*M_PI;
215 
216  R = sqrt( dphi*dphi + deta*deta );
217  if (R < vetoConesize) passedconeveto=false;
218  }
219 
220  if (selected && passedconeveto) {
221  ntrack++;
222  ptSum+=pt; //to exclude electron tracks
223  }
224 
225  }
226 
227  // ntrack-=1; //to exclude electron track
228 
229  return (std::pair<int,float>(ntrack,ptSum));
230 
231 }
T perp() const
Definition: PV3DBase.h:71
Geom::Phi< T > phi() const
Definition: PV3DBase.h:68
T sqrt(T t)
Definition: SSEVec.h:46
T z() const
Definition: PV3DBase.h:63
#define M_PI
Definition: BFit3D.cc:3
T eta() const
Definition: PV3DBase.h:75
#define ntrack
math::XYZVector Vector
spatial vector
Definition: TrackBase.h:74
double EgammaHLTTrackIsolation::getConeSize ( )
inline

Get isolation cone size.

Definition at line 132 of file EgammaHLTTrackIsolation.h.

References conesize.

132 { return conesize; }
double EgammaHLTTrackIsolation::getPtMin ( )
inline

Get pt cut for itracks.

Definition at line 130 of file EgammaHLTTrackIsolation.h.

References ptMin.

130 { return ptMin;}
double EgammaHLTTrackIsolation::getRspan ( )
inline

Get maximum transverse distance of ivertex from beam line.

Definition at line 136 of file EgammaHLTTrackIsolation.h.

References rspan.

136 { return rspan; }
double EgammaHLTTrackIsolation::getvetoConesize ( )
inline

Get veto cone size.

Definition at line 138 of file EgammaHLTTrackIsolation.h.

References vetoConesize.

double EgammaHLTTrackIsolation::getZspan ( )
inline

Get maximum ivertex z-coordinate spread.

Definition at line 134 of file EgammaHLTTrackIsolation.h.

References zspan.

134 {return zspan; }
std::pair< int, float > EgammaHLTTrackIsolation::photonIsolation ( const reco::RecoCandidate *const  recocand,
const reco::TrackCollection isoTracks,
bool  useVertex 
)

Get number of tracks and Pt sum of tracks inside an isolation cone for photons set useVertex=true to use PhotonCandidate vertex from EgammaPhotonVtxFinder set useVertex=false to consider all tracks for isolation

Definition at line 46 of file EgammaHLTTrackIsolation.cc.

References findIsoTracks(), pos, reco::RecoCandidate::superCluster(), and reco::LeafCandidate::vertex().

Referenced by photonPtSum(), and photonTrackCount().

47 {
48 
49  if (useVertex) {
50  GlobalPoint vtx(0,0,recocandidate->vertex().z());
51  return photonIsolation(recocandidate,isoTracks,vtx);
52  } else {
53  reco::RecoCandidate::Point pos = recocandidate->superCluster()->position();
54  GlobalVector mom(pos.x(),pos.y(),pos.z());
55  return findIsoTracks(mom,GlobalPoint(),isoTracks,false,false);
56  }
57 
58 }
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
std::pair< int, float > photonIsolation(const reco::RecoCandidate *const recocand, const reco::TrackCollection *isoTracks, bool useVertex)
std::pair< int, float > findIsoTracks(GlobalVector mom, GlobalPoint vtx, const reco::TrackCollection *isoTracks, bool isElectron, bool useVertex=true)
math::XYZPoint Point
point in the space
Definition: Candidate.h:42
std::pair< int, float > EgammaHLTTrackIsolation::photonIsolation ( const reco::RecoCandidate *const  recocand,
const reco::TrackCollection isoTracks,
GlobalPoint  vertex 
)

Definition at line 60 of file EgammaHLTTrackIsolation.cc.

References findIsoTracks(), pos, reco::RecoCandidate::superCluster(), and PV3DBase< T, PVType, FrameType >::z().

61 {
62 
63  // to insure consistency with no-free-vertex-code
64  GlobalPoint vtx(0,0,zvtx.z());
65 
66  reco::RecoCandidate::Point pos = recocandidate->superCluster()->position();
67  GlobalVector mom(pos.x()-vtx.x(),pos.y()-vtx.y(),pos.z()-vtx.z());
68 
69  return findIsoTracks(mom,vtx,isoTracks,false);
70 
71 }
std::pair< int, float > findIsoTracks(GlobalVector mom, GlobalPoint vtx, const reco::TrackCollection *isoTracks, bool isElectron, bool useVertex=true)
math::XYZPoint Point
point in the space
Definition: Candidate.h:42
std::pair< int, float > EgammaHLTTrackIsolation::photonIsolation ( const reco::RecoCandidate *const  recocand,
const reco::ElectronCollection allEle,
const reco::TrackCollection isoTracks 
)

Definition at line 74 of file EgammaHLTTrackIsolation.cc.

References findIsoTracksWithoutEle(), pos, and reco::RecoCandidate::superCluster().

75 {
76 
77  reco::RecoCandidate::Point pos = recocandidate->superCluster()->position();
78  GlobalVector mom(pos.x(),pos.y(),pos.z());
79  return findIsoTracksWithoutEle(mom,GlobalPoint(),allEle,isoTracks);
80 
81 }
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
std::pair< int, float > findIsoTracksWithoutEle(GlobalVector mom, GlobalPoint vtx, const reco::ElectronCollection *allEle, const reco::TrackCollection *isoTracks)
math::XYZPoint Point
point in the space
Definition: Candidate.h:42
float EgammaHLTTrackIsolation::photonPtSum ( const reco::RecoCandidate *const  recocand,
const reco::TrackCollection isoTracks,
bool  useVertex 
)
inline

Get Pt sum of tracks inside an isolation cone for photons set useVertex=true to use Photon vertex from EgammaPhotonVtxFinder set useVertex=false to consider all tracks for isolation

Definition at line 121 of file EgammaHLTTrackIsolation.h.

References photonIsolation().

Referenced by egHLT::OffHelper::fillIsolData(), and EgammaHLTPhotonTrackIsolationProducersRegional::produce().

122  {return photonIsolation(recocand,isoTracks, useVertex).second;}
std::pair< int, float > photonIsolation(const reco::RecoCandidate *const recocand, const reco::TrackCollection *isoTracks, bool useVertex)
float EgammaHLTTrackIsolation::photonPtSum ( const reco::RecoCandidate *const  recocand,
const reco::TrackCollection isoTracks,
GlobalPoint  vertex 
)
inline

Definition at line 123 of file EgammaHLTTrackIsolation.h.

References photonIsolation().

124  {return photonIsolation(recocand,isoTracks, vertex).second;}
std::pair< int, float > photonIsolation(const reco::RecoCandidate *const recocand, const reco::TrackCollection *isoTracks, bool useVertex)
float EgammaHLTTrackIsolation::photonPtSum ( const reco::RecoCandidate *const  recocand,
const reco::ElectronCollection allEle,
const reco::TrackCollection isoTracks 
)
inline

Definition at line 125 of file EgammaHLTTrackIsolation.h.

References photonIsolation().

126  {return photonIsolation(recocand,allEle,isoTracks).second;}
std::pair< int, float > photonIsolation(const reco::RecoCandidate *const recocand, const reco::TrackCollection *isoTracks, bool useVertex)
int EgammaHLTTrackIsolation::photonTrackCount ( const reco::RecoCandidate *const  recocand,
const reco::TrackCollection isoTracks,
bool  useVertex 
)
inline

Get number of tracks inside an isolation cone for photons set useVertex=true to use Photon vertex from EgammaPhotonVtxFinder set useVertex=false to consider all tracks for isolation

Definition at line 103 of file EgammaHLTTrackIsolation.h.

References photonIsolation().

Referenced by egHLT::OffHelper::fillIsolData(), and EgammaHLTPhotonTrackIsolationProducersRegional::produce().

104  {return photonIsolation(recocand,isoTracks,useVertex).first;}
std::pair< int, float > photonIsolation(const reco::RecoCandidate *const recocand, const reco::TrackCollection *isoTracks, bool useVertex)
int EgammaHLTTrackIsolation::photonTrackCount ( const reco::RecoCandidate *const  recocand,
const reco::TrackCollection isoTracks,
GlobalPoint  vertex 
)
inline

Definition at line 105 of file EgammaHLTTrackIsolation.h.

References photonIsolation().

106  {return photonIsolation(recocand,isoTracks,vertex).first;}
std::pair< int, float > photonIsolation(const reco::RecoCandidate *const recocand, const reco::TrackCollection *isoTracks, bool useVertex)
int EgammaHLTTrackIsolation::photonTrackCount ( const reco::RecoCandidate *const  recocand,
const reco::ElectronCollection allEle,
const reco::TrackCollection isoTracks 
)
inline

Definition at line 107 of file EgammaHLTTrackIsolation.h.

References photonIsolation().

108  {return photonIsolation(recocand,allEle,isoTracks).first;}
std::pair< int, float > photonIsolation(const reco::RecoCandidate *const recocand, const reco::TrackCollection *isoTracks, bool useVertex)

Member Data Documentation

double EgammaHLTTrackIsolation::conesize
private

Definition at line 147 of file EgammaHLTTrackIsolation.h.

Referenced by findIsoTracksWithoutEle(), and getConeSize().

double EgammaHLTTrackIsolation::ptMin
private

Definition at line 146 of file EgammaHLTTrackIsolation.h.

Referenced by findIsoTracks(), findIsoTracksWithoutEle(), and getPtMin().

double EgammaHLTTrackIsolation::rspan
private

Definition at line 149 of file EgammaHLTTrackIsolation.h.

Referenced by findIsoTracks(), findIsoTracksWithoutEle(), and getRspan().

double EgammaHLTTrackIsolation::stripBarrel
private

Definition at line 153 of file EgammaHLTTrackIsolation.h.

Referenced by findIsoTracks(), and findIsoTracksWithoutEle().

double EgammaHLTTrackIsolation::stripEndcap
private

Definition at line 154 of file EgammaHLTTrackIsolation.h.

Referenced by findIsoTracks(), and findIsoTracksWithoutEle().

double EgammaHLTTrackIsolation::vetoConesize
private
double EgammaHLTTrackIsolation::zspan
private

Definition at line 148 of file EgammaHLTTrackIsolation.h.

Referenced by findIsoTracks(), findIsoTracksWithoutEle(), and getZspan().