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

Updated TEve Event Display to plot the new KKTraj options #900

Merged
merged 5 commits into from
Dec 16, 2022

Conversation

sophiemiddleton
Copy link
Contributor

@sophiemiddleton sophiemiddleton commented Nov 25, 2022

This code allows plotting of the KinKal trajectories as requested by @brownd1978

Note - the REve code is the newest version of the Eve Event Display so any comments on general coding should be provided on that version not this. TEve is maintained as REve currently does not support all the features we developed there.

@FNALbuild
Copy link
Collaborator

Hi @sophiemiddleton,
You have proposed changes to files in these packages:

  • TEveEventDisplay

which require these tests: build.

@Mu2e/write, @Mu2e/fnalbuild-users have access to CI actions on main.

⌛ The following tests have been triggered for b202857: build (Build queue is empty)

About FNALbuild. Code review on Mu2e/Offline.

@FNALbuild
Copy link
Collaborator

☀️ The build tests passed at b202857.

Test Result Details
test with Command did not list any other PRs to include
merge Merged b202857 at d88a7ac
build (prof) Log file. Build time: 13 min 10 sec
ceSimReco Log file.
g4test_03MT Log file.
transportOnly Log file.
POT Log file.
g4study Log file.
cosmicSimReco Log file.
cosmicOffSpill Log file.
ceSteps Log file.
ceDigi Log file.
muDauSteps Log file.
ceMix Log file.
rootOverlaps Log file.
g4surfaceCheck Log file.
FIXME, TODO 🔶 TODO (2) FIXME (0) in 4 files
clang-tidy 〰️ 0 errors 0 warnings
whitespace check 🔶 found whitespace errors

N.B. These results were obtained from a build of this Pull Request at b202857 after being merged into the base branch at d88a7ac.

For more information, please check the job page here.
Build artifacts are deleted after 5 days. If this is not desired, select Keep this build forever on the job page.

Copy link
Collaborator

@brownd1978 brownd1978 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some questions and suggestions.

using LHPT = KinKal::PiecewiseTrajectory<KinKal::LoopHelix>;
using CHPT = KinKal::PiecewiseTrajectory<KinKal::CentralHelix>;
using KLPT = KinKal::PiecewiseTrajectory<KinKal::KinematicLine>;
template<class KTRAJ> void TEveMu2eDataInterface::AddKinKalTrajectory( std::unique_ptr<KTRAJ> &trajectory, TEveMu2eCustomHelix *line, TEveMu2eCustomHelix *line_twoDXY, TEveMu2eCustomHelix *line_twoDXZ){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest const& trajectory

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

line->SetPoint(0,pointmmTocm(InMu2e.x()), pointmmTocm(InMu2e.y()) , pointmmTocm(InMu2e.z()));
line_twoDXY->SetPoint(0,pointmmTocm(x1), pointmmTocm(y1) , pointmmTocm(z1));
line_twoDXZ->SetPoint(0,pointmmTocm(x1), pointmmTocm(y1) , pointmmTocm(z1));
for(double t=t1; t<=t2; t+=0.1)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can the time step be configurable? 100ps is ~30mm, which is quite coarse

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could change by a factor of 10 i.e. 0.01 (or any toher number you want)
I dont think havig it as a FCL parameter is a good idea. We already have such a large amount of parameters

AddKinKalTrajectory<KLPT>(trajectory,line,line_twoDXY,line_twoDXZ);
}


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indenting formatting looks off

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

