#include <CSCPairResidualsConstraint.h>
Public Types | |
enum | { kModePhiy, kModePhiPos, kModePhiz, kModeRadius } |
Public Member Functions | |
bool | addTrack (const std::vector< TrajectoryMeasurement > &measurements, const reco::TransientTrack &track, const TrackTransformer *trackTransformer) |
void | configure (CSCOverlapsAlignmentAlgorithm *parent) |
CSCPairResidualsConstraint (unsigned int identifier, int i, int j, CSCDetId id_i, CSCDetId id_j) | |
double | error () const override |
CSCDetId | id_i () const |
CSCDetId | id_j () const |
double | radius (bool is_i) const |
void | read (std::vector< std::ifstream * > &input, std::vector< std::string > &filenames) |
void | setPropagator (const Propagator *propagator) |
void | setZplane (const CSCGeometry *cscGeometry) |
bool | valid () const override |
double | value () const override |
void | write (std::ofstream &output) |
~CSCPairResidualsConstraint () override | |
Public Member Functions inherited from CSCPairConstraint | |
CSCPairConstraint (int i, int j, double value, double error) | |
virtual int | i () const |
virtual int | j () const |
virtual | ~CSCPairConstraint () |
Protected Member Functions | |
void | calculatePhi (const TransientTrackingRecHit *hit, double &phi, double &phierr2, bool doRphi=false, bool globalPhi=false) |
bool | dphidzFromTrack (const std::vector< TrajectoryMeasurement > &measurements, const reco::TransientTrack &track, const TrackTransformer *trackTransformer, double &drphidz) |
bool | isFiducial (std::vector< const TransientTrackingRecHit * > &hits, bool is_i) |
Protected Attributes | |
double | m_averageRadius |
const CSCGeometry * | m_cscGeometry |
CSCDetId | m_id_i |
CSCDetId | m_id_j |
unsigned int | m_identifier |
double | m_iZ |
double | m_iZ1 |
double | m_iZ6 |
double | m_jZ |
double | m_jZ1 |
double | m_jZ6 |
TH1F * | m_offsetResiduals |
CSCOverlapsAlignmentAlgorithm * | m_parent |
const Propagator * | m_propagator |
TH1F * | m_radial |
TH1F * | m_slopeResiduals |
double | m_sum1 |
int | m_sumN |
double | m_sumx |
double | m_sumxx |
double | m_sumxy |
double | m_sumy |
double | m_sumyy |
double | m_Zplane |
Plane::PlanePointer | m_Zsurface |
Protected Attributes inherited from CSCPairConstraint | |
double | m_error |
int | m_i |
int | m_j |
double | m_value |
anonymous enum |
Enumerator | |
---|---|
kModePhiy | |
kModePhiPos | |
kModePhiz | |
kModeRadius |
Definition at line 37 of file CSCPairResidualsConstraint.h.
|
inline |
Definition at line 29 of file CSCPairResidualsConstraint.h.
|
inlineoverride |
Definition at line 35 of file CSCPairResidualsConstraint.h.
bool CSCPairResidualsConstraint::addTrack | ( | const std::vector< TrajectoryMeasurement > & | measurements, |
const reco::TransientTrack & | track, | ||
const TrackTransformer * | trackTransformer | ||
) |
Definition at line 93 of file CSCPairResidualsConstraint.cc.
References calculatePhi(), CSCDetId::chamber(), MuonSubdetId::CSC, dphidzFromTrack(), CSCDetId::endcap(), TrackingRecHit::geographicalId(), isFiducial(), kModePhiPos, kModePhiy, kModePhiz, kModeRadius, m_averageRadius, CSCOverlapsAlignmentAlgorithm::m_combineME11, CSCOverlapsAlignmentAlgorithm::m_drdz, CSCOverlapsAlignmentAlgorithm::m_fiducial, CSCOverlapsAlignmentAlgorithm::m_hitsPerChamber, m_id_i, m_id_j, m_iZ, m_jZ, CSCOverlapsAlignmentAlgorithm::m_makeHistograms, CSCOverlapsAlignmentAlgorithm::m_maxdrdz, CSCOverlapsAlignmentAlgorithm::m_minHitsPerChamber, CSCOverlapsAlignmentAlgorithm::m_mode, CSCOverlapsAlignmentAlgorithm::m_occupancy, m_offsetResiduals, CSCOverlapsAlignmentAlgorithm::m_offsetResiduals, CSCOverlapsAlignmentAlgorithm::m_offsetResiduals_normalized, CSCOverlapsAlignmentAlgorithm::m_offsetResiduals_weighted, m_parent, m_radial, CSCOverlapsAlignmentAlgorithm::m_slope, CSCOverlapsAlignmentAlgorithm::m_slope_MEm1, CSCOverlapsAlignmentAlgorithm::m_slope_MEm2, CSCOverlapsAlignmentAlgorithm::m_slope_MEm3, CSCOverlapsAlignmentAlgorithm::m_slope_MEm4, CSCOverlapsAlignmentAlgorithm::m_slope_MEp1, CSCOverlapsAlignmentAlgorithm::m_slope_MEp2, CSCOverlapsAlignmentAlgorithm::m_slope_MEp3, CSCOverlapsAlignmentAlgorithm::m_slope_MEp4, CSCOverlapsAlignmentAlgorithm::m_slopeFromTrackRefit, m_slopeResiduals, CSCOverlapsAlignmentAlgorithm::m_slopeResiduals, CSCOverlapsAlignmentAlgorithm::m_slopeResiduals_normalized, CSCOverlapsAlignmentAlgorithm::m_slopeResiduals_weighted, m_sum1, m_sumN, m_sumx, m_sumxx, m_sumxy, m_sumy, m_sumyy, CSCOverlapsAlignmentAlgorithm::m_truncateOffsetResid, CSCOverlapsAlignmentAlgorithm::m_truncateSlopeResid, CSCOverlapsAlignmentAlgorithm::m_useHitWeights, CSCOverlapsAlignmentAlgorithm::m_useTrackWeights, m_Zplane, DetId::Muon, phi, funct::pow(), tauVariables_cff::quantity, alignCSCRings::r, CSCDetId::ring(), mathSSE::sqrt(), CSCDetId::station(), mps_merge::weight, and z.
Referenced by radius().
|
protected |
Definition at line 535 of file CSCPairResidualsConstraint.cc.
References angle(), funct::cos(), CSCDetId::endcap(), TrackingRecHit::geographicalId(), CSCLayer::geometry(), TrackingRecHit::globalPosition(), CSCGeometry::layer(), TrackingRecHit::localPosition(), TrackingRecHit::localPositionError(), m_cscGeometry, M_PI, CSCLayerGeometry::nearestStrip(), PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), dttmaxenums::R, alignCSCRings::r, CSCDetId::ring(), funct::sin(), CSCDetId::station(), digi_MixPreMix_cfi::strip, CSCLayerGeometry::stripAngle(), PV3DBase< T, PVType, FrameType >::x(), geometryCSVtoXML::xx, LocalError::xx(), geometryCSVtoXML::xy, LocalError::xy(), PV3DBase< T, PVType, FrameType >::y(), geometryCSVtoXML::yy, and LocalError::yy().
Referenced by addTrack(), isFiducial(), and radius().
void CSCPairResidualsConstraint::configure | ( | CSCOverlapsAlignmentAlgorithm * | parent | ) |
Definition at line 43 of file CSCPairResidualsConstraint.cc.
References m_id_i, m_id_j, m_identifier, CSCOverlapsAlignmentAlgorithm::m_makeHistograms, m_offsetResiduals, m_parent, m_radial, m_slopeResiduals, TFileService::make(), dataset::name, class-composition::parent, and fftjetcommon_cfi::title.
Referenced by radius().
|
protected |
Definition at line 385 of file CSCPairResidualsConstraint.cc.
References angle(), CSCDetId::chamber(), TrajectoryStateCombiner::combine(), funct::cos(), MuonSubdetId::CSC, BeamSpotFakeParameters_cfi::dxdz, BeamSpotFakeParameters_cfi::dydz, CSCDetId::endcap(), TrajectoryStateOnSurface::globalDirection(), TrajectoryStateOnSurface::globalPosition(), TrajectoryStateOnSurface::isValid(), CSCOverlapsAlignmentAlgorithm::m_combineME11, m_id_i, m_id_j, CSCOverlapsAlignmentAlgorithm::m_minHitsPerChamber, CSCOverlapsAlignmentAlgorithm::m_minStationsInTrackRefits, m_parent, M_PI, m_propagator, m_Zplane, m_Zsurface, DetId::Muon, PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), Propagator::propagate(), CSCDetId::ring(), funct::sin(), relativeConstraints::station, CSCDetId::station(), pileupDistInMC::total, HiRegitMuonDetachedTripletStep_cff::trajectories, TrackTransformer::transform(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), z, and PV3DBase< T, PVType, FrameType >::z().
Referenced by addTrack(), and radius().
|
overridevirtual |
Reimplemented from CSCPairConstraint.
Definition at line 21 of file CSCPairResidualsConstraint.cc.
References delta, kModePhiPos, kModePhiy, kModePhiz, kModeRadius, CSCOverlapsAlignmentAlgorithm::m_errorFromRMS, CSCOverlapsAlignmentAlgorithm::m_mode, m_parent, m_sum1, m_sumN, m_sumx, m_sumxx, m_sumy, m_sumyy, funct::pow(), and mathSSE::sqrt().
Referenced by argparse.ArgumentParser::_get_option_tuples(), python.rootplot.argparse.ArgumentParser::_get_option_tuples(), argparse.ArgumentParser::_parse_known_args(), python.rootplot.argparse.ArgumentParser::_parse_known_args(), argparse.ArgumentParser::_parse_optional(), python.rootplot.argparse.ArgumentParser::_parse_optional(), argparse.ArgumentParser::_read_args_from_files(), python.rootplot.argparse.ArgumentParser::_read_args_from_files(), argparse.ArgumentParser::add_subparsers(), python.rootplot.argparse.ArgumentParser::add_subparsers(), Page1Parser.Page1Parser::check_for_whole_start_tag(), argparse.ArgumentParser::parse_args(), python.rootplot.argparse.ArgumentParser::parse_args(), argparse.ArgumentParser::parse_known_args(), and python.rootplot.argparse.ArgumentParser::parse_known_args().
|
inline |
Definition at line 46 of file CSCPairResidualsConstraint.h.
References m_id_i.
Referenced by CSCChamberFitter::radiusCorrection().
|
inline |
|
protected |
Definition at line 592 of file CSCPairResidualsConstraint.cc.
References calculatePhi(), delta, CSCGeometry::idToDet(), m_cscGeometry, CSCOverlapsAlignmentAlgorithm::m_fiducial_ME11, CSCOverlapsAlignmentAlgorithm::m_fiducial_ME12, CSCOverlapsAlignmentAlgorithm::m_fiducial_MEx1, CSCOverlapsAlignmentAlgorithm::m_fiducial_MEx2, m_id_i, m_id_j, m_iZ1, m_iZ6, m_jZ1, m_jZ6, CSCOverlapsAlignmentAlgorithm::m_makeHistograms, m_parent, CSCOverlapsAlignmentAlgorithm::m_useHitWeights, phi, CSCDetId::ring(), slope, mathSSE::sqrt(), CSCDetId::station(), GeomDet::surface(), toLocal(), mps_merge::weight, and z.
Referenced by addTrack(), and radius().
|
inline |
Definition at line 49 of file CSCPairResidualsConstraint.h.
References addTrack(), calculatePhi(), configure(), dphidzFromTrack(), cmsPerfCommons::filenames, hfClusterShapes_cfi::hits, CSCGeometry::idToDet(), input, isFiducial(), m_cscGeometry, m_id_i, m_id_j, convertSQLitetoXML_cfg::output, class-composition::parent, PV3DBase< T, PVType, FrameType >::perp(), phi, GloballyPositioned< T >::position(), PhotonConversionTrajectorySeedProducerFromQuadruplets_cfi::propagator, read(), setPropagator(), setZplane(), GeomDet::surface(), HiIsolationCommonParameters_cff::track, and write().
Referenced by CSCChamberFitter::radiusCorrection().
void CSCPairResidualsConstraint::read | ( | std::vector< std::ifstream * > & | input, |
std::vector< std::string > & | filenames | ||
) |
Definition at line 488 of file CSCPairResidualsConstraint.cc.
References Exception, corrVsCorr::filename, CSCPairConstraint::i(), CSCPairConstraint::j(), CSCPairConstraint::m_i, m_identifier, CSCPairConstraint::m_j, m_sum1, m_sumN, m_sumx, m_sumxx, m_sumxy, m_sumy, m_sumyy, dataset::name, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by edmIntegrityCheck.PublishToFileSystem::get(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::goto(), radius(), and Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::setFilterBranches().
void CSCPairResidualsConstraint::setPropagator | ( | const Propagator * | propagator | ) |
Definition at line 89 of file CSCPairResidualsConstraint.cc.
References m_propagator, and PhotonConversionTrajectorySeedProducerFromQuadruplets_cfi::propagator.
Referenced by radius().
void CSCPairResidualsConstraint::setZplane | ( | const CSCGeometry * | cscGeometry | ) |
Definition at line 68 of file CSCPairResidualsConstraint.cc.
References Plane::build(), CSCDetId::chamber(), CSCDetId::endcap(), CSCGeometry::idToDet(), m_averageRadius, m_cscGeometry, m_id_i, m_id_j, m_iZ, m_iZ1, m_iZ6, m_jZ, m_jZ1, m_jZ6, m_Zplane, m_Zsurface, PV3DBase< T, PVType, FrameType >::perp(), GloballyPositioned< T >::position(), CSCDetId::ring(), CSCDetId::station(), GeomDet::surface(), GloballyPositioned< T >::toLocal(), z, and PV3DBase< T, PVType, FrameType >::z().
Referenced by radius().
|
overridevirtual |
Reimplemented from CSCPairConstraint.
Definition at line 39 of file CSCPairResidualsConstraint.cc.
References CSCOverlapsAlignmentAlgorithm::m_minTracksPerOverlap, m_parent, and m_sumN.
Referenced by id_j(), and CSCChamberFitter::radiusCorrection().
|
overridevirtual |
Reimplemented from CSCPairConstraint.
Definition at line 9 of file CSCPairResidualsConstraint.cc.
References delta, kModePhiPos, kModePhiy, kModePhiz, kModeRadius, CSCOverlapsAlignmentAlgorithm::m_mode, m_parent, m_sum1, m_sumx, m_sumxx, m_sumxy, and m_sumy.
Referenced by Types.int32::__nonzero__(), Types.uint32::__nonzero__(), Types.int64::__nonzero__(), Types.uint64::__nonzero__(), Types.double::__nonzero__(), Types.bool::__nonzero__(), Types.string::__nonzero__(), average.Average::average(), Vispa.Views.PropertyView.FileProperty::buttonClicked(), Types.string::configValue(), Types.FileInPath::configValue(), Mixins.UsingBlock::dumpPython(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::insertInto(), Types.double::insertInto(), Mixins.UsingBlock::insertInto(), Types.bool::insertInto(), Types.string::insertInto(), Types.FileInPath::insertInto(), Types.vint32::insertInto(), Types.vuint32::insertInto(), Types.vint64::insertInto(), Types.vuint64::insertInto(), Types.vdouble::insertInto(), Types.vbool::insertInto(), Types.vstring::insertInto(), Vispa.Views.PropertyView.FileProperty::labelDoubleClicked(), and CSCChamberFitter::radiusCorrection().
void CSCPairResidualsConstraint::write | ( | std::ofstream & | output | ) |
Definition at line 482 of file CSCPairResidualsConstraint.cc.
References alignBH_cfg::fixed, CSCPairConstraint::i(), CSCPairConstraint::j(), m_identifier, m_sum1, m_sumN, m_sumx, m_sumxx, m_sumxy, m_sumy, and m_sumyy.
Referenced by pkg.AbstractPkg::generate(), radius(), and querying.connection::write_and_commit().
|
protected |
Definition at line 71 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), and setZplane().
|
protected |
Definition at line 72 of file CSCPairResidualsConstraint.h.
Referenced by calculatePhi(), isFiducial(), radius(), and setZplane().
|
protected |
Definition at line 65 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), configure(), dphidzFromTrack(), id_i(), isFiducial(), radius(), and setZplane().
|
protected |
Definition at line 65 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), configure(), dphidzFromTrack(), id_j(), isFiducial(), radius(), and setZplane().
|
protected |
Definition at line 64 of file CSCPairResidualsConstraint.h.
Referenced by configure(), read(), and write().
|
protected |
Definition at line 71 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), and setZplane().
|
protected |
Definition at line 71 of file CSCPairResidualsConstraint.h.
Referenced by isFiducial(), and setZplane().
|
protected |
Definition at line 71 of file CSCPairResidualsConstraint.h.
Referenced by isFiducial(), and setZplane().
|
protected |
Definition at line 71 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), and setZplane().
|
protected |
Definition at line 71 of file CSCPairResidualsConstraint.h.
Referenced by isFiducial(), and setZplane().
|
protected |
Definition at line 71 of file CSCPairResidualsConstraint.h.
Referenced by isFiducial(), and setZplane().
|
protected |
Definition at line 77 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), and configure().
|
protected |
Definition at line 69 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), configure(), dphidzFromTrack(), error(), isFiducial(), valid(), and value().
|
protected |
Definition at line 73 of file CSCPairResidualsConstraint.h.
Referenced by dphidzFromTrack(), and setPropagator().
|
protected |
Definition at line 78 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), and configure().
|
protected |
Definition at line 76 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), and configure().
|
protected |
Definition at line 66 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), error(), read(), value(), and write().
|
protected |
Definition at line 67 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), error(), read(), valid(), and write().
|
protected |
Definition at line 66 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), error(), read(), value(), and write().
|
protected |
Definition at line 66 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), error(), read(), value(), and write().
|
protected |
Definition at line 66 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), read(), value(), and write().
|
protected |
Definition at line 66 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), error(), read(), value(), and write().
|
protected |
Definition at line 66 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), error(), read(), and write().
|
protected |
Definition at line 71 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), dphidzFromTrack(), and setZplane().
|
protected |
Definition at line 74 of file CSCPairResidualsConstraint.h.
Referenced by dphidzFromTrack(), and setZplane().