#include <CSCCondSegFit.h>
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 CSCChamber * | chamber () 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 CSCChamber * | chamber_ |
double | chi2_ |
bool | fitdone_ |
CSCSetOfHits | hits_ |
LocalPoint | intercept_ |
LocalVector | localdir_ |
int | ndof_ |
double | scaleXError_ |
float | uslope_ |
float | vslope_ |
Definition at line 18 of file CSCCondSegFit.h.
|
inline |
Definition at line 22 of file CSCCondSegFit.h.
|
inline |
Definition at line 32 of file CSCCondSegFit.h.
|
private |
Definition at line 252 of file CSCCondSegFit.cc.
References condSeed1_, condSeed2_, covAnyNumber_, covToAnyNumber_, covToAnyNumberAll_, and mathSSE::sqrt().
Referenced by fit(), and setChi2().
|
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.
References CSCSegFit::chamber(), chi2Norm_, CSCRecHit2D::cscDetId(), CSCSegFit::hits_, i, CSCChamber::layer(), CSCDetId::layer(), lex_, CSCRecHit2D::localPosition(), CSCRecHit2D::localPositionError(), funct::pow(), CSCSegFit::setScaleXError(), GeomDet::toGlobal(), GeomDet::toLocal(), findQualityFiles::v, worstHit_, PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), PV3DBase< T, PVType, FrameType >::y(), z, and PV3DBase< T, PVType, FrameType >::z().
Referenced by fit().
void CSCCondSegFit::fit | ( | bool | condpass1 = false , |
bool | condpass2 = false |
||
) |
Definition at line 12 of file CSCCondSegFit.cc.
References CSCSegFit::chamber(), correctTheCovMatrix(), correctTheCovX(), CSCRecHit2D::cscDetId(), CSCSegFit::hits_, CSCSegFit::intercept_, CSCChamber::layer(), CSCDetId::layer(), lex_, CSCRecHit2D::localPosition(), CSCRecHit2D::localPositionError(), LogTrace, convertSQLiteXML::ok, AlCaHLTBitMon_ParallelJobs::p, CSCSegFit::setChi2(), CSCSegFit::setOutFromIP(), GeomDet::toGlobal(), GeomDet::toLocal(), CSCSegFit::uslope_, findQualityFiles::v, CSCSegFit::vslope_, PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), LocalError::xy(), PV3DBase< T, PVType, FrameType >::y(), LocalError::yy(), z, and PV3DBase< T, PVType, FrameType >::z().
Referenced by CSCSegAlgoST::buildSegments(), and CSCSegAlgoST::prune_bad_hits().
|
private |
Correct the cov matrix
Definition at line 125 of file CSCCondSegFit.cc.
References CSCSegFit::chamber(), CSCSegFit::chi2_, correctTheCovMatrix(), CSCRecHit2D::cscDetId(), CSCSegFit::hits_, CSCSegFit::intercept_, CSCChamber::layer(), CSCDetId::layer(), lex_, CSCRecHit2D::localPosition(), CSCRecHit2D::localPositionError(), LogTrace, CSCSegFit::ndof_, convertSQLiteXML::ok, GeomDet::toGlobal(), GeomDet::toLocal(), CSCSegFit::uslope_, findQualityFiles::v, CSCSegFit::vslope_, PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), LocalError::xy(), PV3DBase< T, PVType, FrameType >::y(), LocalError::yy(), z, and PV3DBase< T, PVType, FrameType >::z().
|
inline |
Definition at line 38 of file CSCCondSegFit.h.
References worstHit_.
Referenced by CSCSegAlgoST::buildSegments().
|
private |
Definition at line 59 of file CSCCondSegFit.h.
Referenced by correctTheCovX().
|
private |
Definition at line 64 of file CSCCondSegFit.h.
Referenced by correctTheCovMatrix().
|
private |
Definition at line 64 of file CSCCondSegFit.h.
Referenced by correctTheCovMatrix().
|
private |
Allow to use any number for covariance for all RecHits.
Definition at line 67 of file CSCCondSegFit.h.
Referenced by correctTheCovMatrix().
|
private |
The correction parameters.
Definition at line 65 of file CSCCondSegFit.h.
Referenced by correctTheCovMatrix().
|
private |
Allow to use any number for covariance (by hand)
Definition at line 66 of file CSCCondSegFit.h.
Referenced by correctTheCovMatrix().
|
private |
Definition at line 58 of file CSCCondSegFit.h.
Referenced by correctTheCovX(), fit(), and setChi2().
|
private |
Definition at line 55 of file CSCCondSegFit.h.
Referenced by correctTheCovX(), and worstHit().