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();
47 1. /
hit->localPositionError().xx();
48 double layerPosition = tsosChamberPos.
z();
49 double layerHitPos = hitChamberPos.
z();
std::vector< double > m_individual_y
const AlignableSurface & surface() const
Return the Surface (global position and orientation) of the object.
LocalPoint localPosition() const
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
const GeomDet * idToDet(DetId) const override
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
std::vector< double > m_localResids
MuonDT2ChamberResidual(edm::ESHandle< GlobalTrackingGeometry > globalGeometry, AlignableNavigator *navigator, DetId chamberId, AlignableDetOrUnitPtr chamberAlignable)
AlignableDetOrUnitPtr m_chamberAlignable
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
align::RotationType toLocal(const align::RotationType &) const
Return in local frame a rotation given in global frame.
edm::ESHandle< GlobalTrackingGeometry > m_globalGeometry
std::vector< double > m_individual_weight