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

Add EGamma calo ID variable cut to Run 3 Scouting Electrons #38597

Closed

Conversation

arsahasransu
Copy link
Contributor

@arsahasransu arsahasransu commented Jul 5, 2022

PR description:

Add the sigmaietaieta calo id variable cut to the Run 3 scouting electron collection

  • Use the same cut strategy as in the standard electron path.
  • Default value is kept so that all the electrons pass without the cut.
  • Default implementation is "less than" a certain cut value because the standard use of this variable is var < cut.
  • Validated in presentation in the scouting group at https://indico.cern.ch/event/1174315/#1-update-on-scouting-electrons

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 5, 2022

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38597/30858

  • This PR adds an extra 20KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 5, 2022

A new Pull Request was created by @arsahasransu (A.R.Sahasransu) for master.

It involves the following packages:

  • HLTrigger/Egamma (hlt)

@cmsbuild, @missirol, @Martin-Grunewald can you please review it and eventually sign? Thanks.
@Martin-Grunewald, @missirol, @silviodonato this is something you requested to watch as well.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

Copy link
Contributor

@missirol missirol left a comment

Choose a reason for hiding this comment

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

@arsahasransu

Please a description of the PR, including the tests done to validate it.

Below is a first round of comments.

<< "absEtaLowEdges and egammaSigmaIEtaIEtaCut vectors should be of the same size. \n";
}

for (unsigned int aIt = 0; aIt < absEtaLowEdges.size() - 1; aIt++) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks unguarded against the case size() == 0. What should the producer do in that case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If the size()==0, then the loop condition evaluates to false by default. We do not need a check for the values if the vector is empty, to begin with. If there is a default way to do this, please suggest @missirol. The "-1" in the loop condition is necessary to prevent a seg fault when checking the last entry of the vector.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 5, 2022

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38597/30869

  • This PR adds an extra 28KB to repository

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

@arsahasransu
Copy link
Contributor Author

I made an error while squashing so I will make a fresh commit. Sorry for the bug.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 5, 2022

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38597/30874

  • This PR adds an extra 20KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 5, 2022

Pull request #38597 was updated. @perrotta, @Martin-Grunewald, @pmandrik, @emanueleusai, @ahmad3213, @cmsbuild, @missirol, @jfernan2, @clacaputo, @jpata, @qliphy, @rvenditti, @micsucmed, @fabiocos, @davidlange6 can you please check and sign again.

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.

6 participants