CMS 3D CMS Logo

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

#include <EPCuts.h>

Public Member Functions

 EPCuts (EP_ERA cutEra=EP_ERA::ppReco, double pterror=0.1, double dzerror=3.0, double dxyerror=3.0, double chi2perlayer=0.18, double dzError_Pix=10.0, double chi2Pix=40., int numberOfValidHits=11)
 
bool isGoodCastor (const TrackStructure &track) const
 
bool isGoodHF (const TrackStructure &track) const
 
bool isGoodTrack (const TrackStructure &track) const
 
bool trackQuality_GenMC (const TrackStructure &track) const
 
bool trackQuality_HIReco (const TrackStructure &track) const
 
bool trackQuality_Pixel (const TrackStructure &track) const
 
bool trackQuality_ppReco (const TrackStructure &track) const
 

Private Attributes

double chi2perlayer_
 
double chi2Pix_
 
EP_ERA cutera_
 
double dxyerror_
 
double dzerror_
 
double dzerror_Pix_
 
int numberOfValidHits_
 
double pterror_
 

Detailed Description

Definition at line 34 of file EPCuts.h.

Constructor & Destructor Documentation

hi::EPCuts::EPCuts ( EP_ERA  cutEra = EP_ERA::ppReco,
double  pterror = 0.1,
double  dzerror = 3.0,
double  dxyerror = 3.0,
double  chi2perlayer = 0.18,
double  dzError_Pix = 10.0,
double  chi2Pix = 40.,
int  numberOfValidHits = 11 
)
inlineexplicit

Definition at line 36 of file EPCuts.h.

References chi2perlayer_, chi2Pix_, HiEvtPlane_cfi::cutEra, cutera_, dxyerror_, dzerror_, dzerror_Pix_, HLT_FULL_cff::numberOfValidHits, numberOfValidHits_, and pterror_.

43  {
44  cutera_ = cutEra;
45  pterror_ = pterror;
46  dzerror_ = dzerror;
47  dxyerror_ = dxyerror;
48  chi2perlayer_ = chi2perlayer;
49  dzerror_Pix_ = dzError_Pix;
50  chi2Pix_ = chi2Pix;
52  }
EP_ERA cutera_
Definition: EPCuts.h:158
int numberOfValidHits_
Definition: EPCuts.h:165
double dzerror_Pix_
Definition: EPCuts.h:163
tuple numberOfValidHits
double pterror_
Definition: EPCuts.h:159
double chi2perlayer_
Definition: EPCuts.h:162
double dzerror_
Definition: EPCuts.h:160
double dxyerror_
Definition: EPCuts.h:161
double chi2Pix_
Definition: EPCuts.h:164

Member Function Documentation

bool hi::EPCuts::isGoodCastor ( const TrackStructure track) const
inline

Definition at line 62 of file EPCuts.h.

Referenced by EvtPlaneProducer::produce().

62 { return true; }
bool hi::EPCuts::isGoodHF ( const TrackStructure track) const
inline

Definition at line 54 of file EPCuts.h.

References funct::abs(), hi::TrackStructure::eta, and hi::TrackStructure::pdgid.

Referenced by EvtPlaneProducer::produce().

54  {
55  if (track.pdgid != 1 && track.pdgid != 2)
56  return false;
57  if (std::abs(track.eta) < 3 || std::abs(track.eta) > 5)
58  return false;
59  return true;
60  }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
bool hi::EPCuts::isGoodTrack ( const TrackStructure track) const
inline

Definition at line 64 of file EPCuts.h.

References cutera_, hi::HIReco, hi::Pixel, hi::ppReco, trackQuality_HIReco(), trackQuality_Pixel(), and trackQuality_ppReco().

Referenced by EvtPlaneProducer::produce().

64  {
65  if (cutera_ == EP_ERA::ppReco)
66  return trackQuality_ppReco(track);
67  if (cutera_ == EP_ERA::HIReco)
68  return trackQuality_HIReco(track);
69  if (cutera_ == EP_ERA::Pixel)
70  return trackQuality_Pixel(track);
71  return false;
72  }
EP_ERA cutera_
Definition: EPCuts.h:158
bool trackQuality_Pixel(const TrackStructure &track) const
Definition: EPCuts.h:114
bool trackQuality_HIReco(const TrackStructure &track) const
Definition: EPCuts.h:92
bool trackQuality_ppReco(const TrackStructure &track) const
Definition: EPCuts.h:74
bool hi::EPCuts::trackQuality_GenMC ( const TrackStructure track) const
inline

