ATLAS Offline Software
Loading...
Searching...
No Matches
plugin_Egamma1BDT_Online.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 Algortihm to build a LArStrip Neighborhood container
15from GlobalSimulation.Egamma1_OnlineMapNbhoodConfig import Egamma1_OnlineMapNbhoodCfg
16cfg.merge(Egamma1_OnlineMapNbhoodCfg(flags,
17 OutputLevel=DEBUG,
18 dump=True,
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
25# add in the EgammaBDT Algorithm to be run
26from GlobalSimulation.GlobalSimAlgCfg_Egamma1BDT import GlobalSimulationAlgCfg
27cfg.merge(GlobalSimulationAlgCfg(flags,
28 OutputLevel=DEBUG,
29 dump=False))
30
31from OutputStreamAthenaPool.OutputStreamConfig import addToAOD
32cfg.merge(addToAOD(flags,["std::vector<float>#eGamma1BDT"]))
33cfg.merge(addToAOD(flags,["std::vector<float>#eFEXeta"]))
34cfg.merge(addToAOD(flags,["std::vector<float>#eFEXphi"]))
35cfg.merge(addToAOD(flags,["std::vector<float>#FailedeFEXeta"]))
36cfg.merge(addToAOD(flags,["std::vector<float>#FailedeFEXphi"]))