CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackSelector.h
Go to the documentation of this file.
1 #ifndef MuonIsolation_TrackSelector_H
2 #define MuonIsolation_TrackSelector_H
3 
9 #include <list>
10 
11 namespace muonisolation {
12 
13  class TrackSelector {
14  public:
15 
17  typedef std::list<const reco::Track*> result_type;
20 
22  struct Parameters {
24  : zRange(-1e6,1e6), rRange(-1e6,1e6), dir(0,0), drMax(1e3), beamPoint(0,0,0),
25  nHitsMin(0), chi2NdofMax(1e64), chi2ProbMin(-1.), ptMin(-1) {}
26  Parameters(const Range& dz, const double d0Max, const reco::isodeposit::Direction& dirC, double rMax,
27  const BeamPoint& point = BeamPoint(0,0,0))
28  : zRange(dz), rRange(Range(0,d0Max)), dir(dirC), drMax(rMax), beamPoint(point),
29  nHitsMin(0), chi2NdofMax(1e64), chi2ProbMin(-1.), ptMin(-1) {}
33  double drMax;
35  unsigned int nHitsMin;
36  double chi2NdofMax;
37  double chi2ProbMin;
38  double ptMin;
39  };
40 
41 
42  TrackSelector(const Parameters& pars) : thePars(pars) { }
43 
44  result_type operator()(const input_type & tracks) const;
45 
46 
47  private:
49  };
50 
51 }
52 
53 #endif
std::list< const reco::Track * > result_type
Definition: TrackSelector.h:17
result_type operator()(const input_type &tracks) const
double chi2NdofMax
nValidHits &gt;= nHitsMin
Definition: TrackSelector.h:36
reco::TrackBase::Point BeamPoint
Definition: TrackSelector.h:19
edm::View< reco::Track > input_type
Definition: TrackSelector.h:18
double chi2ProbMin
max value of normalized chi2
Definition: TrackSelector.h:37
double drMax
direction of the selection cone
Definition: TrackSelector.h:33
math::XYZPoint Point
point in the space
Definition: TrackBase.h:76
tuple tracks
Definition: testEve_cfg.py:39
Parameters(const Range &dz, const double d0Max, const reco::isodeposit::Direction &dirC, double rMax, const BeamPoint &point=BeamPoint(0, 0, 0))
Definition: TrackSelector.h:26
unsigned int nHitsMin
beam spot position
Definition: TrackSelector.h:35
reco::isodeposit::Direction dir
range in d0 or dxy (abs value)
Definition: TrackSelector.h:32
double ptMin
ChiSquaredProbability( chi2, ndf ) &gt; chi2ProbMin.
Definition: TrackSelector.h:38
muonisolation::Range< float > Range
Definition: TrackSelector.h:16
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
TrackSelector(const Parameters &pars)
Definition: TrackSelector.h:42