CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ClusterCompatibility.h
Go to the documentation of this file.
1 #ifndef DataFormats_ClusterCompatibility_h
2 #define DataFormats_ClusterCompatibility_h
3 
4 #include <vector>
5 
6 namespace reco { class ClusterCompatibility {
7 public:
8 
10  virtual ~ClusterCompatibility();
11 
13  int nValidPixelHits() const { return nValidPixelHits_; }
14 
16  int size() const { return z0_.size(); }
17 
19  float z0(int i) const { return z0_[i]; }
20 
23  int nHit(int i) const { return nHit_[i]; }
24 
28  float chi(int i) const { return chi_[i]; }
29 
30  void append(float, int, float);
31  void setNValidPixelHits(int nPxl) { nValidPixelHits_ = nPxl; }
32 
33 protected:
34 
35 
37 
38  std::vector<float> z0_;
39  std::vector<int> nHit_;
40  std::vector<float> chi_;
41 
42 };
43 
44 }
45 #endif
int i
Definition: DBlmapReader.cc:9
int size() const
Number of vertex-position hypotheses tested.
float z0(int i) const
Vertex z position for the i-th vertex-position hypothesis.
void append(float, int, float)
int nValidPixelHits() const
Number of valid pixel clusters.