ATLAS Offline Software
Loading...
Searching...
No Matches
TBTrackToCaloAlg_jobOptions.py
Go to the documentation of this file.
1# JobOptions to extrapolate a track to Calorimeters
2
3# ------ Specific to this alg :
4
5from TBRec.TBRecCong import TBTrackToCaloAlg
6TrackToCaloAlg = TBTrackToCaloAlg("TrackToCaloAlg")
7TrackToCaloAlg.ClusterContainerName = "CaloTopoClusterEM"
8TrackToCaloAlg.CaloCellContainerName = "AllCalo"
9TrackToCaloAlg.ImpactInCaloContainerName = "ImpactInCalo"
10
11# If type is anything else than TrackParticleCandidates, will take Tracks
12#TrackToCaloAlg.TrackInputType = "Tracks"
13TrackToCaloAlg.TrackInputType = "TrackParticleCandidates"
14TrackToCaloAlg.TrackName = "Tracks"
15TrackToCaloAlg.TrackParticleName = "TrackParticleCandidate"
16
17theApp += TrackToCaloAlg
18# ------ More general part to be used as an example : setup Extrapolator instance
19
20TTC_ExtrapolatorInstance = 'TrackToCaloExtrapolator'
21include( "TBRec/TBExtrapolToCaloTool_joboptions.py" )
22
23# configure private ExtrapolTrackToCaloTool tool
24TrackToCaloAlg.ExtrapolTrackToCaloTool.ExtrapolatorName = TTC_Extrapolator.name()
25TrackToCaloAlg.ExtrapolTrackToCaloTool.ExtrapolatorInstanceName = TTC_Extrapolator.instance()
26TrackToCaloAlg.ExtrapolTrackToCaloTool.CaloDepthTool.DepthChoice= "entrance"
27
28# the type of extrapolation is set automatically. To force it add here :
29# doStraightToCalo=False will use RungeKutta (default for Atlas)
30# doStraightToCalo=True will use StraightLine (default for ctb)
31
32
33
This Algorithm is meant to be an example of use of the TrackToCalo tools :