13 from CaloTools.CaloNoiseCondAlgConfig
import CaloNoiseCondAlgCfg
19 import tauRec.TauToolHolder
as tauTools
22 tools.append( result.popToolsAndMerge(tauTools.JetSeedBuilderCfg(flags)) )
25 if getattr(flags.Tau.ActiveConfig,
'inTauEleRM',
False):
26 tools.append( result.popToolsAndMerge(tauTools.TauEleOverlapChecker(flags)) )
29 if flags.Tau.isStandalone
or flags.Tracking.doVertexFinding:
30 tools.append( result.popToolsAndMerge(tauTools.TauVertexFinderCfg(flags)) )
32 tools.append( result.popToolsAndMerge(tauTools.TauAxisCfg(flags)) )
33 tools.append( result.popToolsAndMerge(tauTools.TauTrackFinderCfg(flags)) )
35 tools.append( result.popToolsAndMerge(tauTools.TauClusterFinderCfg(flags)) )
36 tools.append( result.popToolsAndMerge(tauTools.TauVertexedClusterDecoratorCfg(flags)) )
38 if flags.Beam.Type
is not BeamType.Cosmics:
39 if flags.Tau.doRNNTrackClass:
40 tools.append( result.popToolsAndMerge(tauTools.TauTrackRNNClassifierCfg(flags)) )
41 tools.append( result.popToolsAndMerge(tauTools.EnergyCalibrationLCCfg(flags)) )
43 tools.append( result.popToolsAndMerge(tauTools.CellVariablesCfg(flags)) )
44 tools.append( result.popToolsAndMerge(tauTools.ElectronVetoVarsCfg(flags)) )
45 tools.append( result.popToolsAndMerge(tauTools.TauShotFinderCfg(flags)) )
47 if flags.Tau.doPi0Clus:
48 tools.append( result.popToolsAndMerge(tauTools.Pi0ClusterFinderCfg(flags)) )
51 TauProcessorAlg = CompFactory.getComp(
"TauProcessorAlg")
52 BuildAlg =
TauProcessorAlg(name = flags.Tau.ActiveConfig.prefix+
"TauCoreBuilderAlg",
53 Key_jetInputContainer = flags.Tau.ActiveConfig.SeedJetCollection,
54 Key_tauOutputContainer = flags.Tau.ActiveConfig.TauJets_tmp,
55 Key_tauTrackOutputContainer = flags.Tau.ActiveConfig.TauTracks,
56 Key_tauShotClusOutputContainer = flags.Tau.ActiveConfig.TauShotClusters,
57 Key_tauShotClusLinkContainer = flags.Tau.ActiveConfig.TauShotClustersLinks,
58 Key_tauShotPFOOutputContainer = flags.Tau.ActiveConfig.TauShotPFOs,
59 Key_tauPi0CellOutputContainer = flags.Tau.ActiveConfig.TauCommonPi0Cells,
60 MaxEta = flags.Tau.SeedMaxEta,
61 MinPt = flags.Tau.SeedMinPt,
62 MaxNTracks = flags.Tau.MaxNTracks,
64 CellMakerTool = result.popToolsAndMerge(tauTools.TauCellFinalizerCfg(flags)))
66 if flags.GeoModel.Run
is LHCPeriod.Run4:
67 BuildAlg.PixelDetEleCollKey=
"ITkPixelDetectorElementCollection"
68 BuildAlg.SCTDetEleCollKey=
"ITkStripDetectorElementCollection"
69 BuildAlg.TRTDetEleContKey=
""
71 result.addEventAlgo(BuildAlg)