Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong units of TPC parameters in KinkFinder #97

Closed
dudarboh opened this issue Aug 30, 2021 · 0 comments · Fixed by #98
Closed

Wrong units of TPC parameters in KinkFinder #97

dudarboh opened this issue Aug 30, 2021 · 0 comments · Fixed by #98

Comments

@dudarboh
Copy link
Member

Issue

As spotted by @tmadlener here KinkFinder uses TPC parameters without specifying specific units.

_tpcInnerR = tpc->rMinReadout;
_tpcOuterR = tpc->rMaxReadout;
_tpcZmax = tpc->driftLength;
_tpcMaxRow = tpc->maxRow;

Program is probably expects values to be in dd4hep::mm, however they are in dd4hep::cm.
I checked them with cout to confirm that they are indeed in cm:

[ VERBOSE "MyKinkFinder"] _tpcInnerR: 37.21
[ VERBOSE "MyKinkFinder"] _tpcOuterR: 169.21
[ VERBOSE "MyKinkFinder"] _tpcZmax: 222.5
[ VERBOSE "MyKinkFinder"] _tpcMaxRow: 220

It is definitely bug here1 and here2 while counting number of TPC hits. As TrackerHit::getPosition() returns coordinates in mm.

it is potentially bug here as well, as rkink gets its value from HelixClass::getPointInZ() which probably returns point in mm while comparing to values in cm

Relevance

Affects master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant