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::ClusterCompatibility ( )

Definition at line 4 of file ClusterCompatibility.cc.

◆ ~ClusterCompatibility()

ClusterCompatibility::~ClusterCompatibility ( )
virtual

Definition at line 6 of file ClusterCompatibility.cc.

6 {}

Member Function Documentation

◆ append()

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

Definition at line 8 of file ClusterCompatibility.cc.

References chi(), chi_, nHit(), nHit_, z0(), and z0_.

Referenced by diclist.diclist::add(), 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.

◆ chi()

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 chi_, and mps_fire::i.

Referenced by append().

28 { return chi_[i]; }

◆ nHit()

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_.

Referenced by append().

23 { return nHit_[i]; }

◆ nValidPixelHits()

int reco::ClusterCompatibility::nValidPixelHits ( ) const
inline

Number of valid pixel clusters.

Definition at line 13 of file ClusterCompatibility.h.

References nValidPixelHits_.

◆ setNValidPixelHits()

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

Definition at line 31 of file ClusterCompatibility.h.

References nValidPixelHits_.

◆ size()

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(); }

◆ z0()

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_.

Referenced by append().

19 { return z0_[i]; }

Member Data Documentation

◆ chi_

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

Definition at line 38 of file ClusterCompatibility.h.

Referenced by append(), and chi().

◆ nHit_

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

Definition at line 37 of file ClusterCompatibility.h.

Referenced by append(), and nHit().

◆ nValidPixelHits_

int reco::ClusterCompatibility::nValidPixelHits_
protected

Definition at line 34 of file ClusterCompatibility.h.

Referenced by nValidPixelHits(), and setNValidPixelHits().

◆ z0_

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

Definition at line 36 of file ClusterCompatibility.h.

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