Double_t ypoint = radius * TMath::Sin(phi);
if(b<0){
- if(charge > 0){
- xpoint = - xpoint;
- ypoint = - ypoint;
- }
-
- if(charge < 0){
- xpoint = xpoint;
- ypoint = ypoint;
- }
+ if(charge > 0){
+ xpoint = - xpoint;
+ ypoint = - ypoint;
+ }
+
+ } else if(b>0){
+ if(charge < 0){
+ xpoint = - xpoint;
+ ypoint = - ypoint;
+ }
}
- if(b>0){
- if(charge > 0){
- xpoint = xpoint;
- ypoint = ypoint;
- }
- if(charge < 0){
- xpoint = - xpoint;
- ypoint = - ypoint;
- }
- }
center[0] = xpos + xpoint;
center[1] = ypos + ypoint;