Example #1
0
def LArCellMonConfigOld(inputFlags):
    from AthenaMonitoring.AthMonitorCfgHelper import AthMonitorCfgHelperOld
    from CaloMonitoring.CaloMonitoringConf import  LArCellMonAlg

    helper = AthMonitorCfgHelperOld(inputFlags, 'LArCellMonAlgOldCfg')
    from AthenaCommon.BeamFlags import jobproperties
    if jobproperties.Beam.beamType() == 'cosmics':
       isCosmics=True
    else:
       isCosmics=False

    from AthenaCommon.GlobalFlags  import globalflags
    if globalflags.DataSource() == 'data':
       isMC=False
    else:
       isMC=True

    if not isMC:
        from LumiBlockComps.LBDurationCondAlgDefault import LBDurationCondAlgDefault
        LBDurationCondAlgDefault()
        from LumiBlockComps.TrigLiveFractionCondAlgDefault import TrigLiveFractionCondAlgDefault
        TrigLiveFractionCondAlgDefault()
        from LumiBlockComps.LuminosityCondAlgDefault import LuminosityCondAlgDefault
        LuminosityCondAlgDefault()

    from CaloTools.CaloNoiseCondAlg import CaloNoiseCondAlg
    CaloNoiseCondAlg()

    LArCellMonConfigCore(helper, LArCellMonAlg,inputFlags,isCosmics, isMC)

    from AthenaMonitoring.AtlasReadyFilterTool import GetAtlasReadyFilterTool
    helper.monSeq.LArCellMonAlg.ReadyFilterTool = GetAtlasReadyFilterTool()
    from AthenaMonitoring.BadLBFilterTool import GetLArBadLBFilterTool
    helper.monSeq.LArCellMonAlg.BadLBTool = GetLArBadLBFilterTool()

    return helper.result()
Example #2
0
# Otherwise run for all events only
for trigger in triggerList:

    if trigger != "":
        triggerName = trigger  # this makes sure we have for each trigger a separate folder!
    else:
        triggerName = ""

    # Standard Monitoring
    metMonTool = METMonTool(name="METMonTool_" + triggerName)
    metMonTool.NameSuffix = triggerName
    metMonTool.TriggerChain = trigger

    #New AthenaMonitoring filter tool to be added to filter out events in non-filled BCIDs
    #    metMonTool.FilterTools += [GetFilledBunchFilterTool()]
    metMonTool.FilterTools += [GetLArBadLBFilterTool()]

    if trigger != "":
        metMonTool.TrigDecisionTool = monTrigDecTool

    #Uncomment when switching to AOD
    #metMonTool.eleColKey = "ElectronAODCollection"
    #Uncomment to avoid the jet cleaning
    #metMonTool.doJetcleaning = False

    #ToolSvc += metMonTool
    monManETmiss.AthenaMonTools += [metMonTool]

    # Standard Monitoring cut80
    #    metMonTool = METMonTool(name = "METMonTool_cut80_"+triggerName)
    #    metMonTool.NameSuffix   = "cut80"
Example #3
0
if DQMonFlags.monManEnvironment() == 'online':
    tmp_useLArNoisyAlg = FALSE
else:
    tmp_useLArNoisyAlg = TRUE

tmp_useTrigger = TRUE
if 'DQMonFlags' in dir():
    if not DQMonFlags.useTrigger:
        tmp_useTrigger = FALSE

CaloTowerMonNoTA = CaloTowerVecMon(
    name="CaloTowerMonNoTA",
    CaloTowerContainer="CombinedTower",
    TimeGran=tmp_timeGran,
    useBadLBTool=tmp_useBadLBTool,
    BadLBTool=GetLArBadLBFilterTool(),
    useReadyFilterTool=tmp_useReadyFilterTool,
    ReadyFilterTool=GetAtlasReadyFilterTool(),
    useLArNoisyAlg=tmp_useLArNoisyAlg,
    useTrigger=tmp_useTrigger,
    TriggerNames1="EF_mbZdc_a_c_L1VTE50_trk",
    TriggerNames2="EF_L1TE50_NoAlg",
    TriggerNames3="EF_mbZdc_a_c_eff",
    NoOfThreshTests=6,
    noEThresh=-99999.0,
    lowEThresh=0.0,
    lowmedEThresh=5.0,
    medEThresh=10,
    medhiEThresh=15.0,
    hiEThresh=20.0,
    fill_TransverseE=True,
Example #4
0
    from AthenaMonitoring.AthenaMonitoringConf import AthenaMonManager
    from AthenaMonitoring.DQMonFlags import DQMonFlags

    try:

        monManEgamma = AthenaMonManager(
            name="EgammaMonManager",
            FileKey=DQMonFlags.monManFileKey(),
            Environment=DQMonFlags.monManEnvironment(),
            ManualDataTypeSetup=DQMonFlags.monManManualDataTypeSetup(),
            DataType=DQMonFlags.monManDataType())
        topSequence += monManEgamma

        from AthenaMonitoring.BadLBFilterTool import GetLArBadLBFilterTool
        monbadlb = GetLArBadLBFilterTool()

        egammaMonOutputLevel = INFO
        ### Setup which objects will be monitored
        if not ('egammaMonitorPhotons' in dir()):
            egammaMonitorPhotons = True

        if not ('egammaMonitorElectrons' in dir()):
            egammaMonitorElectrons = True

        if not ('egammaMonitorFwdEg' in dir()):
            egammaMonitorFwdEg = True

        if not ('egammaMonitorSoftEg' in dir()):
            egammaMonitorSoftEg = True
Example #5
0
            ZeeTrigItems += egammaConf.monitoring_Zee 
            MyTrigDecisionTool = monTrigDecTool
            

        if(egammaMonitorPhotons):
            from egammaPerformance.egammaPerformanceConf import photonMonTool
            phMonTool = photonMonTool(name= "phMonTool",
                                      EgTrigDecisionTool = MyTrigDecisionTool,
                                      EgUseTrigger = MyDoTrigger,
                                      EgTrigger = photonTrigItems,
                                      EgGroupExtension = "",
                                      PhotonContainer = "Photons",
                                      OutputLevel = egammaMonOutputLevel,
                                      )
            
            phMonTool.FilterTools += [ GetLArBadLBFilterTool() ]

            if jobproperties.Beam.beamType()=='collisions':
                phMonTool.FilterTools += [GetFilledBunchFilterTool()]
            monManEgamma.AthenaMonTools += [ phMonTool ]

            if DQMonFlags.useTrigger():
                phMonToolWithTrigger = photonMonTool(name= "phMonToolWithTrigger",
                                                     EgTrigDecisionTool = BypassMyTrigDecisionTool,
                                                     EgUseTrigger = True,
                                                     EgTrigger = BypassphotonTrigItems,
                                                     EgGroupExtension = "WithTrigger",
                                                     PhotonContainer = "Photons",
                                                     OutputLevel = egammaMonOutputLevel,
                                                     )
            
Example #6
0
        commonMonitoringTool(
            "AntiKt4LCTopoJets"
        ),  # if truth is present, we could add : , "AntiKt4TruthJets" ,                                                  
        commonMonitoringTool("AntiKt4EMTopoJets"),
        commonMonitoringTool("AntiKt10LCTopoJets"),
        commonMonitoringTool("AntiKt4EMPFlowJets"),
    ],
    IntervalType=6,
)  # 6 is 'Interval_t::run' interval
if monitorTracks:
    athenaMonTool.HistoTools += [commonMonitoringTool("AntiKt3PV0TrackJets")]
