-
Notifications
You must be signed in to change notification settings - Fork 36
Extra SBND CRT Branches #632
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -164,6 +164,7 @@ namespace caf | |||||
| } | ||||||
|
|
||||||
| void FillCRTSpacePoint(const sbnd::crt::CRTSpacePoint &spacepoint, | ||||||
| const art::Ptr<sbnd::crt::CRTCluster> &cluster, | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I recommend the interface to pass the object directly instead of its art pointer:
Suggested change
That allows in general the use of the function even when an art pointer is not available.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Have done so. It results in moving the dereferencing up to CAFMaker_module.cc. There's probably a neater way of doing that but I'm in a bit of a time crunch. |
||||||
| caf::SRCRTSpacePoint &srspacepoint, | ||||||
| bool allowEmpty) | ||||||
| { | ||||||
|
|
@@ -173,6 +174,8 @@ namespace caf | |||||
| srspacepoint.time = spacepoint.Ts0(); | ||||||
| srspacepoint.time_err = spacepoint.Ts0Err(); | ||||||
| srspacepoint.complete = spacepoint.Complete(); | ||||||
| srspacepoint.nhits = cluster->NHits(); | ||||||
| srspacepoint.tagger = cluster->Tagger(); | ||||||
| } | ||||||
|
|
||||||
| void FillSBNDCRTTrack(const sbnd::crt::CRTTrack &track, | ||||||
|
|
@@ -186,6 +189,9 @@ namespace caf | |||||
| srsbndcrttrack.time_err = track.Ts0Err(); | ||||||
| srsbndcrttrack.pe = track.PE(); | ||||||
| srsbndcrttrack.tof = track.ToF(); | ||||||
|
|
||||||
| for(auto const& tagger : track.Taggers()) | ||||||
| srsbndcrttrack.taggers.push_back(tagger); | ||||||
| } | ||||||
|
|
||||||
| void FillSBNDCRTVeto(const sbnd::crt::CRTVeto &veto, | ||||||
|
|
@@ -811,19 +817,24 @@ namespace caf | |||||
|
|
||||||
| void FillTrackCRTSpacePoint(const anab::T0 &t0match, | ||||||
| const art::Ptr<sbnd::crt::CRTSpacePoint> &spacepointmatch, | ||||||
| const art::Ptr<sbnd::crt::CRTCluster> &cluster, | ||||||
| caf::SRTrack &srtrack, | ||||||
| bool allowEmpty) | ||||||
| { | ||||||
| srtrack.crtspacepoint.score = t0match.fTriggerConfidence; | ||||||
| FillCRTSpacePoint(*spacepointmatch, srtrack.crtspacepoint.spacepoint); | ||||||
| srtrack.crtspacepoint.matched = true; | ||||||
| srtrack.crtspacepoint.score = t0match.fTriggerConfidence; | ||||||
|
|
||||||
| FillCRTSpacePoint(*spacepointmatch, cluster, srtrack.crtspacepoint.spacepoint); | ||||||
| } | ||||||
|
|
||||||
| void FillTrackSBNDCRTTrack(const anab::T0 &t0match, | ||||||
| const art::Ptr<sbnd::crt::CRTTrack> &trackmatch, | ||||||
| caf::SRTrack &srtrack, | ||||||
| bool allowEmpty) | ||||||
| { | ||||||
| srtrack.crtsbndtrack.score = t0match.fTriggerConfidence; | ||||||
| srtrack.crtsbndtrack.matched = true; | ||||||
| srtrack.crtsbndtrack.score = t0match.fTriggerConfidence; | ||||||
|
|
||||||
| FillSBNDCRTTrack(*trackmatch, srtrack.crtsbndtrack.track); | ||||||
| } | ||||||
|
|
||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.