ATLAS Offline Software
TrigEgammaFastElectronConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentFactory import CompFactory
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 from AthenaCommon.SystemOfUnits import GeV, mm
6 from AthenaMonitoringKernel.GenericMonitoringTool import GenericMonitoringTool
7 
8 
9 def fastElectronFexAlgCfg(flags, trigEMClusterName, trackParticlesName, electronsName, name="EgammaFastElectronFex_1", rois="EMRoIs"):
10 
11  acc = ComponentAccumulator()
12 
13  from TrackToCalo.TrackToCaloConfig import EMParticleCaloExtensionToolCfg
14  extAcc = EMParticleCaloExtensionToolCfg(flags)
15  extTool = acc.popToolsAndMerge(extAcc)
16 
17  efex = CompFactory.TrigEgammaFastElectronReAlgo( name,
18  AcceptAll=False,
19  TrackPt=1.0 * GeV,
20  TrackPtHighEt=2.0 * GeV,
21  ClusEt=20.0 * GeV,
22  CaloTrackdEtaNoExtrap=0.5,
23  CaloTrackdEtaNoExtrapHighEt=0.1,
24  CaloTrackdETA=0.2,
25  CaloTrackdPHI=0.3,
26  CaloTrackdEoverPLow=0.0,
27  CaloTrackdEoverPHigh=999.0,
28  RCalBarrelFace=1470.0*mm,
29  ZCalEndcapFace=3800.0*mm,
30  ParticleCaloExtensionTool=extTool,
31  ElectronsName= electronsName,
32  RoIs=rois,
33  TrackParticlesName= trackParticlesName,
34  TrigEMClusterName= trigEMClusterName,
35  DummyElectronsName="HLT_FastDummyElectrons"
36  )
37 
38  monTool = GenericMonitoringTool(flags, 'MonTool')
39  monTool.defineHistogram('CaloTrackdEta', path='EXPERT', type='TH1F', title="FastElectron Hypo #Delta #eta between cluster and track;#Delta #eta;Nevents", xbins=80, xmin=-0.4, xmax=0.4)
40  monTool.defineHistogram('CaloTrackdPhi', path='EXPERT', type='TH1F', title="FastElectron Hypo #Delta #phi between cluster and track;#Delta #phi;Nevents", xbins=80, xmin=-0.4, xmax=0.4)
41  monTool.defineHistogram('CaloTrackEoverP', path='EXPERT', type='TH1F', title="FastElectron Hypo E/p;E/p;Nevents", xbins=120, xmin=0, xmax=12)
42  monTool.defineHistogram('PtTrack', path='EXPERT', type='TH1F', title="FastElectron Hypo p_{T}^{track} [MeV];p_{T}^{track} [MeV];Nevents", xbins=50, xmin=0, xmax=100000)
43  monTool.defineHistogram('PtCalo', path='EXPERT', type='TH1F', title="FastElectron Hypo p_{T}^{calo} [MeV];p_{T}^{calo} [MeV];Nevents", xbins=50, xmin=0, xmax=100000)
44  monTool.defineHistogram('CaloEta',path='EXPERT', type='TH1F', title="FastElectron Hypo #eta^{calo} ; #eta^{calo};Nevents", xbins=200, xmin=-2.5, xmax=2.5)
45  monTool.defineHistogram('CaloPhi', path='EXPERT', type='TH1F', title="FastElectron Hypo #phi^{calo} ; #phi^{calo};Nevents", xbins=320, xmin=-3.2, xmax=3.2)
46  monTool.defineHistogram('CaloTrackdEtaNoExtrapMon', path='EXPERT',type='TH1F', title="FastElectron Fex #Delta #eta between cluster and track;#Delta #eta;Nevents", xbins=80, xmin=-0.4, xmax=0.4)
47  efex.MonTool = monTool
48 
49  acc.addEventAlgo(efex)
50  return acc
51 
52 
SystemOfUnits
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TrigEgammaFastElectronConfig.fastElectronFexAlgCfg
def fastElectronFexAlgCfg(flags, trigEMClusterName, trackParticlesName, electronsName, name="EgammaFastElectronFex_1", rois="EMRoIs")
Definition: TrigEgammaFastElectronConfig.py:9
GenericMonitoringTool
Definition: GenericMonitoringTool.py:1
TrackToCaloConfig.EMParticleCaloExtensionToolCfg
def EMParticleCaloExtensionToolCfg(flags, name='EMParticleCaloExtensionTool', **kwargs)
Definition: TrackToCaloConfig.py:30