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

Make Cosmic superpointer module able to select muons also based on number of interactions with tracker or muon chambers #26511

Merged
merged 5 commits into from
Apr 30, 2019

Conversation

NTrevisani
Copy link
Contributor

@NTrevisani NTrevisani commented Apr 23, 2019

PR description:

Introducing the possibility of selecting based on number of valid pixel hits, number of tracker layers with interactions, and number of valid muon hits. The old version only required the muon to pass through a cylinder of variable size centered at the center of CMS.

PR validation:

Comparing the output of the skim with the old one and checking that new selections work.

if this PR is a backport please specify the original PR:

Before submitting your pull requests, make sure you followed this checklist:

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@NTrevisani
Copy link
Contributor Author

Introducing new features in cosmicSP for cosmic muons certification.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-26511/9374

  • This PR adds an extra 20KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @NTrevisani for master.

It involves the following packages:

DPGAnalysis/Skims
HLTrigger/special

@Martin-Grunewald, @prebello, @cmsbuild, @zhenhu, @pgunnell, @fwyzard can you please review it and eventually sign? Thanks.
@Martin-Grunewald this is something you requested to watch as well.
@davidlange6, @slava77, @fabiocos you are the release manager for this.

cms-bot commands are listed here

@@ -39,6 +39,9 @@ HLTMuonPointingFilter::HLTMuonPointingFilter(const edm::ParameterSet& pset) :
thePropagatorName(pset.getParameter<std::string>("PropagatorName") ),
theRadius( pset.getParameter<double>("radius") ), // cyl's radius (cm)
theMaxZ( pset.getParameter<double>("maxZ") ), // cyl's half lenght (cm)
thenPixHits( pset.getParameter<int>("nPixHits") ), // pixel hits
theTkLayers( pset.getParameter<int>("TkLayers") ), // tracker layers with measurements
thenMuonHits( pset.getParameter<int>("nMuonHits") ), // tracker layers with measurements
Copy link
Contributor

Choose a reason for hiding this comment

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

the comment looks wrong ?

@@ -104,8 +116,17 @@ bool HLTMuonPointingFilter::filter(edm::Event& event, const edm::EventSetup& eve
if ( tsosAtCyl.isValid() ) {
LogDebug("HLTMuonPointing") << " extrap TSOS " << tsosAtCyl;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would make more sense to move all LogDebugs here, rather than inside the ifs

@@ -39,6 +39,9 @@ HLTMuonPointingFilter::HLTMuonPointingFilter(const edm::ParameterSet& pset) :
thePropagatorName(pset.getParameter<std::string>("PropagatorName") ),
theRadius( pset.getParameter<double>("radius") ), // cyl's radius (cm)
theMaxZ( pset.getParameter<double>("maxZ") ), // cyl's half lenght (cm)
thenPixHits( pset.getParameter<int>("nPixHits") ), // pixel hits
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you make the new parameters unsigned ?
I assume it makes no sense to ask for > -1 hits, since 0 means no requirements, right ?

@@ -117,8 +138,17 @@ bool HLTMuonPointingFilter::filter(edm::Event& event, const edm::EventSetup& eve

if (tsosAtPlane.isValid()){
if (tsosAtPlane.globalPosition().perp()< theRadius){
Copy link
Contributor

Choose a reason for hiding this comment

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

as above, can you move here all LogDebugs ?

@@ -140,6 +170,9 @@ void HLTMuonPointingFilter::fillDescriptions(edm::ConfigurationDescriptions & de
desc.add<std::string>("PropagatorName", "SteppingHelixPropagatorAny");
desc.add<double>("radius", 90.0);
desc.add<double>("maxZ", 280.0);
desc.add<int>("nPixHits", 0);
Copy link
Contributor

Choose a reason for hiding this comment

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

as above, could you make these unsigned ?

@@ -49,6 +49,9 @@ class HLTMuonPointingFilter : public edm::EDFilter {
const std::string thePropagatorName; // name of propagator to be used
const double theRadius; // radius of cylinder
const double theMaxZ; // half length of cylinder
const int thenPixHits; // number of pixel hits
Copy link
Contributor

Choose a reason for hiding this comment

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

as in the .cc file, could you make these unsigned ?

@fwyzard
Copy link
Contributor

fwyzard commented Apr 23, 2019

Can you give a more descriptive name to the pull request ?

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@NTrevisani NTrevisani changed the title My cosmic sp Make Cosmic SP able to select muons also based on number of interactions with tracker or muon chambers Apr 23, 2019
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-26511/9383

  • This PR adds an extra 24KB to repository

@cmsbuild
Copy link
Contributor

Pull request #26511 was updated. @Martin-Grunewald, @prebello, @cmsbuild, @zhenhu, @pgunnell, @fwyzard can you please check and sign again.

@fwyzard
Copy link
Contributor

fwyzard commented Apr 23, 2019

OK, but still... what is a "Cosmic SP" ?

@slava77
Copy link
Contributor

slava77 commented Apr 24, 2019

I guess it's a super-pointing (SP) skim/selection for cosmics (a muon crosses pixels; although historically exact defs varied)

@@ -39,6 +39,9 @@ HLTMuonPointingFilter::HLTMuonPointingFilter(const edm::ParameterSet& pset) :
thePropagatorName(pset.getParameter<std::string>("PropagatorName") ),
theRadius( pset.getParameter<double>("radius") ), // cyl's radius (cm)
theMaxZ( pset.getParameter<double>("maxZ") ), // cyl's half lenght (cm)
thenPixHits( pset.getParameter<unsigned int>("nPixHits") ), // pixel hits
theTkLayers( pset.getParameter<unsigned int>("TkLayers") ), // tracker layers with measurements
thenMuonHits( pset.getParameter<unsigned int>("nMuonHits") ), // muon hits
thePropagator(nullptr),
Copy link
Contributor

Choose a reason for hiding this comment

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

The new variables are all integer numbers, counting something.
Why are two of them called nSomething, while the third is no 'n'?
I also find name thenMuonHits confusing, why 'then' :)?
I suggest theNmuonHits, or theMuonHits, but at least make it consistent between the variables.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-26511/9390

  • This PR adds an extra 24KB to repository

@cmsbuild
Copy link
Contributor

Pull request #26511 was updated. @Martin-Grunewald, @prebello, @cmsbuild, @zhenhu, @pgunnell, @fwyzard can you please check and sign again.

@NTrevisani
Copy link
Contributor Author

Hi,

it looks like the last automatic tests were not successful due to an eos issue, which made the rootfiles impossible to be read.
May I ask you to trigger the tests again, please?

Cheers,
Nicolò

@Martin-Grunewald
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 26, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/34354/console Started: 2019/04/26 10:17

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-26511/34354/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 33
  • DQMHistoTests: Total histograms compared: 3211964
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3211759
  • DQMHistoTests: Total skipped: 204
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 32 files compared)
  • Checked 137 log files, 14 edm output root files, 33 DQM output files

@Martin-Grunewald
Copy link
Contributor

+1

@fabiocos
Copy link
Contributor

@prebello @zhenhu @kfjack could you please have a look? The PdmV part of this PR seems an obvious adjustment for the module parameters update

@prebello
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2)

@fabiocos
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 8e9df5e into cms-sw:master Apr 30, 2019
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

7 participants