23 double residual = tsosChamberPos.
y() - hitChamberPos.
y();
25 double layerPosition = tsosChamberPos.
z();
26 double layerHitPos = hitChamberPos.
z();
41 m_trackx_xx += weight * layerPosition * layerPosition;
42 m_trackx_xy += weight * layerPosition * tsosChamberPos.
x();
48 m_tracky_xx += weight * layerPosition * layerPosition;
49 m_tracky_xy += weight * layerPosition * tsosChamberPos.
y();
54 m_hitx_xx += weight * layerHitPos * layerHitPos;
55 m_hitx_xy += weight * layerHitPos * hitChamberPos.
x();
60 m_hity_xx += weight * layerHitPos * layerHitPos;
61 m_hity_xy += weight * layerHitPos * hitChamberPos.
y();
std::vector< double > m_individual_y
LocalPoint localPosition() const
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, const AlignableDetOrUnitPtr &chamberAlignable)
virtual void addResidual(const TrajectoryStateOnSurface *tsos, const TransientTrackingRecHit *hit)
AlignableDetOrUnitPtr m_chamberAlignable
const AlignableSurface & surface() const
Return the Surface (global position and orientation) of the object.
virtual LocalError localPositionError() const =0
edm::ESHandle< GlobalTrackingGeometry > m_globalGeometry
DetId geographicalId() const
virtual LocalPoint localPosition() const =0
std::vector< double > m_individual_weight