35 std::pair<float,float>
38 if(edgeX>9E5&&edgeY>9E5&&xErr>9E5&&yErr>9E5)
39 return std::make_pair(999999, 999999);
44 if(edgeX<0 && edgeY<0) {
45 if(edgeX<edgeY) { distance =
edgeY; error =
yErr; }
48 if(edgeX<0 && edgeY>0) { distance =
edgeY; error =
yErr; }
49 if(edgeX>0 && edgeY<0) { distance =
edgeX; error =
xErr; }
50 if(edgeX>0 && edgeY>0) { distance =
sqrt(edgeX*edgeX+edgeY*edgeY); error = distance ?
sqrt(edgeX*edgeX*xErr*xErr+edgeY*edgeY*yErr*yErr)/fabs(distance) : 0; }
52 return std::make_pair(distance, error);
int station() const
Station id : the station is the pair of chambers at same disk.
int station() const
Return the station number.
std::pair< float, float > getDistancePair(float edgeX, float edgeY, float xErr, float yErr) const