jobproperties.JetRecFlags.Enabled = False from tauRec.tauRecFlags import jobproperties jobproperties.tauRecFlags.Enabled = False # disable JetRec (no RecFlags flag for that) try: from JetRec.JetRecFlags import jetFlags jetFlags.Enabled = False except ImportError: pass # bug in RecExCond does not pass rec.doTau() try: from tauRec.tauRecFlags import jobproperties jobproperties.tauRecFlags.Enabled = rec.doTau() except ImportError: pass if ConfigOutputLevel <= DEBUG: from AthenaCommon import CfgGetter CfgGetter.setLogLevel(ConfigOutputLevel) def MuonOnly(): global TriggerFlags, doOldChains, doNewChains, doIsolation, v4Menus from TriggerMenuPython.StreamingSliceFlags import StreamingSliceFlags # not included in TriggerFlags TriggerFlags.Slices_all_setOff() TriggerFlags.MuonSlice.setAll() from AthenaCommon.JobProperties import JobPropertyContainer
not jobproperties.MuonCombinedRec.Enabled()): DQMonFlags.doMuonCombinedMon = False if (not rec.doEgamma()) or (rec.readRDO() and not jobproperties.egammaRecFlags.Enabled()): DQMonFlags.doEgammaMon = False #if (not rec.doJetRec()) or (rec.readRDO() and not jobproperties.JetRecFlags.Enabled()): if (not rec.doJetMissingETTag() or (rec.readRDO() and not jobproperties.JetRecFlags.Enabled())): DQMonFlags.doJetMon = False DQMonFlags.doMissingEtMon = False DQMonFlags.doJetTagMon = False #if (not rec.doTau()) or (rec.readRDO() and not jobproperties.TauRecFlags.Enabled()): if (not rec.doTau()): DQMonFlags.doTauMon = False # covered now by doJetMissingETTag # if (not recAlgs.doMissingET()): # DQMonFlags.doMissingEtMon=False # # Stream Aware Monitoring # Turn off tools on a stream basis to save cpu # if DQMonFlags.doStreamAwareMon: local_logger.info("Setting stream-aware monitoring for stream %s", rec.triggerStream())
# use to flag domain import PerfMonComps.DomainsRegistry as pdr from AODFix.AODFix import * AODFix_Init() from CaloRec.CaloRecFlags import jobproperties # # functionality : CaloExtensionBuilder setup # to be used in tau, pflow, e/gamma # pdr.flag_domain('CaloExtensionBuilder') if (rec.doESD()) and (recAlgs.doEFlow() or rec.doTau() or rec.doEgamma()): # or rec.readESD() try: from TrackToCalo.CaloExtensionBuilderAlgConfig import CaloExtensionBuilder CaloExtensionBuilder( "NoCut", 500.) #Arguments are cutLevel and minPt for track selection except Exception: treatException("Cannot include CaloExtensionBuilder !") # # functionality : electron photon identification # # pdr.flag_domain('egamma') if rec.doEgamma():
btaggingOK = False if jetOK and rec.doBTagging() and DetFlags.ID_on(): try: from BTagging.BTaggingFlags import BTaggingFlags protectedInclude( "BTagging/BTagging_jobOptions.py") except Exception: treatException("Could not set up btagging reconstruction") btaggingOK=False pass pass # # functionality : tau identification # pdr.flag_domain('tau') if jetOK and rec.doTau(): protectedInclude ("tauRec/tauRec_config.py") AODFix_posttauRec() # # functionality : Missing Et # pdr.flag_domain('jet') if recAlgs.doMissingET() and DetFlags.Calo_on() and DetFlags.ID_on(): try: include( "METReconstruction/METReconstruction_jobOptions.py" ) except Exception:
"no trigger and running from RDO: cannot write out tag, switching of trigger part of tag" ) include('EventTagAlgs/EventTagFlags.py') EventTagFlags.set_TriggerOff() if rec.doWriteTAG(): include('EventTagAlgs/EventTagFlags.py') if not rec.doEgamma(): EventTagFlags.set_ElectronOff() EventTagFlags.set_PhotonOff() if not rec.doJetMissingETTag(): EventTagFlags.set_MissingETOff() EventTagFlags.set_ParticleJetOff() if not rec.doMuon(): EventTagFlags.set_MuonOff() if not rec.doTau(): EventTagFlags.set_TauJetOff() if (rec.doAOD() or rec.doWriteAOD()) and _AODFlagsAvailable: from ParticleBuilderOptions.AODFlags import AODFlags # make sure AOD truth are off if truth is off if not rec.doTruth(): AODFlags.SpclMC = False AODFlags.TruthParticleJet = False AODFlags.FastSimulation = False if rec.doAOD(): AODFlags.FastTrackParticle = rec.doTruth() AODFlags.print_JobProperties()
ServiceMgr.THistSvc.Output += [ filename + " DATAFILE=\'" + filename + "\' OPT=\'RECREATE\'" ] # MinBias if tf.NtupleProductionFlags.SliceTuples.doSlice("MinBias"): include("TrigMinBiasNtuple/TrigMinBiasNtuple_jo.py") pass # Muon if tf.NtupleProductionFlags.SliceTuples.doSlice("Muon") and rec.doMuon(): include("TrigMuonNtuple/TrigMuonNtuple_jo.py") pass # Tau if tf.NtupleProductionFlags.SliceTuples.doSlice("Tau") and rec.doTau(): include("TrigTauPerformAthena/TrigTauNtuple_jo.py") pass # Egamma if tf.NtupleProductionFlags.SliceTuples.doSlice("EGamma") and rec.doEgamma(): include("TrigEgammaNtuple/TrigEgammaNtuple_jo.py") pass #L1Calo if tf.NtupleProductionFlags.SliceTuples.doSlice("L1Calo"): include("TrigT1CaloCalibTools/L1Calo_D3PD_Tier1_jobOptions.py") pass # TrigMenu if tf.NtupleProductionFlags.SliceTuples.doSlice("TrigMenu"):
btaggingOK = False if jetOK and rec.doBTagging() and DetFlags.ID_on() and DetFlags.Muon_on(): try: from BTagging.BTaggingFlags import BTaggingFlags protectedInclude("BTagging/BTagging_jobOptions.py") except Exception: treatException("Could not set up btagging reconstruction") btaggingOK = False pass pass # # functionality : tau identification # pdr.flag_domain('tau') if jetOK and rec.doTau(): protectedInclude("tauRec/tauRec_config.py") AODFix_posttauRec() # # functionality : Missing Et # pdr.flag_domain('jet') if recAlgs.doMissingET() and DetFlags.Calo_on() and DetFlags.ID_on( ) and DetFlags.Muon_on(): try: include("METReconstruction/METReconstruction_jobOptions.py") except Exception: treatException("Could not set up MissingET. Switched off !") recAlgs.doMissingET = False
DQMonFlags.doMuonCombinedMon=False if (not rec.doMuonCombined()) or (rec.readRDO() and not jobproperties.MuonCombinedRec.Enabled()): DQMonFlags.doMuonCombinedMon=False if (not rec.doEgamma()) or (rec.readRDO() and not jobproperties.egammaRecFlags.Enabled()): DQMonFlags.doEgammaMon=False #if (not rec.doJetRec()) or (rec.readRDO() and not jobproperties.JetRecFlags.Enabled()): if (not rec.doJetMissingETTag() or (rec.readRDO() and not jobproperties.JetRecFlags.Enabled())): DQMonFlags.doJetMon=False DQMonFlags.doMissingEtMon=False DQMonFlags.doJetTagMon=False #if (not rec.doTau()) or (rec.readRDO() and not jobproperties.TauRecFlags.Enabled()): if (not rec.doTau()): DQMonFlags.doTauMon=False # covered now by doJetMissingETTag # if (not recAlgs.doMissingET()): # DQMonFlags.doMissingEtMon=False # # Stream Aware Monitoring # Turn off tools on a stream basis to save cpu # if DQMonFlags.doStreamAwareMon: local_logger.info("Setting stream-aware monitoring for stream %s", rec.triggerStream()) from TrigHLTMonitoring.HLTMonFlags import HLTMonFlags