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
mps_fire.i
i
Definition: mps_fire.py:428
reco::ClusterCompatibility::setNValidPixelHits
void setNValidPixelHits(int nPxl)
Definition: ClusterCompatibility.h:31
reco::ClusterCompatibility::z0_
std::vector< float > z0_
Definition: ClusterCompatibility.h:36
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::ClusterCompatibility::chi
float chi(int i) const
Definition: ClusterCompatibility.h:28
reco::ClusterCompatibility::~ClusterCompatibility
virtual ~ClusterCompatibility()
Definition: ClusterCompatibility.cc:6
reco::ClusterCompatibility::z0
float z0(int i) const
Vertex z position for the i-th vertex-position hypothesis.
Definition: ClusterCompatibility.h:19
reco::ClusterCompatibility
Definition: ClusterCompatibility.h:7
reco::ClusterCompatibility::nHit
int nHit(int i) const
Definition: ClusterCompatibility.h:23
reco::ClusterCompatibility::nHit_
std::vector< int > nHit_
Definition: ClusterCompatibility.h:37
reco::ClusterCompatibility::size
int size() const
Number of vertex-position hypotheses tested.
Definition: ClusterCompatibility.h:16
reco::ClusterCompatibility::chi_
std::vector< float > chi_
Definition: ClusterCompatibility.h:38
reco::ClusterCompatibility::ClusterCompatibility
ClusterCompatibility()
Definition: ClusterCompatibility.cc:4
reco::ClusterCompatibility::append
void append(float, int, float)
Definition: ClusterCompatibility.cc:8
reco::ClusterCompatibility::nValidPixelHits
int nValidPixelHits() const
Number of valid pixel clusters.
Definition: ClusterCompatibility.h:13
reco::ClusterCompatibility::nValidPixelHits_
int nValidPixelHits_
Definition: ClusterCompatibility.h:34