CMS 3D CMS Logo

Public Member Functions | Public Attributes

PFDisplacedVertexHelper::TracksSelector Struct Reference

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

List of all members.

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]

Definition at line 61 of file PFDisplacedVertexHelper.h.

                     : 
      bSelectTracks_(false),
      nChi2_min_(0), nChi2_max_(100), 
      pt_min_(0), dxy_min_(0), 
      nHits_min_(3), nOuterHits_max_(100),
      quality_("loose"){}
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_, and quality_.

                                             {
      bSelectTracks_  = ps.getParameter<bool>("bSelectTracks");
      nChi2_min_      = ps.getParameter<double>("nChi2_min");
      nChi2_max_      = ps.getParameter<double>("nChi2_max");
      pt_min_         = ps.getParameter<double>("pt_min");
      dxy_min_        = ps.getParameter<double>("dxy_min");
      nHits_min_      = ps.getParameter<int>("nHits_min");
      nOuterHits_max_ = ps.getParameter<int>("nOuterHits_max");
      std::string quality_ = ps.getParameter<std::string>("quality");
    }

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_, and alignCSCRings::s.

Referenced by PFDisplacedVertexHelper::Dump().

                                               {
      if(! out ) return;
      std::string s =  bSelectTracks_ ? "On" : "Off";

      out << "" << std::endl;
      out << "      ==== The TrackerSelector is " << s.data() << " ====    " << std::endl;

      out << " nChi2_min_ = " << nChi2_min_
          << " nChi2_max_ = " << nChi2_max_ << std::endl
          << " pt_min_ = " << pt_min_
          << " dxy_min_ = " << dxy_min_ << std::endl
          << " nHits_min_ = " << nHits_min_  
          << " nOuterHits_max_ = " << nOuterHits_max_ << std::endl
          << " quality = " << quality_ << std::endl; 
    
    }
double PFDisplacedVertexHelper::TracksSelector::dxy ( const reco::Track trk) const [inline]

Definition at line 87 of file PFDisplacedVertexHelper.h.

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

{return trk.dxy(pvtx_);}
double PFDisplacedVertexHelper::TracksSelector::dxy_min ( ) const [inline]

Definition at line 83 of file PFDisplacedVertexHelper.h.

References dxy_min_.

Referenced by PFDisplacedVertexHelper::isTrackSelected().

{return dxy_min_;}
double PFDisplacedVertexHelper::TracksSelector::nChi2_max ( ) const [inline]

Definition at line 81 of file PFDisplacedVertexHelper.h.

References nChi2_max_.

Referenced by PFDisplacedVertexHelper::isTrackSelected().

{return nChi2_max_;}
double PFDisplacedVertexHelper::TracksSelector::nChi2_min ( ) const [inline]

Definition at line 80 of file PFDisplacedVertexHelper.h.

References nChi2_min_.

Referenced by PFDisplacedVertexHelper::isTrackSelected().

{return nChi2_min_;}
int PFDisplacedVertexHelper::TracksSelector::nHits_min ( ) const [inline]

Definition at line 84 of file PFDisplacedVertexHelper.h.

References nHits_min_.

Referenced by PFDisplacedVertexHelper::isTrackSelected().

{return nHits_min_;}
int PFDisplacedVertexHelper::TracksSelector::nOuterHits_max ( ) const [inline]

Definition at line 85 of file PFDisplacedVertexHelper.h.

References nOuterHits_max_.

Referenced by PFDisplacedVertexHelper::isTrackSelected().

{return nOuterHits_max_;}
double PFDisplacedVertexHelper::TracksSelector::pt_min ( ) const [inline]

Definition at line 82 of file PFDisplacedVertexHelper.h.

References pt_min_.

Referenced by PFDisplacedVertexHelper::isTrackSelected().

{return pt_min_;}
std::string PFDisplacedVertexHelper::TracksSelector::quality ( void  ) const [inline]

Definition at line 86 of file PFDisplacedVertexHelper.h.

References quality_.

Referenced by PFDisplacedVertexHelper::isTrackSelected().

{return quality_;}
bool PFDisplacedVertexHelper::TracksSelector::selectTracks ( ) const [inline]

Definition at line 79 of file PFDisplacedVertexHelper.h.

References bSelectTracks_.

Referenced by PFDisplacedVertexHelper::isTrackSelected().

{return bSelectTracks_;}

Member Data Documentation

Definition at line 89 of file PFDisplacedVertexHelper.h.

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

Definition at line 93 of file PFDisplacedVertexHelper.h.

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

Definition at line 91 of file PFDisplacedVertexHelper.h.

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

Definition at line 90 of file PFDisplacedVertexHelper.h.

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

Definition at line 94 of file PFDisplacedVertexHelper.h.

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

Definition at line 95 of file PFDisplacedVertexHelper.h.

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

Definition at line 92 of file PFDisplacedVertexHelper.h.

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

Definition at line 96 of file PFDisplacedVertexHelper.h.

Referenced by dxy().

Definition at line 97 of file PFDisplacedVertexHelper.h.

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