Definition at line 149 of file EPCuts.h.

References funct::abs(), hi::TrackStructure::charge, and hi::TrackStructure::eta.

149  {
150  if (track.charge == 0)
151  return false;
152  if (std::abs(track.eta) > 2.4)
153  return false;
154  return true;
155  }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
bool hi::EPCuts::trackQuality_HIReco ( const TrackStructure track) const
inline

Definition at line 92 of file EPCuts.h.

References funct::abs(), hi::TrackStructure::algos, hi::TrackStructure::charge, hi::TrackStructure::chi2layer, chi2perlayer_, reco::TrackBase::detachedTripletStep, hi::TrackStructure::dxy, hi::TrackStructure::dxyError, dxyerror_, hi::TrackStructure::dz, hi::TrackStructure::dzError, dzerror_, hi::TrackStructure::highPurity, reco::TrackBase::initialStep, reco::TrackBase::lowPtTripletStep, hi::TrackStructure::numberOfValidHits, numberOfValidHits_, reco::TrackBase::pixelPairStep, hi::TrackStructure::pt, hi::TrackStructure::ptError, and pterror_.

Referenced by isGoodTrack().

92  {
93  if (track.charge == 0)
94  return false;
95  if (!track.highPurity)
96  return false;
97  if (track.numberOfValidHits < numberOfValidHits_)
98  return false;
99  if (track.ptError > pterror_ * track.pt)
100  return false;
101  if (std::abs(track.dxy) > dxyerror_ * track.dxyError)
102  return false;
103  if (std::abs(track.dz) > dzerror_ * track.dzError)
104  return false;
105  if (track.chi2layer > chi2perlayer_)
106  return false;
107  //if (track.algos != 4 && track.algos != 5 && track.algos != 6 && track.algos != 7)
110  return false;
111  return true;
112  }
int numberOfValidHits_
Definition: EPCuts.h:165
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double pterror_
Definition: EPCuts.h:159
double chi2perlayer_
Definition: EPCuts.h:162
double dzerror_
Definition: EPCuts.h:160
double dxyerror_
Definition: EPCuts.h:161
bool hi::EPCuts::trackQuality_Pixel ( const TrackStructure track) const
inline

Definition at line 114 of file EPCuts.h.

References funct::abs(), hi::TrackStructure::algos, hi::TrackStructure::charge, hi::TrackStructure::chi2layer, chi2perlayer_, chi2Pix_, reco::TrackBase::detachedTripletStep, hi::TrackStructure::dxy, hi::TrackStructure::dxyError, dxyerror_, hi::TrackStructure::dz, hi::TrackStructure::dzError, dzerror_, dzerror_Pix_, hi::TrackStructure::highPurity, reco::TrackBase::initialStep, reco::TrackBase::lowPtTripletStep, nHits, hi::TrackStructure::numberOfValidHits, numberOfValidHits_, reco::TrackBase::pixelPairStep, hi::TrackStructure::pt, hi::TrackStructure::ptError, and pterror_.

Referenced by isGoodTrack().

