CMS 3D CMS Logo

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 {
8  public:
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:
35 
36  std::vector<float> z0_;
37  std::vector<int> nHit_;
38  std::vector<float> chi_;
39  };
40 
41 } // namespace reco
42 #endif
int nValidPixelHits() const
Number of valid pixel clusters.
int size() const
Number of vertex-position hypotheses tested.
void append(float, int, float)
fixed size matrix
float z0(int i) const
Vertex z position for the i-th vertex-position hypothesis.