CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
PFDisplacedVertexHelper::TracksSelector Struct Reference

Tool which store the information for the tracks selection. More...

Public Member Functions

void Dump (std::ostream &out=std::cout) const
 
double dxy (const reco::Track &trk) const
 
double dxy_min () const
 
double nChi2_max () const
 
double nChi2_min () const
 
int nHits_min () const
 
int nOuterHits_max () const
 
double pt_min () const
 
std::string quality () const
 
bool selectTracks () const
 
 TracksSelector ()
 
 TracksSelector (const edm::ParameterSet &ps)
 

Public Attributes

bool bSelectTracks_
 
double dxy_min_
 
double nChi2_max_
 
double nChi2_min_
 
int nHits_min_
 
int nOuterHits_max_
 
double pt_min_
 
math::XYZPoint pvtx_
 
std::string quality_
 

Detailed Description

Tool which store the information for the tracks selection.

Definition at line 49 of file PFDisplacedVertexHelper.h.

Constructor & Destructor Documentation

◆ TracksSelector() [1/2]

PFDisplacedVertexHelper::TracksSelector::TracksSelector ( )
inline

Definition at line 50 of file PFDisplacedVertexHelper.h.

51  : bSelectTracks_(false),
52  nChi2_min_(0),
53  nChi2_max_(100),
54  pt_min_(0),
55  dxy_min_(0),
56  nHits_min_(3),
57  nOuterHits_max_(100),
58  quality_("loose") {}

◆ TracksSelector() [2/2]

PFDisplacedVertexHelper::TracksSelector::TracksSelector ( const edm::ParameterSet ps)
inline

Definition at line 60 of file PFDisplacedVertexHelper.h.

60  {
61  bSelectTracks_ = ps.getParameter<bool>("bSelectTracks");
62  nChi2_min_ = ps.getParameter<double>("nChi2_min");
63  nChi2_max_ = ps.getParameter<double>("nChi2_max");
64  pt_min_ = ps.getParameter<double>("pt_min");
65  dxy_min_ = ps.getParameter<double>("dxy_min");
66  nHits_min_ = ps.getParameter<int>("nHits_min");
67  nOuterHits_max_ = ps.getParameter<int>("nOuterHits_max");
69  }

References bSelectTracks_, dxy_min_, edm::ParameterSet::getParameter(), nChi2_max_, nChi2_min_, nHits_min_, nOuterHits_max_, pt_min_, quality_, and AlCaHLTBitMon_QueryRunRegistry::string.

Member Function Documentation

◆ Dump()

void PFDisplacedVertexHelper::TracksSelector::Dump ( std::ostream &  out = std::cout) const
inline

Definition at line 91 of file PFDisplacedVertexHelper.h.

91  {
92  if (!out)
93  return;
94  std::string s = bSelectTracks_ ? "On" : "Off";
95 
96  out << "" << std::endl;
97  out << " ==== The TrackerSelector is " << s.data() << " ==== " << std::endl;
98 
99  out << " nChi2_min_ = " << nChi2_min_ << " nChi2_max_ = " << nChi2_max_ << std::endl
100  << " pt_min_ = " << pt_min_ << " dxy_min_ = " << dxy_min_ << std::endl
101  << " nHits_min_ = " << nHits_min_ << " nOuterHits_max_ = " << nOuterHits_max_ << std::endl
102  << " quality = " << quality_ << std::endl;
103  }

References bSelectTracks_, dxy_min_, nChi2_max_, nChi2_min_, nHits_min_, nOuterHits_max_, MillePedeFileConverter_cfg::out, pt_min_, quality_, alignCSCRings::s, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by PFDisplacedVertexHelper::Dump().

◆ dxy()

double PFDisplacedVertexHelper::TracksSelector::dxy ( const reco::Track trk) const
inline

Definition at line 79 of file PFDisplacedVertexHelper.h.

79 { return trk.dxy(pvtx_); }

References reco::TrackBase::dxy(), and pvtx_.

Referenced by ntupleDataFormat.Track::dxyPull().

◆ dxy_min()

double PFDisplacedVertexHelper::TracksSelector::dxy_min ( ) const
inline

Definition at line 75 of file PFDisplacedVertexHelper.h.

75 { return dxy_min_; }

References dxy_min_.

Referenced by PFDisplacedVertexHelper::isTrackSelected().

◆ nChi2_max()

double PFDisplacedVertexHelper::TracksSelector::nChi2_max ( ) const
inline

Definition at line 73 of file PFDisplacedVertexHelper.h.

73 { return nChi2_max_; }

References nChi2_max_.

Referenced by PFDisplacedVertexHelper::isTrackSelected().

◆ nChi2_min()

double PFDisplacedVertexHelper::TracksSelector::nChi2_min ( ) const
inline

Definition at line 72 of file PFDisplacedVertexHelper.h.

72 { return nChi2_min_; }

References nChi2_min_.

Referenced by PFDisplacedVertexHelper::isTrackSelected().

◆ nHits_min()

int PFDisplacedVertexHelper::TracksSelector::nHits_min ( ) const
inline

