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 
void setIsolatedTauTag(const IsolatedTauTagInfoRef &)
bool isNull() const
Checks for null.
Definition: Ref.h:235
double significance() const
Definition: Measurement1D.h:29
const IsolatedTauTagInfoRef & getIsolatedTauTag() const
double value() const
Definition: Measurement1D.h:25
fixed size matrix
HLT enums.
void storeTrackData(const reco::TrackRef &, const TauImpactParameterTrackData &)