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

Classes

class  CalibChainConfiguration

Functions

 getLArNoiseBurstRecoCfg (flags)
 getLArNoiseBurstSequenceGenCfg (flags)
 getCaloAllEMLayersPSSequenceGenCfg (flags, doAllorAllEM=False)
 IDCalibTriggerSequenceGenCfg (flags)
 IDCalibFTFSequenceGenCfg (flags)
 acceptedEventsSequenceGenCfg (flags)

Variables

 log = logging.getLogger(__name__)

Function Documentation

◆ acceptedEventsSequenceGenCfg()

python.HLT.CalibCosmicMon.CalibChainConfiguration.acceptedEventsSequenceGenCfg ( flags)
Return MenuSequence for an HLT step used by the AcceptedEvents chains. This step is a trivial
always-reject hypo with no reco. The step itself should be noop as only the HLTSeeding and the
end-of-event sequence parts of AcceptedEvents chains are actually used.

Definition at line 203 of file CalibChainConfiguration.py.

203def acceptedEventsSequenceGenCfg(flags):
204 '''
205 Return MenuSequence for an HLT step used by the AcceptedEvents chains. This step is a trivial
206 always-reject hypo with no reco. The step itself should be noop as only the HLTSeeding and the
207 end-of-event sequence parts of AcceptedEvents chains are actually used.
208 '''
209 # Implementation identical to the timeburner chain but with zero sleep time
210
211 inputMaker = CompFactory.InputMakerForRoI(
212 "IM_AcceptedEvents",
213 RoITool = CompFactory.ViewCreatorInitialROITool(),
214 RoIs="AcceptedEventsRoIs",
215 )
216 reco = InEventRecoCA('AcceptedEvents_reco',inputMaker=inputMaker)
217 # TimeBurner alg works as a reject-all hypo
218 selAcc = SelectionCA('AcceptedEventsSequence')
219 selAcc.mergeReco(reco)
220 selAcc.addHypoAlgo(
221 TimeBurnerCfg(
222 flags,
223 name="AcceptedEventsHypo",
224 SleepTimeMillisec = 0,
225 )
226 )
227
228 msca = MenuSequence(
229 flags, selAcc,
230 HypoToolGen=TimeBurnerHypoToolGen
231 )
232 return msca
233

◆ getCaloAllEMLayersPSSequenceGenCfg()

python.HLT.CalibCosmicMon.CalibChainConfiguration.getCaloAllEMLayersPSSequenceGenCfg ( flags,
doAllorAllEM = False )

Definition at line 55 of file CalibChainConfiguration.py.

55def getCaloAllEMLayersPSSequenceGenCfg(flags,doAllorAllEM=False):
56
57 from TrigT2CaloCommon.CaloDef import fastCaloVDVCfg
58 nameselAcc = "LArPSSequence_All"
59 namerecoAcc = "fastCaloInViewSequenceAllEM"
60 hypoAlgName = "TrigL2CaloLayersAlg_AllEM"
61 output = "HLT_LArPS_AllCaloEMClusters"
62 if doAllorAllEM :
63 nameselAcc = "LArPSSequence_AllEM"
64 namerecoAcc = "fastCaloInViewSequenceAll"
65 hypoAlgName = "TrigL2CaloLayersAlg_All"
66 output = "HLT_LArPS_AllCaloClusters"
67 selAcc = SelectionCA(nameselAcc)
68 InViewRoIs="EMCaloRoIs"
69 reco = InViewRecoCA(namerecoAcc,InViewRoIs=InViewRoIs)
70 reco.mergeReco(fastCaloVDVCfg(flags,InViewRoIs=InViewRoIs))
71 reco.mergeReco(fastCaloRecoSequenceCfg(flags, inputEDM=InViewRoIs,ClustersName=output,doAllEm=not doAllorAllEM,doAll=doAllorAllEM))
72
73 selAcc.mergeReco(reco)
74
75 from TrigCaloHypo.TrigCaloHypoConfig import TrigL2CaloLayersHypoToolGen
76 TrigL2CaloLayersAlg = CompFactory.TrigL2CaloLayersAlg(hypoAlgName)
77 TrigL2CaloLayersAlg.TrigClusterContainerKey = output
78 selAcc.addHypoAlgo(TrigL2CaloLayersAlg)
79 return MenuSequence(flags,selAcc,HypoToolGen=TrigL2CaloLayersHypoToolGen)
80
81
82#----------------------------------------------------------------
83

◆ getLArNoiseBurstRecoCfg()

