3 from AthenaCommon.Logging
import logging
4 logging.getLogger().
info(
"Importing %s",__name__)
5 log = logging.getLogger(__name__)
7 from AthenaConfiguration.ComponentFactory
import CompFactory
8 from TriggerMenuMT.HLT.Config.MenuComponents
import MenuSequence, SelectionCA, InViewRecoCA, EmptyMenuSequenceCfg
9 from TrigEDMConfig.TriggerEDM
import recordable
12 from TriggerMenuMT.HLT.Config.ChainConfigurationBase
import ChainConfigurationBase
15 hypo = CompFactory.TrackCountHypoTool(chainDict[
"chainName"])
21 trkRecoSeq = InViewRecoCA(
"CosmicTrkRecoSeq", InViewRoIs =
"CosmicRoIs")
23 from TrigInDetConfig.utils
import getFlagsForActiveConfig
26 from TrigInDetConfig.InnerTrackingTrigSequence
import InnerTrackingTrigSequence
27 seq = InnerTrackingTrigSequence.create(flagsWithTrk,
28 flagsWithTrk.Tracking.ActiveConfig.input_name,
30 inView =
"VDVCosmicsIDTracking")
31 idTrackingAlgs = seq.sequence(
"Offline")
32 trkRecoSeq.mergeReco(idTrackingAlgs)
34 trackCountHypo = CompFactory.TrackCountHypoAlg(
"CosmicsTrackCountHypoAlg",
35 minPt = [100*Units.MeV],
36 maxZ0 = [401*Units.mm],
37 vertexZ = [803*Units.mm])
38 trackCountHypo.tracksKey =
recordable(
"HLT_IDTrack_Cosmic_IDTrig")
39 trackCountHypo.trackCountKey =
"HLT_CosmicsTrackCount"
42 from TrigMinBias.TrigMinBiasMonitoring
import TrackCountMonitoring
46 trkSequence = SelectionCA(
"CosmicTrkSequence")
47 trkSequence.mergeReco(trkRecoSeq)
48 trkSequence.addHypoAlgo(trackCountHypo)
49 log.debug(
"Prepared ID tracking sequence")
50 log.debug(trkSequence)
51 return MenuSequence(flags,
53 HypoToolGen = TrackCountHypoToolGen)
60 ChainConfigurationBase.__init__(self,chainDict)
68 log.debug(
"Assembling chain for %s", self.chainName)
72 if 'cosmic_id' in self.chainName:
73 steps += [ self.getStep(flags,
'Empty', [EmptyMenuSequenceCfg], name=
"EmptyBeforeCosmicID"),
74 self.getStep(flags,
'CosmicTracking', [CosmicsTrkSequenceGenCfg]) ]
76 return self.buildChain(steps)