示例#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
PixelMainsMon = PixelMainMon()
ToolSvc += PixelMainsMon
monMan.AthenaMonTools += [PixelMainsMon]
print PixelMainsMon

## FileKey must match that given to THistSvc
monMan.FileKey = "GLOBAL"

## 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

## Set pixel monitoring parameters
##Flags for data container types
PixelMainsMon.doRDO = True
PixelMainsMon.doErrors = True
PixelMainsMon.doSpacePoint = True
PixelMainsMon.doCluster = True
PixelMainsMon.doTrack = False

##Flags for environment types
PixelMainsMon.doOffline = True

##Names of storegate containers
PixelMainsMon.RDOName = "PixelRDOs"
PixelMainsMon.RODErrorName = "Pixel_Error_Summary"
示例#3
0
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

if tileESDMon:

    TileCellMon = CfgMgr.TileCellMonTool(name                 = 'TileCellMon'
                                         , OutputLevel        = INFO