|
1 | 1 | ############################################################################### |
2 | 2 | # Way to use this: |
3 | | -# cmsRun testHGCalMissingID_cfg.py geometry=D120 |
| 3 | +# cmsRun testHGCalMissingID_cfg.py geometry=D120 total=10 |
4 | 4 | # |
5 | 5 | # Options for geometry D120, D122, D123 |
| 6 | +# total All, Ten |
6 | 7 | # |
7 | 8 | ############################################################################### |
8 | 9 | import FWCore.ParameterSet.Config as cms |
|
17 | 18 | VarParsing.VarParsing.multiplicity.singleton, |
18 | 19 | VarParsing.VarParsing.varType.string, |
19 | 20 | "geometry of operations: D120, D122, D123") |
| 21 | +options.register('total', |
| 22 | + "Ten", |
| 23 | + VarParsing.VarParsing.multiplicity.singleton, |
| 24 | + VarParsing.VarParsing.varType.string, |
| 25 | + "geometry of operations: All, Ten") |
20 | 26 |
|
21 | 27 | ### get and parse the command line arguments |
22 | 28 | options.parseArguments() |
|
26 | 32 | #################################################################### |
27 | 33 | # Use the options |
28 | 34 |
|
| 35 | +if (options.total == "All"): |
| 36 | + total = -1 |
| 37 | +else: |
| 38 | + total = 10 |
| 39 | + |
29 | 40 | geomName = "Run4" + options.geometry |
30 | 41 | geomFile = "Configuration.Geometry.GeometryExtended" + geomName + "Reco_cff" |
31 | 42 | fileName = "HGCMissingID" + options.geometry + ".root" |
32 | 43 | import Configuration.Geometry.defaultPhase2ConditionsEra_cff as _settings |
33 | 44 | GLOBAL_TAG, ERA = _settings.get_era_and_conditions(geomName) |
34 | 45 | print("Geometry file: ", geomFile) |
35 | 46 | print("Output file: ", fileName) |
| 47 | +print("Total: ", total) |
36 | 48 |
|
37 | 49 | process = cms.Process('HGCMissingID',ERA) |
38 | 50 |
|
|
79 | 91 | closeFileFast = cms.untracked.bool(True) |
80 | 92 | ) |
81 | 93 |
|
82 | | -#process.hgcalGeometryCheck.verbosity = True |
| 94 | +process.hgcalMissingID.total = total |
83 | 95 |
|
84 | 96 | process.p1 = cms.Path(process.generator*process.hgcalMissingID) |
0 commit comments