CMS 3D CMS Logo

TauImpactParameterInfo.cc
Go to the documentation of this file.
3 
4 using namespace edm;
5 using namespace reco;
6 using namespace std;
7 
9  double ip_min, double ip_max, double sip_min, bool use_sign, bool use3D) const {
10  double discriminator = isolatedTaus->discriminator();
11 
12  const TrackRef leadingTrack = isolatedTaus->leadingSignalTrack(0.4, 1.);
13 
14  if (!leadingTrack.isNull()) {
15  const TauImpactParameterTrackData* ipData = getTrackData(leadingTrack);
16  Measurement1D ip = ipData->transverseIp;
17  if (use3D)
18  ip = ipData->ip3D;
19 
20  if (ip.value() < ip_min || ip.value() > ip_max || ip.significance() < sip_min) {
21  discriminator = 0;
22  }
23  }
24  return discriminator;
25 }
27  //default discriminator: returns the value of the discriminator of the jet tag
28  return isolatedTaus->discriminator();
29 }
30 
31 const reco::TauImpactParameterTrackData* TauImpactParameterInfo::getTrackData(const reco::TrackRef& trackRef) const {
33 
34  if (iter != trackDataMap.end())
35  return &(iter->val);
36 
37  return nullptr; // if track not found return 0
38 }
39 
41  const reco::TauImpactParameterTrackData& trackData) {
42  trackDataMap.insert(trackRef, trackData);
43 }
44 
46  isolatedTaus = isolationRef;
47 }
48 
Measurement1D
Definition: Measurement1D.h:11
edm::Ref::isNull
bool isNull() const
Checks for null.
Definition: Ref.h:235
edm
HLT enums.
Definition: AlignableModifier.h:19
Measurement1D::value
double value() const
Definition: Measurement1D.h:25
reco::TauImpactParameterInfo::setIsolatedTauTag
void setIsolatedTauTag(const IsolatedTauTagInfoRef &)
Definition: TauImpactParameterInfo.cc:45
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::TauImpactParameterTrackData::transverseIp
Measurement1D transverseIp
Definition: TauImpactParameterInfo.h:13
edm::Ref< TrackCollection >
Track.h
PDWG_TauSkim_cff.discriminator
discriminator
Definition: PDWG_TauSkim_cff.py:7
edm::AssociationMap< edm::OneToValue< reco::TrackCollection, reco::TauImpactParameterTrackData > >::const_iterator
friend struct const_iterator
Definition: AssociationMap.h:274
Measurement1D::significance
double significance() const
Definition: Measurement1D.h:29
reco::TauImpactParameterInfo::getIsolatedTauTag
const IsolatedTauTagInfoRef & getIsolatedTauTag() const
Definition: TauImpactParameterInfo.cc:49
TauImpactParameterInfo.h
reco::TauImpactParameterInfo::storeTrackData
void storeTrackData(const reco::TrackRef &, const TauImpactParameterTrackData &)
Definition: TauImpactParameterInfo.cc:40
reco::TauImpactParameterTrackData
Definition: TauImpactParameterInfo.h:12
reco::TauImpactParameterTrackData::ip3D
Measurement1D ip3D
Definition: TauImpactParameterInfo.h:14
std
Definition: JetResolutionObject.h:76
reco::TauImpactParameterInfo::discriminator
float discriminator() const
Definition: TauImpactParameterInfo.cc:26