3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
9 kwargs.setdefault(
"OutputLevel",
min(3,jobConfig[
'outputlevel']))
10 if 'InitialKFactor' in jobConfig: kwargs.setdefault(
"InitialKFactor",jobConfig[
'InitialKFactor'])
11 if 'ConstantKFactor' in jobConfig: kwargs.setdefault(
"ConstantKFactor",jobConfig[
'ConstantKFactor'])
12 if 'RooFitMaxTransverseErr' in jobConfig: kwargs.setdefault(
"vtxResCut",jobConfig[
'RooFitMaxTransverseErr'])
14 result.setPrivateTools(
15 CompFactory.InDet.InDetBeamSpotRooFit(name, **kwargs))
21 kwargs.setdefault(
"OutputLevel",
min(3,jobConfig[
'outputlevel']))
22 if 'MaxSigmaTr' in jobConfig: kwargs.setdefault(
"MaxSigmaTr",jobConfig[
'MaxSigmaTr'])
23 if 'OutlierChi2Tr' in jobConfig: kwargs.setdefault(
"OutlierChi2Tr",jobConfig[
'OutlierChi2Tr'])
24 if 'InitialKFactor' in jobConfig: kwargs.setdefault(
"InitParK",jobConfig[
'InitialKFactor'])
25 if 'ConstantKFactor' in jobConfig: kwargs.setdefault(
"FixParK",jobConfig[
'ConstantKFactor'])
26 if 'FixWidth' in jobConfig: kwargs.setdefault(
"FixWidth",jobConfig[
'FixWidth'])
27 if 'TruncatedRMS' in jobConfig: kwargs.setdefault(
"TruncatedRMS",jobConfig[
'TruncatedRMS'])
28 if 'SetInitialRMS' in jobConfig: kwargs.setdefault(
"SetInitialRMS",jobConfig[
'SetInitialRMS'])
29 if 'MaxSigmaVtx' in jobConfig: kwargs.setdefault(
"InitParMaxSigmaX",jobConfig[
'MaxSigmaVtx'])
30 if 'MaxSigmaVtx' in jobConfig: kwargs.setdefault(
"InitParMaxSigmaY",jobConfig[
'MaxSigmaVtx'])
32 result.setPrivateTools(
33 CompFactory.InDet.InDetBeamSpotVertex(name, **kwargs))
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))