python.HLT.CalibCosmicMon.CalibChainConfiguration.getLArNoiseBurstRecoCfg ( flags)

Definition at line 24 of file CalibChainConfiguration.py.

24def getLArNoiseBurstRecoCfg(flags):
25 acc = InEventRecoCA("LArNoiseBurstRecoSequence", inputMaker=clusterFSInputMaker())
26 cells_name = 'CaloCellsFS'
27 acc.mergeReco(hltCaloCellMakerCfg(flags=flags, name="HLTCaloCellMakerFS", roisKey=''))
28 acc.mergeReco(TrigLArNoiseBurstRecoAlgCfg(flags, cells_name))
29 return acc
30
31
32# --------------------
33# LArNoiseBurst configuration
34# --------------------
35@AccumulatorCache

◆ getLArNoiseBurstSequenceGenCfg()

python.HLT.CalibCosmicMon.CalibChainConfiguration.getLArNoiseBurstSequenceGenCfg ( flags)

Definition at line 36 of file CalibChainConfiguration.py.

36def getLArNoiseBurstSequenceGenCfg(flags):
37
38 hypoAlg = CompFactory.TrigLArNoiseBurstAlg("NoiseBurstAlg")
39 InEventReco = InEventRecoCA("LArNoiseBurstRecoSequence", inputMaker=clusterFSInputMaker())
40
41 noiseBurstRecoSeq = getLArNoiseBurstRecoCfg(flags)
42
43 InEventReco.mergeReco(noiseBurstRecoSeq)
44 selAcc = SelectionCA("LArNoiseBurstMenuSequence")
45 selAcc.mergeReco(InEventReco)
46 selAcc.addHypoAlgo(hypoAlg)
47
48 return MenuSequence(flags,selAcc,HypoToolGen=TrigLArNoiseBurstHypoToolGen)
49
50
51# --------------------
52# LArPS Noise Detection EM configuration
53# --------------------
54@AccumulatorCache

◆ IDCalibFTFSequenceGenCfg()

python.HLT.CalibCosmicMon.CalibChainConfiguration.IDCalibFTFSequenceGenCfg ( flags)

Definition at line 182 of file CalibChainConfiguration.py.

182def IDCalibFTFSequenceGenCfg(flags):
183 reco = InEventRecoCA('IDCalibTrkrecoSeq_reco',inputMaker=getTrackingInputMaker(flags, "ftf"))
184 reco.mergeReco(commonInDetFullScanCfg(flags))
185
186 selAcc = SelectionCA('IDCalibTrkrecoSeq')
187 selAcc.mergeReco(reco)
188 selAcc.addHypoAlgo(CompFactory.TrigStreamerHypoAlg("IDCalibTrkDummyStream"))
189
190 msca = MenuSequence(
191 flags, selAcc,
192 HypoToolGen = lambda flags, chainDict: CompFactory.TrigStreamerHypoTool(chainDict['chainName'])
193 )
194 return msca
195
196
197#----------------------------------------------------------------
198
199# --------------------
200# HLT step for the AcceptedEvents chains
201# --------------------
202@AccumulatorCache

◆ IDCalibTriggerSequenceGenCfg()

python.HLT.CalibCosmicMon.CalibChainConfiguration.IDCalibTriggerSequenceGenCfg ( flags)

Definition at line 159 of file CalibChainConfiguration.py.

159def IDCalibTriggerSequenceGenCfg(flags):
160 DummyInputMakerAlg = CompFactory.InputMakerForRoI( "IM_IDCalib_HypoOnlyStep" )
161 DummyInputMakerAlg.RoITool = CompFactory.ViewCreatorInitialROITool()
162
163 reco = InEventRecoCA('IDCalibEmptySeq_reco',inputMaker=DummyInputMakerAlg)
164
165 theHypoAlg = createIDCalibHypoAlg(flags, "IDCalibHypo")
166 theHypoAlg.tracksKey = flags.Trigger.InDetTracking.fullScan.tracks_FTF
167
168 selAcc = SelectionCA('IDCalibEmptySeq_sel')
169 selAcc.mergeReco(reco)
170 selAcc.addHypoAlgo(theHypoAlg)
171
172 msca = MenuSequence(
173 flags, selAcc,
174 HypoToolGen=IDCalibHypoToolFromDict,
175 )
176 return msca
177
178
179# --------------------
180
181@AccumulatorCache

Variable Documentation

◆ log

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

Definition at line 5 of file CalibChainConfiguration.py.