11 """Mille-specific setup.
14 - `process`: cms.Process object
15 - `input_files`: input file list -> cms.untracked.vstring()
16 - `collection`: track collection to be used
17 - `cosmics_zero_tesla`: triggers the corresponding track selection
18 - `cosmics_deco_mode`: triggers the corresponding track selection
19 - `TTRHBuilder`: TransientTrackingRecHitBuilder used in the track selection
20 and refitting sequence;
21 defaults to the default of the above-mentioned sequence
26 process.AlignmentProducer.saveToDB =
False
27 process.AlignmentProducer.saveApeToDB =
False
28 process.AlignmentProducer.saveDeformationsToDB =
False
33 for calib
in process.AlignmentProducer.calibrations:
34 calib.saveToDB = process.AlignmentProducer.saveToDB
35 calib.treeFile = process.AlignmentProducer.algoConfig.treeFile
36 calib.mergeTreeFiles = process.AlignmentProducer.algoConfig.mergeTreeFiles
41 import Alignment.CommonAlignment.tools.trackselectionRefitting
as trackRefitter
42 kwargs = {
"cosmicsDecoMode": cosmics_deco_mode,
43 "cosmicsZeroTesla": cosmics_zero_tesla}
44 if TTRHBuilder
is not None: kwargs[
"TTRHBuilder"] = TTRHBuilder
45 process.TrackRefittingSequence \
46 = trackRefitter.getSequence(process, collection, **kwargs)
51 if collection
in (
"ALCARECOTkAlCosmicsCTF0T",
52 "ALCARECOTkAlCosmicsInCollisions"):
53 process.load(
"Alignment.CommonAlignment.apvModeFilter_cfi")
54 process.apvModeFilter.apvMode =
"deco" if cosmics_deco_mode
else "peak"
61 process.source = cms.Source(
"PoolSource", fileNames = input_files)
64 if (json_file !=
"")
and (json_file !=
"placeholder_json"):
65 import FWCore.PythonUtilities.LumiList
as LumiList
67 process.source.lumisToProcess = lumi_list
72 process.p = cms.Path(process.TrackRefittingSequence*
73 process.AlignmentProducer)
74 if hasattr(process,
"mps_filters"): process.p.insert(0, process.mps_filters)