35 std::cout <<
" MuonDT13ChamberResidual hitChamberPos x: " << hitChamberPos.
x() <<
" tsosChamberPos x: " << tsosChamberPos.
x() << std::endl;
36 std::cout <<
" hitChamberPos y: " << hitChamberPos.
y() <<
" tsosChamberPos y: " << tsosChamberPos.
y() << std::endl;
37 std::cout <<
" hitChamberPos z: " << hitChamberPos.
z() <<
" tsosChamberPos z: " << tsosChamberPos.
z() << std::endl;
40 double residual = tsosChamberPos.
x() - hitChamberPos.
x();
42 double layerPosition = tsosChamberPos.
z();
43 double layerHitPos = hitChamberPos.
z();
58 m_trackx_xx += weight * layerPosition * layerPosition;
59 m_trackx_xy += weight * layerPosition * tsosChamberPos.
x();
65 m_tracky_xx += weight * layerPosition * layerPosition;
66 m_tracky_xy += weight * layerPosition * tsosChamberPos.
y();
71 m_hitx_xx += weight * layerHitPos * layerHitPos;
72 m_hitx_xy += weight * layerHitPos * hitChamberPos.
x();
77 m_hity_xx += weight * layerHitPos * layerPosition;
78 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.
Sin< T >::type sin(const T &t)
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
MuonDT13ChamberResidual(edm::ESHandle< GlobalTrackingGeometry > globalGeometry, AlignableNavigator *navigator, DetId chamberId, AlignableDetOrUnitPtr chamberAlignable)
virtual const GeomDet * idToDet(DetId) const
std::vector< double > m_individual_x
std::vector< DetId > m_localIDs
const Surface::PositionType & position() const
The position (origin of the R.F.)
align::RotationType toLocal(const align::RotationType &) const
Return in local frame a rotation given in global frame.
std::vector< double > m_localResids
Cos< T >::type cos(const T &t)
AlignableDetOrUnitPtr m_chamberAlignable
virtual LocalPoint localPosition() const =0
virtual void addResidual(edm::ESHandle< Propagator > prop, const TrajectoryStateOnSurface *tsos, const TrackingRecHit *hit, double, double)
const AlignableSurface & surface() const
Return the Surface (global position and orientation) of the object.
edm::ESHandle< GlobalTrackingGeometry > m_globalGeometry
DetId geographicalId() const
virtual LocalError localPositionError() const =0
std::vector< double > m_individual_weight