ATLAS Offline Software
Loading...
Searching...
No Matches
plugin_Egamma1BDT_Multi.py
Go to the documentation of this file.
1# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2from AthenaCommon.Constants import DEBUG
3
4# Add algorithm to prepare LAr cells for Global
5from GlobalSimulation.LArCellPreparationAlgConfig import LArCellPreparationAlgCfg
6gblLArCellContainerKey = "GlobalLArCells"
7cfg.merge(LArCellPreparationAlgCfg(flags,
8 numberOfEnergyBits = 6,
9 valueLeastSignificantBit = 40,
10 valueGainFactor = 4,
11 GlobalLArCellsKey = gblLArCellContainerKey,
12 OutputLevel=DEBUG))
13
14# add in the Algorithm to build a LArStrip Neighborhood container
15from GlobalSimulation.Egamma1_OnlineMapNbhoodConfig import Egamma1_OnlineMapNbhoodCfg
16cfg.merge(Egamma1_OnlineMapNbhoodCfg(flags,
17 OutputLevel=DEBUG,
18 dump=False,
19 dumpTerse=False))
20
21cfg.getEventAlgo("Egamma1_OnlineMapNbhood").roiAlgTool.etMin = 5000.
22cfg.getEventAlgo("Egamma1_OnlineMapNbhood").roiAlgTool.etaMin = 0.0
23cfg.getEventAlgo("Egamma1_OnlineMapNbhood").roiAlgTool.etaMax = 5.0
24
25alg = CompFactory.GlobalSim.GlobalSimulationAlg('GlobalSimulationAlg')
26
27# add in the EgammaBDT Algorithm to be run
28bdtTool = CompFactory.GlobalSim.Egamma1BDTAlgTool('Egamma1BDTAlgTool')
29bdtTool.enableDump = False
30bdtTool.OutputLevel = DEBUG
31
32from OutputStreamAthenaPool.OutputStreamConfig import addToAOD
33cfg.merge(addToAOD(flags,["std::vector<float>#eGamma1BDT"]))
34cfg.merge(addToAOD(flags,["std::vector<float>#eFEXeta"]))
35cfg.merge(addToAOD(flags,["std::vector<float>#eFEXphi"]))
36cfg.merge(addToAOD(flags,["std::vector<float>#FailedeFEXeta"]))
37cfg.merge(addToAOD(flags,["std::vector<float>#FailedeFEXphi"]))
38
39alg.globalsim_algs = [bdtTool]
40
41# add in the EgammaBDTMultiplicity Algorithm to be run
42tool = CompFactory.GlobalSim.eEmEg1BDTMultAlgTool('eEmEg1BDTMultAlgTool')
43tool.Eg1BDT = '0'
44tool.Eg1BDT_op = '>='
45tool.enable_dump=True
46tool.OutputLevel = DEBUG
47
48alg.TIPwriters = [tool]
49
50cfg.addEventAlgo(alg)