CMS 3D CMS Logo

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

#include <CSCCondSegFit.h>

Inheritance diagram for CSCCondSegFit:
CSCSegFit

Public Member Functions

 CSCCondSegFit (const edm::ParameterSet &ps, const CSCChamber *csc, const CSCSetOfHits &hits)
 
void fit (bool condpass1=false, bool condpass2=false)
 
int worstHit (void)
 
 ~CSCCondSegFit ()
 
- Public Member Functions inherited from CSCSegFit
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 ()
 

Private Member Functions

void correctTheCovMatrix (CSCSegFit::SMatrixSym2 &IC)
 
void correctTheCovX (void)
 
void setChi2 (bool condpass1, bool condpass2)
 

Private Attributes

double chi2Norm_
 
double condSeed1_
 
double condSeed2_
 
double covAnyNumber_
 Allow to use any number for covariance for all RecHits. More...
 
bool covToAnyNumber_
 The correction parameters. More...
 
bool covToAnyNumberAll_
 Allow to use any number for covariance (by hand) More...
 
std::vector< double > lex_
 
int worstHit_
 

Additional Inherited Members

- Public Types inherited from CSCSegFit
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
 
- Protected Member Functions inherited from CSCSegFit
SMatrix12by4 derivativeMatrix (void)
 
AlgebraicSymMatrix flipErrors (const SMatrixSym4 &)
 
void setOutFromIP (void)
 
SMatrixSym12 weightMatrix (void)
 
- Protected Attributes inherited from CSCSegFit
const CSCChamberchamber_
 
double chi2_
 
bool fitdone_
 
CSCSetOfHits hits_
 
LocalPoint intercept_
 
LocalVector localdir_
 
int ndof_
 
double scaleXError_
 
float uslope_
 
float vslope_
 

Detailed Description

Definition at line 18 of file CSCCondSegFit.h.

Constructor & Destructor Documentation

CSCCondSegFit::CSCCondSegFit ( const edm::ParameterSet ps,
const CSCChamber csc,
const CSCSetOfHits hits 
)
inline

Definition at line 22 of file CSCCondSegFit.h.

22  :
23  CSCSegFit( csc, hits ),
24  worstHit_( 0 ),
25  chi2Norm_ ( ps.getParameter<double>("NormChi2Cut2D") ),
26  condSeed1_ ( ps.getParameter<double>("SeedSmall") ),
27  condSeed2_ ( ps.getParameter<double>("SeedBig") ),
28  covToAnyNumber_ ( ps.getParameter<bool>("ForceCovariance") ),
29  covToAnyNumberAll_ ( ps.getParameter<bool>("ForceCovarianceAll") ),
30  covAnyNumber_ ( ps.getParameter<double>("Covariance") ) {}
T getParameter(std::string const &) const
CSCSetOfHits hits(void) const
Definition: CSCSegFit.h:82
CSCSegFit(const CSCChamber *csc, CSCSetOfHits hits)
Definition: CSCSegFit.h:58
bool covToAnyNumber_
The correction parameters.
Definition: CSCCondSegFit.h:65
double covAnyNumber_
Allow to use any number for covariance for all RecHits.
Definition: CSCCondSegFit.h:67
bool covToAnyNumberAll_
Allow to use any number for covariance (by hand)
Definition: CSCCondSegFit.h:66
double chi2Norm_
Definition: CSCCondSegFit.h:59
double condSeed2_
Definition: CSCCondSegFit.h:64
double condSeed1_
Definition: CSCCondSegFit.h:64
CSCCondSegFit::~CSCCondSegFit ( )
inline

Definition at line 32 of file CSCCondSegFit.h.

32 {}

Member Function Documentation

void CSCCondSegFit::correctTheCovMatrix ( CSCSegFit::SMatrixSym2 IC)
private

Definition at line 252 of file CSCCondSegFit.cc.

void CSCCondSegFit::correctTheCovX ( void  )
private

Make a one dimensional fit in U-Z plane (i.e. chamber local x-z) U=U0+UZ*Z fit parameters

Calculate the fit line trace Calculate one dimensional chi^2 and normalize the errors if needed

Definition at line 186 of file CSCCondSegFit.cc.

void CSCCondSegFit::fit ( bool  condpass1 = false,
bool  condpass2 = false 
)

Definition at line 12 of file CSCCondSegFit.cc.

void CSCCondSegFit::setChi2 ( bool  condpass1,
bool  condpass2 
)
private

Correct the cov matrix

Definition at line 125 of file CSCCondSegFit.cc.

int CSCCondSegFit::worstHit ( void  )
inline

Definition at line 38 of file CSCCondSegFit.h.

References worstHit_.

38 { return worstHit_; }

Member Data Documentation

double CSCCondSegFit::chi2Norm_
private

Definition at line 59 of file CSCCondSegFit.h.

double CSCCondSegFit::condSeed1_
private

Definition at line 64 of file CSCCondSegFit.h.

double CSCCondSegFit::condSeed2_
private

Definition at line 64 of file CSCCondSegFit.h.

double CSCCondSegFit::covAnyNumber_
private

Allow to use any number for covariance for all RecHits.

Definition at line 67 of file CSCCondSegFit.h.

bool CSCCondSegFit::covToAnyNumber_
private

The correction parameters.

Definition at line 65 of file CSCCondSegFit.h.

bool CSCCondSegFit::covToAnyNumberAll_
private

Allow to use any number for covariance (by hand)

Definition at line 66 of file CSCCondSegFit.h.

std::vector<double> CSCCondSegFit::lex_
private

Definition at line 58 of file CSCCondSegFit.h.

int CSCCondSegFit::worstHit_
private

Definition at line 55 of file CSCCondSegFit.h.

Referenced by worstHit().