6 json_file =
"", cosmics_zero_tesla =
False, cosmics_deco_mode =
True):
7 """Mille-specific setup.
10 - `process`: cms.Process object
11 - `input_files`: input file list -> cms.untracked.vstring()
12 - `collection`: track collection to be used
13 - `cosmics_zero_tesla`: triggers the corresponding track selection
14 - `cosmics_deco_mode`: triggers the corresponding track selection
19 process.AlignmentProducer.saveToDB =
False
20 process.AlignmentProducer.saveApeToDB =
False
21 process.AlignmentProducer.saveDeformationsToDB =
False
26 process.load(
"RecoVertex.BeamSpotProducer.BeamSpot_cfi")
28 import Alignment.CommonAlignment.tools.trackselectionRefitting
as trackRefitter
29 process.TrackRefittingSequence = trackRefitter.getSequence(
32 cosmicsDecoMode = cosmics_deco_mode,
33 cosmicsZeroTesla = cosmics_zero_tesla)
36 process.AlignmentTrackSelector.filter =
False
37 if collection !=
"ALCARECOTkAlCosmicsCTF0T":
39 process.HighPurityTrackSelector.filter =
False
44 process.source = cms.Source(
"PoolSource", fileNames = input_files)
47 if (json_file !=
"")
and (json_file !=
"placeholder_json"):
48 import FWCore.PythonUtilities.LumiList
as LumiList
50 process.source.lumisToProcess = lumi_list
55 process.p = cms.Path(process.offlineBeamSpot*process.TrackRefittingSequence)