CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 60 of file PFDisplacedVertexHelper.h.

Constructor & Destructor Documentation

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

Definition at line 68 of file PFDisplacedVertexHelper.h.

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

68  {
69  bSelectTracks_ = ps.getParameter<bool>("bSelectTracks");
70  nChi2_min_ = ps.getParameter<double>("nChi2_min");
71  nChi2_max_ = ps.getParameter<double>("nChi2_max");
72  pt_min_ = ps.getParameter<double>("pt_min");
73  dxy_min_ = ps.getParameter<double>("dxy_min");
74  nHits_min_ = ps.getParameter<int>("nHits_min");
75  nOuterHits_max_ = ps.getParameter<int>("nOuterHits_max");
77  }
T getParameter(std::string const &) const

Member Function Documentation

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

Definition at line 99 of file PFDisplacedVertexHelper.h.

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

Referenced by PFDisplacedVertexHelper::Dump().

99  {
100  if(! out ) return;
101  std::string s = bSelectTracks_ ? "On" : "Off";
102 
103  out << "" << std::endl;
104  out << " ==== The TrackerSelector is " << s.data() << " ==== " << std::endl;
105 
106  out << " nChi2_min_ = " << nChi2_min_
107  << " nChi2_max_ = " << nChi2_max_ << std::endl
108  << " pt_min_ = " << pt_min_
109  << " dxy_min_ = " << dxy_min_ << std::endl
110  << " nHits_min_ = " << nHits_min_
111  << " nOuterHits_max_ = " << nOuterHits_max_ << std::endl
112  << " quality = " << quality_ << std::endl;
113 
114  }
tuple out
Definition: dbtoconf.py:99
double PFDisplacedVertexHelper::TracksSelector::dxy ( const reco::Track trk) const
inline

Definition at line 87 of file PFDisplacedVertexHelper.h.

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

87 {return trk.dxy(pvtx_);}
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:544
double PFDisplacedVertexHelper::TracksSelector::dxy_min ( ) const
inline
double PFDisplacedVertexHelper::TracksSelector::nChi2_max ( ) const
inline
double PFDisplacedVertexHelper::TracksSelector::nChi2_min ( ) const
inline
int PFDisplacedVertexHelper::TracksSelector::nHits_min ( ) const
inline
int PFDisplacedVertexHelper::TracksSelector::nOuterHits_max ( ) const
inline
double PFDisplacedVertexHelper::TracksSelector::pt_min ( ) const
inline
std::string PFDisplacedVertexHelper::TracksSelector::quality ( void  ) const
inline

Definition at line 86 of file PFDisplacedVertexHelper.h.

References quality_.

Referenced by PFDisplacedVertexHelper::isTrackSelected().

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

Member Data Documentation

bool PFDisplacedVertexHelper::TracksSelector::bSelectTracks_

Definition at line 89 of file PFDisplacedVertexHelper.h.

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

double PFDisplacedVertexHelper::TracksSelector::dxy_min_

Definition at line 93 of file PFDisplacedVertexHelper.h.

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

double PFDisplacedVertexHelper::TracksSelector::nChi2_max_

Definition at line 91 of file PFDisplacedVertexHelper.h.

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

double PFDisplacedVertexHelper::TracksSelector::nChi2_min_

Definition at line 90 of file PFDisplacedVertexHelper.h.

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

int PFDisplacedVertexHelper::TracksSelector::nHits_min_

Definition at line 94 of file PFDisplacedVertexHelper.h.

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

int PFDisplacedVertexHelper::TracksSelector::nOuterHits_max_

Definition at line 95 of file PFDisplacedVertexHelper.h.

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

double PFDisplacedVertexHelper::TracksSelector::pt_min_

Definition at line 92 of file PFDisplacedVertexHelper.h.

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

math::XYZPoint PFDisplacedVertexHelper::TracksSelector::pvtx_

Definition at line 96 of file PFDisplacedVertexHelper.h.

Referenced by dxy().

std::string PFDisplacedVertexHelper::TracksSelector::quality_

Definition at line 97 of file PFDisplacedVertexHelper.h.

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