CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
reco::ClusterCompatibility Class Reference

#include <ClusterCompatibility.h>

Public Member Functions

void append (float, int, float)
 
float chi (int i) const
 
 ClusterCompatibility ()
 
int nHit (int i) const
 
int nValidPixelHits () const
 Number of valid pixel clusters. More...
 
void setNValidPixelHits (int nPxl)
 
int size () const
 Number of vertex-position hypotheses tested. More...
 
float z0 (int i) const
 Vertex z position for the i-th vertex-position hypothesis. More...
 
virtual ~ClusterCompatibility ()
 

Protected Attributes

std::vector< float > chi_
 
std::vector< int > nHit_
 
int nValidPixelHits_
 
std::vector< float > z0_
 

Detailed Description

Definition at line 7 of file ClusterCompatibility.h.

Constructor & Destructor Documentation

ClusterCompatibility::ClusterCompatibility ( )

Definition at line 4 of file ClusterCompatibility.cc.

ClusterCompatibility::~ClusterCompatibility ( )
virtual

Definition at line 6 of file ClusterCompatibility.cc.

6 {}

Member Function Documentation

void ClusterCompatibility::append ( float  z0,
int  nHit,
float  chi 
)

Definition at line 8 of file ClusterCompatibility.cc.

References chi_, nHit_, and z0_.

Referenced by diclist.diclist::add(), Vispa.Views.PropertyView.PropertyView::addProperty(), chi(), and BeautifulSoup.Tag::setString().

8  {
9  z0_.push_back(z0);
10  nHit_.push_back(nHit);
11  chi_.push_back(chi);
12 }
float z0(int i) const
Vertex z position for the i-th vertex-position hypothesis.
float reco::ClusterCompatibility::chi ( int  i) const
inline

Sum of the difference between the expected and actual width of all compatible non-edge pixel-barrel clusters for the i-th vertex-position hypothesis

Definition at line 28 of file ClusterCompatibility.h.

References append(), chi_, and mps_fire::i.

28 { return chi_[i]; }
int reco::ClusterCompatibility::nHit ( int  i) const
inline

Number of compatible non-edge pixel-barrel clusters for the i-th vertex-position hypothesis

Definition at line 23 of file ClusterCompatibility.h.

References mps_fire::i, and nHit_.

23 { return nHit_[i]; }
int reco::ClusterCompatibility::nValidPixelHits ( ) const
inline

Number of valid pixel clusters.

Definition at line 13 of file ClusterCompatibility.h.

References nValidPixelHits_.

void reco::ClusterCompatibility::setNValidPixelHits ( int  nPxl)
inline

Definition at line 31 of file ClusterCompatibility.h.

References nValidPixelHits_.

int reco::ClusterCompatibility::size ( void  ) const
inline

Number of vertex-position hypotheses tested.

Definition at line 16 of file ClusterCompatibility.h.

References z0_.

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

16 { return z0_.size(); }
float reco::ClusterCompatibility::z0 ( int  i) const
inline

Vertex z position for the i-th vertex-position hypothesis.

Definition at line 19 of file ClusterCompatibility.h.

References mps_fire::i, and z0_.

19 { return z0_[i]; }

Member Data Documentation

std::vector<float> reco::ClusterCompatibility::chi_
protected

Definition at line 38 of file ClusterCompatibility.h.

Referenced by append(), and chi().

std::vector<int> reco::ClusterCompatibility::nHit_
protected

Definition at line 37 of file ClusterCompatibility.h.

Referenced by append(), and nHit().

int reco::ClusterCompatibility::nValidPixelHits_
protected

Definition at line 34 of file ClusterCompatibility.h.

Referenced by nValidPixelHits(), and setNValidPixelHits().

std::vector<float> reco::ClusterCompatibility::z0_
protected

Definition at line 36 of file ClusterCompatibility.h.

Referenced by append(), size(), and z0().