|
56 | 56 | raise RuntimeError("Value for 'l1Tracks' command-line argument (= '{}') should contain one colon".format(options.l1Tracks)) |
57 | 57 |
|
58 | 58 | l1TracksTag = cms.InputTag(options.l1Tracks.split(':')[0], options.l1Tracks.split(':')[1]) |
59 | | -print "Input Track Collection = {0} {1}".format(*options.l1Tracks.split(':')) |
| 59 | +print("Input Track Collection = {0} {1}".format(*options.l1Tracks.split(':'))) |
60 | 60 |
|
61 | 61 |
|
62 | 62 | # PART 2: SETUP MAIN CMSSW PROCESS |
|
128 | 128 | for l in range(7): |
129 | 129 | seedTrackPt = 2.0 + float(l) * 0.5 |
130 | 130 |
|
131 | | - print |
132 | | - print "dist =", dist |
133 | | - print "minPt =", minPt |
134 | | - print "minDensity =", minDensity |
135 | | - print "seedTrkPt =", seedTrackPt |
| 131 | + print() |
| 132 | + print("dist =", dist) |
| 133 | + print("minPt =", minPt) |
| 134 | + print("minDensity =", minDensity) |
| 135 | + print("seedTrkPt =", seedTrackPt) |
136 | 136 |
|
137 | 137 | producer = process.l1tVertexProducer.clone() |
138 | 138 | producer.VertexReconstruction.VertexDistance = cms.double(dist) |
|
142 | 142 |
|
143 | 143 | producerName = 'VertexProducerDBSCANDist{0}minPt{1}minDensity{2}seedTrackPt{3}'.format(dist, minPt, minDensity, seedTrackPt) |
144 | 144 | producerName = producerName.replace(".","p") |
145 | | - print "producer name =", producerName |
| 145 | + print("producer name =", producerName) |
146 | 146 | setattr(process, producerName, producer) |
147 | 147 | producerNames += [producerName] |
148 | 148 | process.l1tVertexNTupler.extraVertexDescriptions += ['DBSCAN(dist={0},minPt={1},minDensity={2},seedTrackPt{3})'.format(dist, minPt, minDensity, seedTrackPt)] |
149 | 149 | process.l1tVertexNTupler.extraVertexInputTags.append( cms.InputTag(producerName, 'L1Vertices')) |
150 | 150 | producerSum += producer |
151 | 151 |
|
152 | | -print "Total number of producers =", len(additionalProducerAlgorithms)+1 |
153 | | -print " Producers = [{0}]".format(producerSum.dumpSequenceConfig().replace('&',', ')) |
154 | | -print " Algorithms = [fastHisto, {0}]".format(', '.join(additionalProducerAlgorithms)) |
| 152 | +print("Total number of producers =", len(additionalProducerAlgorithms)+1) |
| 153 | +print(" Producers = [{0}]".format(producerSum.dumpSequenceConfig().replace('&',', '))) |
| 154 | +print(" Algorithms = [fastHisto, {0}]".format(', '.join(additionalProducerAlgorithms))) |
155 | 155 |
|
156 | 156 | # PART 4: UTILITIES |
157 | 157 |
|
|
177 | 177 |
|
178 | 178 | # DUMP AND EXIT |
179 | 179 | if options.dump: |
180 | | - print process.dumpPython() |
| 180 | + print(process.dumpPython()) |
181 | 181 | sys.exit(0) |
0 commit comments