114  {
115  if (track.charge == 0)
116  return false;
117  if (!track.highPurity)
118  return false;
119  bool bPix = false;
120  int nHits = track.numberOfValidHits;
121  if (track.ptError > pterror_ * track.pt)
122  return false;
123  if (track.pt < 2.4 and (nHits <= 6))
124  bPix = true;
125  if (not bPix) {
126  if (nHits < numberOfValidHits_)
127  return false;
128  if (track.chi2layer > chi2perlayer_)
129  return false;
130  if (track.ptError > pterror_ * track.pt)
131  return false;
132  int algo = track.algos;
133  if (track.pt > 2.4 && algo != reco::TrackBase::initialStep && algo != reco::TrackBase::lowPtTripletStep &&
135  return false;
136  if (std::abs(track.dxy) > dxyerror_ * track.dxyError)
137  return false;
138  if (std::abs(track.dz) > dzerror_ * track.dzError)
139  return false;
140  } else {
141  if (track.chi2layer > chi2Pix_)
142  return false;
143  if (std::abs(track.dz) > dzerror_Pix_ * track.dzError)
144  return false;
145  }
146  return true;
147  }
int numberOfValidHits_
Definition: EPCuts.h:165
double dzerror_Pix_
Definition: EPCuts.h:163
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double pterror_
Definition: EPCuts.h:159
caConstants::TupleMultiplicity const CAHitNtupletGeneratorKernelsGPU::HitToTuple const cms::cuda::AtomicPairCounter GPUCACell const *__restrict__ uint32_t const *__restrict__ gpuPixelDoublets::CellNeighborsVector const gpuPixelDoublets::CellTracksVector const GPUCACell::OuterHitOfCell const int32_t nHits
double chi2perlayer_
Definition: EPCuts.h:162
double dzerror_
Definition: EPCuts.h:160
double dxyerror_
Definition: EPCuts.h:161
double chi2Pix_
Definition: EPCuts.h:164
bool hi::EPCuts::trackQuality_ppReco ( const TrackStructure track) const
inline

Definition at line 74 of file EPCuts.h.

References funct::abs(), hi::TrackStructure::charge, hi::TrackStructure::chi2layer, chi2perlayer_, hi::TrackStructure::dxy, hi::TrackStructure::dxyError, dxyerror_, hi::TrackStructure::dz, hi::TrackStructure::dzError, dzerror_, hi::TrackStructure::highPurity, hi::TrackStructure::numberOfValidHits, numberOfValidHits_, hi::TrackStructure::pt, hi::TrackStructure::ptError, and pterror_.

Referenced by isGoodTrack().

74  {
75  if (track.charge == 0)
76  return false;
77  if (!track.highPurity)
78  return false;
79  if (track.ptError > pterror_ * track.pt)
80  return false;
81  if (track.numberOfValidHits < numberOfValidHits_)
82  return false;
83  if (track.chi2layer > chi2perlayer_)
84  return false;
85  if (std::abs(track.dxy) > dxyerror_ * track.dxyError)
86  return false;
87  if (std::abs(track.dz) > dzerror_ * track.dzError)
88  return false;
89  return true;
90  }
int numberOfValidHits_
Definition: EPCuts.h:165
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double pterror_
Definition: EPCuts.h:159
double chi2perlayer_
Definition: EPCuts.h:162
double dzerror_
Definition: EPCuts.h:160
double dxyerror_
Definition: EPCuts.h:161

Member Data Documentation

double hi::EPCuts::chi2perlayer_
private

Definition at line 162 of file EPCuts.h.

Referenced by EPCuts(), trackQuality_HIReco(), trackQuality_Pixel(), and trackQuality_ppReco().

double hi::EPCuts::chi2Pix_
private

Definition at line 164 of file EPCuts.h.

Referenced by EPCuts(), and trackQuality_Pixel().

EP_ERA hi::EPCuts::cutera_
private

Definition at line 158 of file EPCuts.h.

Referenced by EPCuts(), and isGoodTrack().

double hi::EPCuts::dxyerror_
private

Definition at line 161 of file EPCuts.h.

Referenced by EPCuts(), trackQuality_HIReco(), trackQuality_Pixel(), and trackQuality_ppReco().

double hi::EPCuts::dzerror_
private

Definition at line 160 of file EPCuts.h.

Referenced by EPCuts(), trackQuality_HIReco(), trackQuality_Pixel(), and trackQuality_ppReco().

double hi::EPCuts::dzerror_Pix_
private

Definition at line 163 of file EPCuts.h.

Referenced by EPCuts(), and trackQuality_Pixel().

int hi::EPCuts::numberOfValidHits_
private

Definition at line 165 of file EPCuts.h.

Referenced by EPCuts(), trackQuality_HIReco(), trackQuality_Pixel(), and trackQuality_ppReco().

double hi::EPCuts::pterror_
private

Definition at line 159 of file EPCuts.h.

Referenced by EPCuts(), trackQuality_HIReco(), trackQuality_Pixel(), and trackQuality_ppReco().