include.block('RecBackgroundAlgs/RecBackground_jobOptions.py') from RecExConfig.RecFlags import rec from AthenaCommon.DetFlags import DetFlags if rec.doInDet() and rec.doMuon() and rec.doCalo() and \ DetFlags.detdescr.Muon_on() and DetFlags.detdescr.Calo_on() and DetFlags.detdescr.ID_on() : from RecBackgroundAlgs.RecBackgroundAlgsConf import BeamBackgroundFiller BeamBackgroundFiller = BeamBackgroundFiller() topSequence += BeamBackgroundFiller from BCM_BackgroundAlgs.BCM_BackgroundAlgsConf import BcmCollisionTimeAlg BcmCollisionTimeAlg = BcmCollisionTimeAlg() topSequence += BcmCollisionTimeAlg from RecBackgroundAlgs.RecBackgroundAlgsConf import BackgroundWordFiller BackgroundWordFiller = BackgroundWordFiller() topSequence += BackgroundWordFiller
from AthenaCommon import Logging jetlog = Logging.logging.getLogger('JetRec_jobOptions') # Skip truth if rec says it is absent. # No action if someone has already set the flag. print myname + "Initial useTruth: " + sflagstat(jetFlags.useTruth) print myname + " rec.doTruth: " + str(rec.doTruth()) if not jetFlags.useTruth.statusOn: jetFlags.useTruth = rec.doTruth() print myname + " Final useTruth: " + sflagstat(jetFlags.useTruth) # Skip use of topoclusters if not built # No action if someone has already set the flag. print myname + "Initial use topoclusters: " + str(jetFlags.useTopo()) if not jetFlags.useTopo.statusOn: jetFlags.useTopo = rec.doCalo() print myname + " Final use topoclusters: " + str(jetFlags.useTopo()) # Skip tracks if tracks or vertices are not present in the job. # No action if someone has already set the flag. haveTracks = cfgKeyStore.isInTransient('xAOD::TrackParticleContainer', 'InDetTrackParticles') haveVertices = cfgKeyStore.isInTransient("xAOD::VertexContainer", "PrimaryVertices") recTracks = rec.doInDet() recVertices = bool(InDetFlags.doVertexFinding) and (recTracks or haveTracks) print myname + "Initial useTracks: " + sflagstat(jetFlags.useTracks) print myname + " rec doInDet: " + str(recTracks) print myname + " doVertexFinding: " + str(recVertices) print myname + " have tracks: " + str(haveTracks) print myname + " have vertices: " + str(haveVertices)
# From David Rousseau (4 Nov 2009): https://savannah.cern.ch/bugs/?59075 # rec.doCalo=False means: "do not do anything wrt to calo" # CaloRecFlags.Enabled=False means: switch off just the calo reco # (and similar flags for other systems) if rec.readRDO(): from CaloRec.CaloRecFlags import jobproperties from InDetRecExample.InDetJobProperties import InDetFlags from MuonRecExample.MuonRecFlags import muonRecFlags from MuonCombinedRecExample.MuonCombinedRecFlags import muonCombinedRecFlags from egammaRec.egammaRecFlags import jobproperties from tauRec.tauRecFlags import jobproperties from JetRec.JetRecFlags import jobproperties if (not rec.doCalo()) or (rec.readRDO() and not jobproperties.CaloRecFlags.Enabled()): DQMonFlags.doCaloMon = False DQMonFlags.doTileMon = False DQMonFlags.doLArMon = False if (not rec.doInDet()) or (rec.readRDO() and not jobproperties.InDetJobProperties.Enabled()): DQMonFlags.doPixelMon = False DQMonFlags.doSCTMon = False DQMonFlags.doTRTMon = False DQMonFlags.doTRTElectronMon = False DQMonFlags.doInDetGlobalMon = False DQMonFlags.doInDetAlignMon = False DQMonFlags.doInDetPerfMon = False
from AthenaCommon import Logging jetlog = Logging.logging.getLogger('JetRec_jobOptions') # Skip truth if rec says it is absent. # No action if someone has already set the flag. print myname + "Initial useTruth: " + sflagstat(jetFlags.useTruth) print myname + " rec.doTruth: " + str(rec.doTruth()) if not jetFlags.useTruth.statusOn: jetFlags.useTruth = rec.doTruth() print myname + " Final useTruth: " + sflagstat(jetFlags.useTruth) # Skip use of topoclusters if not built # No action if someone has already set the flag. print myname + "Initial use topoclusters: " + str(jetFlags.useTopo()) if not jetFlags.useTopo.statusOn: jetFlags.useTopo = rec.doCalo() print myname + " Final use topoclusters: " + str(jetFlags.useTopo()) # Skip tracks if tracks or vertices are not present in the job. # No action if someone has already set the flag. haveTracks = cfgKeyStore.isInTransient('xAOD::TrackParticleContainer','InDetTrackParticles') haveVertices = cfgKeyStore.isInTransient("xAOD::VertexContainer","PrimaryVertices") recTracks = rec.doInDet() recVertices = bool(InDetFlags.doVertexFinding) and (recTracks or haveTracks) print myname + "Initial useTracks: " + sflagstat(jetFlags.useTracks) print myname + " rec doInDet: " + str(recTracks) print myname + " doVertexFinding: " + str(recVertices) print myname + " have tracks: " + str(haveTracks) print myname + " have vertices: " + str(haveVertices) if not jetFlags.useTracks.statusOn: jetFlags.useTracks = (recTracks or haveTracks) and (recVertices or haveVertices)
include("TileRecAlgs/MBTSTimeDiffEventInfoAlg_jobOptions.py") except Exception: treatException("Problem with MBTSTimeDiffEventInfoAlg.") # Fill error bit in Event Info to veto noise LAr burst (done in raw->esd stage) from AthenaCommon.AthenaCommonFlags import athenaCommonFlags if globalflags.DataSource( ) == 'data' and jobproperties.CaloRecFlags.doLArNoiseBurstVeto() and rec.doESD( ) and rec.doLArg() and (not athenaCommonFlags.isOnline()): try: include("LArCellRec/LArTimeVetoAlg_jobOptions.py") except Exception: treatException("Problem with LArTimeVetoAlg") if jobproperties.CaloRecFlags.doCaloTowerFromCells( ) and rec.doESD and rec.doCalo(): from CaloRec.CaloRecConf import CaloTowerxAODFromCells topSequence += CaloTowerxAODFromCells( CaloTowerContainer="CmbTowers", # doCrossChecks=True ) if jobproperties.CaloRecFlags.doCaloTowerFromCluster( ) and rec.doESD and rec.doCalo(): from CaloRec.CaloRecConf import CaloTowerxAODFromClusters topSequence += CaloTowerxAODFromClusters( CaloTowerContainer="CmbTopoTowers", # doCrossChecks=True ) #Convert clusters to xAOD::CaloCluster (temporary solution)
# From David Rousseau (4 Nov 2009): https://savannah.cern.ch/bugs/?59075 # rec.doCalo=False means: "do not do anything wrt to calo" # CaloRecFlags.Enabled=False means: switch off just the calo reco # (and similar flags for other systems) if rec.readRDO(): from CaloRec.CaloRecFlags import jobproperties from InDetRecExample.InDetJobProperties import InDetFlags from MuonRecExample.MuonRecFlags import muonRecFlags from MuonCombinedRecExample.MuonCombinedRecFlags import muonCombinedRecFlags from egammaRec.egammaRecFlags import jobproperties from tauRec.tauRecFlags import jobproperties from JetRec.JetRecFlags import jobproperties if (not rec.doCalo()) or (rec.readRDO() and not jobproperties.CaloRecFlags.Enabled()): DQMonFlags.doCaloMon=False DQMonFlags.doTileMon=False DQMonFlags.doLArMon=False if (not rec.doInDet()) or (rec.readRDO() and not jobproperties.InDetJobProperties.Enabled()): DQMonFlags.doPixelMon=False DQMonFlags.doSCTMon=False DQMonFlags.doTRTMon=False DQMonFlags.doTRTElectronMon=False DQMonFlags.doInDetGlobalMon=False DQMonFlags.doInDetAlignMon=False DQMonFlags.doInDetPerfMon=False if (not rec.doMuon()) or (rec.readRDO() and not jobproperties.MuonRec.Enabled()): DQMonFlags.doMuonRawMon=False