Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:53:39

0001 #ifndef DataFormats_ClusterCompatibility_h
0002 #define DataFormats_ClusterCompatibility_h
0003 
0004 #include <vector>
0005 
0006 namespace reco {
0007   class ClusterCompatibility {
0008   public:
0009     ClusterCompatibility();
0010     virtual ~ClusterCompatibility();
0011 
0012     /// Number of valid pixel clusters
0013     int nValidPixelHits() const { return nValidPixelHits_; }
0014 
0015     /// Number of vertex-position hypotheses tested
0016     int size() const { return z0_.size(); }
0017 
0018     /// Vertex z position for the i-th vertex-position hypothesis
0019     float z0(int i) const { return z0_[i]; }
0020 
0021     /// Number of compatible non-edge pixel-barrel clusters
0022     /// for the i-th vertex-position hypothesis
0023     int nHit(int i) const { return nHit_[i]; }
0024 
0025     /// Sum of the difference between the expected and actual
0026     /// width of all compatible non-edge pixel-barrel clusters
0027     /// for the i-th vertex-position hypothesis
0028     float chi(int i) const { return chi_[i]; }
0029 
0030     void append(float, int, float);
0031     void setNValidPixelHits(int nPxl) { nValidPixelHits_ = nPxl; }
0032 
0033   protected:
0034     int nValidPixelHits_;
0035 
0036     std::vector<float> z0_;
0037     std::vector<int> nHit_;
0038     std::vector<float> chi_;
0039   };
0040 
0041 }  // namespace reco
0042 #endif