const KalSeedCollection* seedcol = track_list[j];
colour.push_back(j+3);
if(seedcol!=0){
for(unsigned int k = 0; k < seedcol->size(); k = k + 20){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does k advance by 20? it pretty much guarantees you'll only see the 1st track.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set to k++

@FNALbuild
Copy link
Collaborator

📝 The HEAD of main has changed to 1b51ea5. Tests are now out of date.

@kutschke
Copy link
Collaborator

@FNALbuild run build test

@FNALbuild
Copy link
Collaborator

⌛ The following tests have been triggered for b202857: build (Build queue has 1 jobs)

@FNALbuild
Copy link
Collaborator

☀️ The build tests passed at b202857.

Test Result Details
test with Command did not list any other PRs to include
merge Merged b202857 at 1b51ea5
build (prof) Log file. Build time: 22 min 03 sec
ceSimReco Log file.
g4test_03MT Log file.
transportOnly Log file.
POT Log file.
g4study Log file.
cosmicSimReco Log file.
cosmicOffSpill Log file.
ceSteps Log file.
ceDigi Log file.
muDauSteps Log file.
ceMix Log file.
rootOverlaps Log file.
g4surfaceCheck Log file.
FIXME, TODO 🔶 TODO (2) FIXME (0) in 4 files
clang-tidy 〰️ 0 errors 0 warnings
whitespace check 🔶 found whitespace errors

N.B. These results were obtained from a build of this Pull Request at b202857 after being merged into the base branch at 1b51ea5.

For more information, please check the job page here.
Build artifacts are deleted after 5 days. If this is not desired, select Keep this build forever on the job page.

@kutschke
Copy link
Collaborator

@sophiemiddleton A gentle reminder that this PR is waiting for you to answer a questions/comments from Dave.

@FNALbuild
Copy link
Collaborator

📝 The HEAD of main has changed to 42696d6. Tests are now out of date.

@kutschke
Copy link
Collaborator

@FNALbuild run build test

@FNALbuild
Copy link
Collaborator

⌛ The following tests have been triggered for b202857: build (Build queue is empty)

@FNALbuild
Copy link
Collaborator

☀️ The build tests passed at b202857.

Test Result Details
test with Command did not list any other PRs to include
merge Merged b202857 at 42696d6
build (prof) Log file. Build time: 12 min 52 sec
ceSimReco Log file.
g4test_03MT Log file.
transportOnly Log file.
POT Log file.
g4study Log file.
cosmicSimReco Log file.
cosmicOffSpill Log file.
ceSteps Log file.
ceDigi Log file.
muDauSteps Log file.
ceMix Log file.
rootOverlaps Log file.
g4surfaceCheck Log file.
FIXME, TODO 🔶 TODO (2) FIXME (0) in 4 files
clang-tidy 〰️ 0 errors 0 warnings
whitespace check 🔶 found whitespace errors

N.B. These results were obtained from a build of this Pull Request at b202857 after being merged into the base branch at 42696d6.

For more information, please check the job page here.
Build artifacts are deleted after 5 days. If this is not desired, select Keep this build forever on the job page.

@kutschke
Copy link
Collaborator

I also just noticed that there are whitespace errors - so please address those too. If you follow the link beside the whitespace link you will see where the problems are. You need to be on fgz or on VPN to see it. Or you can use curl to download the file when you are logged into a mu2egpvm node.

@sophiemiddleton
Copy link
Contributor Author

I think I addressed the various issues, let me know if not

@brownd1978
Copy link
Collaborator

@FNALbuild run build test

@FNALbuild
Copy link
Collaborator

⌛ The following tests have been triggered for d73a510: build (Build queue is empty)

@FNALbuild
Copy link
Collaborator

☀️ The build tests passed at d73a510.

Test Result Details
test with Command did not list any other PRs to include
merge Merged d73a510 at 430bd32
build (prof) Log file. Build time: 11 min 58 sec
ceSimReco Log file.
g4test_03MT Log file.
transportOnly Log file.
POT Log file.
g4study Log file.
cosmicSimReco Log file.
cosmicOffSpill Log file.
ceSteps Log file.
ceDigi Log file.
muDauSteps Log file.
ceMix Log file.
rootOverlaps Log file.
g4surfaceCheck Log file.
FIXME, TODO TODO (0) FIXME (0) in 4 files
clang-tidy 〰️ 0 errors 0 warnings
whitespace check 🔶 found whitespace errors

N.B. These results were obtained from a build of this Pull Request at d73a510 after being merged into the base branch at 430bd32.

For more information, please check the job page here.
Build artifacts are deleted after 5 days. If this is not desired, select Keep this build forever on the job page.

@brownd1978 brownd1978 merged commit 9b88132 into Mu2e:main Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants