CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
CSCSegFit Class Reference

#include <CSCSegFit.h>

Inheritance diagram for CSCSegFit:
CSCCondSegFit

Public Types

typedef std::vector< const
CSCRecHit2D * > 
CSCSetOfHits
 
typedef ROOT::Math::SMatrix
< double, 12, 4 > 
SMatrix12by4
 
typedef ROOT::Math::SMatrix
< double, 4 > 
SMatrix4
 
typedef ROOT::Math::SMatrix
< double,
12, 12, ROOT::Math::MatRepSym
< double, 12 > > 
SMatrixSym12
 
typedef ROOT::Math::SMatrix
< double,
2, 2, ROOT::Math::MatRepSym
< double, 2 > > 
SMatrixSym2
 
typedef ROOT::Math::SMatrix
< double,
4, 4, ROOT::Math::MatRepSym
< double, 4 > > 
SMatrixSym4
 
typedef ROOT::Math::SVector
< double, 4 > 
SVector4
 

Public Member Functions

const CSCChamberchamber () const
 
double chi2 (void) const
 
AlgebraicSymMatrix covarianceMatrix (void)
 
 CSCSegFit (const CSCChamber *csc, CSCSetOfHits hits)
 
void fit (void)
 
bool fitdone () const
 
CSCSetOfHits hits (void) const
 
LocalPoint intercept () const
 
LocalVector localdir () const
 
int ndof (void) const
 
size_t nhits (void) const
 
float Rdev (float x, float y, float z) const
 
double scaleXError (void) const
 
void setScaleXError (double factor)
 
float xdev (float x, float z) const
 
float xfit (float z) const
 
float ydev (float y, float z) const
 
float yfit (float z) const
 
virtual ~CSCSegFit ()
 

Protected Member Functions

SMatrix12by4 derivativeMatrix (void)
 
AlgebraicSymMatrix flipErrors (const SMatrixSym4 &)
 
void setOutFromIP (void)
 
SMatrixSym12 weightMatrix (void)
 

Protected Attributes

const CSCChamberchamber_
 
double chi2_
 
bool fitdone_
 
CSCSetOfHits hits_
 
LocalPoint intercept_
 
LocalVector localdir_
 
int ndof_
 
double scaleXError_
 
float uslope_
 
float vslope_
 

Private Member Functions

void fit2 (void)
 
void fitlsq (void)
 
void setChi2 (void)
 

Detailed Description

Definition at line 30 of file CSCSegFit.h.

Member Typedef Documentation

typedef std::vector<const CSCRecHit2D*> CSCSegFit::CSCSetOfHits

Definition at line 36 of file CSCSegFit.h.

typedef ROOT::Math::SMatrix<double,12,4 > CSCSegFit::SMatrix12by4

Definition at line 42 of file CSCSegFit.h.

typedef ROOT::Math::SMatrix<double, 4 > CSCSegFit::SMatrix4

Definition at line 45 of file CSCSegFit.h.

typedef ROOT::Math::SMatrix<double,12,12,ROOT::Math::MatRepSym<double,12> > CSCSegFit::SMatrixSym12

Definition at line 39 of file CSCSegFit.h.

typedef ROOT::Math::SMatrix<double,2,2,ROOT::Math::MatRepSym<double,2> > CSCSegFit::SMatrixSym2

Definition at line 49 of file CSCSegFit.h.

typedef ROOT::Math::SMatrix<double,4,4,ROOT::Math::MatRepSym<double,4> > CSCSegFit::SMatrixSym4

Definition at line 46 of file CSCSegFit.h.

typedef ROOT::Math::SVector<double,4> CSCSegFit::SVector4

Definition at line 52 of file CSCSegFit.h.

Constructor & Destructor Documentation

CSCSegFit::CSCSegFit ( const CSCChamber csc,
CSCSetOfHits  hits 
)
inline

Definition at line 58 of file CSCSegFit.h.

58  :
59  chamber_( csc ), hits_( hits ), scaleXError_( 1.0 ), fitdone_( false ) {}
CSCSetOfHits hits(void) const
Definition: CSCSegFit.h:82
double scaleXError_
Definition: CSCSegFit.h:122
bool fitdone_
Definition: CSCSegFit.h:123
const CSCChamber * chamber_
Definition: CSCSegFit.h:114
CSCSetOfHits hits_
Definition: CSCSegFit.h:115
virtual CSCSegFit::~CSCSegFit ( )
inlinevirtual

Definition at line 61 of file CSCSegFit.h.

61 {}

Member Function Documentation

const CSCChamber* CSCSegFit::chamber ( ) const
inline

Definition at line 89 of file CSCSegFit.h.

References chamber_.

89 { return chamber_; }
const CSCChamber * chamber_
Definition: CSCSegFit.h:114
double CSCSegFit::chi2 ( void  ) const
inline

Definition at line 85 of file CSCSegFit.h.

References chi2_.

85 { return chi2_; }
double chi2_
Definition: CSCSegFit.h:120
AlgebraicSymMatrix CSCSegFit::covarianceMatrix ( void  )

Definition at line 378 of file CSCSegFit.cc.

CSCSegFit::SMatrix12by4 CSCSegFit::derivativeMatrix ( void  )
protected

Definition at line 331 of file CSCSegFit.cc.

void CSCSegFit::fit ( void  )

Definition at line 14 of file CSCSegFit.cc.

void CSCSegFit::fit2 ( void  )
private

Definition at line 35 of file CSCSegFit.cc.

bool CSCSegFit::fitdone ( ) const
inline

Definition at line 90 of file CSCSegFit.h.

References fitdone_.

90 { return fitdone_; }
bool fitdone_
Definition: CSCSegFit.h:123
void CSCSegFit::fitlsq ( void  )
private

Definition at line 85 of file CSCSegFit.cc.

AlgebraicSymMatrix CSCSegFit::flipErrors ( const SMatrixSym4 a)
protected

Definition at line 406 of file CSCSegFit.cc.

CSCSetOfHits CSCSegFit::hits ( void  ) const
inline

Definition at line 82 of file CSCSegFit.h.

References hits_.

82 { return hits_; }
CSCSetOfHits hits_
Definition: CSCSegFit.h:115
LocalPoint CSCSegFit::intercept ( ) const
inline

Definition at line 87 of file CSCSegFit.h.

References intercept_.

87 { return intercept_;}
LocalPoint intercept_
Definition: CSCSegFit.h:118
LocalVector CSCSegFit::localdir ( ) const
inline

Definition at line 88 of file CSCSegFit.h.

References localdir_.

88 { return localdir_;}
LocalVector localdir_
Definition: CSCSegFit.h:119
int CSCSegFit::ndof ( void  ) const
inline

Definition at line 86 of file CSCSegFit.h.

References ndof_.

86 { return ndof_; }
int ndof_
Definition: CSCSegFit.h:121
size_t CSCSegFit::nhits ( void  ) const
inline

Definition at line 84 of file CSCSegFit.h.

References hits_.

84 { return hits_.size(); }
CSCSetOfHits hits_
Definition: CSCSegFit.h:115
float CSCSegFit::Rdev ( float  x,
float  y,
float  z 
) const

Definition at line 473 of file CSCSegFit.cc.

double CSCSegFit::scaleXError ( void  ) const
inline

Definition at line 83 of file CSCSegFit.h.

References scaleXError_.

83 { return scaleXError_; }
double scaleXError_
Definition: CSCSegFit.h:122
void CSCSegFit::setChi2 ( void  )
private

Definition at line 246 of file CSCSegFit.cc.

void CSCSegFit::setOutFromIP ( void  )
protected

Definition at line 355 of file CSCSegFit.cc.

void CSCSegFit::setScaleXError ( double  factor)
inline

Definition at line 70 of file CSCSegFit.h.

References V0MonitoringClient_cfi::factor, and scaleXError_.

CSCSegFit::SMatrixSym12 CSCSegFit::weightMatrix ( void  )
protected

Definition at line 298 of file CSCSegFit.cc.

float CSCSegFit::xdev ( float  x,
float  z 
) const

Definition at line 465 of file CSCSegFit.cc.

float CSCSegFit::xfit ( float  z) const

Definition at line 455 of file CSCSegFit.cc.

float CSCSegFit::ydev ( float  y,
float  z 
) const

Definition at line 469 of file CSCSegFit.cc.

float CSCSegFit::yfit ( float  z) const

Definition at line 461 of file CSCSegFit.cc.

Member Data Documentation

const CSCChamber* CSCSegFit::chamber_
protected

Definition at line 114 of file CSCSegFit.h.

Referenced by chamber().

double CSCSegFit::chi2_
protected

Definition at line 120 of file CSCSegFit.h.

Referenced by chi2().

bool CSCSegFit::fitdone_
protected

Definition at line 123 of file CSCSegFit.h.

Referenced by fitdone().

CSCSetOfHits CSCSegFit::hits_
protected

Definition at line 115 of file CSCSegFit.h.

Referenced by hits(), and nhits().

LocalPoint CSCSegFit::intercept_
protected

Definition at line 118 of file CSCSegFit.h.

Referenced by intercept().

LocalVector CSCSegFit::localdir_
protected

Definition at line 119 of file CSCSegFit.h.

Referenced by localdir().

int CSCSegFit::ndof_
protected

Definition at line 121 of file CSCSegFit.h.

Referenced by ndof().

double CSCSegFit::scaleXError_
protected

Definition at line 122 of file CSCSegFit.h.

Referenced by scaleXError(), and setScaleXError().

float CSCSegFit::uslope_
protected

Definition at line 116 of file CSCSegFit.h.

float CSCSegFit::vslope_
protected

Definition at line 117 of file CSCSegFit.h.