Skip to content

Commit

Permalink
fixed path dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriadamante authored and azotz committed Oct 14, 2021
1 parent 70bf8ce commit 77543f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions RecoTauTag/HLTProducers/python/applyL2TauTag.py
Expand Up @@ -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
7 changes: 3 additions & 4 deletions RecoTauTag/HLTProducers/test/README.md
Expand Up @@ -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:
Expand All @@ -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
```

0 comments on commit 77543f6

Please sign in to comment.