#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 50 of file CSCPairResidualsConstraint.h.
|
inline |
Definition at line 29 of file CSCPairResidualsConstraint.h.
|
inlineoverride |
Definition at line 48 of file CSCPairResidualsConstraint.h.
bool CSCPairResidualsConstraint::addTrack | ( | const std::vector< TrajectoryMeasurement > & | measurements, |
const reco::TransientTrack & | track, | ||
const TrackTransformer * | trackTransformer | ||
) |
Definition at line 89 of file CSCPairResidualsConstraint.cc.
References cms::cuda::assert(), calculatePhi(), CSCDetId::chamber(), MuonSubdetId::CSC, dphidzFromTrack(), CSCDetId::endcap(), 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(), MjjMonitor_cfi::quantity, alignCSCRings::r, CSCDetId::ring(), mathSSE::sqrt(), CSCDetId::station(), HLT_FULL_cff::track, mps_merge::weight, and z.
|
protected |
Definition at line 628 of file CSCPairResidualsConstraint.cc.
References angle(), cms::cuda::assert(), funct::cos(), CSCDetId::endcap(), CSCLayer::geometry(), CSCGeometry::layer(), m_cscGeometry, M_PI, CSCLayerGeometry::nearestStrip(), phi, dttmaxenums::R, alignCSCRings::r, CSCDetId::ring(), funct::sin(), CSCDetId::station(), digitizers_cfi::strip, CSCLayerGeometry::stripAngle(), geometryCSVtoXML::xx, geometryCSVtoXML::xy, and geometryCSVtoXML::yy.
Referenced by addTrack(), and isFiducial().
void CSCPairResidualsConstraint::configure | ( | CSCOverlapsAlignmentAlgorithm * | parent | ) |
Definition at line 38 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(), Skims_PA_cff::name, hfnoseParametersInitialization_cfi::name2, class-composition::parent, and runGCPTkAlMap::title.
|
protected |
Definition at line 461 of file CSCPairResidualsConstraint.cc.
References angle(), CSCDetId::chamber(), TrajectoryStateCombiner::combine(), funct::cos(), MuonSubdetId::CSC, BeamSpotPI::dxdz, BeamSpotPI::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(), dqmMemoryStats::total, HLT_FULL_cff::track, FastTrackerRecHitMaskProducer_cfi::trajectories, TrackTransformer::transform(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), z, and PV3DBase< T, PVType, FrameType >::z().
Referenced by addTrack().
|
overridevirtual |
Reimplemented from CSCPairConstraint.
Definition at line 20 of file CSCPairResidualsConstraint.cc.
References cms::cuda::assert(), dumpMFGeometry_cfg::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 Page1Parser.Page1Parser::check_for_whole_start_tag().
|
inline |
Definition at line 54 of file CSCPairResidualsConstraint.h.
References m_id_i.
Referenced by CSCChamberFitter::radiusCorrection().
|
inline |
|
protected |
Definition at line 694 of file CSCPairResidualsConstraint.cc.
References cms::cuda::assert(), calculatePhi(), dumpMFGeometry_cfg::delta, hfClusterShapes_cfi::hits, 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().
|
inline |
Definition at line 57 of file CSCPairResidualsConstraint.h.
References CSCGeometry::idToDet(), m_cscGeometry, m_id_i, m_id_j, PV3DBase< T, PVType, FrameType >::perp(), GloballyPositioned< T >::position(), and GeomDet::surface().
Referenced by CSCChamberFitter::radiusCorrection().
void CSCPairResidualsConstraint::read | ( | std::vector< std::ifstream * > & | input, |
std::vector< std::string > & | filenames | ||
) |
Definition at line 574 of file CSCPairResidualsConstraint.cc.
References Exception, corrVsCorr::filename, CSCPairConstraint::i(), input, CSCPairConstraint::j(), CSCPairConstraint::m_i, m_identifier, CSCPairConstraint::m_j, m_sum1, m_sumN, m_sumx, m_sumxx, m_sumxy, m_sumy, m_sumyy, Skims_PA_cff::name, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by edmIntegrityCheck.PublishToFileSystem::get().
void CSCPairResidualsConstraint::setPropagator | ( | const Propagator * | propagator | ) |
Definition at line 87 of file CSCPairResidualsConstraint.cc.
References m_propagator, and TrackCandidateProducer_cfi::propagator.
void CSCPairResidualsConstraint::setZplane | ( | const CSCGeometry * | cscGeometry | ) |
Definition at line 62 of file CSCPairResidualsConstraint.cc.
References Plane::build(), CSCDetId::chamber(), CSCDetId::endcap(), testProducerWithPsetDescEmpty_cfi::i1, 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().
|
overridevirtual |
Reimplemented from CSCPairConstraint.
Definition at line 36 of file CSCPairResidualsConstraint.cc.
References CSCOverlapsAlignmentAlgorithm::m_minTracksPerOverlap, m_parent, and m_sumN.
Referenced by CSCChamberFitter::radiusCorrection().
|
overridevirtual |
Reimplemented from CSCPairConstraint.
Definition at line 9 of file CSCPairResidualsConstraint.cc.
References cms::cuda::assert(), dumpMFGeometry_cfg::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(), Types.string::configValue(), Types.FileInPath::configValue(), Mixins.UsingBlock::dumpPython(), Mixins.UsingBlock::insertInto(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::insertInto(), Types.double::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(), and CSCChamberFitter::radiusCorrection().
void CSCPairResidualsConstraint::write | ( | std::ofstream & | output | ) |
Definition at line 567 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, m_sumyy, and convertSQLitetoXML_cfg::output.
Referenced by pkg.AbstractPkg::generate(), and querying.connection::write_and_commit().
|
protected |
Definition at line 87 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), and setZplane().
|
protected |
Definition at line 88 of file CSCPairResidualsConstraint.h.
Referenced by calculatePhi(), isFiducial(), radius(), and setZplane().
|
protected |
Definition at line 81 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), configure(), dphidzFromTrack(), id_i(), isFiducial(), radius(), and setZplane().
|
protected |
Definition at line 81 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), configure(), dphidzFromTrack(), id_j(), isFiducial(), radius(), and setZplane().
|
protected |
Definition at line 80 of file CSCPairResidualsConstraint.h.
Referenced by configure(), read(), and write().
|
protected |
Definition at line 87 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), and setZplane().
|
protected |
Definition at line 87 of file CSCPairResidualsConstraint.h.
Referenced by isFiducial(), and setZplane().
|
protected |
Definition at line 87 of file CSCPairResidualsConstraint.h.
Referenced by isFiducial(), and setZplane().
|
protected |
Definition at line 87 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), and setZplane().
|
protected |
Definition at line 87 of file CSCPairResidualsConstraint.h.
Referenced by isFiducial(), and setZplane().
|
protected |
Definition at line 87 of file CSCPairResidualsConstraint.h.
Referenced by isFiducial(), and setZplane().
|
protected |
Definition at line 93 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), and configure().
|
protected |
Definition at line 85 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), configure(), dphidzFromTrack(), error(), isFiducial(), valid(), and value().
|
protected |
Definition at line 89 of file CSCPairResidualsConstraint.h.
Referenced by dphidzFromTrack(), and setPropagator().
|
protected |
Definition at line 94 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), and configure().
|
protected |
Definition at line 92 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), and configure().
|
protected |
Definition at line 82 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), error(), read(), value(), and write().
|
protected |
Definition at line 83 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), error(), read(), valid(), and write().
|
protected |
Definition at line 82 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), error(), read(), value(), and write().
|
protected |
Definition at line 82 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), error(), read(), value(), and write().
|
protected |
Definition at line 82 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), read(), value(), and write().
|
protected |
Definition at line 82 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), error(), read(), value(), and write().
|
protected |
Definition at line 82 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), error(), read(), and write().
|
protected |
Definition at line 87 of file CSCPairResidualsConstraint.h.
Referenced by addTrack(), dphidzFromTrack(), and setZplane().
|
protected |
Definition at line 90 of file CSCPairResidualsConstraint.h.
Referenced by dphidzFromTrack(), and setZplane().