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
#====================================================================== # 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 DQMonFlags.doMuonTrackMon = True
from AthenaMonitoring.AthenaMonitoringConf import AthenaMonManager 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
#-------------------------------------------------------------- # 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]
## add an AthenaMonManager algorithm to the list of algorithms to be ran #from DataQualityTools.DQMonFlags import DQMonFlags from AthenaMonitoring.DQMonFlags import DQMonFlags from AthenaMonitoring.AthenaMonitoringConf import AthenaMonManager InDetAlignMonManager = AthenaMonManager( name="InDetAlignMonManager", FileKey=DQMonFlags.monManFileKey(), ManualDataTypeSetup=DQMonFlags.monManManualDataTypeSetup(), DataType=DQMonFlags.monManDataType(), Environment=DQMonFlags.monManEnvironment(), ManualRunLBSetup=DQMonFlags.monManManualRunLBSetup(), Run=DQMonFlags.monManRun(), LumiBlock=DQMonFlags.monManLumiBlock()) if jobproperties.Beam.beamType() == 'cosmics': InDetAlignMonManager.DataType = "cosmics" for i in range(5): InDetAlignMonManager.AthenaMonTools += [m_trackSegmentsUpLow[i]] for i in range(2): InDetAlignMonManager.AthenaMonTools += [m_trackSegments_Sub[i]] elif jobproperties.Beam.beamType() == 'collisions': InDetAlignMonManager.AthenaMonTools += [InDetAlignMonSivsTRT_noTrig] InDetAlignMonManager.AthenaMonTools += [InDetAlignMonBeamSpot_noTrig] InDetAlignMonManager.AthenaMonTools += [InDetAlignMonPVBiases_noTrig] InDetAlignMonManager.AthenaMonTools += [InDetAlignMonResiduals_noTrig] InDetAlignMonManager.AthenaMonTools += [InDetAlignMonEfficiencies_noTrig] InDetAlignMonManager.AthenaMonTools += [InDetAlignMonGenericTracks_noTrig]
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
# Set up the reading of the input ESD or xAOD: FNAME = 'root://eosatlas//eos/atlas/atlastier0/rucio/data15_13TeV/express_express/00267638/data15_13TeV.00267638.express_express.recon.ESD.x342/data15_13TeV.00267638.express_express.recon.ESD.x342._lb0523._SFO-3._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.enableLumiAccess = True DQMonFlags.doMuonRawMon = False DQMonFlags.doMuonSegmentMon = False DQMonFlags.doMuonTrackMon = True DQMonFlags.doMuonAlignMon = False