32 std::cout <<
" MuonDT2ChamberResidual hitChamberPos x: " << hitChamberPos.
x() <<
" tsosChamberPos x: " << tsosChamberPos.
x() << std::endl;
33 std::cout <<
" hitChamberPos y: " << hitChamberPos.
y() <<
" tsosChamberPos y: " << tsosChamberPos.
y() << std::endl;
34 std::cout <<
" hitChamberPos z: " << hitChamberPos.
z() <<
" tsosChamberPos z: " << tsosChamberPos.
z() << std::endl;
37 double residual = tsosChamberPos.
y() - hitChamberPos.
y();
39 double layerPosition = tsosChamberPos.
z();
40 double layerHitPos = hitChamberPos.
z();
55 m_trackx_xx += weight * layerPosition * layerPosition;
56 m_trackx_xy += weight * layerPosition * tsosChamberPos.
x();
62 m_tracky_xx += weight * layerPosition * layerPosition;
63 m_tracky_xy += weight * layerPosition * tsosChamberPos.
y();
68 m_hitx_xx += weight * layerHitPos * layerHitPos;
69 m_hitx_xy += weight * layerHitPos * hitChamberPos.
x();
74 m_hity_xx += weight * layerHitPos * layerHitPos;
75 m_hity_xy += weight * layerHitPos * hitChamberPos.
y();
std::vector< double > m_individual_y
LocalPoint localPosition() const
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
std::vector< double > m_individual_x
std::vector< DetId > m_localIDs
align::RotationType toLocal(const align::RotationType &) const
Return in local frame a rotation given in global frame.
std::vector< double > m_localResids
MuonDT2ChamberResidual(edm::ESHandle< GlobalTrackingGeometry > globalGeometry, AlignableNavigator *navigator, DetId chamberId, AlignableDetOrUnitPtr chamberAlignable)
AlignableDetOrUnitPtr m_chamberAlignable
virtual LocalPoint localPosition() const =0
const AlignableSurface & surface() const
Return the Surface (global position and orientation) of the object.
virtual void addResidual(edm::ESHandle< Propagator > prop, const TrajectoryStateOnSurface *tsos, const TrackingRecHit *hit, double, double)
edm::ESHandle< GlobalTrackingGeometry > m_globalGeometry
const GeomDet * idToDet(DetId) const override
DetId geographicalId() const
virtual LocalError localPositionError() const =0
std::vector< double > m_individual_weight