コード例 #1
0
#SCTMonMan.DataType= "monteCarlo"
#SCTMonMan.Environment         = "user"
#SCTMonMan.ManualRunLBSetup    = True
#SCTMonMan.Run                 = 1
#SCTMonMan.LumiBlock           = 1

#Changed at the insistence of [email protected]
#from DataQualityTools.DQMonFlags import DQMonFlags
from AthenaMonitoring.DQMonFlags import DQMonFlags

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

#Currently this takes the latest/default tag of the db
#Check with Shaun as to which one we need for first data, and for M6.
#twiki somewhere ?
#include("SCT_Monitoring/SCT_Monitoring_ConditionsAccess.py")
########################################################################
# Conditions access
# These lines were previously in SCT_Monitoring_ConditionsAccess.py
########################################################################

from IOVDbSvc.CondDB import conddb

if not conddb.folderRequested('/SCT/DAQ/Configuration/Chip'):
    conddb.addFolder("SCT", "/SCT/DAQ/Configuration/Chip")
コード例 #2
0
    ToolSvc += InDetAlignMonSivsTRT
    if (InDetFlags.doPrintConfigurables()):
        print InDetAlignMonSivsTRT

## 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]
コード例 #3
0
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:

    TileCellMon = CfgMgr.TileCellMonTool(name                 = 'TileCellMon'
コード例 #4
0
        #svcMgr.DSConfigSvc.readLVL1BG=True

        from TrigT1Muctpi.TrigT1MuctpiConfig import L1Muctpi_on_Data
        topSequence += L1Muctpi_on_Data()

        from TrigT1CTMonitoring.TrigT1CTMonitoringConf import TrigT1CTMonitoring__DeriveSimulationInputs as DeriveSimulationInputs
        topSequence += DeriveSimulationInputs(do_MuCTPI_input=True,
                                              do_L1Calo_sim=False)

        from TrigT1CTP.TrigT1CTPConfig import CTPSimulationOnData
        topSequence += CTPSimulationOnData("CTPSimulation")

        # configure simulation histogram output directory
        from AthenaMonitoring.DQMonFlags import DQMonFlags
        histbase = "/" + DQMonFlags.monManFileKey() + "/"
        if DQMonFlags.monManRun():
            from RecExConfig.AutoConfiguration import GetRunNumber
            histbase += "run_%i/L1" % GetRunNumber()
        else:
            histbase += "L1Simulation"
        try:
            topSequence.CTPSimulation.HistPath = histbase
        except AttributeError as ex:
            printfunc(ex, " ignore for now")
            import traceback
            traceback.print_exc()

    ## add an AthenaMonManager algorithm to the list of algorithms to be run
    monMan = AthenaMonManager(
        name="CTMonManager",
        FileKey=DQMonFlags.monManFileKey(),
コード例 #5
0
#                                                  #
# InDetGlobalManager top algorithm                 #
#                                                  #
####################################################
if InDetFlags.doMonitoringGlobal() or InDetFlags.doMonitoringPrimaryVertexingEnhanced():

  from AthenaMonitoring.DQMonFlags import DQMonFlags
  from InDetGlobalMonitoring.InDetGlobalMonitoringConf import InDetGlobalManager
  InDetGlobalManager=InDetGlobalManager( name                = "InDetGlobalManager",
                                        TRT_DriftCircleName = InDetKeys.TRT_DriftCircles(),
                                        FileKey             = DQMonFlags.monManFileKey(),
                                        ManualDataTypeSetup = DQMonFlags.monManManualDataTypeSetup(),
                                        ManualRunLBSetup    = DQMonFlags.monManManualRunLBSetup(),
                                        DataType            = DQMonFlags.monManDataType(),
                                        Environment         = DQMonFlags.monManEnvironment(),
                                        Run                 = DQMonFlags.monManRun(),
                                        LumiBlock           = DQMonFlags.monManLumiBlock(),
                                        doTopBottom         =  True,
                                        AthenaMonTools      = []) # these are set at the end

if InDetFlags.doMonitoringGlobal():
  #######################################################
  #                                                     #
  # LVL1 & BC ID monitoring - only for real data        #
  #                                                     #
  #######################################################
  from InDetGlobalMonitoring.InDetGlobalMonitoringConf import InDetGlobalSynchMonTool
  InDetGlobalSynchMonTool = InDetGlobalSynchMonTool( name          = "InDetGlobalSynchMonTool",
                                                    histoPathBase = "/GLOBAL",
                                                    checkRate     = 2000)