Definition at line 76 of file PFDisplacedVertexHelper.h.

76 { return nHits_min_; }

References nHits_min_.

Referenced by PFDisplacedVertexHelper::isTrackSelected().

◆ nOuterHits_max()

int PFDisplacedVertexHelper::TracksSelector::nOuterHits_max ( ) const
inline

Definition at line 77 of file PFDisplacedVertexHelper.h.

77 { return nOuterHits_max_; }

References nOuterHits_max_.

Referenced by PFDisplacedVertexHelper::isTrackSelected().

◆ pt_min()

double PFDisplacedVertexHelper::TracksSelector::pt_min ( ) const
inline

Definition at line 74 of file PFDisplacedVertexHelper.h.

74 { return pt_min_; }

References pt_min_.

Referenced by PFDisplacedVertexHelper::isTrackSelected().

◆ quality()

std::string PFDisplacedVertexHelper::TracksSelector::quality ( void  ) const
inline

Definition at line 78 of file PFDisplacedVertexHelper.h.

78 { return quality_; }

References quality_.

Referenced by PFDisplacedVertexHelper::isTrackSelected().

◆ selectTracks()

bool PFDisplacedVertexHelper::TracksSelector::selectTracks ( ) const
inline

Definition at line 71 of file PFDisplacedVertexHelper.h.

71 { return bSelectTracks_; }

References bSelectTracks_.

Referenced by PFDisplacedVertexHelper::isTrackSelected().

Member Data Documentation

◆ bSelectTracks_

bool PFDisplacedVertexHelper::TracksSelector::bSelectTracks_

Definition at line 81 of file PFDisplacedVertexHelper.h.

Referenced by Dump(), selectTracks(), and TracksSelector().

◆ dxy_min_

double PFDisplacedVertexHelper::TracksSelector::dxy_min_

Definition at line 85 of file PFDisplacedVertexHelper.h.

Referenced by Dump(), dxy_min(), and TracksSelector().

◆ nChi2_max_

double PFDisplacedVertexHelper::TracksSelector::nChi2_max_

Definition at line 83 of file PFDisplacedVertexHelper.h.

Referenced by Dump(), nChi2_max(), and TracksSelector().

◆ nChi2_min_

double PFDisplacedVertexHelper::TracksSelector::nChi2_min_

Definition at line 82 of file PFDisplacedVertexHelper.h.

Referenced by Dump(), nChi2_min(), and TracksSelector().

◆ nHits_min_

int PFDisplacedVertexHelper::TracksSelector::nHits_min_

Definition at line 86 of file PFDisplacedVertexHelper.h.

Referenced by Dump(), nHits_min(), and TracksSelector().

◆ nOuterHits_max_

int PFDisplacedVertexHelper::TracksSelector::nOuterHits_max_

Definition at line 87 of file PFDisplacedVertexHelper.h.

Referenced by Dump(), nOuterHits_max(), and TracksSelector().

◆ pt_min_

double PFDisplacedVertexHelper::TracksSelector::pt_min_

Definition at line 84 of file PFDisplacedVertexHelper.h.

Referenced by Dump(), pt_min(), and TracksSelector().

◆ pvtx_

math::XYZPoint PFDisplacedVertexHelper::TracksSelector::pvtx_

Definition at line 88 of file PFDisplacedVertexHelper.h.

Referenced by dxy().

◆ quality_

std::string PFDisplacedVertexHelper::TracksSelector::quality_

Definition at line 89 of file PFDisplacedVertexHelper.h.

Referenced by Dump(), quality(), and TracksSelector().

PFDisplacedVertexHelper::TracksSelector::bSelectTracks_
bool bSelectTracks_
Definition: PFDisplacedVertexHelper.h:81
PFDisplacedVertexHelper::TracksSelector::nChi2_min_
double nChi2_min_
Definition: PFDisplacedVertexHelper.h:82
PFDisplacedVertexHelper::TracksSelector::pvtx_
math::XYZPoint pvtx_
Definition: PFDisplacedVertexHelper.h:88
PFDisplacedVertexHelper::TracksSelector::nChi2_max_
double nChi2_max_
Definition: PFDisplacedVertexHelper.h:83
alignCSCRings.s
s
Definition: alignCSCRings.py:92
PFDisplacedVertexHelper::TracksSelector::pt_min_
double pt_min_
Definition: PFDisplacedVertexHelper.h:84
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PFDisplacedVertexHelper::TracksSelector::dxy_min_
double dxy_min_
Definition: PFDisplacedVertexHelper.h:85
PFDisplacedVertexHelper::TracksSelector::nHits_min_
int nHits_min_
Definition: PFDisplacedVertexHelper.h:86
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
PFDisplacedVertexHelper::TracksSelector::nOuterHits_max_
int nOuterHits_max_
Definition: PFDisplacedVertexHelper.h:87
reco::TrackBase::dxy
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
Definition: TrackBase.h:608
PFDisplacedVertexHelper::TracksSelector::quality_
std::string quality_
Definition: PFDisplacedVertexHelper.h:89