9 def fastElectronFexAlgCfg(flags, trigEMClusterName, trackParticlesName, electronsName, name="EgammaFastElectronFex_1", rois="EMRoIs"):
13 from TrackToCalo.TrackToCaloConfig
import EMParticleCaloExtensionToolCfg
15 extTool = acc.popToolsAndMerge(extAcc)
17 efex = CompFactory.TrigEgammaFastElectronReAlgo( name,
20 TrackPtHighEt=2.0 * GeV,
22 CaloTrackdEtaNoExtrap=0.5,
23 CaloTrackdEtaNoExtrapHighEt=0.1,
26 CaloTrackdEoverPLow=0.0,
27 CaloTrackdEoverPHigh=999.0,
28 RCalBarrelFace=1470.0*mm,
29 ZCalEndcapFace=3800.0*mm,
30 ParticleCaloExtensionTool=extTool,
31 ElectronsName= electronsName,
33 TrackParticlesName= trackParticlesName,
34 TrigEMClusterName= trigEMClusterName,
35 DummyElectronsName=
"HLT_FastDummyElectrons"
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
49 acc.addEventAlgo(efex)