Beispiel #1
0
	def __init__(self, name):
		mlog = logging.getLogger(name+'::__init__')
		mlog.info("entering")
			
		egammaMonTool.__init__(self,name)
		_name = name	

		try:
			## add an AthenaMonManager algorithm to the list of algorithms to be ran
			from AthenaMonitoring.AthenaMonitoringConf import AthenaMonManager
			monMan = AthenaMonManager( "MonManager_%s" % name )

			monMan.AthenaMonTools += [ "egammaMonTool/'%s'" % name ]

			# FileKey must match that given to THistSvc
			monMan.FileKey = "'%s'" % name

			# Set global monitoring parameters: see the AthenaMonManager class
			# in the Control/AthenaMonitoring package
			monMan.ManualDataTypeSetup = True
			monMan.DataType            = "monteCarlo"
			monMan.Environment         = "user"
			monMan.ManualRunLBSetup    = True
			monMan.Run                 = 1
			monMan.LumiBlock           = 1

		except Exception:
			mlog.error("could not initialize egammaMonTool/%s" % name)
			print(traceback.format_exc())
			return False
		
		# get a handle on the top sequence of algorithms
		from AthenaCommon.AlgSequence import AlgSequence
		topSequence = AlgSequence()
		topSequence += monMan
# Standalone JobOptions to run MuonDQAMonitoring on ESD/AOD
#======================================================================

# Set up the reading of the input ESD or xAOD:
FNAME = '/afs/cern.ch/user/g/gcree/work/public/MuonData/data15_cos.00252404.physics_IDCosmic.merge.AOD.x294_m1374/data15_cos.00252404.physics_IDCosmic.merge.AOD.x294_m1374._lb0002-lb0006._0001.1'
include("AthenaPython/iread_file.py")
# import AthenaPoolCnvSvc.ReadAthenaPool
# ServiceMgr.EventSelector.InputCollections = [ FNAME ]

# Access the algorithm sequence:
from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence()

from AthenaMonitoring.AthenaMonitoringConf import AthenaMonManager
monMan = AthenaMonManager("MyMuonMonManager")
monMan.ManualDataTypeSetup = True
monMan.DataType = "cosmics"
#monMan.DataType            = "monteCarlo"
#monMan.DataType            = "collisions"
monMan.Environment = "tier0ESD"
# monMan.ManualRunLBSetup    = True
# monMan.Run                 = 1
# monMan.LumiBlock           = 1
monMan.FileKey = "MuonMon"
topSequence += monMan

#from MuonRecExample.MuonRecFlags import muonRecFlags

from AthenaMonitoring.DQMonFlags import DQMonFlags
DQMonFlags.doMuonRawMon = False
DQMonFlags.doMuonSegmentMon = False
Beispiel #3
0
from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence()

from AthenaMonitoring.DQMonFlags import DQMonFlags

if not 'rec' in dir():
    from RecExConfig.RecFlags import rec

from AthenaMonitoring.AthenaMonitoringConf import AthenaMonManager
ManagedAthenaTileMon = AthenaMonManager( "ManagedAthenaTileMon" ) #topSequence.ManagedAthenaTileMon

from AthenaCommon.AppMgr import ServiceMgr

ManagedAthenaTileMon.FileKey = DQMonFlags.monManFileKey()
ManagedAthenaTileMon.ManualDataTypeSetup = DQMonFlags.monManManualDataTypeSetup()
ManagedAthenaTileMon.DataType            = DQMonFlags.monManDataType()
ManagedAthenaTileMon.Environment         = DQMonFlags.monManEnvironment()
ManagedAthenaTileMon.ManualRunLBSetup    = DQMonFlags.monManManualRunLBSetup()
ManagedAthenaTileMon.Run                 = DQMonFlags.monManRun()
ManagedAthenaTileMon.LumiBlock           = DQMonFlags.monManLumiBlock()

if DQMonFlags.monManEnvironment() == 'tier0Raw':
    tileRawMon=True
    tileESDMon=False
elif DQMonFlags.monManEnvironment() == 'tier0ESD':
    tileRawMon=False
    tileESDMon=True
else: # it should be 'tier0'
    tileRawMon=True
    tileESDMon=True