Skip to content
Snippets Groups Projects

Include Jet energy calibration option in FastJetBuilder

Merged Murilo Santana Rangel requested to merge helder_Jets_with_JEC into master
All threads resolved!

Include Jet Energy Calibration in FastJetBuilder.

Code is similar to Run2, using a TH1D from a root file in ParamFiles.

Moore!1586 (merged) depends on this MR.

Edited by Murilo Santana Rangel

Merge request reports

Pipeline #4083912 passed

Pipeline passed for ea1a169e on helder_Jets_with_JEC

Merged by Sebastien PonceSebastien Ponce 2 years ago (Jun 11, 2022 7:07pm UTC)

Merge details

  • Changes merged into master with 34f205fa.
  • Deleted the source branch.

Pipeline #4085178 passed

Pipeline passed for 34f205fa on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Sebastien Ponce approved this merge request

    approved this merge request

  • added 1 commit

    • ea1a169e - removed mutable for TH1D map, use FindFixBin for const TH1

    Compare with previous version

  • Murilo Santana Rangel resolved all threads

    resolved all threads

  • Sebastien Ponce resolved all threads

    resolved all threads

  • Sebastien Ponce mentioned in commit 34f205fa

    mentioned in commit 34f205fa

  • Gerhard Raven @graven started a thread on commit f30d3e11
  • 592 void FastJetBuilder::jec( LHCb::Particle* prt, int nPVs ) const {
    593 Gaudi::LorentzVector vec = prt->momentum();
    594 double pt( vec.Pt() / Gaudi::Units::GeV ), eta( vec.Eta() ), phi( vec.Phi() ),
    595 cpf( prt->info( LHCb::JetIDInfo::CPF, 0 ) );
    596 std::size_t iPvs( 0 ), iEta( 0 ), iCpf( 0 ), iPhi( 0 );
    597 phi = abs( abs( phi ) - M_PI / 2.0 );
    598
    599 for (; iPvs<m_jecLimNPvs.size()-2;++iPvs) if (nPVs < m_jecLimNPvs[iPvs+1]) break;
    600 for (; iEta<m_jecLimEta.size()-2;++iEta) if (eta < m_jecLimEta[iEta+1]) break;
    601 for (; iCpf<m_jecLimCpf.size()-2;++iCpf) if (cpf < m_jecLimCpf[iCpf+1]) break;
    602 for (; iPhi<m_jecLimPhi.size()-2;++iPhi) if (phi < m_jecLimPhi[iPhi+1]) break;
    603
    604 if ( pt < m_jecLimPt[0] ) pt = m_jecLimPt[0];
    605 if ( pt > m_jecLimPt[m_jecLimPt.size()-1] ) pt = m_jecLimPt[m_jecLimPt.size()-1];
    606
    607 int hkey = iPvs+100*iEta+1000*iCpf+10000*iPhi;
    • computing the histogram key using a configurable discretization is intrinsically dangerous -- there is no way to know here whether the configured discretization is compatible with the one used when deriving these histograms. This information should be stored with the histograms, and not be configured independently as there is no free choice here, and it only increases the chances of mistakes.

    • Please register or sign in to reply
    Please register or sign in to reply
    Loading