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

Improve seed finding for L3 muon reconstruction at HLT #22321

Merged
merged 1 commit into from Mar 3, 2018

Conversation

JanFSchulte
Copy link
Contributor

This PR improves the seed finding for the outside-in muon reconstruction in the HLT.

it involves:

  • Restricting the useStereoLayersInTEC_ option to the barrel-endcap overlap
  • Introduces a more sophisticated comparisons of Trajectory States on Surface
  • Uses both TSOSs when they disagree too much
  • Uses hitless seeds on all visited layers

The efficiency gain for the OI L3 reconstructions is documented in these slides https://cernbox.cern.ch/index.php/s/chcY6XHGUGDV9Xk, which include links to the discussion on this topic in the Muon HLT Task Force.

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @JanFSchulte (Jan-Frederik Schulte) for master.

It involves the following packages:

RecoMuon/TrackerSeedGenerator

@perrotta, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@bellan, @folguera, @abbiendi, @jhgoh, @echapon, @calderona, @HuguesBrun, @drkovalskyi, @battibass, @trocino, @bachtis, @rociovilar 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

@perrotta
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 24, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/26291/console Started: 2018/02/24 11:11

@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-22321/26291/summary.html

@slava77 comparisons for the following workflows were not done due to missing matrix map:

  • /build/cmsbld/jenkins/workspace/compare-root-files-short-matrix/results/JR-comparison/PR-22321/136.8311_RunJetHT2017F_reminiaod+RunJetHT2017F_reminiaod+REMINIAOD_data2017+HARVEST2017_REMINIAOD_data2017

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 29
  • DQMHistoTests: Total histograms compared: 2500248
  • DQMHistoTests: Total failures: 114
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2499958
  • DQMHistoTests: Total skipped: 176
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 1.00999999994 KiB( 23 files compared)
  • Checked 118 log files, 9 edm output root files, 29 DQM output files

findSeedsOnLayer(tTopo, **it, tsosAtMuonSystem, *(propagatorOpposite.get()), *(propagatorOpposite.get()), l2,
estimatorH, measurementTrackerH, numSeedsMade, numOfMaxSeeds, layerCount, analysedL2, out);
}
}
}

Copy link
Contributor

Choose a reason for hiding this comment

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

the following should apparently replace L148 - L206 and get rid of triple copy-paste.

Capturing of individual variables was unavoidable instead of a simple [&]

    //generic region lambda
    auto loopOneRegion = [&layerCount,&tTopo,&l2,&estimatorH,&measurementTrackerH,&numSeedsMade,&numOfMaxSeeds,&analysedL2,&out,this]
      (const auto& tsos, const auto& reg, const std::string& regS, const auto& propA, const auto& propB){
      for (auto it=reg.rbegin(); it!=reg.rend(); ++it) {
        LogTrace("TSGForOI") << "TSGForOI::produce: looping in "<<regS<<" layer " << layerCount << endl;
        findSeedsOnLayer(tTopo, **it, tsos,  *propA, *propB, l2,
                         estimatorH, measurementTrackerH, numSeedsMade, numOfMaxSeeds, layerCount, analysedL2, out);
      }
    };
    auto doRegion = [&tsosAtIP,&tsosAtMuonSystem,&propagatorAlong,&propagatorOpposite,&layerCount,&numSeedsMade,&useBoth,&loopOneRegion]
      (const auto& reg, const std::string& regS){
      layerCount = 0;
      loopOneRegion(tsosAtIP, reg, regS, propagatorAlong, propagatorOpposite);
      if (useBoth){
        numSeedsMade=0;
        loopOneRegion(tsosAtMuonSystem, reg, regS, propagatorOpposite, propagatorOpposite);
      }
    };

    //          BARREL
    if (std::abs(l2->eta()) < maxEtaForTOB_) doRegion(tob, "TOB");

    //Reset Number of seeds if in overlap region:
    if (std::abs(l2->eta())>minEtaForTEC_ && std::abs(l2->eta())<maxEtaForTOB_){
      numSeedsMade=0;
    }

    //          ENDCAP+
    if (l2->eta() > minEtaForTEC_)  doRegion(tecPositive, "TEC+");
    //          ENDCAP-
    if (l2->eta() < -minEtaForTEC_)  doRegion(tecNegative, "TEC-");

feel free to consider this for refactoring. It compiles, but I didn't cross check for identity.

@slava77
Copy link
Contributor

slava77 commented Mar 1, 2018

+1

for #22321 9c1eb6e

  • changes are in line with the description and affect only HLT results
  • jenkins tests pass and comparisons with the baseline show differences only in wf 10824 only in DQM HLT plots

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 1, 2018

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)

@slava77
Copy link
Contributor

slava77 commented Mar 1, 2018

assign hlt

@silviodonato @Martin-Grunewald
please remind me if you would in general like to be alerted to changes like this.

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 1, 2018

New categories assigned: hlt

@Martin-Grunewald,@silviodonato,@fwyzard you have been requested to review this Pull request/Issue and eventually sign? Thanks

@Martin-Grunewald
Copy link
Contributor

@slava77
Yes please!

@Martin-Grunewald
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 3, 2018

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

fabiocos commented Mar 3, 2018

+1

@cmsbuild cmsbuild merged commit e6df9f1 into cms-sw:master Mar 3, 2018
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

6 participants