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
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
DQMonFlags.doMuonTrackMon = True
DQMonFlags.doMuonAlignMon = False
DQMonFlags.doMuonTrkPhysMon = False
monMan = AthenaMonManager("PixelMonManager")

from PixelMonitoring.PixelMonitoringConf import *
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
Beispiel #4
0
# Load ReadCalibData Alg and Service
#--------------------------------------------------------------
from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence()

from InDetPhysValMonitoring.InDetPhysValMonitoringConf import HistogramDefinitionSvc
ToolSvc = ServiceMgr.ToolSvc
ServiceMgr+=HistogramDefinitionSvc()
ServiceMgr.HistogramDefinitionSvc.DefinitionSource="../share/testHDef.xml"
ServiceMgr.HistogramDefinitionSvc.DefinitionFormat="text/xml"

from AthenaMonitoring.AthenaMonitoringConf import AthenaMonManager
monMan = AthenaMonManager( "PhysValMonManager" )
monMan.ManualDataTypeSetup = True
monMan.DataType            = "monteCarlo"
monMan.Environment         = "altprod"
monMan.ManualRunLBSetup    = True
monMan.Run                 = 1
monMan.LumiBlock           = 1
monMan.FileKey = "TestPlots"
topSequence += monMan



from InDetPhysValMonitoring.InDetPhysValMonitoringConf import ToolTestMonitoringPlots
tool1 = ToolTestMonitoringPlots()

ToolSvc += tool1
monMan.AthenaMonTools += [tool1]

Beispiel #5
0
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

if tileESDMon: