~maddevelopers/mg5amcnlo/2.7.4_array

« back to all changes in this revision

Viewing changes to madgraph/various/banner.py

  • Committer: olivier-mattelaer
  • Date: 2020-03-09 19:05:51 UTC
  • mfrom: (284.1.17 2.7.1)
  • Revision ID: olivier-mattelaer-20200309190551-x8nv2tnob4qmu3om
pass to 2.7.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
3091
3091
        self.add_param('issgridfile', '', hidden=True)
3092
3092
        #job handling of the survey/ refine
3093
3093
        self.add_param('job_strategy', 0, hidden=True, include=False, allowed=[0,1,2], comment='see appendix of 1507.00020 (page 26)')
 
3094
        self.add_param('hard_survey', False, hidden=True, include=False, comment='force to have better estimate of the integral at survey for difficult mode like VBF')
3094
3095
        self.add_param('survey_splitting', -1, hidden=True, include=False, comment="for loop-induced control how many core are used at survey for the computation of a single iteration.")
3095
3096
        self.add_param('survey_nchannel_per_job', 2, hidden=True, include=False, comment="control how many Channel are integrated inside a single job on cluster/multicore")
3096
3097
        self.add_param('refine_evt_by_job', -1, hidden=True, include=False, comment="control the maximal number of events for the first iteration of the refine (larger means less jobs)")
3210
3211
            if self['nb_proton2'] !=1 or self['nb_neutron2'] !=0:
3211
3212
                raise InvalidRunCard, "Heavy ion mode is only supported for lpp2=1/2"   
3212
3213
 
 
3214
        # check if lpp = 
 
3215
        for i in [1,2]:
 
3216
            if self['lpp%s' % i ] == 3 and self['dsqrt_q2fact%s'%i] > 4:
 
3217
                raise InvalidRunCard( "Photon from electron are using fixed scale value of muf [dsqrt_q2fact%s] as the cut off value of the approximation.\n" % i + \
 
3218
                                      "For EPA this number should be small (for HERA prediction it should be 2 at most)")
 
3219
            if self['lpp%s' % i ] == 2 and self['dsqrt_q2fact%s'%i] == 91.188:
 
3220
                raise InvalidRunCard("Since 2.7.1 Photon from proton are using fixed scale value of muf [dsqrt_q2fact%s] as the cut of th Improved Weizsaecker-Williams formula. Please edit it accordingly." % i)
 
3221
        
 
3222
        # if both lpp1/2 are on PA mode -> force fixed factorization scale
 
3223
        if self['lpp1'] in [2, 3] and self['lpp2'] in [2, 3] and not self['fixed_fac_scale']:
 
3224
            raise InvalidRunCard("Having both beam in elastic photon mode requires fixec_fac_scale to be on True [since this is use as cutoff]")
 
3225
 
3213
3226
 
3214
3227
    def update_system_parameter_for_include(self):
3215
3228