-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
TkDQM: add rechit harvester module for IT #33863
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33863/22893
|
A new Pull Request was created by @sroychow (Suvankar Roy Chowdhury) for master. It involves the following packages: DQM/SiTrackerPhase2 @andrius-k, @kmaeshima, @ErnestaP, @ahmad3213, @cmsbuild, @jfernan2, @rvenditti can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild, please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-e30d1a/15352/summary.html Comparison SummarySummary:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry for the long delay @sroychow.
I have a minor comment on possible code reduction.
One question: is there any reason why Phase2OTValidateTrackingRecHit
cannot run in the standard production sequence? Seems it's relegated to the standalone workflow now.
LocalPoint lp = rechit.localPosition(); | ||
for (const auto& simHitCol : simHits) { | ||
for (const auto& simhitIt : *simHitCol) { | ||
if (detId.rawId() != simhitIt.detUnitId()) | ||
continue; | ||
for (const auto& mId : matchedId) { | ||
if (simhitIt.trackId() == mId.first) { | ||
if (!simhitClosest || abs(simhitIt.localPosition().x() - lp.x()) < minx) { | ||
minx = abs(simhitIt.localPosition().x() - lp.x()); | ||
float dx = simhitIt.localPosition().x() - lp.x(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this whole block of finding the closest simhit is repeated in several classes. Perhaps can be moved to the base or even higher up.
float minfit = histoY->GetMean() - histoY->GetRMS(); | ||
float maxfit = histoY->GetMean() + histoY->GetRMS(); | ||
|
||
TF1* fitFcn = new TF1(TString("g") + histo->GetName() + iString, "gaus", minfit, maxfit); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wondering if one could use a smart pointer here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes will do.
@mmusich on the Phase2OTValidateTrackingRecHit, yes it should be moved to the standard sequence. I will update the config. |
d6fb725
to
f261458
Compare
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33863/23365
|
Pull request #33863 was updated. @andrius-k, @kmaeshima, @ErnestaP, @ahmad3213, @cmsbuild, @jfernan2, @rvenditti can you please check and sign again. |
+1 |
This pull request is fully signed and it will be integrated in one of the next master IBs after it passes the integration tests. This pull request will now be reviewed by the release team before it's merged. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-e30d1a/16018/summary.html Comparison SummarySummary:
|
+1 |
@sroychow There is a reval error in IB after this PR was merged. Not sure this is a glitch, to be checked with next IB, but it would be nice if you can have a look: https://cmssdt.cern.ch/SDT/html/cmssdt-ib/#/relVal/CMSSW_12_0/2021-06-17-1100?selectedArchs=slc7_amd64_gcc900&selectedFlavors=X&selectedStatus=failed Module: Phase2OTValidateTrackingRecHit:trackingRechitValidOT (crashed) |
@qliphy thanks for pointing it out. I am investigating it. |
@sroychow @qliphy the affected workflow appears to make use of VectorHits, so the error looks genuine. The input OT Rechit collection ought to be changed, but given we're planning to use a different module I suggest to make use of the dedicated modifier and exclude |
it's not a glitch it's in all latest IBs |
@mrodozov I think you missed my message above #33863 (comment) ... |
PR description:
This PR introduces the following:-
PR validation:
Checked with wf 23234.0
if this PR is a backport please specify the original PR and why you need to backport that PR:
NA
cc @emiglior @mmusich @tsusa