ATLAS Offline Software
Functions
HipTRTMenuSequences Namespace Reference

Functions

def TRTHitGeneratorSequenceGenCfg (flags, is_probe_leg=False)
 

Function Documentation

◆ TRTHitGeneratorSequenceGenCfg()

def HipTRTMenuSequences.TRTHitGeneratorSequenceGenCfg (   flags,
  is_probe_leg = False 
)

Definition at line 11 of file HipTRTMenuSequences.py.

11 def TRTHitGeneratorSequenceGenCfg(flags, is_probe_leg = False):
12 
13  recAcc = ComponentAccumulator()
14 
15  from TriggerMenuMT.HLT.Egamma.TrigEgammaKeys import getTrigEgammaKeys
16  TrigEgammaKeys = getTrigEgammaKeys(flags)
17 
18  """ hipTRT step ....."""
19  inViewRoIs = "TRTHitGenerator"
20  # EVCreator:
21  roiTool = CompFactory.ViewCreatorCentredOnClusterROITool()
22  roiTool.AllowMultipleClusters = False
23  roiTool.RoisWriteHandleKey = "HLT_Roi_TRTHit"
24  roiTool.RoIEtaWidth = 0.10
25  roiTool.RoIPhiWidth = 0.10
26  viewName = "TRTHitGenerator"
27 
28  hipTRTReco = InViewRecoCA(viewName,
29  RoITool=roiTool, # view maker args
30  RequireParentView=True,
31  InViewRoIs=inViewRoIs,
32  isProbe=is_probe_leg)
33 
34  # view data verifier
35  ViewVerify = CompFactory.AthViews.ViewDataVerifier("TRTHitGeneratorViewDataVerifier")
36  ViewVerify.DataObjects = {('TrigRoiDescriptorCollection' , 'StoreGateSvc+TRTHitGenerator'),
37  }
38  from AthenaCommon.Logging import logging
39  log = logging.getLogger(__name__)
40  from TrigInDetConfig.utils import getFlagsForActiveConfig
41  flagsWithTrk = getFlagsForActiveConfig(flags, 'photon', log)
42 
43  from TrigInDetConfig.InDetTrigSequence import InDetTrigSequence
44 
45  seq = InDetTrigSequence(flagsWithTrk, flagsWithTrk.Tracking.ActiveConfig.input_name,
46  rois=inViewRoIs, inView=ViewVerify.getName())
47 
48  recAcc.merge(seq.dataPreparationTRT())
49 
50  recAcc.addEventAlgo(ViewVerify)
51  trtHTHFex = TrigTRTHTHCounterFex(flags, name="TrigTRTH_fex",
52  RoIs = inViewRoIs,
53  containerName = "TRT_TrigDriftCircles",
54  RNNOutputName = TrigEgammaKeys.TrigTRTHTCountsContainer)
55 
56  recAcc.addEventAlgo(trtHTHFex)
57 
58  hipTRTReco.mergeReco(recAcc)
59 
60  selAcc=SelectionCA("trtHitCounter", isProbe=is_probe_leg)
61  selAcc.mergeReco(hipTRTReco)
62  trtHTHhypo = CompFactory.TrigTRTHTHhypoAlg(name="TrigTRTHTHhypo", RNNOutputName=TrigEgammaKeys.TrigTRTHTCountsContainer)
63  selAcc.addHypoAlgo(trtHTHhypo)
64  from TrigTRTHighTHitCounter.TrigTRTHTHhypoTool import TrigTRTHTHhypoToolFromDict
65  return MenuSequence(flags,selAcc, HypoToolGen=TrigTRTHTHhypoToolFromDict)
66 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
HipTRTMenuSequences.TRTHitGeneratorSequenceGenCfg
def TRTHitGeneratorSequenceGenCfg(flags, is_probe_leg=False)
Definition: HipTRTMenuSequences.py:11
python.utils.getFlagsForActiveConfig
AthConfigFlags getFlagsForActiveConfig(AthConfigFlags flags, str config_name, logging.Logger log)
Definition: Trigger/TrigTools/TrigInDetConfig/python/utils.py:9
TrigTRTHTHCounterConfig.TrigTRTHTHCounterFex
def TrigTRTHTHCounterFex(flags, name, RoIs, containerName, RNNOutputName)
Definition: TrigTRTHTHCounterConfig.py:5
python.HLT.Egamma.TrigEgammaKeys.getTrigEgammaKeys
def getTrigEgammaKeys(AthConfigFlags flags, name='', ion=False)
Definition: TrigEgammaKeys.py:138