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

WP in Jet::IsTagged and FatJet::IsTagged #33

Closed
bhoh opened this issue Feb 19, 2019 · 7 comments
Closed

WP in Jet::IsTagged and FatJet::IsTagged #33

bhoh opened this issue Feb 19, 2019 · 7 comments

Comments

@bhoh
Copy link
Contributor

bhoh commented Feb 19, 2019

Btagging WPs are hard coded in Jet.C and FatJet.C.
But these are valid only for 2017.
I think it has a potential to cause a mistake.
How about removing "IsTagged" method?
or changing like this?

bool Jet::IsTagged(Tagger tg, double wp){
  double tr = GetTaggerResult(tg);
  return (tr>wp);
}

or should we think more clever way?

(https://github.com/CMSSNU/SKFlatAnalyzer/blob/master/DataFormats/src/Jet.C#L126-L180)
(https://github.com/CMSSNU/SKFlatAnalyzer/blob/master/DataFormats/src/FatJet.C#L140-L194)

@jedori0228
Copy link
Contributor

You can update

### taken frmo https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation94X on 29 Jan 2019
2017 CSVv2 Loose 0.5803
2017 CSVv2 Medium 0.8838
2017 CSVv2 Tight 0.9693
2017 DeepCSV Loose 0.1522
2017 DeepCSV Medium 0.4941
2017 DeepCSV Tight 0.8001
2017 DeepFlavour Loose 0.0521
2017 DeepFlavour Medium 0.3033
2017 DeepFlavour Tight 0.7489
and try to use BTagSFUtil I think..?

@jalmond
Copy link
Contributor

jalmond commented Feb 19, 2019

These files should be up to date, if not you should update the values/taggers and make a PR.

To use it in your code, you can follow the recipe in Example run.

https://github.com/CMSSNU/SKFlatAnalyzer/blob/master/Analyzers/src/ExampleRun.C#L48

https://github.com/CMSSNU/SKFlatAnalyzer/blob/master/Analyzers/src/ExampleRun.C#L336

Maybe the function in Jet class can be removed tio avoid confusion.

@bhoh
Copy link
Contributor Author

bhoh commented Feb 20, 2019

Jet::IsTagged is used once in https://github.com/CMSSNU/SKFlatAnalyzer/blob/master/Analyzers/src/SKFlatValidation.C#L161.
It's okay to use for 2017, but it returns wrong result for other than 2017.
After changing that part like ExampleRun.C, we can remove Jet::IsTagged and FatJet::IsTagged.
If you guys agree with that idea, I could make a pull request.

(https://github.com/CMSSNU/SKFlatAnalyzer/blob/master/DataFormats/src/Jet.C#L126-L180)
(https://github.com/CMSSNU/SKFlatAnalyzer/blob/master/DataFormats/src/FatJet.C#L140-L194)

@jalmond
Copy link
Contributor

jalmond commented Feb 26, 2019

I think this is ok to make the pull request.

@jedori0228 jedori0228 mentioned this issue Mar 3, 2019
@jedori0228
Copy link
Contributor

Please check #37

@bhoh
Copy link
Contributor Author

bhoh commented Mar 4, 2019

Please check #37

it looks good!

@jedori0228
Copy link
Contributor

#37 merged.

wonpoint4 added a commit to wonpoint4/SKFlatAnalyzer that referenced this issue Sep 3, 2023
Hooooon12 pushed a commit to Hooooon12/SKFlatAnalyzer that referenced this issue Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants