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

◆ TracksSelector() [2/2]

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
Definition: ParameterSet.h:307

Member Function Documentation

◆ Dump()

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

Definition at line 91 of file PFDisplacedVertexHelper.h.

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().

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  }

◆ dxy()

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

Definition at line 79 of file PFDisplacedVertexHelper.h.

References pvtx_, and trk.

Referenced by ntupleDataFormat.Track::dxyPull().

79 { return trk.dxy(pvtx_); }
Trktree trk
Definition: Trktree.cc:2

◆ dxy_min()

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

◆ nChi2_max()

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

◆ nChi2_min()

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

◆ nHits_min()

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

◆ nOuterHits_max()

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

◆ pt_min()

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

◆ quality()

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

Definition at line 78 of file PFDisplacedVertexHelper.h.

References quality_.

Referenced by PFDisplacedVertexHelper::isTrackSelected().

◆ selectTracks()

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

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().