38 if 'UseFilledBCIDsOnly' in jobConfig:
39 if jobConfig[
'UseFilledBCIDsOnly']:
41 print(
"Set bunch crossing")
42 from LumiBlockComps.BunchCrossingCondAlgConfig
import BunchCrossingCondAlgCfg
45 if "BeamSpotToolList" not in kwargs:
46 kwargs.setdefault(
"BeamSpotToolList", [
47 result.addPublicTool(result.popToolsAndMerge(
49 result.addPublicTool(result.popToolsAndMerge(
53 kwargs.setdefault(
"OutputLevel",
min(3,jobConfig[
'outputlevel']))
54 if 'VertexNtuple' in jobConfig: kwargs.setdefault(
"VertexNtuple",jobConfig[
'VertexNtuple'])
55 if 'WriteAllVertices' in jobConfig: kwargs.setdefault(
"WriteAllVertices",jobConfig[
'WriteAllVertices'])
56 if 'VertexTreeName' in jobConfig: kwargs.setdefault(
"VertexTreeName",jobConfig[
'VertexTreeName'])
58 if 'UseBCID' in jobConfig: kwargs.setdefault(
"UseBCID",jobConfig[
'UseBCID'])
59 if 'UseFilledBCIDsOnly' in jobConfig: kwargs.setdefault(
"UseFilledBCIDsOnly",jobConfig[
'UseFilledBCIDsOnly'])
61 if 'VertexContainer' in jobConfig: kwargs.setdefault(
"VertexContainer",jobConfig[
'VertexContainer'])
62 if 'MinTracksPerVtx' in jobConfig: kwargs.setdefault(
"MinTracksPerVtx",jobConfig[
'MinTracksPerVtx'])
63 if 'MaxTracksPerVtx' in jobConfig: kwargs.setdefault(
"MaxTracksPerVtx",jobConfig[
'MaxTracksPerVtx'])
64 if 'MaxVtxNum' in jobConfig: kwargs.setdefault(
"MaxVtxNum",jobConfig[
'MaxVtxNum'])
65 if 'MaxVtxChi2' in jobConfig: kwargs.setdefault(
"MaxVtxChi2",jobConfig[
'MaxVtxChi2'])
66 if 'MaxTransverseErr' in jobConfig: kwargs.setdefault(
"MaxTransverseErr",jobConfig[
'MaxTransverseErr'])
67 if 'MaxAbsCorrelXY' in jobConfig: kwargs.setdefault(
"MaxAbsCorrelXY",jobConfig[
'MaxAbsCorrelXY'])
69 if 'VertexTypes' in jobConfig:
70 kwargs.setdefault(
"VertexTypes",jobConfig[
'VertexTypes'])
72 kwargs.setdefault(
"VertexTypes", [
"PriVtx"])
74 if 'MinVtxProb' in jobConfig: kwargs.setdefault(
"MinVtxProb",jobConfig[
'MinVtxProb'])
76 if 'LumiRange' in jobConfig: kwargs.setdefault(
"LumiRange",jobConfig[
'LumiRange'])
77 if 'RunRange' in jobConfig: kwargs.setdefault(
"RunRange",jobConfig[
'RunRange'])
78 if 'EventRange' in jobConfig: kwargs.setdefault(
"EventRange",jobConfig[
'EventRange'])
79 if 'GroupFitsBy' in jobConfig: kwargs.setdefault(
"GroupFitsBy",jobConfig[
'GroupFitsBy'])
81 result.addEventAlgo(CompFactory.InDet.InDetBeamSpotFinder(name, **kwargs))