87 kwargs.setdefault(
"FileKey",
"PhysVal")
88 kwargs.setdefault(
"Environment",
"altprod")
89 kwargs.setdefault(
"ManualDataTypeSetup",
True)
90 kwargs.setdefault(
"DataType",
"monteCarlo")
91 kwargs.setdefault(
"ManualRunLBSetup",
True)
92 kwargs.setdefault(
"Run", 1)
93 kwargs.setdefault(
"LumiBlock", 1)
95 if flags.PhysVal.doExample:
97 if flags.PhysVal.doInDet:
98 from InDetPhysValMonitoring.InDetPhysValMonitoringConfig
import InDetPhysValMonitoringToolCfg
100 if flags.PhysVal.doInDetLargeD0:
101 from InDetPhysValMonitoring.InDetPhysValMonitoringConfig
import InDetLargeD0PhysValMonitoringToolCfg
103 if flags.PhysVal.doBtag:
104 from JetTagDQA.JetTagDQAConfig
import PhysValBTagCfg
106 if flags.PhysVal.doMET:
107 from MissingEtDQA.MissingEtDQAConfig
import PhysValMETCfg
109 if flags.PhysVal.doEgamma:
110 from EgammaPhysValMonitoring.EgammaPhysValMonitoringConfig
import EgammaPhysValMonitoringToolCfg
112 if flags.PhysVal.doTau:
113 from TauDQA.TauDQAConfig
import PhysValTauCfg
115 if flags.PhysVal.doJet:
116 from JetValidation.JetValidationConfig
import PhysValJetCfg
118 if flags.PhysVal.doTopoCluster:
119 from PFODQA.ClusterDQAConfig
import PhysValClusterCfg
121 if flags.PhysVal.doZee:
122 from ZeeValidation.ZeeValidationMonToolConfig
import PhysValZeeCfg
124 if flags.PhysVal.doPFlow:
125 from PFODQA.PFPhysValConfig
import PhysValPFOCfg
127 if flags.PhysVal.doMuon:
128 from MuonPhysValMonitoring.MuonPhysValConfig
import PhysValMuonCfg
130 if flags.PhysVal.doLRTMuon:
131 from MuonPhysValMonitoring.MuonPhysValConfig
import PhysValLRTMuonCfg
133 if flags.PhysVal.IDPVM.doActs:
134 from ActsConfig.ActsAnalysisConfig
import PhysValActsCfg
136 if flags.PhysVal.doLLPSecVtx:
137 from InDetSecVertexValidation.InDetSecVertexValidationConfig
import PhysValSecVtxCfg
140 kwargs.setdefault(
"AthenaMonTools", tools)
143 acc.addSequence(
seqAND(
"PhysValSequence"))
145 if flags.PhysVal.applyAllDataCleaning
or flags.PhysVal.applyGRL:
146 if (flags.Input.isMC):
147 raise ValueError(
"applyGRL (or applyAllDataCleaning) is not supported for MC data, please disable it.")
149 sequenceName=
"PhysValSequence")
150 if flags.PhysVal.applyAllDataCleaning
or flags.PhysVal.applyEventStatusSelection:
151 if (flags.Input.isMC):
152 raise ValueError(
"applyEventStatusSelection (or applyAllDataCleaning) is not supported for MC data, please disable it.")
153 acc.addEventAlgo(CompFactory.CP.EventStatusSelectionAlg(
"EventStatusSelectionAlg", FilterKey=
"EventErrorState",
154 FilterDescription=
"selecting events without any error state set"), sequenceName=
"PhysValSequence")
157 acc.addEventAlgo(CompFactory.AthenaMonManager(
158 name, **kwargs), sequenceName=
"PhysValSequence")
159 acc.addService(CompFactory.THistSvc(
160 Output=[f
"PhysVal DATAFILE='{flags.PhysVal.OutputFileName}' OPT='RECREATE'"]))