forked from cms-analysis/flashgg
-
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.
Updated STXS workflow (cms-analysis#1204)
* Update to latest ttH MVA boundaries * Implement ttH vs tH DNN in leptonic tagger * Optimized THQ tagger compatible with STXS workflow * add changes for STXS stage 1.2 * Update WHLeptonicTag with MVA and ZHLeptonicTag * Recover TagTruth with STXS information included * Add missing cuts on pho pT/mGG and photon ID MVA * fully working VH hadronic BDT * incorporate tHq leptonic tag into stage one workflow * incorporate WH and ZH leptonic tags into stage one workflow * add in ggH BSM splitting and additional VBF tags * Update MVA for ZH Leptonic Tag * update cross sections for tH * propagate NNLOPS weights correctly * add optional granular JEC uncertainties. Tested, behaviour seems sensible. Co-authored-by: Samuel May <[email protected]> Co-authored-by: Prafulla Saha <[email protected]> Co-authored-by: Youying <[email protected]> Co-authored-by: Mei Hualin <[email protected]>
- Loading branch information
1 parent
6cfecbb
commit 388b54e
Showing
113 changed files
with
4,268 additions
and
1,842 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
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,99 @@ | ||
#ifndef FLASHgg_VHhadMVAResult_h | ||
#define FLASHgg_VHhadMVAResult_h | ||
|
||
#include "DataFormats/Common/interface/Ptr.h" | ||
#include "flashgg/DataFormats/interface/DiPhotonCandidate.h" | ||
#include "flashgg/DataFormats/interface/Jet.h" | ||
|
||
namespace flashgg { | ||
|
||
class VHhadMVAResult | ||
{ | ||
|
||
public: | ||
VHhadMVAResult(); | ||
VHhadMVAResult( edm::Ptr<VHhadMVAResult> ); | ||
virtual ~VHhadMVAResult() {} | ||
// diJet Info | ||
//flashgg::Jet leadJet; | ||
//flashgg::Jet subleadJet; | ||
// 3rd jet | ||
//flashgg::Jet subsubleadJet; | ||
reco::Candidate::LorentzVector leadJet; | ||
reco::Candidate::LorentzVector subleadJet; | ||
reco::Candidate::LorentzVector subsubleadJet; | ||
|
||
edm::Ptr<flashgg::Jet> leadJet_ptr; | ||
edm::Ptr<flashgg::Jet> subleadJet_ptr; | ||
// 3rd jet | ||
edm::Ptr<flashgg::Jet> subsubleadJet_ptr; | ||
// 4-vec of the 3 jets | ||
|
||
bool hasValidVHhadTriJet; | ||
|
||
// di-photon info | ||
// flashgg::DiPhotonCandidate diphoton; | ||
|
||
// event based variables | ||
int n_rec_jets; | ||
int n_gen_jets; | ||
int n_diphotons; | ||
|
||
// Input variables | ||
float dijet_leadEta ; | ||
float dijet_subleadEta; | ||
float dijet_abs_dEta; | ||
float dijet_LeadJPt ; | ||
float dijet_pt ; | ||
float dijet_SubJPt; | ||
float dijet_Zep; | ||
float dijet_dphi_trunc; | ||
float dijet_dipho_dphi; | ||
float dijet_dphi; | ||
float dijet_Mjj; | ||
float dijet_dy; | ||
float dijet_leady ; | ||
float dijet_subleady; | ||
float dijet_dipho_pt; | ||
float dijet_minDRJetPho; | ||
float dijet_centrality_gg; | ||
float dijet_centrality_j3; | ||
float dijet_centrality_g ; | ||
|
||
float cosThetaStar; | ||
|
||
float dipho_PToM; | ||
float leadPho_PToM; | ||
float sublPho_PToM; | ||
|
||
// some 3-jet based variables | ||
|
||
float VHhadMVAValue() const {return vhHadMvaResult_value;} | ||
float prob_VHhad_value() const {return vhHadMvaResult_prob_VHhad;} | ||
float prob_ggH_value() const {return vhHadMvaResult_prob_ggH;} | ||
float prob_bkg_value() const {return vhHadMvaResult_prob_bkg;} | ||
// needed to go to native XGBoost score from TMVA version, inverting this https://github.com/jpata/mlglue/blob/master/mlglue/tree.py#L400-L409 | ||
float transformedMvaValue(float result) const {return 1. / ( 1. + exp( 0.5*log( 2./(result+1.) - 1 ) ) );} | ||
|
||
// Output | ||
float vhHadMvaResult_value; | ||
float vhHadMvaResult_value_bdt; | ||
float vhHadMvaResult_value_bdtg; | ||
float vhHadMvaResult_prob_VHhad; | ||
float vhHadMvaResult_prob_ggH; | ||
float vhHadMvaResult_prob_bkg; | ||
}; | ||
|
||
typedef std::map<edm::Ptr<DiPhotonCandidate>, VHhadMVAResult> VHhadMVAResultMap; | ||
|
||
} | ||
|
||
#endif | ||
// Local Variables: | ||
// mode:c++ | ||
// indent-tabs-mode:nil | ||
// tab-width:4 | ||
// c-basic-offset:4 | ||
// End: | ||
// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 | ||
|
Oops, something went wrong.