CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MultiTrackSelector.h
Go to the documentation of this file.
1 #ifndef RecoAlgos_MultiTrackSelector_h
2 #define RecoAlgos_MultiTrackSelector_h
3 
15 #include <utility>
16 #include <vector>
17 #include <memory>
18 #include <algorithm>
19 #include <map>
24 
35 
36 namespace reco { namespace modules {
37 
39  private:
40  public:
42  explicit MultiTrackSelector() { }
43  explicit MultiTrackSelector( const edm::ParameterSet & cfg ) ;
45  virtual ~MultiTrackSelector() ;
46 
47  protected:
50  virtual void produce( edm::Event& evt, const edm::EventSetup& es ) ;
52  bool select (unsigned tsNum,
53  const reco::BeamSpot &vertexBeamSpot,
54  const reco::Track &tk,
55  const std::vector<Point> &points,
56  std::vector<double> &vterr,
57  std::vector<double> &vzerr);
58  void selectVertices ( unsigned int tsNum,
59  const reco::VertexCollection &vtxs,
60  std::vector<Point> &points,
61  std::vector<double> &vterr,
62  std::vector<double> &vzerr);
69 
71  std::vector<bool> setQualityBit_;
72  std::vector<TrackBase::TrackQuality> qualityToSet_;
73 
75  std::vector<int32_t> vtxNumber_;
76  std::vector<StringCutObjectSelector<reco::Vertex> > vertexCut_;
77 
78  // parameters for adapted optimal cuts on chi2 and primary vertex compatibility
79  std::vector< std::vector<double> > res_par_;
80  std::vector< double > chi2n_par_;
81  std::vector< double > chi2n_no1Dmod_par_;
82  std::vector< std::vector<double> > d0_par1_;
83  std::vector< std::vector<double> > dz_par1_;
84  std::vector< std::vector<double> > d0_par2_;
85  std::vector< std::vector<double> > dz_par2_;
86  // Boolean indicating if adapted primary vertex compatibility cuts are to be applied.
87  std::vector<bool> applyAdaptedPVCuts_;
88 
90  std::vector<double> max_d0_;
91  std::vector<double> max_z0_;
92  std::vector<double> nSigmaZ_;
93 
95  std::vector<uint32_t> min_layers_;
96  std::vector<uint32_t> min_3Dlayers_;
97  std::vector<uint32_t> max_lostLayers_;
98  std::vector<uint32_t> min_hits_bypass_;
99 
100  // pterror and nvalid hits cuts
101  std::vector<double> max_relpterr_;
102  std::vector<uint32_t> min_nhits_;
103 
104  // Flag and absolute cuts if no PV passes the selection
105  std::vector<double> max_d0NoPV_;
106  std::vector<double> max_z0NoPV_;
107  std::vector<bool> applyAbsCutsIfNoPV_;
108  //if true, selector flags but does not select
109  std::vector<bool> keepAllTracks_;
110 
111  // allow one of the previous psets to be used as a prefilter
112  std::vector<unsigned int> preFilter_;
113  std::vector<std::string> name_;
114  };
115 
116 } }
117 
118 #endif
std::vector< double > max_d0_
Impact parameter absolute cuts.
void selectVertices(unsigned int tsNum, const reco::VertexCollection &vtxs, std::vector< Point > &points, std::vector< double > &vterr, std::vector< double > &vzerr)
std::vector< std::vector< double > > dz_par1_
std::vector< std::vector< double > > d0_par1_
std::vector< std::vector< double > > d0_par2_
virtual void produce(edm::Event &evt, const edm::EventSetup &es)
process one event
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
std::vector< uint32_t > min_3Dlayers_
std::vector< int32_t > vtxNumber_
vertex cuts
std::vector< std::string > name_
std::vector< std::vector< double > > res_par_
std::vector< uint32_t > min_nhits_
std::vector< unsigned int > preFilter_
bool select(unsigned tsNum, const reco::BeamSpot &vertexBeamSpot, const reco::Track &tk, const std::vector< Point > &points, std::vector< double > &vterr, std::vector< double > &vzerr)
return class, or -1 if rejected
std::vector< uint32_t > min_hits_bypass_
edm::InputTag src_
source collection label
std::vector< double > chi2n_no1Dmod_par_
std::vector< StringCutObjectSelector< reco::Vertex > > vertexCut_
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:13
std::vector< TrackBase::TrackQuality > qualityToSet_
std::vector< bool > setQualityBit_
do I have to set a quality bit?
std::vector< uint32_t > min_layers_
Cuts on numbers of layers with hits/3D hits/lost hits.
std::vector< uint32_t > max_lostLayers_
std::vector< std::vector< double > > dz_par2_