Skip to content

Commit

Permalink
fix label ttbar
Browse files Browse the repository at this point in the history
  • Loading branch information
mariadalfonso committed Apr 12, 2017
1 parent 1e360a9 commit fcf5092
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
2 changes: 2 additions & 0 deletions dat/configTopBot_FullHad.dat
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Files=
include=dat/catalog/2017.moriond/tt.dat
## signal
include=dat/catalog/2017.moriond/topbottom.dat
## QCD
include=dat/catalog/2017.moriond/qcd.dat

Files=root://eoscms///store/group/phys_higgs/ceballos/Nero/v2.2/TT_TuneCUETP8M2T4_13TeV-powheg-pythia8/TT_TuneCUETP8M2T4_13TeV-powheg-pythia8/170210_070023/0000/NeroNtuples_974.root,root://eoscms///store/group/phys_higgs/ceballos/Nero/v2.2/TT_TuneCUETP8M2T4_13TeV-powheg-pythia8/TT_TuneCUETP8M2T4_13TeV-powheg-pythia8/170210_070023/0000/NeroNtuples_975.root,root://eoscms///store/group/phys_higgs/ceballos/Nero/v2.2/TT_TuneCUETP8M2T4_13TeV-powheg-pythia8/TT_TuneCUETP8M2T4_13TeV-powheg-pythia8/170210_070023/0000/NeroNtuples_976.root,root://eoscms///store/group/phys_higgs/ceballos/Nero/v2.2/TT_TuneCUETP8M2T4_13TeV-powheg-pythia8/TT_TuneCUETP8M2T4_13TeV-powheg-pythia8/170210_070023/0000/NeroNtuples_977.root,root://eosuser///eos/user/a/amarini/Nero/v2.2/ChargedHiggs_HplusTB_HplusToTB_M-3000_13TeV_amcatnlo_pythia8/PUMoriond17_80X_mcRun2_asymptotic_2016_TrancheIV_v6-v1/NeroNtuples_0.root,root://eosuser///eos/user/a/amarini/Nero/v2.2/ChargedHiggs_HplusTB_HplusToTB_M-3000_13TeV_amcatnlo_pythia8/PUMoriond17_80X_mcRun2_asymptotic_2016_TrancheIV_v6-v1/NeroNtuples_1.root,root://eosuser///eos/user/a/amarini/Nero/v2.2/ChargedHiggs_HplusTB_HplusToTB_M-3000_13TeV_amcatnlo_pythia8/PUMoriond17_80X_mcRun2_asymptotic_2016_TrancheIV_v6-v1/NeroNtuples_2.root,root://eosuser///eos/user/a/amarini/Nero/v2.2/ChargedHiggs_HplusTB_HplusToTB_M-3000_13TeV_amcatnlo_pythia8/PUMoriond17_80X_mcRun2_asymptotic_2016_TrancheIV_v6-v1/NeroNtuples_3.root,root://eosuser///eos/user/a/amarini/Nero/v2.2/ChargedHiggs_HplusTB_HplusToTB_M-3000_13TeV_amcatnlo_pythia8/PUMoriond17_80X_mcRun2_asymptotic_2016_TrancheIV_v6-v1/NeroNtuples_4.root,root://eosuser///eos/user/a/amarini/Nero/v2.2/ChargedHiggs_HplusTB_HplusToTB_M-3000_13TeV_amcatnlo_pythia8/PUMoriond17_80X_mcRun2_asymptotic_2016_TrancheIV_v6-v1/NeroNtuples_5.root,root://eosuser///eos/user/a/amarini/Nero/v2.2/ChargedHiggs_HplusTB_HplusToTB_M-3000_13TeV_amcatnlo_pythia8/PUMoriond17_80X_mcRun2_asymptotic_2016_TrancheIV_v6-v1/NeroNtuples_6.root,root://eosuser///eos/user/a/amarini/Nero/v2.2/ChargedHiggs_HplusTB_HplusToTB_M-3000_13TeV_amcatnlo_pythia8/PUMoriond17_80X_mcRun2_asymptotic_2016_TrancheIV_v6-v1/NeroNtuples_7.root,root://eoscms//store/group/phys_exotica/monojet/zdemirag/moriond80x_MC_v2/v2.2/QCD_HT1000to1500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/QCD_HT1000to1500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/170209_110659/0000/NeroNtuples_8.root,root://eoscms//store/group/phys_exotica/monojet/zdemirag/moriond80x_MC_v2/v2.2/QCD_HT1000to1500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/QCD_HT1000to1500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/170209_110659/0000/NeroNtuples_7.root,root://eoscms//store/group/phys_exotica/monojet/zdemirag/moriond80x_MC_v2/v2.2/QCD_HT1000to1500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/QCD_HT1000to1500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/170209_110659/0000/NeroNtuples_6.root,root://eoscms//store/group/phys_exotica/monojet/zdemirag/moriond80x_MC_v2/v2.2/QCD_HT1000to1500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/QCD_HT1000to1500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/170209_110659/0000/NeroNtuples_5.root,root://eoscms//store/group/phys_exotica/monojet/zdemirag/moriond80x_MC_v2/v2.2/QCD_HT1000to1500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/QCD_HT1000to1500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/170209_110659/0000/NeroNtuples_4.root,root://eoscms//store/group/phys_exotica/monojet/zdemirag/moriond80x_MC_v2/v2.2/QCD_HT1000to1500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/QCD_HT1000to1500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/170209_110659/0000/NeroNtuples_3.root,root://eoscms//store/group/phys_exotica/monojet/zdemirag/moriond80x_MC_v2/v2.2/QCD_HT1000to1500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/QCD_HT1000to1500_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/170209_110659/0000/NeroNtuples_2.root

