ATLAS Offline Software
Loading...
Searching...
No Matches
python.HLT.CalibCosmicMon.CosmicChainConfiguration Namespace Reference

Classes

class  CosmicChainConfiguration

Functions

 TrackCountHypoToolGen (flags, chainDict)
 CosmicsTrkSequenceGenCfg (flags)

Variables

 log = logging.getLogger(__name__)

Function Documentation

◆ CosmicsTrkSequenceGenCfg()

python.HLT.CalibCosmicMon.CosmicChainConfiguration.CosmicsTrkSequenceGenCfg ( flags)

Definition at line 19 of file CosmicChainConfiguration.py.

19def CosmicsTrkSequenceGenCfg(flags):
20
21 trkRecoSeq = InViewRecoCA("CosmicTrkRecoSeq", InViewRoIs = "CosmicRoIs")
22
23 from TrigInDetConfig.utils import getFlagsForActiveConfig
24 flagsWithTrk = getFlagsForActiveConfig(flags, "cosmics", log)
25
26 from TrigInDetConfig.InnerTrackingTrigSequence import InnerTrackingTrigSequence
27 seq = InnerTrackingTrigSequence.create(flagsWithTrk,
28 flagsWithTrk.Tracking.ActiveConfig.input_name,
29 rois ="CosmicRoIs",
30 inView = "VDVCosmicsIDTracking")
31 idTrackingAlgs = seq.sequence("Offline")
32 trkRecoSeq.mergeReco(idTrackingAlgs)
33
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" # irrelevant, not recorded
40
41 #TODO move a complete configuration of the algs to TrigMinBias package
42 from TrigMinBias.TrigMinBiasMonitoring import TrackCountMonitoring
43 trackCountHypo.MonTool = TrackCountMonitoring(flags, trackCountHypo) # monitoring tool configures itself using config of the hypo alg
44
45
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,
52 trkSequence,
53 HypoToolGen = TrackCountHypoToolGen)
54
55
56#----------------------------------------------------------------

◆ TrackCountHypoToolGen()

python.HLT.CalibCosmicMon.CosmicChainConfiguration.TrackCountHypoToolGen ( flags,
chainDict )

Definition at line 14 of file CosmicChainConfiguration.py.

14def TrackCountHypoToolGen(flags, chainDict):
15 hypo = CompFactory.TrackCountHypoTool(chainDict["chainName"])
16 hypo.minNtrks = 1
17 return hypo
18

Variable Documentation

◆ log

python.HLT.CalibCosmicMon.CosmicChainConfiguration.log = logging.getLogger(__name__)

Definition at line 5 of file CosmicChainConfiguration.py.