Skip to content

Commit

Permalink
fix phi0 of module rings in TPCModularEndplate
Browse files Browse the repository at this point in the history
  • Loading branch information
gaede committed Jul 6, 2017
1 parent f2736af commit 11186f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Digitisers/src/TPCModularEndplate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ double TPCModularEndplate::computeDistanceRPhi(const dd4hep::rec::Vector3D& hit)

double phi = hit.phi() - modRing.phi0 ;

double deltaPhi = std::fabs( std::fmod( ( phi - modRing.phi0 ) , modRing.deltaPhi ) );
double deltaPhi = std::fabs( std::fmod( phi , modRing.deltaPhi ) );

if( deltaPhi > modRing.deltaPhi/2. ) {

Expand Down

0 comments on commit 11186f0

Please sign in to comment.