#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 () override | |
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 20 of file CSCCondSegFit.h.
|
inlineoverride |
Definition at line 30 of file CSCCondSegFit.h.
|
private |
Definition at line 239 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 174 of file CSCCondSegFit.cc.
References CSCSegFit::chamber(), chi2Norm_, makePileupJSON::denom, runTauDisplay::gp, CSCSegFit::hits_, mps_fire::i, CSCChamber::layer(), pixelTopology::layer, lex_, funct::pow(), CSCSegFit::setScaleXError(), GeomDet::toLocal(), findQualityFiles::v, worstHit_, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), z, PV3DBase< T, PVType, FrameType >::z(), and geometryCSVtoXML::zz.
Referenced by fit().
void CSCCondSegFit::fit | ( | bool | condpass1 = false , |
bool | condpass2 = false |
||
) |
Definition at line 12 of file CSCCondSegFit.cc.
References B, CSCSegFit::chamber(), correctTheCovMatrix(), correctTheCovX(), runTauDisplay::gp, CSCSegFit::hits_, CSCSegFit::intercept_, CSCChamber::layer(), pixelTopology::layer, lex_, LogTrace, convertSQLiteXML::ok, AlCaHLTBitMon_ParallelJobs::p, CSCSegFit::setChi2(), CSCSegFit::setOutFromIP(), GeomDet::toLocal(), CSCSegFit::uslope_, findQualityFiles::v, CSCSegFit::vslope_, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), z, and PV3DBase< T, PVType, FrameType >::z().
Referenced by CSCSegAlgoST::buildSegments(), trackingPlots.Iteration::modules(), and CSCSegAlgoST::prune_bad_hits().
|
private |
Correct the cov matrix
Definition at line 119 of file CSCCondSegFit.cc.
References CSCSegFit::chamber(), CSCSegFit::chi2_, correctTheCovMatrix(), runTauDisplay::gp, CSCSegFit::hits_, CSCSegFit::intercept_, CSCChamber::layer(), pixelTopology::layer, lex_, LogTrace, CSCSegFit::ndof_, convertSQLiteXML::ok, GeomDet::toLocal(), CSCSegFit::uslope_, findQualityFiles::v, CSCSegFit::vslope_, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), z, and PV3DBase< T, PVType, FrameType >::z().
|
inline |
Definition at line 36 of file CSCCondSegFit.h.
References worstHit_.
Referenced by CSCSegAlgoST::buildSegments().
|
private |
Definition at line 55 of file CSCCondSegFit.h.
Referenced by correctTheCovX().
|
private |
Definition at line 60 of file CSCCondSegFit.h.
Referenced by correctTheCovMatrix().
|
private |
Definition at line 60 of file CSCCondSegFit.h.
Referenced by correctTheCovMatrix().
|
private |
Allow to use any number for covariance for all RecHits.
Definition at line 63 of file CSCCondSegFit.h.
Referenced by correctTheCovMatrix().
|
private |
The correction parameters.
Definition at line 61 of file CSCCondSegFit.h.
Referenced by correctTheCovMatrix().
|
private |
Allow to use any number for covariance (by hand)
Definition at line 62 of file CSCCondSegFit.h.
Referenced by correctTheCovMatrix().
|
private |
Definition at line 54 of file CSCCondSegFit.h.
Referenced by correctTheCovX(), fit(), and setChi2().
|
private |
Definition at line 51 of file CSCCondSegFit.h.
Referenced by correctTheCovX(), and worstHit().