Skip to content
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.

Commit

Permalink
Merge usarica/master
Browse files Browse the repository at this point in the history
  • Loading branch information
usarica committed Jan 13, 2017
2 parents a6ea2bf + 8117730 commit 8320be3
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 41 deletions.
5 changes: 0 additions & 5 deletions MELA/fortran/mod_HiggsJJ.F90
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,6 @@ subroutine get_GENchannelHash(ijSel)
implicit none
integer, intent(out) :: ijSel(1:121,1:3)

! ijSel( 1,1:3) = (/1,2, 1/)
! ijSel( 2,1:3) = (/2,1, 1/)
! return


ijSel( 1,1:3) = (/-5,-5, 1/)
ijSel( 2,1:3) = (/-5,-4, 1/)
ijSel( 3,1:3) = (/-5,-3, 1/)
Expand Down
2 changes: 1 addition & 1 deletion MELA/fortran/mod_Parameters.F90
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ MODULE ModParameters
save
!
!
character(len=6),parameter :: JHUGen_Version="v7.0.2"
character(len=6),parameter :: JHUGen_Version="v7.0.3"
!
!
!=====================================================
Expand Down
1 change: 1 addition & 0 deletions MELA/interface/Mela.h
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ class Mela{
const char* relpath,
const char* spname
);
void computeConstant(float& prob);
void setConstant();
float getConstant_JHUGenUndecayed();
float getConstant_4l();
Expand Down
47 changes: 12 additions & 35 deletions MELA/src/Mela.cc
Original file line number Diff line number Diff line change
Expand Up @@ -622,11 +622,7 @@ void Mela::computeP(
}
}

if (useConstant){
float pConst=1.;
getConstant(pConst);
prob *= pConst;
}
if (useConstant) computeConstant(prob);
}

reset_SelfDCouplings();
Expand Down Expand Up @@ -797,11 +793,7 @@ void Mela::computeProdDecP(
myModel_, myME_, myProduction_,
prob
);
if (useConstant){
float pConst=1.;
getConstant(pConst);
prob *= pConst;
}
if (useConstant) computeConstant(prob);
}

reset_SelfDCouplings();
Expand Down Expand Up @@ -917,9 +909,6 @@ void Mela::computeProdP(
prob
); // Higgs + 2 jets: SBF or WBF main probability

float constant=1.;
getConstant(constant);

int nGrid=11;
std::vector<double> etaArray;
std::vector<double> pArray;
Expand Down Expand Up @@ -1085,11 +1074,6 @@ void Mela::computeProdP(
}

if (fabs(prob)>0) auxiliaryProb /= prob;
if (useConstant){
float pConst=1.;
getConstant(pConst);
prob *= pConst;
}
}
else{
if (myProduction_ == TVar::JJQCD || myProduction_ == TVar::JJVBF){
Expand Down Expand Up @@ -1121,13 +1105,8 @@ void Mela::computeProdP(
prob
); // Higgs + 1 jet; only SM is supported for now.
}

if (useConstant){
float pConst=1.;
getConstant(pConst);
prob *= pConst;
}
}
if (useConstant) computeConstant(prob);
}

reset_SelfDCouplings();
Expand Down Expand Up @@ -1195,11 +1174,7 @@ void Mela::computeProdP_VH(
includeHiggsDecay
); // VH

if (useConstant){
float pConst=1.;
getConstant(pConst);
prob *= pConst;
}
if (useConstant) computeConstant(prob);
}
}

Expand Down Expand Up @@ -1242,11 +1217,7 @@ void Mela::computeProdP_ttH(
topProcess, topDecay
);

if (useConstant){
float pConst=1.;
getConstant(pConst);
prob *= pConst;
}
if (useConstant) computeConstant(prob);
}

reset_SelfDCouplings();
Expand Down Expand Up @@ -1406,7 +1377,7 @@ void Mela::computeD_gg(
float ggScale=0;
setProcess(TVar::bkgZZ, myME, TVar::ZZGG); computeP(ggzz_VAMCFM_noscale, false);
setProcess(TVar::HSMHiggs, myME, TVar::ZZGG); computeP(ggHZZ_prob_pure_noscale, false);
setProcess(TVar::bkgZZ_SMHiggs, myME, TVar::ZZGG); computeP(bkgHZZ_prob_noscale, false); getConstant(ggScale);
setProcess(TVar::bkgZZ_SMHiggs, myME, TVar::ZZGG); computeP(bkgHZZ_prob_noscale, false); setConstant(); getConstant(ggScale);
if (ggScale>0.){
bkgHZZ_prob_noscale /= ggScale;
ggHZZ_prob_pure_noscale /= ggScale;
Expand Down Expand Up @@ -1622,6 +1593,12 @@ bool Mela::configureAnalyticalPDFs(){

// Constants to normalize probabilities
void Mela::getConstant(float& prob){ prob = getIORecord()->getMEConst(); }
void Mela::computeConstant(float& prob){
float pConst=1.;
setConstant();
getConstant(pConst);
prob *= pConst;
}
void Mela::setConstant(){
float constant = 1;
if (melaCand==0){ if (myVerbosity_>=TVar::DEBUG) cout << "Mela::getConstant: melaCand==0" << endl; }
Expand Down

0 comments on commit 8320be3

Please sign in to comment.