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

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

Definition at line 60 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.

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  }
T getParameter(std::string const &) const

Member Function Documentation

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

Definition at line 91 of file PFDisplacedVertexHelper.h.

References MillePedeFileConverter_cfg::out, alignCSCRings::s, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by PFDisplacedVertexHelper::Dump().

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  }
double PFDisplacedVertexHelper::TracksSelector::dxy ( const reco::Track trk) const
inline

Definition at line 79 of file PFDisplacedVertexHelper.h.

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

Referenced by ntupleDataFormat.Track::dxyPull().

79 { 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:587
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 78 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 81 of file PFDisplacedVertexHelper.h.

Referenced by selectTracks(), and TracksSelector().

double PFDisplacedVertexHelper::TracksSelector::dxy_min_

Definition at line 85 of file PFDisplacedVertexHelper.h.

Referenced by dxy_min(), and TracksSelector().

double PFDisplacedVertexHelper::TracksSelector::nChi2_max_

Definition at line 83 of file PFDisplacedVertexHelper.h.

Referenced by nChi2_max(), and TracksSelector().

double PFDisplacedVertexHelper::TracksSelector::nChi2_min_

Definition at line 82 of file PFDisplacedVertexHelper.h.

Referenced by nChi2_min(), and TracksSelector().

int PFDisplacedVertexHelper::TracksSelector::nHits_min_

Definition at line 86 of file PFDisplacedVertexHelper.h.

Referenced by nHits_min(), and TracksSelector().

int PFDisplacedVertexHelper::TracksSelector::nOuterHits_max_

Definition at line 87 of file PFDisplacedVertexHelper.h.

Referenced by nOuterHits_max(), and TracksSelector().

double PFDisplacedVertexHelper::TracksSelector::pt_min_
math::XYZPoint PFDisplacedVertexHelper::TracksSelector::pvtx_

Definition at line 88 of file PFDisplacedVertexHelper.h.

Referenced by dxy().

std::string PFDisplacedVertexHelper::TracksSelector::quality_

Definition at line 89 of file PFDisplacedVertexHelper.h.

Referenced by quality(), and TracksSelector().