26 double chamber_length) {
40 std::cout <<
" MuonDT13ChamberResidual hitChamberPos x: " << hitChamberPos.
x()
41 <<
" tsosChamberPos x: " << tsosChamberPos.
x() << std::endl;
42 std::cout <<
" hitChamberPos y: " << hitChamberPos.
y()
43 <<
" tsosChamberPos y: " << tsosChamberPos.
y() << std::endl;
44 std::cout <<
" hitChamberPos z: " << hitChamberPos.
z()
45 <<
" tsosChamberPos z: " << tsosChamberPos.
z() << std::endl;
48 double residual = tsosChamberPos.
x() - hitChamberPos.
x();
50 double layerPosition = tsosChamberPos.
z();
51 double layerHitPos = hitChamberPos.
z();
66 m_trackx_xx += weight * layerPosition * layerPosition;
67 m_trackx_xy += weight * layerPosition * tsosChamberPos.
x();
73 m_tracky_xx += weight * layerPosition * layerPosition;
74 m_tracky_xy += weight * layerPosition * tsosChamberPos.
y();
79 m_hitx_xx += weight * layerHitPos * layerHitPos;
80 m_hitx_xy += weight * layerHitPos * hitChamberPos.
x();
85 m_hity_xx += weight * layerHitPos * layerPosition;
86 m_hity_xy += weight * layerHitPos * hitChamberPos.
y();
std::vector< double > m_individual_y
LocalPoint localPosition() const
Sin< T >::type sin(const T &t)
MuonDT13ChamberResidual(edm::ESHandle< GlobalTrackingGeometry > globalGeometry, AlignableNavigator *navigator, DetId chamberId, AlignableDetOrUnitPtr chamberAlignable)
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
Cos< T >::type cos(const T &t)
AlignableDetOrUnitPtr m_chamberAlignable
const AlignableSurface & surface() const
Return the Surface (global position and orientation) of the object.
virtual LocalError localPositionError() const =0
void addResidual(edm::ESHandle< Propagator > prop, const TrajectoryStateOnSurface *tsos, const TrackingRecHit *hit, double, double) override
edm::ESHandle< GlobalTrackingGeometry > m_globalGeometry
DetId geographicalId() const
virtual LocalPoint localPosition() const =0
std::vector< double > m_individual_weight