Expand Down
2 changes: 1 addition & 1 deletion dat/topBot_FullHad.2017.dat
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ addConfig=ChargedHiggsTopBottomFullHad|AddLabel('ChargedHiggs_HplusTB_HplusToTB_
addConfig=ChargedHiggsTopBottomFullHad|AddLabel('ChargedHiggs_HplusTB_HplusToTB_M-200_13TeV_amcatnlo_pythia8')
addConfig=ChargedHiggsTopBottomFullHad|AddLabel('ChargedHiggs_HplusTB_HplusToTB_M-180_13TeV_amcatnlo_pythia8')

addConfig=ChargedHiggsTopBottomFullHad|AddLabel('TT_TuneCUETP8M2T4')
addConfig=ChargedHiggsTopBottomFullHad|AddLabel('TT_TuneCUETP8M2T4_13TeV-powheg-pythia8')

addConfig=ChargedHiggsTopBottomFullHad|AddLabel('QCD_HT')
17 changes: 11 additions & 6 deletions src/AnalysisChargedHiggsTBfullHad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ void ChargedHiggsTopBottomFullHad::setTree(Event*e, string label, string categor

// V+jets
// mc = 200;
if(label.find("DYJetsToLL_M") !=string::npos) mc =221 ;
if(label.find("WJetsToLNu")!=string::npos) mc =222;
if(label.find("DYJetsToLL_M-50_HT") !=string::npos) mc =221 ;
if(label.find("WJetsToLNu_HT")!=string::npos) mc =222;

// EWK
// missing tribosons
Expand Down Expand Up @@ -260,7 +260,7 @@ void ChargedHiggsTopBottomFullHad::setTree(Event*e, string label, string categor
}
}

if( not e->IsRealData() and (label.find("TT_TuneCUETP8M2T4") !=string::npos) ){
if( not e->IsRealData() and (label.find("TT_TuneCUETP8M2T4_13TeV-powheg-pythia8") !=string::npos) ){
if(WBKGplus!=NULL) {
SetTreeVar("WBKGplus_pt",WBKGplus->Pt());
SetTreeVar("WBKGplus_eta",WBKGplus->Eta());
Expand Down Expand Up @@ -553,6 +553,7 @@ void ChargedHiggsTopBottomFullHad::Preselection()

bool ChargedHiggsTopBottomFullHad::genInfoForSignal(Event*e) {


GenParticle *genCH = NULL;

WFromTopAss=NULL;
Expand Down Expand Up @@ -587,6 +588,10 @@ bool ChargedHiggsTopBottomFullHad::genInfoForSignal(Event*e) {
GenParticle *genpar = e->GetGenParticle(i);
//ch-higgs
if(abs(genpar->GetPdgId()) == 37) if(genCH==NULL) genCH = genpar;
}

for(Int_t i = 0; i < e->NGenPar(); i++){
GenParticle *genpar = e->GetGenParticle(i);
if(genCH!=NULL){
//top
if( abs(genpar->GetPdgId()) == 6 && abs(genpar->GetParentPdgId()) == 37 ) topFromH = genpar;
Expand Down Expand Up @@ -637,6 +642,7 @@ bool ChargedHiggsTopBottomFullHad::genInfoForSignal(Event*e) {
}
}
}

return rightComb;
}

Expand Down Expand Up @@ -762,7 +768,7 @@ void ChargedHiggsTopBottomFullHad::classifyHF(Event*e, string label, string cate


// if((label.find("TTTo2L2Nu")!=string::npos) || (label.find("TTToSemilepton")!=string::npos)) {
if((label.find("TTTo2L2Nu")!=string::npos) || (label.find("TTToSemilepton")!=string::npos) || (label.find("TT_TuneCUETP8M2T4")!=string::npos) ) {
if((label.find("TTTo2L2Nu_TuneCUETP8M2")!=string::npos) || (label.find("TTToSemilepton_TuneCUETP8M2")!=string::npos) || (label.find("TT_TuneCUETP8M2T4_13TeV-powheg-pythia8")!=string::npos) ) {

//https://github.com/cms-sw/cmssw/blob/CMSSW_8_0_X/TopQuarkAnalysis/TopTools/plugins/GenTtbarCategorizer.cc#L35
string LabelHF="other_";
Expand Down Expand Up @@ -828,9 +834,8 @@ int ChargedHiggsTopBottomFullHad::analyze(Event*e,string systname)
bool Baseline=(e->Bjets() > 0);
bool rightCombination =true;

if ( not e->IsRealData() ){
if ( not e->IsRealData() and ((label.find("HplusToTB") !=string::npos ) or (label.find("TT_TuneCUETP8M2T4_13TeV-powheg-pythia8") !=string::npos ))){

rightCombination=false; // reset for Higgs
rightCombination=genInfoForSignal(e); // compute the right combination in the higgs case

}
Expand Down
7 changes: 5 additions & 2 deletions src/AnalysisChargedHiggsTopBottom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ void ChargedHiggsTopBottom::setTree(Event*e, string label, string category )
if(label.find("DYJets-madgraph") !=string::npos) mc =221 ;
if(label.find("WJetsToLNu_TuneCUETP8M1_13TeV-madgraphMLM-pythia8")!=string::npos) mc =222;
} else {
if(label.find("DYJetsToLL_M") !=string::npos) mc =221 ;
if(label.find("WJetsToLNu")!=string::npos) mc =222;
if(label.find("DYJetsToLL_M-50_HT") !=string::npos) mc =221 ;
if(label.find("WJetsToLNu_HT")!=string::npos) mc =222;
}
// EWK
// missing tribosons
Expand Down Expand Up @@ -1144,6 +1144,9 @@ void ChargedHiggsTopBottom::Preselection()

for ( string l : AllLabel() ) {

cout << "inside BookCutFlow" << "l = " << l << endl;
// if(e->IsRealData() && (!systname.find("NONE") !=string::npos)) cout << "possible to return " << endl;

BookCutFlow(l, "");
if(do1lAnalysis) BookCutFlow(l, "_1Mu");
if(do1lAnalysis) BookCutFlow(l, "_1Ele");
Expand Down

0 comments on commit fcf5092

Please sign in to comment.