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

Implement Phase2 HLT Taus and L1HPSTaus #16

Conversation

sandeepbhowmik1
Copy link

PR description:

PR validation:

if this PR is a backport please specify the original PR and why you need to backport that PR:

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

veelken and others added 30 commits August 27, 2020 10:59
This configuration is based on
  - the Tracking v6.1 baseline configuration
  - the TICL v3 configuration
The b-tagging paths should be consistent with the Jets/MET configuration.
Remove unused sequences and modules:
  - BProbability for Puppi and PF jets, and their corresponding submodules;
  - HLTObjects and L1Objects;
  - DeepCSV and DeepJet paths for PFCHS jets, and their corresponding submodules.

Merge all noFilter paths into MC_BTV.

Various renames:
  - remove _v1 tags from path names;
  - rename L1T filters to match the implementation;
  - rename hltDoublePFPuppiJets128Eta2p3MaxDeta1p6_cfi to hltDoublePFPuppiJets128Eta2p4MaxDeta1p6_cfi because of wrong eta cut in name.
At the same time:
  - remove unused PSets and modules
  - clean up whitespcaes
  - clean up the imports in the main configuration file
@@ -0,0 +1,27 @@
#include "HLTrigger/Phase2HLTPFTaus/plugins/PFRecoTauChargedHadronQualityPluginHGCalWorkaround.h"
Copy link
Owner

Choose a reason for hiding this comment

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

Maybe this plugin should go into RecoTauTag/RecoTau/ ?

@@ -0,0 +1,108 @@
#include "HLTrigger/Phase2HLTPFTaus/plugins/PFTauPairProducer.h"
Copy link
Owner

Choose a reason for hiding this comment

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

Maybe this plugin should go under RecoTauTag/HLTProducers/ ?

@@ -0,0 +1,45 @@
#ifndef HLTrigger_Phase2HLTPFTaus_PFTauPairProducer_h
Copy link
Owner

Choose a reason for hiding this comment

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

Can you merge the class declaration into the .cc file ?

Comment on lines 33 to 34
PFTauPairProducer::~PFTauPairProducer()
{}
Copy link
Owner

Choose a reason for hiding this comment

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

Move to the class declaration as ~PFTauPairProducer() = default;


void PFTauPairProducer::produce(edm::Event& evt, const edm::EventSetup& es)
{
std::unique_ptr<reco::PFTauPairCollection> pfTauPairs(new reco::PFTauPairCollection());
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
std::unique_ptr<reco::PFTauPairCollection> pfTauPairs(new reco::PFTauPairCollection());
auto pfTauPairs = std::make_unique<reco::PFTauPairCollection>();

{
public:
explicit RecoTauCleanerPluginHGCalWorkaround(const edm::ParameterSet& cfg, edm::ConsumesCollector&& cc);
~RecoTauCleanerPluginHGCalWorkaround() override {}
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
~RecoTauCleanerPluginHGCalWorkaround() override {}
~RecoTauCleanerPluginHGCalWorkaround() override = default;

@fwyzard
Copy link
Owner

fwyzard commented May 11, 2021

Some more general comments:

  • please reformat all files with scram b code-format
  • please consider using existing packages instead of creating new ones

@sandeepbhowmik1
Copy link
Author

Dear Andrea,

I have modified all the code considering your all comments.

There were merge conflict with some files in
RecoTauTag/RecoTau

RecoTauTag/RecoTau/interface/DeepTauBase.h
RecoTauTag/RecoTau/plugins/DeepTauId.cc
RecoTauTag/RecoTau/plugins/PFRecoTauDiscriminationByIsolation.cc
RecoTauTag/RecoTau/src/DeepTauBase.cc

I have kept these from default i.e. which are in CMSSW_11_1_8

and I have renamed the new files updated by Christian

RecoTauTag/RecoTau/interface/DeepTauBaseForHLT.h
RecoTauTag/RecoTau/plugins/DeepTauIdForHLT.cc
RecoTauTag/RecoTau/plugins/PFRecoTauDiscriminationByIsolationForHLT.cc
RecoTauTag/RecoTau/src/DeepTauBaseForHLT.cc

@fwyzard
Copy link
Owner

fwyzard commented May 16, 2021 via email

@sandeepbhowmik1
Copy link
Author

ok I will talk to Christian about it.

@sandeepbhowmik1
Copy link
Author

The present code can reproduce the HLT TDR results but still there are 2 technical issues to solve.
I have uploaded this to share and discuss with the experts.
So if anyone wants to use this code now please let me know.
Thanks

@sandeepbhowmik1
Copy link
Author

So those 2 technical issues are also solved now

@fwyzard fwyzard force-pushed the HLT_Phase2_menu branch 13 times, most recently from 4e6142d to 205db68 Compare September 21, 2021 14:09
fwyzard pushed a commit that referenced this pull request Apr 26, 2022
@fwyzard fwyzard closed this May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
8 participants