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

[Fireworks 11_2_X] Add necessary checks for valid hitMap handle in HGCal proxy builders #31547

Closed
wants to merge 1 commit into from

Conversation

alja
Copy link
Contributor

@alja alja commented Sep 22, 2020

PR description:

Add a check for valid hitmap handle

@cmsbuild
Copy link
Contributor

@alja, CMSSW_11_2_X branch is closed for direct updates. cms-bot is going to move this PR to master branch.
In future, please use cmssw master branch to submit your changes.

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@alja
Copy link
Contributor Author

alja commented Sep 22, 2020

@rovere
Please look. It may be you want to handle digit color differently if hitmap is not available.

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-31547/18556

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@lecriste
Copy link
Contributor

lecriste commented Sep 23, 2020

I have restored the hitMap in #31536

@silviodonato
Copy link
Contributor

please test with #31536

@alja
Copy link
Contributor Author

alja commented Sep 23, 2020

@lecriste Thank you to follow up.
@rovere Please look #31536 to know the changes.

@lecriste
Copy link
Contributor

@alja, @silviodonato, this PR is superseded by #31536 and can be closed - no need to be tested together in my opinion.

@alja
Copy link
Contributor Author

alja commented Sep 23, 2020

@lecriste Is it possible map std::unordered_map<DetId, const HGCRecHit*>* hitmap is empty while trying to visualize reco::CaloCluster or reco::HGCalMultiCluster collections? If so, the two derived proxy builders (FWCaloClusterProxyBuilder and FWHGCalMultiClusterProxyBuilder) need the check for valid hitmap.

@lecriste
Copy link
Contributor

@lecriste Is it possible map std::unordered_map<DetId, const HGCRecHit*>* hitmap is empty while trying to visualize reco::CaloCluster or reco::HGCalMultiCluster collections?

I don't know whether that could happen but I verified that #31536 does not crash also in such a case.

@alja
Copy link
Contributor Author

alja commented Sep 23, 2020

@lecriste Yes, I see now. I will close this PR.

@alja alja closed this Sep 23, 2020
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.

None yet

4 participants