Skip to content
Snippets Groups Projects
Commit deb59495 authored by Felix Rauscher's avatar Felix Rauscher Committed by Graeme Stewart
Browse files

* add config for efficiancy monitoring

* tagging MuonCombinedDQA-01-00-02 (MuonCombinedDQA-01-00-02)
parent db39ddd6
No related merge requests found
package MuonCombinedDQA
branches python run
use AtlasPolicy AtlasPolicy-*
use TestPolicy TestPolicy-*
use AtlasReconstructionRunTime AtlasReconstructionRunTime-*
apply_pattern declare_joboptions files="*.py"
apply_pattern declare_python_modules files="*.py"
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
__doc__ = """Flags to steer the DQA for Muon Combined Reconstruction."""
from AthenaCommon.JobProperties import JobProperty,JobPropertyContainer,jobproperties
from MuonRecExample.MuonRecUtils import logMuon,RecConfigInfo,AutoLoadContainerJobProperty,\
AutoLoadContainer,fillJobPropertyContainer,override_lock_and_set_Value
from AthenaCommon import BeamFlags
beamFlags = jobproperties.Beam
class Enabled(JobProperty):
statusOn=True
allowedTypes=['bool']
StoredValue=True
def _do_action(self):
"""Set all flags Off"""
global _propertiesList
for p in _propertiesList:
if p is not self: p.set_On()
def _undo_action(self):
"""Set all flags Off"""
global _propertiesList
for p in _propertiesList:
if p is not self: p.set_Off()
class doMuonStandaloneMon(JobProperty):
"""Run DQA on the standalone muons MuidSA/Muonboy"""
statusOn=True
allowedTypes=['bool']
StoredValue=True
class doMuonCombinedMon(JobProperty):
"""Run DQA on the combined track muons MuidCB/Staco"""
statusOn=True
allowedTypes=['bool']
StoredValue=True
class doMuonMSTagMon(JobProperty):
"""Run DQA on the tagged muons MuTag/MuGirl/MuTagIMO"""
statusOn=True
allowedTypes=['bool']
StoredValue=True
class doMuonCaloTagMon(JobProperty):
"""Run DQA on the calo tagged muons MuonCaloLR/MuonCaloTag"""
statusOn=True
allowedTypes=['bool']
StoredValue=True
class doMuonEfficiency(JobProperty):
"""Run DQA on the muon efficiency"""
statusOn=True
allowedTypes=['bool']
StoredValue=True
class MuonCombinedDQA(JobPropertyContainer):
"""The flags to steer muon combined reconstruction"""
def setDefaults(self):
global beamFlags
if beamFlags.beamType()=='cosmics' or beamFlags.beamType()=='singlebeam':
self.doMuonStandaloneMon = True
self.doMuonCombinedMon = True
self.doMuonMSTagMon = True
self.doMuonCaloTagMon = True
self.doMuonEfficiency = True
else: # collisions
self.doMuonStandaloneMon = True
self.doMuonCombinedMon = True
self.doMuonMSTagMon = True
self.doMuonCaloTagMon = True
self.doMuonEfficiency = True
def sync_Flags(self):
"""Synchronise all flags to make them consistent"""
jobproperties.add_Container(MuonCombinedDQA)
muonCombinedDQAFlags = jobproperties.MuonCombinedDQA
# fill properties in container and store for later use (due to lack of iterator)
_propertiesList = fillJobPropertyContainer(muonCombinedDQAFlags,__name__)
muonCombinedDQAFlags.setDefaults()
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
#
# JobOptions to configure MuonCombined DQA monitoring
# MuonCombinedMonManager must be set up before calling these jobOptions
#
from AthenaCommon.AlgSequence import AlgSequence
from AthenaCommon.AppMgr import ToolSvc,ServiceMgr
from AthenaCommon import CfgMgr
from AthenaCommon.BeamFlags import jobproperties
beamFlags = jobproperties.Beam
from MuonCombinedDQA.MuonCombinedDQAFlags import muonCombinedDQAFlags
include("MuonCombinedTrackMon/MuonCombinedTrackValidation_jobOptions.py")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment