ATLAS Offline Software
MuonPrdSelector_jobOptions.py
Go to the documentation of this file.
1 #
2 # Changing the names of the RdoToPrepData output Containers
3 #
4 
5 
6 if hasattr(topSequence,'MdtRdoToMdtPrepData'):
7  topSequence.MdtRdoToMdtPrepData.DecodingTool.OutputCollection = "MDT_DriftCircles_unfiltered"
8 
9 if hasattr(topSequence,'CscRdoToCscPrepData'):
10  topSequence.CscRdoToCscPrepData.CscRdoToCscPrepDataTool.OutputCollection = "CSC_Measurements_unfiltered"
11 
12 if hasattr(topSequence,'RpcRdoToRpcPrepData'):
13  topSequence.RpcRdoToRpcPrepData.DecodingTool.TriggerOutputCollection = "RPC_Measurements_unfiltered"
14 
15 if hasattr(topSequence,'TgcRdoToTgcPrepData'):
16  topSequence.TgcRdoToTgcPrepData.DecodingTool.OutputCollection = "TGC_Measurements_unfiltered"
17 
18 
19 #--------------------------------------------------------------------------
20 # Configuration of MuonIdCutTool
21 #--------------------------------------------------------------------------
22 
23 #multiple cuts may be selected at the same time.
24 #if etaCut and phiCut are both true, the program is smart enough to know that technologies
25 #with no lists shouldn't be cut, but if either eta or philists are set for a technology,
26 #both should be set or it will cut the whole technology.
27 
28 from MuonPrdSelector.MuonPrdSelectorConf import MuonIdCutTool
29 
30 MuonIdCutTool = MuonIdCutTool()
31 MuonIdCutTool.OutputLevel = INFO
32 
33 MuonIdCutTool.CutStationRegion = False
34 MuonIdCutTool.CutStationName = False
35 MuonIdCutTool.CutSubstation = False
36 MuonIdCutTool.CutEta = False
37 MuonIdCutTool.CutPhi = False
38 MuonIdCutTool.CutEE = False
39 
40 
41 MuonIdCutTool.CutMdtStationNameList = [] #Integer, maps to BIL,EOS,etc
42 MuonIdCutTool.CutCscStationNameList = []
43 MuonIdCutTool.CutRpcStationNameList = []
44 MuonIdCutTool.CutTgcStationNameList = []
45 
46 MuonIdCutTool.CutMdtRegionList = [] #Inner-0,Extra-1,Middle-2,Outer-3
47 #MuonIdCutTool.CutCscRegionList = []
48 MuonIdCutTool.CutRpcRegionList = []
49 #MuonIdCutTool.CutTgcRegionList = []
50 MuonIdCutTool.CutRpcRegionList = [0, 1, 2, 3]
51 
52 MuonIdCutTool.CutMdtMultilayerList = []
53 MuonIdCutTool.CutRpcDoubletRList = []
54 MuonIdCutTool.CutRpcGasGapList = []
55 MuonIdCutTool.CutTgcGasGapList = []
56 
57 #Syntax is Eta/Sector, list of EEL chambers to KEEP
58 MuonIdCutTool.EELList = []
59 #MuonIdCutTool.EELList +=["1/2"]
60 
61 #note that eta/phi lists specify region to KEEP
62 #this was done for consistency with earlier versions
63 MuonIdCutTool.MdtBarrelEtaList = []#-8 to +8, 0 is eta=0
64 MuonIdCutTool.MdtEndcapEtaList = []#-6 to +6, abs val increaseswith increasing |R|
65 MuonIdCutTool.MdtSectorList = [] #1-16, increases with phi, starts x direction
66 
67 MuonIdCutTool.RpcEtaList = [] #same as mdtbarrel
68 MuonIdCutTool.RpcSectorList = []
69 
70 MuonIdCutTool.CscEtaList = [] #always 1 for all sectors
71 MuonIdCutTool.CscSectorList = [] #same as mdt
72 
73 #be careful, the numbering/placement of tgcs is quite different
74 #forward tgc sectors have eta = 1
75 MuonIdCutTool.TgcEtaList = [] #-5 to +5 abs val increaseswith increasing |R|
76 MuonIdCutTool.TgcEndcapPhiList = [] #1-24
77 MuonIdCutTool.TgcForwardPhiList = []#1-48
78 
79 #
80 # Creating an instance of the MuonPrdSelectorAlg
81 #
82 # Setting the names of the input/output Containers of the MuonPrdSelectorAlg.
83 # The output containers have the original name of the containers used by
84 # the reconstruction algorithms.
85 #
86 from MuonPrdSelector.MuonPrdSelectorConf import MuonPrdSelectorAlg
87 MuonPrdSelectorAlg = MuonPrdSelectorAlg( MDT_PRDinputContainer = "MDT_DriftCircles_unfiltered",
88  MDT_PRDoutputContainer = "MDT_DriftCircles",
89 
90  RPC_PRDinputContainer = "RPC_Measurements_unfiltered",
91  RPC_PRDoutputContainer = "RPC_Measurements",
92 
93  TGC_PRDinputContainer = "TGC_Measurements_unfiltered",
94  TGC_PRDoutputContainer = "TGC_Measurements",
95 
96  CSC_PRDinputContainer = "CSC_Measurements_unfiltered",
97  CSC_PRDoutputContainer = "CSC_Measurements",
98  MuonIdCutTool = MuonIdCutTool )
99 
100 
101 topSequence += MuonPrdSelectorAlg
MuonPrdSelector_jobOptions.MuonPrdSelectorAlg
MuonPrdSelectorAlg
Definition: MuonPrdSelector_jobOptions.py:87
MuonPrdSelector_jobOptions.MuonIdCutTool
MuonIdCutTool
Definition: MuonPrdSelector_jobOptions.py:30