예제 #1
0
THistSvc = Service("THistSvc")

## The string "TestMon" in the argument below is the 'FileKey'
## used by Athena to access the output file internally
THistSvc.Output += ["egammaMon DATAFILE='egammaMon.root' OPT='RECREATE'"]

## AthenaMonManager is the Algorithm that manages many classes inheriting
## from ManagedMonitorToolBase
monMan = topSequence.PrimaryManager

## Add all the ManagedMonitorToolBase objects
## FIXME: should be done through ToolHandleArray
from egammaPerformance.egammaPerformanceConf import photonMonTool
phMonTool = photonMonTool(name="phMonTool",
                          PhotonContainer="PhotonAODCollection",
                          EMShowerContainer="",
                          EMConvertContainer="",
                          Photon_Trigger_Items=["EF_g10", "EF_g20"],
                          Photon_Selection_Items=["all", "tight"])

ToolSvc += phMonTool
monMan.AthenaMonTools += ["photonMonTool/phMonTool"]

from egammaPerformance.egammaPerformanceConf import electronMonTool
elMonTool = electronMonTool(
    name="elMonTool",
    ElectronContainer="ElectronAODCollection",
    EMTrackMatchContainer="",
    EMShowerContainer="",
    EMConvertContainer="",
    Electron_Trigger_Items=["EF_e10_medium"],
    Electron_Selection_Items=["all", "loose", "medium", "tight"])
예제 #2
0
            ZeeTrigItems = ["EF_e24vh_medium1"]
            JPsiTrigItems = ["EF_2e12Tvh_loose1"]
            WenutriggerXselection = [
                "EF_e24vh_medium1", "medium", "tight", "tight", "loose",
                "loose"
            ]
            MyTrigDecisionTool = "Trig::TrigDecisionTool/TrigDecisionTool"

        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 += [monbadlb]

            if jobproperties.Beam.beamType() == 'collisions' and hasattr(
                    ToolSvc, 'DQFilledBunchFilterTool'):
                phMonTool.FilterTools.append(monFilledBunchFilterTool)
            ToolSvc += phMonTool
            monManEgamma.AthenaMonTools += ["photonMonTool/phMonTool"]

        if (egammaMonitorElectrons):
예제 #3
0
        if (MyDoTrigger):
            photonTrigItems += egammaConf.primary_double_pho
            mySingleElectronTrigger += egammaConf.primary_single_ele
            myDiElectronTrigger += egammaConf.primary_double_ele
            JPsiTrigItems += egammaConf.monitoring_Jpsiee
            FrwdETrigItems += egammaConf.primary_single_ele
            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,