~maddevelopers/mg5amcnlo/2.3.3_scan_options

« back to all changes in this revision

Viewing changes to madgraph/various/banner.py

  • Committer: olivier Mattelaer
  • Date: 2015-08-22 14:13:58 UTC
  • Revision ID: olivier.mattelaer@uclouvain.be-20150822141358-lrjyhk43v7c4jwvm
fix a problem in the RunCard handling

Show diffs side-by-side

added added

removed removed

Lines of Context:
897
897
        
898
898
        # if input is define read that input
899
899
        if isinstance(finput, (file, str)):
 
900
            misc.sprint("start read")
900
901
            self.read(finput)
901
902
    
902
903
 
1274
1275
            if len(line) != 2:
1275
1276
                continue
1276
1277
            value, name = line
1277
 
            name = name.lower()
 
1278
            name = name.lower().strip()
1278
1279
            if name not in self and ('min' in name or 'max' in name):
1279
1280
                #looks like an entry added by one user -> add it nicely
1280
1281
                self.add_param(name, float(value), hidden=True, cut=True)
1469
1470
    def default_setup(self):
1470
1471
        """default value for the run_card.dat"""
1471
1472
 
 
1473
        misc.sprint("pass in default setup")
 
1474
        
1472
1475
        self.add_param("run_tag", "tag_1", include=False)
1473
1476
        self.add_param("gridpack", False)
1474
 
        self.add_param("time_of_flight", -1.0, include=False)
 
1477
        self.add_param("time_of_flight", -1.0, include=False, hidden=True)
1475
1478
        self.add_param("nevents", 10000)        
1476
1479
        self.add_param("iseed", 0)
1477
1480
        self.add_param("lpp1", 1, fortran_name="lpp(1)")