23 double chamber_length) {
37 std::cout <<
" MuonDT2ChamberResidual hitChamberPos x: " << hitChamberPos.
x()
38 <<
" tsosChamberPos x: " << tsosChamberPos.
x() << std::endl;
39 std::cout <<
" hitChamberPos y: " << hitChamberPos.
y()
40 <<
" tsosChamberPos y: " << tsosChamberPos.
y() << std::endl;
41 std::cout <<
" hitChamberPos z: " << hitChamberPos.
z()
42 <<
" tsosChamberPos z: " << tsosChamberPos.
z() << std::endl;
45 double residual = tsosChamberPos.
y() - hitChamberPos.
y();
48 double layerPosition = tsosChamberPos.
z();
49 double layerHitPos = hitChamberPos.
z();
64 m_trackx_xx += weight * layerPosition * layerPosition;
65 m_trackx_xy += weight * layerPosition * tsosChamberPos.
x();
71 m_tracky_xx += weight * layerPosition * layerPosition;
72 m_tracky_xy += weight * layerPosition * tsosChamberPos.
y();
77 m_hitx_xx += weight * layerHitPos * layerHitPos;
78 m_hitx_xy += weight * layerHitPos * hitChamberPos.
x();
83 m_hity_xx += weight * layerHitPos * layerHitPos;
84 m_hity_xy += weight * layerHitPos * hitChamberPos.
y();
std::vector< double > m_individual_y
LocalPoint localPosition() const
std::vector< double > m_individual_x
void addResidual(edm::ESHandle< Propagator > prop, const TrajectoryStateOnSurface *tsos, const TrackingRecHit *hit, double, double) override
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
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