From 77543f6801d347ff1ea62ed7422ade99f5ab7c38 Mon Sep 17 00:00:00 2001 From: Valeria D'Amante Date: Fri, 8 Oct 2021 17:32:09 +0200 Subject: [PATCH] fixed path dependencies --- RecoTauTag/HLTProducers/python/applyL2TauTag.py | 6 ++++++ RecoTauTag/HLTProducers/test/README.md | 7 +++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/RecoTauTag/HLTProducers/python/applyL2TauTag.py b/RecoTauTag/HLTProducers/python/applyL2TauTag.py index add1585efb7f8..e9ad1e1a05bb2 100644 --- a/RecoTauTag/HLTProducers/python/applyL2TauTag.py +++ b/RecoTauTag/HLTProducers/python/applyL2TauTag.py @@ -73,4 +73,10 @@ def update(process): insertL2TauSequence(process, process.HLT_DoubleMediumChargedIsoPFTauHPS35_Trk1_eta2p1_Reg_v4, process.hltPreDoubleMediumChargedIsoPFTauHPS35Trk1eta2p1Reg) + old_diTau_paths = ['HLT_IsoMu24_eta2p1_TightChargedIsoPFTauHPS35_Trk1_eta2p1_Reg_CrossL1_v1', 'HLT_IsoMu24_eta2p1_MediumChargedIsoPFTauHPS35_Trk1_TightID_eta2p1_Reg_CrossL1_v1','HLT_IsoMu24_eta2p1_TightChargedIsoPFTauHPS35_Trk1_TightID_eta2p1_Reg_CrossL1_v1','HLT_IsoMu24_eta2p1_MediumChargedIsoPFTauHPS35_Trk1_eta2p1_Reg_CrossL1_v4','HLT_IsoMu24_eta2p1_MediumChargedIsoPFTauHPS30_Trk1_eta2p1_Reg_CrossL1_v1','HLT_DoubleMediumChargedIsoPFTauHPS30_L1MaxMass_Trk1_eta2p1_Reg_v1','HLT_DoubleTightChargedIsoPFTauHPS35_Trk1_eta2p1_Reg_v1','HLT_DoubleMediumChargedIsoPFTauHPS35_Trk1_TightID_eta2p1_Reg_v1','HLT_DoubleTightChargedIsoPFTauHPS35_Trk1_TightID_eta2p1_Reg_v1','HLT_DoubleMediumChargedIsoPFTauHPS40_Trk1_eta2p1_Reg_v1','HLT_DoubleTightChargedIsoPFTauHPS40_Trk1_eta2p1_Reg_v1','HLT_DoubleMediumChargedIsoPFTauHPS40_Trk1_TightID_eta2p1_Reg_v1','HLT_DoubleTightChargedIsoPFTauHPS40_Trk1_TightID_eta2p1_Reg_v1'] + for i in old_diTau_paths: + if i in process.__dict__: + process.schedule.remove(getattr(process, i)) + + return process diff --git a/RecoTauTag/HLTProducers/test/README.md b/RecoTauTag/HLTProducers/test/README.md index 9ebf000ff163b..7dd88353e46ad 100644 --- a/RecoTauTag/HLTProducers/test/README.md +++ b/RecoTauTag/HLTProducers/test/README.md @@ -15,16 +15,15 @@ scram b -j8 You also need the RecoTauTag-Training files. If you don't have it, run the command: ``` -git clone git@github.com:valeriadamante/RecoTauTag-TrainingFiles.git RecoTauTag/TrainingFiles +git clone -b L2Taus git@github.com:valeriadamante/RecoTauTag-TrainingFiles.git RecoTauTag/TrainingFiles ``` ### L2TauNNTag test To get a user configuration file with the paths you need run the following command: ``` -hltGetConfiguration /dev/CMSSW_12_0_0/GRun/V6 --paths HLTriggerFirstPath,HLT_DoubleMediumChargedIsoPFTauHPS35_Trk1_eta2p1_Reg_v4,HLT_VBF_DoubleTightChargedIsoPFTauHPS20_Trk1_eta2p1_v1,HLTriggerFinalPath --unprescale --cff +hltGetConfiguration /dev/CMSSW_12_1_0/GRun --unprescale --cff > HLTrigger/Configuration/python/HLT_User_cff.py ``` -In this way all the paths should be included correctly. You need to authenticate to run the test command since it exploits files that are saved on store. So you need to run the command: @@ -40,7 +39,7 @@ scram b -j 10 cmsRun RecoTauTag/HLTProducers/test/testL2TauTagNN.py ``` -if you want to run on a limited number of events : +if you want to run on a limited number of events: ``` cmsRun RecoTauTag/HLTProducers/test/testL2TauTagNN.py maxEvents=20 ```