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();
49 double weight = 1. /
hit->localPositionError().xx();
50 double layerPosition = tsosChamberPos.
z();
51 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.
Sin< T >::type sin(const T &t)
MuonDT13ChamberResidual(edm::ESHandle< GlobalTrackingGeometry > globalGeometry, AlignableNavigator *navigator, DetId chamberId, AlignableDetOrUnitPtr chamberAlignable)
const GeomDet * idToDet(DetId) const override
std::vector< double > m_individual_x
std::vector< DetId > m_localIDs
std::vector< double > m_localResids
Cos< T >::type cos(const T &t)
AlignableDetOrUnitPtr m_chamberAlignable
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
void addResidual(edm::ESHandle< Propagator > prop, const TrajectoryStateOnSurface *tsos, const TrackingRecHit *hit, double, double) override
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.
edm::ESHandle< GlobalTrackingGeometry > m_globalGeometry
std::vector< double > m_individual_weight