#if jetFlags.useTracks:
#    athenaMonTool.HistoTools += [ commonMonitoringTool( "AntiKt3PV0TrackJets" ) ]

#cbg
athenaMonTool.FilterTools += [GetLArBadLBFilterTool()]

#ToolSvc += athenaMonTool

athenaMonTool_LB = JetMonitoringTool(
    "JetMonitoring_LB",
    HistoTools=[commonMonitoringTool_LB("AntiKt4EMTopoJets")],
    IntervalType=2)

#cbg
athenaMonTool_LB.FilterTools += [GetLArBadLBFilterTool()]

#ToolSvc += athenaMonTool_LB

from AthenaMonitoring.DQMonFlags import DQMonFlags
if DQMonFlags.useTrigger():
Example #7
0
trackSelectorTool = Analysis__TrackSelector (**options)
ToolSvc += trackSelectorTool
#trackSelectorTool.OutputLevel = VERBOSE

from JetTagMonitoring.JetTagMonitoringConf import JetTagMonitoring
jetTagMonTool = JetTagMonitoring (
    name           = "jetTagMonTool",
    )
# remove events with non-collision BCIDs from your monitoring tools 
# see https://indico.cern.ch/getFile.py/access?contribId=1&resId=1&materialId=slides&confId=135968
from AthenaMonitoring.FilledBunchFilterTool import GetFilledBunchFilterTool
jetTagMonTool.FilterTools += [ GetFilledBunchFilterTool() ]

# remove events with intolerable LAr defects
from AthenaMonitoring.BadLBFilterTool import GetLArBadLBFilterTool
jetTagMonTool.FilterTools += [ GetLArBadLBFilterTool() ] 

jetTagMonTool.OutputLevel = INFO
jetTagMonTool.JetContainer = "AntiKt4EMTopoJets"
jetTagMonTool.TrackParticleContainer = "InDetTrackParticles"
jetTagMonTool.PrimaryVertexContainer = "PrimaryVertices"
jetTagMonTool.ElectronContainer = "Electrons"
jetTagMonTool.MuonContainer = "Muons"

jetTagMonTool.DQcuts = True
jetTagMonTool.PriVtxTrkMinCut = 4
jetTagMonTool.D0_min_cuts = 0
jetTagMonTool.D0_max_cuts = 1
jetTagMonTool.JetPt_cuts = 15
jetTagMonTool.JetEta_cuts = 2.5
jetTagMonTool.nTrk_cuts = 1
Example #8
0
        if (egammaMonitorPhotons):
            from egammaPerformance.egammaPerformanceConf import photonMonTool
            phMonTool = photonMonTool(
                name="phMonTool",
                PhotonContainer="PhotonAODCollection",
                EMShowerContainer="",
                EMConvertContainer="",
                Photon_Trigger_Items=photonTrigItems,
                Photon_Selection_Items=["all", "loose", "tight"],
                Photon_Divison_Items=["PHOB", "PHOC", "PHOE"],
                OutputLevel=egammaMonOutputLevel,
                TrigDecisionTool=MyTrigDecisionTool,
                UseTrigger=DQMonFlags.useTrigger())

            phMonTool.FilterTools += [GetLArBadLBFilterTool()]

            if jobproperties.Beam.beamType() == 'collisions':
                phMonTool.FilterTools += [GetFilledBunchFilterTool()]
            monManEgamma.AthenaMonTools += [phMonTool]

        if (egammaMonitorElectrons):
            from egammaPerformance.egammaPerformanceConf import electronMonTool
            elMonTool = electronMonTool(
                name="elMonTool",
                ElectronContainer="ElectronAODCollection",
                EMTrackMatchContainer="",
                EMShowerContainer="",
                EMConvertContainer="",
                Electron_Trigger_Items=electronTrigItems,
                Electron_Selection_Items=["all", "loose", "medium", "tight"],