forked from cms-sw/cms-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/cms-sw/cms-bot
- Loading branch information
Showing
27 changed files
with
262 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -347,10 +347,12 @@ void metVars(TString cName = "tcMet_", TString tName = "recoMETs_") { | |
met("significance",cName,tName); | ||
} | ||
|
||
void tau(TString var, TString cName = "hpsPFTauProducer_", TString tName = "recoPFTaus_", bool notafunction=false){ | ||
void tau(TString var, TString cName = "hpsPFTauProducer_", TString tName = "recoPFTaus_", | ||
bool log10Var = false, bool trycatch = false, bool notafunction = false){ | ||
TString v=notafunction ? tName+cName+"_"+recoS+".obj."+var: | ||
tName+cName+"_"+recoS+".obj."+var+"()"; | ||
plotvar(v); | ||
if (log10Var) v = "log10(" + v + ")"; | ||
plotvar(v, "", trycatch); | ||
} | ||
|
||
void tauVars(TString cName = "hpsPFTauProducer_", TString tName = "recoPFTaus_"){ | ||
|
@@ -360,6 +362,41 @@ void tauVars(TString cName = "hpsPFTauProducer_", TString tName = "recoPFTaus_") | |
tau("eta",cName,tName); | ||
tau("phi",cName,tName); | ||
if (tName!="patTaus_") tau("emFraction",cName,tName);//crashes now for patTaus | ||
|
||
if (tName == "patTaus_"){ | ||
tau("dxy", cName, tName); | ||
tau("dxy_error", cName, tName); | ||
|
||
tau("ip3d", cName, tName); | ||
tau("ip3d_error", cName, tName); | ||
tau("ecalEnergy", cName, tName); | ||
tau("hcalEnergy", cName, tName); | ||
tau("leadingTrackNormChi2", cName, tName); | ||
tau("ecalEnergyLeadChargedHadrCand", cName, tName); | ||
tau("hcalEnergyLeadChargedHadrCand", cName, tName); | ||
tau("etaAtEcalEntrance", cName, tName); | ||
tau("etaAtEcalEntranceLeadChargedCand", cName, tName); | ||
tau("ptLeadChargedCand", cName, tName); | ||
tau("emFraction_MVA", cName, tName); | ||
|
||
tau("[email protected]", cName,tName); | ||
for (int i = 0; i< 32; ++i){ | ||
plotvar(tName+cName+"_"+recoS+Form(".obj[].userFloats_[%d]",i), "", true); | ||
} | ||
tau("[email protected]", cName,tName); | ||
for (int i = 0; i< 32; ++i){ | ||
plotvar(tName+cName+"_"+recoS+Form(".obj[].userInts_[%d]",i), "", true); | ||
} | ||
tau("[email protected]", cName,tName); | ||
tau("[email protected]", cName,tName); | ||
for (int i = 0; i< 12; ++i){ | ||
plotvar(tName+cName+"_"+recoS+Form(".obj[].isolations_[%d]",i), "", true); | ||
} | ||
tau("[email protected]", cName,tName); | ||
for (int i = 0; i< 82; ++i){ | ||
plotvar(tName+cName+"_"+recoS+Form(".obj[].tauIDs_[%d].second",i), "", true); | ||
} | ||
} | ||
} | ||
|
||
void photon(TString var, TString cName = "photons_", TString tName = "recoPhotons_", bool notafunction=false){ | ||
|
@@ -2121,40 +2158,8 @@ void validateEvents(TString step, TString file, TString refFile, TString r="RECO | |
tauVars("hpsPFTauProducer_"); | ||
// miniaod | ||
tauVars("slimmedTaus_","patTaus_"); | ||
//pat::Tau specifics | ||
plotvar("patTaus_slimmedTaus__"+recoS+".obj.dxy()"); | ||
plotvar("patTaus_slimmedTaus__"+recoS+".obj.dxy_error()"); | ||
|
||
plotvar("patTaus_slimmedTaus__"+recoS+".obj.ip3d()"); | ||
plotvar("patTaus_slimmedTaus__"+recoS+".obj.ip3d_error()"); | ||
plotvar("patTaus_slimmedTaus__"+recoS+".obj.ecalEnergy()"); | ||
plotvar("patTaus_slimmedTaus__"+recoS+".obj.hcalEnergy()"); | ||
plotvar("patTaus_slimmedTaus__"+recoS+".obj.leadingTrackNormChi2()"); | ||
plotvar("patTaus_slimmedTaus__"+recoS+".obj.ecalEnergyLeadChargedHadrCand()"); | ||
plotvar("patTaus_slimmedTaus__"+recoS+".obj.hcalEnergyLeadChargedHadrCand()"); | ||
plotvar("patTaus_slimmedTaus__"+recoS+".obj.etaAtEcalEntrance()"); | ||
plotvar("patTaus_slimmedTaus__"+recoS+".obj.etaAtEcalEntranceLeadChargedCand()"); | ||
plotvar("patTaus_slimmedTaus__"+recoS+".obj.ptLeadChargedCand()"); | ||
plotvar("patTaus_slimmedTaus__"+recoS+".obj.emFraction_MVA()"); | ||
|
||
// boosted tau reco | ||
// miniaod | ||
tauVars("slimmedTausBoosted_","patTaus_"); | ||
//pat::Tau specifics | ||
plotvar("patTaus_slimmedTausBoosted__"+recoS+".obj.dxy()"); | ||
plotvar("patTaus_slimmedTausBoosted__"+recoS+".obj.dxy_error()"); | ||
|
||
plotvar("patTaus_slimmedTausBoosted__"+recoS+".obj.ip3d()"); | ||
plotvar("patTaus_slimmedTausBoosted__"+recoS+".obj.ip3d_error()"); | ||
plotvar("patTaus_slimmedTausBoosted__"+recoS+".obj.ecalEnergy()"); | ||
plotvar("patTaus_slimmedTausBoosted__"+recoS+".obj.hcalEnergy()"); | ||
plotvar("patTaus_slimmedTausBoosted__"+recoS+".obj.leadingTrackNormChi2()"); | ||
plotvar("patTaus_slimmedTausBoosted__"+recoS+".obj.ecalEnergyLeadChargedHadrCand()"); | ||
plotvar("patTaus_slimmedTausBoosted__"+recoS+".obj.hcalEnergyLeadChargedHadrCand()"); | ||
plotvar("patTaus_slimmedTausBoosted__"+recoS+".obj.etaAtEcalEntrance()"); | ||
plotvar("patTaus_slimmedTausBoosted__"+recoS+".obj.etaAtEcalEntranceLeadChargedCand()"); | ||
plotvar("patTaus_slimmedTausBoosted__"+recoS+".obj.ptLeadChargedCand()"); | ||
plotvar("patTaus_slimmedTausBoosted__"+recoS+".obj.emFraction_MVA()"); | ||
|
||
//upstream discriminators | ||
plotvar("recoPFTauDiscriminator_hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTraw__"+recoS+".obj.data_"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ nweek-02508 | |
nweek-02509 | ||
nweek-02510 | ||
nweek-02511 | ||
nweek-02512 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cms-sw/cmssdt-ib | ||
cms-sw/logreader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## Setting up Pull Requests testing for CMS user repositories | ||
### Setup you repository | ||
- Make a Pull Request to add your repository configuration in `cms-bot/repos/your_github_user/your_repository` | ||
- If you have `-` in your github user or repository name then replace it with `_` | ||
- It is better to copy existing configuration and change it accordingly e.g. copy `repos/smuzaffar/cmssw` in to `repos/your_repository` | ||
- Allow `cmsbot` to update your repository | ||
- If you have a github organization then please add github user `cmsbot` in to a team with write (or admin) rights | ||
- If it is not a organization then please add `cmsbot` as Collaborators (under the Settings of your repository). | ||
- Add github webhook so that bot can get notifications. | ||
- If you have given admin rights to `cmsbot` and set `ADD_WEB_HOOK=True` in `repos/your_repo/repo_config.py` then bot can add web-hook | ||
- If `cmsbot` does not have admin rights to your repository then please add yourself the github webhook (under Settings of your repository) and send us the "Secret" pass phrase so that cms-bot only recognize valid web hooks | ||
- Please disable SSL Verificaton as github does not recognize cmssdt.cern.ch certificate | ||
- Payload URL: https://cmssdt.cern.ch/SDT/cgi-bin/github_webhook | ||
- Content type: application/json | ||
- Secret: any password of your choice | ||
- Disable SSL Verification | ||
- Let me select individual events: Select | ||
- Issues, Issue comment, Pull request | ||
|
||
### Pull request Testing: | ||
- For `user/cmssw` and `user/cmsdist` repositories , bot can run standard PR tests. | ||
- If you do not want to run standard cms PR tests then set `CMS_STANDARD_TESTS=False` in your `repo_config.py` file. | ||
- For `user/non-cmssw` repository, you need to provide `repos/your_repository/run-pr-tests` script which bot can run. | ||
- bot will clone your repository in `$WORKSPACE/userrepo` and will merge your pull request on top of your default branch | ||
- A file `$WORKSPACE/changed-files.txt` will contain the list of changed file in the Pull Request | ||
- If you want to upload job logs (max 1G) then copy them under `$WORKSPACE/upload` | ||
- cmsbot commands are listed here http://cms-sw.github.io/cms-bot-cmssw-cmds.html |
Empty file.
Empty file.
Oops, something went wrong.