ATLAS Offline Software
SCTCalibConfig.py
Go to the documentation of this file.
1 
2 #--------------------------------------------------------------
3 # JobOptions for user setting in SCTCalib/SCTCalibWriteSvc
4 # - Minimum inputs to run each algorithm
5 #--------------------------------------------------------------
6 
7 #--------------------------------------------------------------
8 # RunNumber and number of events
9 #--------------------------------------------------------------
10 #RunNumber = 364204
11 #RunNumber = 364214
12 RunNumber = 384813
13 #RunNumber = 384896
14 EvtMax = -1
15 
16 #--------------------------------------------------------------
17 # Geometry and Conditons Tag
18 # - If empty, one tag is automatically chosen in topOptions
19 #--------------------------------------------------------------
20 GeometryTag = '' # empty in default
21 ConditionsTag = '' # empty in default
22 
23 #--------------------------------------------------------------
24 # Global flags and beam flag
25 #--------------------------------------------------------------
26 DataSource = 'data' # 'data' or 'geant4'
27 beamType = 'cosmics' # 'cosmics', 'singlebeam' or 'collisions'
28 
29 #------------------------------------------------------------
30 # Flags for input
31 # - TrkVal/BS : NoisyStrips, HV, DeadChip, DeadStrip
32 # - HIST : NoiseOccupancy, RawOccupancy, Efficiency, BSErrorDB, LorentzAngle
33 #------------------------------------------------------------
34 ReadBS = True
35 #------------------------------------------------------------
36 # Algorithm turned on
37 # - Set only one flag to True and others to False
38 #------------------------------------------------------------
39 #--- Algs using TrkVal or BS
40 DoHitMaps = False
41 DoHitMapsLB = False
42 DoHV = False
43 DoNoisyStrip = True
44 DoDeadStrip = False
45 DoDeadChip = False
46 DoQuietStrip = False
47 DoQuietChip = False
48 #--- Algs using HIST
49 DoNoiseOccupancy = False
50 DoRawOccupancy = False
51 DoEfficiency = False
52 DoBSErrorDB = False
53 DoLorentzAngle = False
54 
55 #------------------------------------------------------------
56 # Default setup for specific flags in SCTCalib
57 # - This default is for NoisyStrips
58 #------------------------------------------------------------
59 UseDCS = False
60 UseConfiguration = True
61 UseCalibration = True
62 UseMajority = True
63 UseBSError = False
64 ReadHitMaps = True # True = 2 steps of HitMap production and analysis, False = simultaneous production and analysis
65 DoBSErrors = False
66 
67 #------------------------------------------------------------
68 # Properties in SCTCalib
69 #------------------------------------------------------------
70 #--- local DB
71 WriteToCool = True
72 
73 # hitmaps
74 LbsPerWindow = 30
75 
76 #--- Noisy strips
77 NoisyUpdate = False # True = Write out difference from the existing data, False = Write out all
78 NoisyWriteAllModules = True
79 NoisyMinStat = 10000 # 50000 (enough), 10000 (still possible), 5000 (for commissioning)
80 NoisyStripAll = True # True = All noisy strips into DB, False = Only newly found strips
81 NoisyStripThrDef = True # True = Offline, False = Calib
82 NoisyStripThrOffline = 1.500E-2 # Threshold in Offline
83 NoisyStripThrOnline = 1.500E-3 # Threshold in Online/Calibration (TBD)
84 NoisyWaferFinder = True # True = turn on noisy wafer criteria, False = turn off
85 NoisyWaferWrite = True # True = include noisy wafer, False = do not include
86 NoisyWaferAllStrips = False # True = write out all strips, False = only noisy strips
87 NoisyWaferThrBarrel = 1.000E-3
88 NoisyWaferThrECA = 1.000E-3
89 NoisyWaferThrECC = 1.000E-3
90 NoisyWaferFraction = 0.500
91 NoisyChipFraction = 0.500
92 NoisyUploadTest = True #only false during the first few runs
93 NoisyModuleAverageInDB = -1.
94 NoisyStripLastRunInDB = -999
95 NoisyStripAverageInDB = -999.
96 NoisyModuleList = 5000
97 NoisyModuleDiff = 0.300
98 NoisyStripDiff = 0.300
99 
100 #--- Dead strips/chips
101 DeadStripMinStat = 5000
102 DeadStripMinStatBusy = 5000
103 DeadChipMinStat = 5000
104 DeadStripSignificance = 6
105 DeadChipSignificance = 6
106 BusyThr4DeadFinding = 1E-4
107 NoisyThr4DeadFinding = 5.0E-2
108 DeadChipUploadTest = True
109 DeadStripUploadTest = True
110 DeadNotQuiet = False
111 QuietThresholdStrip = 0.5
112 QuietThresholdChip = 0.5
113 
114 #--- Efficiency
115 EfficiencyDoChips = False
116 
117 #--- HIST
118 NoiseOccupancyTriggerAware = False
119 NoiseOccupancyMinStat = 5000
120 RawOccupancyMinStat = 5000
121 EfficiencyMinStat = 5000
122 BSErrorDBMinStat = 5000
123 LorentzAngleMinStat = 5000
124 
125 #--- Lorentz Angle Debug Mode
126 LorentzAngleDebugMode = True
127 
128 #--------------------------------------------------------------
129 # Tags for local DB and XML files in SCTCalib/SCTCalibWriteSvc
130 #--------------------------------------------------------------
131 TagID4NoisyStrips = 'SctDerivedMonitoring-RUN2-UPD4-005' # UPD4, open IOV for BLK
132 TagID4DeadStrips = 'SctDerivedDeadStrips-003-00'
133 TagID4DeadChips = 'SctDerivedDeadChips-003-00'
134 TagID4NoiseOccupancy = 'SctDerivedNoiseOccupancy-003-01'
135 TagID4RawOccupancy = 'SctDerivedRawOccupancy-003-00'
136 TagID4Efficiency = 'SctDerivedEfficiency-003-00'
137 TagID4BSErrors = 'SctDerivedBSErrorsRun2-001-00'
138 TagID4LorentzAngle = 'SctDerivedLorentzAngleRun2_v2-001-00'
139 
140 #--------------------------------------------------------------
141 # A list of GeometryTags
142 # - One tag is chosen in topOptions from magnet current info
143 #--------------------------------------------------------------
144 GeometryTagSTF = 'ATLAS-R2-2015-03-00-00' # Solenoid=ON, BarrelToroid=ON
145 GeometryTagNTF = 'ATLAS-R2-2015-03-00-00' # Solenoid=ON, BarrelToroid=OFF
146 GeometryTagNSF = 'ATLAS-R2-2015-03-00-00' # Solenoid=OFF, BarrelToroid=ON
147 GeometryTagNF = 'ATLAS-R2-2015-03-00-00' # Solenoid=OFF, BarrelToroid=OFF
148 GeometryTagMC = 'ATLAS-R2-2015-03-00-00' # MC
149 
150 
151 #--------------------------------------------------------------
152 # A list of ConditionsTags
153 # - One tag is chosen in topOptions from magnet current info
154 #--------------------------------------------------------------
155 #--- MC
156 ConditionsTagMC = 'OFLCOND-DR-BS7T-ANom-00' # digi+rec for MC09 - Nominal
157 #--- BLK : bulk production
158 ConditionsTagSTF = 'CONDBR2-ES1PA-2016-03' # Solenoid=ON, BarrelToroid=ON
159 ConditionsTagNTF = 'CONDBR2-ES1PA-2016-03' # Solenoid=ON, BarrelToroid=OFF
160 ConditionsTagNSF = 'CONDBR2-ES1PA-2016-03' # Solenoid=OFF, BarrelToroid=ON
161 ConditionsTagNF = 'CONDBR2-ES1PA-2016-03' # Solenoid=OFF, BarrelToroid=OFF
162 
163 #--------------------------------------------------------------
164 # Read /SCT/Derived/Monotoring in COOL
165 NoisyReadNumRuns = 3 # Used in a criteria for upload of NoisyStrips
166 TagID4NoisyUploadTest = 'SctDerivedMonitoring-RUN2-UPD4-005'